Lines Matching refs:length
40 struct archdr *pkthdr, int length);
43 static int prepare_tx(struct net_device *dev, struct archdr *pkt, int length,
135 struct archdr *pkthdr, int length) in rx() argument
144 BUGMSG(D_DURING, "it's an RFC1201 packet (length=%d)\n", length); in rx()
146 if (length >= MinTU) in rx()
147 ofs = 512 - length; in rx()
149 ofs = 256 - length; in rx()
152 if (length >= 4 + RFC1201_HDR_SIZE) in rx()
161 length -= 4; in rx()
163 lp->hw.copy_from_card(dev, bufnum, 512 - length, in rx()
181 skb = alloc_skb(length + ARC_HDR_SIZE, GFP_ATOMIC); in rx()
187 skb_put(skb, length + ARC_HDR_SIZE); in rx()
195 if (length > sizeof(pkt->soft)) in rx()
198 length - sizeof(pkt->soft)); in rx()
352 length - RFC1201_HDR_SIZE); in rx()
353 skb_put(skb, length - RFC1201_HDR_SIZE); in rx()
474 static int prepare_tx(struct net_device *dev, struct archdr *pkt, int length, in prepare_tx() argument
485 length -= ARC_HDR_SIZE; /* hard header is not included in packet length */ in prepare_tx()
489 if (length > XMTU) { in prepare_tx()
492 out->length = length - RFC1201_HDR_SIZE; in prepare_tx()
493 out->dataleft = lp->outgoing.length; in prepare_tx()
498 "(%d bytes, seq=%d)\n", out->numsegs, out->length, in prepare_tx()
504 load_pkt(dev, &pkt->hard, &pkt->soft.rfc1201, length, bufnum); in prepare_tx()
525 (out->pkt->soft.raw + out->length - out->dataleft); in continue_tx()