Lines Matching defs:length
43 struct archdr *pkthdr, int length)
51 arc_printk(D_DURING, dev, "it's a raw(cap) packet (length=%d)\n",
52 length);
54 if (length >= MinTU)
55 ofs = 512 - length;
57 ofs = 256 - length;
59 skb = alloc_skb(length + ARC_HDR_SIZE + sizeof(int), GFP_ATOMIC);
64 skb_put(skb, length + ARC_HDR_SIZE + sizeof(int));
82 if (length > sizeof(pkt->soft))
86 length - sizeof(pkt->soft));
132 static int prepare_tx(struct net_device *dev, struct archdr *pkt, int length,
139 /* hard header is not included in packet length */
140 length -= ARC_HDR_SIZE;
142 length -= sizeof(int);
150 if (length > XMTU) {
153 length, XMTU);
154 length = XMTU;
156 if (length > MinTU) {
158 hard->offset[1] = ofs = 512 - length;
159 } else if (length > MTU) {
161 hard->offset[1] = ofs = 512 - length - 3;
163 hard->offset[0] = ofs = 256 - length;
166 arc_printk(D_DURING, dev, "prepare_tx: length=%d ofs=%d\n",
167 length, ofs);
178 ((unsigned char *)&pkt->soft.cap.mes), length - 1);
190 int length = sizeof(struct arc_cap);
199 ackskb = alloc_skb(length + ARC_HDR_SIZE, GFP_ATOMIC);
203 skb_put(ackskb, length + ARC_HDR_SIZE);