Lines Matching defs:length
41 struct archdr *pkthdr, int length);
44 static int prepare_tx(struct net_device *dev, struct archdr *pkt, int length,
122 struct archdr *pkthdr, int length)
129 arc_printk(D_DURING, dev, "it's a raw packet (length=%d)\n", length);
131 if (length >= MinTU)
132 ofs = 512 - length;
134 ofs = 256 - length;
136 skb = alloc_skb(length + ARC_HDR_SIZE, GFP_ATOMIC);
141 skb_put(skb, length + ARC_HDR_SIZE);
148 if (length > sizeof(pkt->soft))
151 length - sizeof(pkt->soft));
207 static int prepare_tx(struct net_device *dev, struct archdr *pkt, int length,
217 /* hard header is not included in packet length */
218 length -= ARC_HDR_SIZE;
220 if (length > XMTU) {
223 length, XMTU);
224 length = XMTU;
226 if (length > MinTU) {
228 hard->offset[1] = ofs = 512 - length;
229 } else if (length > MTU) {
231 hard->offset[1] = ofs = 512 - length - 3;
233 hard->offset[0] = ofs = 256 - length;
237 lp->hw.copy_to_card(dev, bufnum, ofs, &pkt->soft, length);