Lines Matching defs:length
41 struct archdr *pkthdr, int length);
44 static int prepare_tx(struct net_device *dev, struct archdr *pkt, int length,
123 struct archdr *pkthdr, int length)
130 arc_printk(D_DURING, dev, "it's a raw packet (length=%d)\n", length);
132 if (length >= MinTU)
133 ofs = 512 - length;
135 ofs = 256 - length;
137 skb = alloc_skb(length + ARC_HDR_SIZE, GFP_ATOMIC);
142 skb_put(skb, length + ARC_HDR_SIZE);
149 if (length > sizeof(pkt->soft))
152 length - sizeof(pkt->soft));
208 static int prepare_tx(struct net_device *dev, struct archdr *pkt, int length,
218 /* hard header is not included in packet length */
219 length -= ARC_HDR_SIZE;
221 if (length > XMTU) {
224 length, XMTU);
225 length = XMTU;
227 if (length > MinTU) {
229 hard->offset[1] = ofs = 512 - length;
230 } else if (length > MTU) {
232 hard->offset[1] = ofs = 512 - length - 3;
234 hard->offset[0] = ofs = 256 - length;
238 lp->hw.copy_to_card(dev, bufnum, ofs, &pkt->soft, length);