Home
last modified time | relevance | path

Searched refs:skb2 (Results 1 – 25 of 34) sorted by relevance

12

/drivers/net/usb/
Dcdc_eem.c107 struct sk_buff *skb2 = NULL; in eem_tx_fixup() local
140 skb2 = skb_copy_expand(skb, EEM_HEAD, ETH_FCS_LEN + padlen, flags); in eem_tx_fixup()
141 if (!skb2) in eem_tx_fixup()
145 skb = skb2; in eem_tx_fixup()
183 struct sk_buff *skb2 = NULL; in eem_rx_fixup() local
232 skb2 = skb_clone(skb, GFP_ATOMIC); in eem_rx_fixup()
233 if (unlikely(!skb2)) in eem_rx_fixup()
235 skb_trim(skb2, len); in eem_rx_fixup()
237 skb_push(skb2, 2)); in eem_rx_fixup()
238 eem_linkcmd(dev, skb2); in eem_rx_fixup()
[all …]
Dcx82310_eth.c224 struct sk_buff *skb2; in cx82310_rx_fixup() local
232 skb2 = alloc_skb(len, GFP_ATOMIC); in cx82310_rx_fixup()
233 if (!skb2) in cx82310_rx_fixup()
235 skb_put(skb2, len); in cx82310_rx_fixup()
236 memcpy(skb2->data, (void *)dev->partial_data, in cx82310_rx_fixup()
238 memcpy(skb2->data + dev->partial_len, skb->data, in cx82310_rx_fixup()
240 usbnet_skb_return(dev, skb2); in cx82310_rx_fixup()
275 skb2 = alloc_skb(len, GFP_ATOMIC); in cx82310_rx_fixup()
276 if (!skb2) in cx82310_rx_fixup()
278 skb_put(skb2, len); in cx82310_rx_fixup()
[all …]
Dkalmia.c168 struct sk_buff *skb2 = NULL; in kalmia_tx_fixup() local
191 skb2 = skb_copy_expand(skb, KALMIA_HEADER_LENGTH, in kalmia_tx_fixup()
193 if (!skb2) in kalmia_tx_fixup()
197 skb = skb2; in kalmia_tx_fixup()
250 struct sk_buff *skb2 = NULL; in kalmia_rx_fixup() local
308 skb2 = skb; in kalmia_rx_fixup()
311 skb2 = skb_clone(skb, GFP_ATOMIC); in kalmia_rx_fixup()
312 if (unlikely(!skb2)) in kalmia_rx_fixup()
316 skb_trim(skb2, ether_packet_length); in kalmia_rx_fixup()
322 usbnet_skb_return(dev, skb2); in kalmia_rx_fixup()
Drndis_host.c506 struct sk_buff *skb2; in rndis_rx_fixup() local
532 skb2 = skb_clone(skb, GFP_ATOMIC); in rndis_rx_fixup()
533 if (unlikely(!skb2)) in rndis_rx_fixup()
536 skb_trim(skb2, data_len); in rndis_rx_fixup()
537 usbnet_skb_return(dev, skb2); in rndis_rx_fixup()
549 struct sk_buff *skb2; in rndis_tx_fixup() local
570 skb2 = skb_copy_expand(skb, sizeof *hdr, 1, flags); in rndis_tx_fixup()
572 if (unlikely(!skb2)) in rndis_tx_fixup()
573 return skb2; in rndis_tx_fixup()
574 skb = skb2; in rndis_tx_fixup()
Dint51x1.c94 struct sk_buff *skb2; in int51x1_tx_fixup() local
96 skb2 = skb_copy_expand(skb, in int51x1_tx_fixup()
101 if (!skb2) in int51x1_tx_fixup()
103 skb = skb2; in int51x1_tx_fixup()
Dgl620a.c169 struct sk_buff *skb2; in genelink_tx_fixup() local
170 skb2 = skb_copy_expand(skb, (4 + 4*1) , padlen, flags); in genelink_tx_fixup()
172 skb = skb2; in genelink_tx_fixup()
Dnet1080.c438 struct sk_buff *skb2; in net1080_tx_fixup() local
467 skb2 = skb_copy_expand(skb, in net1080_tx_fixup()
472 if (!skb2) in net1080_tx_fixup()
473 return skb2; in net1080_tx_fixup()
474 skb = skb2; in net1080_tx_fixup()
Dzaurus.c60 struct sk_buff *skb2; in zaurus_tx_fixup() local
68 skb2 = skb_copy_expand(skb, 0, 4 + padlen, flags); in zaurus_tx_fixup()
70 skb = skb2; in zaurus_tx_fixup()
Dch9200.c258 struct sk_buff *skb2; in ch9200_tx_fixup() local
260 skb2 = skb_copy_expand(skb, tx_overhead, 0, flags); in ch9200_tx_fixup()
262 skb = skb2; in ch9200_tx_fixup()
Dlan78xx.c2537 struct sk_buff *skb2 = NULL; in lan78xx_start_xmit() local
2541 skb2 = lan78xx_tx_prep(dev, skb, GFP_ATOMIC); in lan78xx_start_xmit()
2544 if (skb2) { in lan78xx_start_xmit()
2545 skb_queue_tail(&dev->txq_pend, skb2); in lan78xx_start_xmit()
2737 struct sk_buff *skb2; in lan78xx_rx() local
2773 skb2 = skb_clone(skb, GFP_ATOMIC); in lan78xx_rx()
2774 if (unlikely(!skb2)) { in lan78xx_rx()
2779 skb2->len = size; in lan78xx_rx()
2780 skb2->data = packet; in lan78xx_rx()
2781 skb_set_tail_pointer(skb2, size); in lan78xx_rx()
[all …]
Ddm9601.c496 struct sk_buff *skb2; in dm9601_tx_fixup() local
498 skb2 = skb_copy_expand(skb, DM_TX_OVERHEAD, pad, flags); in dm9601_tx_fixup()
500 skb = skb2; in dm9601_tx_fixup()
Dasix_common.c229 struct sk_buff *skb2; in asix_tx_fixup() local
231 skb2 = skb_copy_expand(skb, 4, padlen, flags); in asix_tx_fixup()
233 skb = skb2; in asix_tx_fixup()
/drivers/staging/wilc1000/
Dlinux_mon.c183 struct sk_buff *skb2; in WILC_WFI_mon_xmit() local
199 skb2 = dev_alloc_skb(skb->len + sizeof(struct wilc_wfi_radiotap_cb_hdr)); in WILC_WFI_mon_xmit()
200 if (!skb2) in WILC_WFI_mon_xmit()
203 memcpy(skb_put(skb2, skb->len), skb->data, skb->len); in WILC_WFI_mon_xmit()
205 cb_hdr = (struct wilc_wfi_radiotap_cb_hdr *)skb_push(skb2, sizeof(*cb_hdr)); in WILC_WFI_mon_xmit()
219 skb2->dev = wilc_wfi_mon; in WILC_WFI_mon_xmit()
220 skb_set_mac_header(skb2, 0); in WILC_WFI_mon_xmit()
221 skb2->ip_summed = CHECKSUM_UNNECESSARY; in WILC_WFI_mon_xmit()
222 skb2->pkt_type = PACKET_OTHERHOST; in WILC_WFI_mon_xmit()
223 skb2->protocol = htons(ETH_P_802_2); in WILC_WFI_mon_xmit()
[all …]
/drivers/usb/gadget/function/
Df_eem.c342 struct sk_buff *skb2 = NULL; in eem_wrap() local
364 skb2 = skb_copy_expand(skb, EEM_HLEN, ETH_FCS_LEN + padlen, GFP_ATOMIC); in eem_wrap()
366 skb = skb2; in eem_wrap()
401 struct sk_buff *skb2; in eem_unwrap() local
441 skb2 = skb_clone(skb, GFP_ATOMIC); in eem_unwrap()
442 if (unlikely(!skb2)) { in eem_unwrap()
446 skb_trim(skb2, len); in eem_unwrap()
448 skb_push(skb2, 2)); in eem_unwrap()
449 skb_copy_bits(skb2, 0, req->buf, skb2->len); in eem_unwrap()
450 req->length = skb2->len; in eem_unwrap()
[all …]
Df_ncm.c965 struct sk_buff *skb2 = NULL; in package_for_tx() local
999 swap(skb2, ncm->skb_tx_data); in package_for_tx()
1006 ntb_iter = (void *) skb_put(skb2, ndp_pad); in package_for_tx()
1010 ntb_iter = (void *) skb_put(skb2, ncm->skb_tx_ndp->len); in package_for_tx()
1016 ntb_iter = (void *) skb_put(skb2, dgram_idx_len); in package_for_tx()
1019 return skb2; in package_for_tx()
1026 struct sk_buff *skb2 = NULL; in ncm_wrap_ntb() local
1066 skb2 = package_for_tx(ncm); in ncm_wrap_ntb()
1067 if (!skb2) in ncm_wrap_ntb()
1141 skb2 = package_for_tx(ncm); in ncm_wrap_ntb()
[all …]
Du_ether.c262 struct sk_buff *skb = req->context, *skb2; in rx_complete() local
290 skb2 = skb_dequeue(&dev->rx_frames); in rx_complete()
291 while (skb2) { in rx_complete()
293 || ETH_HLEN > skb2->len in rx_complete()
294 || skb2->len > GETHER_MAX_ETH_FRAME_LEN) { in rx_complete()
297 DBG(dev, "rx length %d\n", skb2->len); in rx_complete()
298 dev_kfree_skb_any(skb2); in rx_complete()
301 skb2->protocol = eth_type_trans(skb2, dev->net); in rx_complete()
303 dev->net->stats.rx_bytes += skb2->len; in rx_complete()
308 status = netif_rx(skb2); in rx_complete()
[all …]
Df_rndis.c375 struct sk_buff *skb2; in rndis_add_header() local
380 skb2 = skb_realloc_headroom(skb, sizeof(struct rndis_packet_msg_type)); in rndis_add_header()
381 rndis_add_hdr(skb2); in rndis_add_header()
384 return skb2; in rndis_add_header()
/drivers/net/team/
Dteam_mode_broadcast.c23 struct sk_buff *skb2; in bc_transmit() local
30 skb2 = skb_clone(skb, GFP_ATOMIC); in bc_transmit()
31 if (skb2) { in bc_transmit()
33 skb2); in bc_transmit()
/drivers/net/wireless/intersil/hostap/
Dhostap_80211_rx.c482 struct sk_buff *skb2; in hostap_rx_frame_mgmt() local
485 skb2 = skb_clone(skb, GFP_ATOMIC); in hostap_rx_frame_mgmt()
486 if (skb2) in hostap_rx_frame_mgmt()
487 hostap_rx(skb2->dev, skb2, rx_stats); in hostap_rx_frame_mgmt()
728 struct sk_buff *skb2 = NULL; in hostap_80211_rx() local
1075 skb2 = skb_clone(skb, GFP_ATOMIC); in hostap_80211_rx()
1076 if (skb2 == NULL) in hostap_80211_rx()
1083 skb2 = skb; in hostap_80211_rx()
1088 if (skb2 != NULL) { in hostap_80211_rx()
1090 skb2->dev = dev; in hostap_80211_rx()
[all …]
/drivers/net/wireless/intel/ipw2x00/
Dlibipw_rx.c186 struct sk_buff *skb2; in libipw_rx_frame_mgmt() local
189 skb2 = skb_clone(skb, GFP_ATOMIC); in libipw_rx_frame_mgmt()
190 if (skb2) in libipw_rx_frame_mgmt()
191 hostap_rx(skb2->dev, skb2, rx_stats); in libipw_rx_frame_mgmt()
344 struct sk_buff *skb2 = NULL; in libipw_rx() local
779 skb2 = skb_clone(skb, GFP_ATOMIC); in libipw_rx()
780 if (skb2 == NULL) in libipw_rx()
787 skb2 = skb; in libipw_rx()
792 if (skb2 != NULL) { in libipw_rx()
794 skb2->dev = dev; in libipw_rx()
[all …]
/drivers/net/ethernet/cavium/octeon/
Docteon_mgmt.c393 struct sk_buff *skb2; in octeon_mgmt_receive_one() local
428 re2.d64 = octeon_mgmt_dequeue_rx_buffer(p, &skb2); in octeon_mgmt_receive_one()
432 skb_put(skb2, re2.s.len); in octeon_mgmt_receive_one()
433 skb_new = skb_copy_expand(skb, 0, skb2->len, in octeon_mgmt_receive_one()
437 if (skb_copy_bits(skb2, 0, skb_tail_pointer(skb_new), in octeon_mgmt_receive_one()
438 skb2->len)) in octeon_mgmt_receive_one()
440 skb_put(skb_new, skb2->len); in octeon_mgmt_receive_one()
442 dev_kfree_skb_any(skb2); in octeon_mgmt_receive_one()
457 dev_kfree_skb_any(skb2); in octeon_mgmt_receive_one()
459 re2.d64 = octeon_mgmt_dequeue_rx_buffer(p, &skb2); in octeon_mgmt_receive_one()
[all …]
/drivers/staging/i4l/pcbit/
Ddrv.c470 struct sk_buff *skb2; in pcbit_l3_receive() local
489 if (capi_tdata_resp(chan, &skb2) > 0) in pcbit_l3_receive()
491 skb2, skb2->len); in pcbit_l3_receive()
535 if ((len = capi_disc_req(*(ushort *)(skb->data), &skb2, CAUSE_NOCHAN)) > 0) in pcbit_l3_receive()
536 pcbit_l2_write(dev, MSG_DISC_REQ, refnum, skb2, len); in pcbit_l3_receive()
/drivers/net/wan/
Dz85230.c800 c->skb2 = NULL; in z8530_sync_open()
866 c->skb2 = NULL; in z8530_sync_dma_open()
1061 c->skb2 = NULL; in z8530_sync_txdma_open()
1668 c->skb = c->skb2; in z8530_rx_done()
1680 c->skb2 = dev_alloc_skb(c->mtu); in z8530_rx_done()
1681 if (c->skb2 == NULL) in z8530_rx_done()
1684 skb_put(c->skb2, c->mtu); in z8530_rx_done()
/drivers/net/
Dgtp.c1144 struct sk_buff *skb2; in gtp_genl_get_pdp() local
1199 skb2 = genlmsg_new(NLMSG_GOODSIZE, GFP_ATOMIC); in gtp_genl_get_pdp()
1200 if (skb2 == NULL) { in gtp_genl_get_pdp()
1205 err = gtp_genl_fill_info(skb2, NETLINK_CB(skb).portid, in gtp_genl_get_pdp()
1211 return genlmsg_unicast(genl_info_net(info), skb2, info->snd_portid); in gtp_genl_get_pdp()
1214 kfree_skb(skb2); in gtp_genl_get_pdp()
Dvrf.c568 struct sk_buff *skb2; in vrf_finish_output() local
570 skb2 = skb_realloc_headroom(skb, LL_RESERVED_SPACE(dev)); in vrf_finish_output()
571 if (!skb2) { in vrf_finish_output()
576 skb_set_owner_w(skb2, skb->sk); in vrf_finish_output()
579 skb = skb2; in vrf_finish_output()

12