Lines Matching refs:length
40 struct archdr *pkthdr, int length)
47 arc_printk(D_DURING, dev, "it's a raw packet (length=%d)\n", length);
49 if (length > MTU)
50 ofs = 512 - length;
52 ofs = 256 - length;
54 skb = alloc_skb(length + ARC_HDR_SIZE, GFP_ATOMIC);
59 skb_put(skb, length + ARC_HDR_SIZE);
69 if (length > sizeof(pkt->soft))
72 length - sizeof(pkt->soft));
113 static int prepare_tx(struct net_device *dev, struct archdr *pkt, int length,
123 /* hard header is not included in packet length */
124 length -= ARC_HDR_SIZE;
126 if (length > XMTU) {
129 length, XMTU);
130 length = XMTU;
132 if (length >= MinTU) {
134 hard->offset[1] = ofs = 512 - length;
135 } else if (length > MTU) {
137 hard->offset[1] = ofs = 512 - length - 3;
139 hard->offset[0] = ofs = 256 - length;
142 arc_printk(D_DURING, dev, "prepare_tx: length=%d ofs=%d\n",
143 length, ofs);
146 lp->hw.copy_to_card(dev, bufnum, ofs, &pkt->soft, length);