Lines Matching defs:len
233 if (skb->len <= ETH_HLEN)
243 if (vlan_get_tag(skb, &tci) < 0 && skb->len > VLAN_ETH_HLEN &&
353 static bool is_neigh_solicit(u8 *buf, size_t len)
358 return (len >= sizeof(struct ipv6hdr) + sizeof(struct nd_msg) &&
365 static struct sk_buff *cdc_mbim_process_dgram(struct usbnet *dev, u8 *buf, size_t len, u16 tci)
371 if (len < sizeof(struct iphdr))
379 if (is_neigh_solicit(buf, len))
388 skb = netdev_alloc_skb_ip_align(dev->net, len + ETH_HLEN);
400 skb_put_data(skb, buf, len);
414 int len;
460 len = le16_to_cpu(dpe16->wDatagramLength);
466 if ((offset == 0) || (len == 0)) {
473 if (((offset + len) > skb_in->len) || (len > ctx->rx_max)) {
476 x, offset, len, skb_in);
481 skb = cdc_mbim_process_dgram(dev, skb_in->data + offset, len, tci);
485 payload += len; /* count payload bytes in this NTB */
495 ctx->rx_overhead += skb_in->len - payload;