Home
last modified time | relevance | path

Searched refs:skb_in (Results 1 – 3 of 3) sorted by relevance

/drivers/staging/gdm724x/
Dgdm_lte.c93 static int gdm_lte_emulate_arp(struct sk_buff *skb_in, u32 nic_type) in gdm_lte_emulate_arp() argument
95 struct nic *nic = netdev_priv(skb_in->dev); in gdm_lte_emulate_arp()
114 if (skb_in->len == 0) in gdm_lte_emulate_arp()
118 if (ntohs(((struct ethhdr *)skb_in->data)->h_proto) == ETH_P_8021Q) { in gdm_lte_emulate_arp()
119 memcpy(&vlan_eth, skb_in->data, sizeof(struct vlan_ethhdr)); in gdm_lte_emulate_arp()
123 memcpy(&eth, skb_in->data, sizeof(struct ethhdr)); in gdm_lte_emulate_arp()
129 arp_in = (struct arphdr *)(skb_in->data + mac_header_len); in gdm_lte_emulate_arp()
130 arp_data_in = (struct arpdata *)(skb_in->data + mac_header_len + in gdm_lte_emulate_arp()
155 skb_out = dev_alloc_skb(skb_in->len); in gdm_lte_emulate_arp()
165 skb_out->dev = skb_in->dev; in gdm_lte_emulate_arp()
[all …]
/drivers/net/usb/
Dcdc_ncm.c1539 int cdc_ncm_rx_verify_nth16(struct cdc_ncm_ctx *ctx, struct sk_buff *skb_in) in cdc_ncm_rx_verify_nth16() argument
1541 struct usbnet *dev = netdev_priv(skb_in->dev); in cdc_ncm_rx_verify_nth16()
1549 if (skb_in->len < (sizeof(struct usb_cdc_ncm_nth16) + in cdc_ncm_rx_verify_nth16()
1555 nth16 = (struct usb_cdc_ncm_nth16 *)skb_in->data; in cdc_ncm_rx_verify_nth16()
1587 int cdc_ncm_rx_verify_nth32(struct cdc_ncm_ctx *ctx, struct sk_buff *skb_in) in cdc_ncm_rx_verify_nth32() argument
1589 struct usbnet *dev = netdev_priv(skb_in->dev); in cdc_ncm_rx_verify_nth32()
1597 if (skb_in->len < (sizeof(struct usb_cdc_ncm_nth32) + in cdc_ncm_rx_verify_nth32()
1603 nth32 = (struct usb_cdc_ncm_nth32 *)skb_in->data; in cdc_ncm_rx_verify_nth32()
1636 int cdc_ncm_rx_verify_ndp16(struct sk_buff *skb_in, int ndpoffset) in cdc_ncm_rx_verify_ndp16() argument
1638 struct usbnet *dev = netdev_priv(skb_in->dev); in cdc_ncm_rx_verify_ndp16()
[all …]
Dcdc_mbim.c409 static int cdc_mbim_rx_fixup(struct usbnet *dev, struct sk_buff *skb_in) in cdc_mbim_rx_fixup() argument
426 ndpoffset = cdc_ncm_rx_verify_nth16(ctx, skb_in); in cdc_mbim_rx_fixup()
431 nframes = cdc_ncm_rx_verify_ndp16(skb_in, ndpoffset); in cdc_mbim_rx_fixup()
435 ndp16 = (struct usb_cdc_ncm_ndp16 *)(skb_in->data + ndpoffset); in cdc_mbim_rx_fixup()
473 if (((offset + len) > skb_in->len) || (len > ctx->rx_max)) { in cdc_mbim_rx_fixup()
476 x, offset, len, skb_in); in cdc_mbim_rx_fixup()
481 skb = cdc_mbim_process_dgram(dev, skb_in->data + offset, len, tci); in cdc_mbim_rx_fixup()
495 ctx->rx_overhead += skb_in->len - payload; in cdc_mbim_rx_fixup()