Lines Matching defs:pkt_len
273 u16_t pkt_len;
341 pkt_len = buf->data[index] + (buf->data[index+1] << 8);
347 /*printk("Get a packet, index: %d, pkt_len: 0x%04x\n", index, pkt_len);*/
349 pad_len = 4 - (pkt_len & 0x3);
355 index = index + 4 + pkt_len + pad_len;
375 skb_put(new_buf, pkt_len);
388 new_buf->len = pkt_len;
403 skb_put(new_buf, pkt_len);
406 memcpy(new_buf->data, &(buf->data[chk_idx+4]), pkt_len);
414 printk(KERN_ERR "Can't find tag, pkt_len: 0x%04x, tag: 0x%04x\n", pkt_len, pkt_tag);