Lines Matching defs:length
40 struct archdr *pkthdr, int length);
43 static int prepare_tx(struct net_device *dev, struct archdr *pkt, int length,
89 struct archdr *pkthdr, int length)
96 BUGMSG(D_DURING, "it's a raw packet (length=%d)\n", length);
98 if (length > MTU)
99 ofs = 512 - length;
101 ofs = 256 - length;
103 skb = alloc_skb(length + ARC_HDR_SIZE, GFP_ATOMIC);
109 skb_put(skb, length + ARC_HDR_SIZE);
119 if (length > sizeof(pkt->soft))
122 length - sizeof(pkt->soft));
163 static int prepare_tx(struct net_device *dev, struct archdr *pkt, int length,
173 length -= ARC_HDR_SIZE; /* hard header is not included in packet length */
175 if (length > XMTU) {
178 length, XMTU);
179 length = XMTU;
181 if (length >= MinTU) {
183 hard->offset[1] = ofs = 512 - length;
184 } else if (length > MTU) {
186 hard->offset[1] = ofs = 512 - length - 3;
188 hard->offset[0] = ofs = 256 - length;
190 BUGMSG(D_DURING, "prepare_tx: length=%d ofs=%d\n",
191 length,ofs);
194 lp->hw.copy_to_card(dev, bufnum, ofs, &pkt->soft, length);