8 if(Adapter->
PackInfo[iIndex].usVCID_Value == usVcid)
38 static void read_bulk_callback(
struct urb *
urb)
49 struct bcm_leader *pLeader = urb->transfer_buffer;
52 pr_info(
PFX "%s: rx urb status %d length %d\n",
53 Adapter->
dev->name, urb->status, urb->actual_length);
57 (0 == urb->actual_length)
67 if(urb->status == -
EPIPE)
96 if(MAX_CNTL_PKT_SIZE < pLeader->PLength)
99 pr_info(
PFX "%s: corrupted leader length...%d\n",
100 Adapter->
dev->name, pLeader->PLength);
101 ++Adapter->
dev->stats.rx_dropped;
106 QueueIndex = SearchVcid( Adapter,pLeader->Vcid);
109 bHeaderSupressionEnabled =
110 Adapter->
PackInfo[QueueIndex].bHeaderSuppressionEnabled;
111 bHeaderSupressionEnabled =
124 (!(pLeader->Status >= 0x20 && pLeader->Status <= 0x3F)))
129 (
sizeof(
struct bcm_leader)), pLeader->PLength);
130 skb->
len = pLeader->PLength +
sizeof(
USHORT);
152 Adapter->
PackInfo[QueueIndex].uiTotalRxBytes+=pLeader->PLength;
153 Adapter->
PackInfo[QueueIndex].uiThisPeriodRxBytes+= pLeader->PLength;
156 if(netif_running(Adapter->
dev))
161 NULL,bHeaderSupressionEnabled);
163 if(!Adapter->
PackInfo[QueueIndex].bEthCSSupport)
170 *(skb->
data+12) = 0x08;
171 *(skb->
data+13) = 0x00;
184 ++Adapter->
dev->stats.rx_packets;
185 Adapter->
dev->stats.rx_bytes += pLeader->PLength;
201 struct urb *urb = pRcb->
urb;
204 usb_fill_bulk_urb(urb, psIntfAdapter->
udev, usb_rcvbulkpipe(
252 pRcb = GetBulkInRcb(psIntfAdapter);
259 ReceiveRcb(psIntfAdapter, pRcb);