Home
last modified time | relevance | path

Searched refs:new_skb (Results 1 – 25 of 43) sorted by relevance

12

/linux/drivers/atm/
H A Datmtcp.c195 struct sk_buff *new_skb; in atmtcp_v_send() local
214 new_skb = atm_alloc_charge(out_vcc,size,GFP_ATOMIC); in atmtcp_v_send()
215 if (!new_skb) { in atmtcp_v_send()
221 hdr = skb_put(new_skb, sizeof(struct atmtcp_hdr)); in atmtcp_v_send()
225 skb_copy_from_linear_data(skb, skb_put(new_skb, skb->len), skb->len); in atmtcp_v_send()
228 out_vcc->push(out_vcc,new_skb); in atmtcp_v_send()
288 struct sk_buff *new_skb; in atmtcp_c_send() local
308 new_skb = atm_alloc_charge(out_vcc,skb->len,GFP_KERNEL); in atmtcp_c_send()
309 if (!new_skb) { in atmtcp_c_send()
313 __net_timestamp(new_skb); in atmtcp_c_send()
[all …]
/linux/drivers/bluetooth/
H A Dbtrsi.c51 struct sk_buff *new_skb = NULL; in rsi_hci_send_pkt() local
67 new_skb = skb_realloc_headroom(skb, RSI_HEADROOM_FOR_BT_HAL); in rsi_hci_send_pkt()
68 if (unlikely(!new_skb)) in rsi_hci_send_pkt()
70 bt_cb(new_skb)->pkt_type = hci_skb_pkt_type(skb); in rsi_hci_send_pkt()
72 skb = new_skb; in rsi_hci_send_pkt()
H A Dbtintel_pcie.c614 struct sk_buff *new_skb; in btintel_pcie_recv_frame() local
691 new_skb = bt_skb_alloc(plen, GFP_ATOMIC); in btintel_pcie_recv_frame()
692 if (!new_skb) { in btintel_pcie_recv_frame()
699 hci_skb_pkt_type(new_skb) = pkt_type; in btintel_pcie_recv_frame()
700 skb_put_data(new_skb, skb->data, plen); in btintel_pcie_recv_frame()
704 ret = btintel_pcie_recv_event(hdev, new_skb); in btintel_pcie_recv_frame()
706 ret = hci_recv_frame(hdev, new_skb); in btintel_pcie_recv_frame()
/linux/net/mac80211/
H A Dmesh_ps.c422 struct sk_buff *new_skb, *skb = skb_peek_tail(frames); in mpsp_qos_null_append() local
429 new_skb = mps_qos_null_get(sta); in mpsp_qos_null_append()
430 if (!new_skb) in mpsp_qos_null_append()
439 new_skb->priority = 1; in mpsp_qos_null_append()
440 skb_set_queue_mapping(new_skb, IEEE80211_AC_BK); in mpsp_qos_null_append()
441 ieee80211_set_qos_hdr(sdata, new_skb); in mpsp_qos_null_append()
443 info = IEEE80211_SKB_CB(new_skb); in mpsp_qos_null_append()
447 __skb_queue_tail(frames, new_skb); in mpsp_qos_null_append()
/linux/drivers/net/ethernet/sunplus/
H A Dspl2sw_int.c22 struct sk_buff *skb, *new_skb; in spl2sw_rx_poll() local
74 new_skb = netdev_alloc_skb(NULL, comm->rx_desc_buff_size); in spl2sw_rx_poll()
75 if (unlikely(!new_skb)) { in spl2sw_rx_poll()
84 sinfo->mapping = dma_map_single(&comm->pdev->dev, new_skb->data, in spl2sw_rx_poll()
88 dev_kfree_skb_irq(new_skb); in spl2sw_rx_poll()
97 sinfo->skb = new_skb; in spl2sw_rx_poll()
/linux/drivers/net/ethernet/natsemi/
H A Dsonic.c501 struct sk_buff **new_skb, dma_addr_t *new_addr) in sonic_alloc_rb() argument
503 *new_skb = netdev_alloc_skb(dev, SONIC_RBSIZE + 2); in sonic_alloc_rb()
504 if (!*new_skb) in sonic_alloc_rb()
508 skb_reserve(*new_skb, 2); in sonic_alloc_rb()
510 *new_addr = dma_map_single(lp->device, skb_put(*new_skb, SONIC_RBSIZE), in sonic_alloc_rb()
513 dev_kfree_skb(*new_skb); in sonic_alloc_rb()
514 *new_skb = NULL; in sonic_alloc_rb()
567 struct sk_buff *new_skb; in sonic_rx() local
579 if (sonic_alloc_rb(dev, lp, &new_skb, &new_laddr)) { in sonic_rx()
596 lp->rx_skb[i] = new_skb; in sonic_rx()
/linux/drivers/net/usb/
H A Dsierra_net.c781 struct sk_buff *new_skb; in sierra_net_skb_clone() local
784 new_skb = skb_clone(skb, GFP_ATOMIC); in sierra_net_skb_clone()
790 if (new_skb) { in sierra_net_skb_clone()
791 skb_trim(new_skb, len); in sierra_net_skb_clone()
798 return new_skb; in sierra_net_skb_clone()
806 struct sk_buff *new_skb; in sierra_net_rx_fixup() local
848 new_skb = sierra_net_skb_clone(dev, skb, hh.payload_len.word); in sierra_net_rx_fixup()
849 if (new_skb) in sierra_net_rx_fixup()
850 usbnet_skb_return(dev, new_skb); in sierra_net_rx_fixup()
H A Daqc111.c1074 struct sk_buff *new_skb = NULL; in aqc111_rx_fixup() local
1144 new_skb = netdev_alloc_skb_ip_align(dev->net, pkt_len); in aqc111_rx_fixup()
1146 if (!new_skb) in aqc111_rx_fixup()
1149 skb_put(new_skb, pkt_len); in aqc111_rx_fixup()
1150 memcpy(new_skb->data, skb->data, pkt_len); in aqc111_rx_fixup()
1151 skb_pull(new_skb, AQ_RX_HW_PAD); in aqc111_rx_fixup()
1154 aqc111_rx_checksum(new_skb, pkt_desc); in aqc111_rx_fixup()
1158 __vlan_hwaccel_put_tag(new_skb, htons(ETH_P_8021Q), in aqc111_rx_fixup()
1162 usbnet_skb_return(dev, new_skb); in aqc111_rx_fixup()
1171 new_skb = NULL; in aqc111_rx_fixup()
[all …]
/linux/net/sctp/
H A Dinqueue.c134 goto new_skb; in sctp_inq_pop()
138 goto new_skb; in sctp_inq_pop()
187 new_skb: in sctp_inq_pop()
/linux/net/atm/
H A Dmpc.c688 struct sk_buff *new_skb; in mpc_push() local
761 new_skb = skb_realloc_headroom(skb, eg->ctrl_info.DH_length); in mpc_push()
764 if (new_skb == NULL) { in mpc_push()
768 skb_push(new_skb, eg->ctrl_info.DH_length); /* add MAC header */ in mpc_push()
769 skb_copy_to_linear_data(new_skb, eg->ctrl_info.DLL_header, in mpc_push()
771 new_skb->protocol = eth_type_trans(new_skb, dev); in mpc_push()
772 skb_reset_network_header(new_skb); in mpc_push()
774 eg->latest_ip_addr = ip_hdr(new_skb)->saddr; in mpc_push()
778 memset(ATM_SKB(new_skb), 0, sizeof(struct atm_skb_data)); in mpc_push()
779 netif_rx(new_skb); in mpc_push()
/linux/net/nfc/
H A Ddigital_dep.c204 struct sk_buff *new_skb; in digital_send_dep_data_prep() local
209 new_skb = digital_skb_alloc(ddev, ddev->remote_payload_max); in digital_send_dep_data_prep()
210 if (!new_skb) { in digital_send_dep_data_prep()
217 skb_put_data(new_skb, skb->data, ddev->remote_payload_max); in digital_send_dep_data_prep()
224 new_skb = skb; in digital_send_dep_data_prep()
227 return new_skb; in digital_send_dep_data_prep()
238 struct sk_buff *new_skb; in digital_recv_dep_data_gather() local
253 new_skb = skb_copy_expand(ddev->chaining_skb, in digital_recv_dep_data_gather()
258 if (!new_skb) { in digital_recv_dep_data_gather()
264 ddev->chaining_skb = new_skb; in digital_recv_dep_data_gather()
H A Dllcp_core.c1410 struct sk_buff *new_skb; in nfc_llcp_recv_agf() local
1434 new_skb = nfc_alloc_recv_skb(pdu_len, GFP_KERNEL); in nfc_llcp_recv_agf()
1435 if (new_skb == NULL) { in nfc_llcp_recv_agf()
1440 skb_put_data(new_skb, skb->data, pdu_len); in nfc_llcp_recv_agf()
1442 nfc_llcp_rx_skb(local, new_skb); in nfc_llcp_recv_agf()
1444 kfree_skb(new_skb); in nfc_llcp_recv_agf()
/linux/drivers/net/ethernet/freescale/fs_enet/
H A Dfs_enet-main.c427 struct sk_buff *new_skb; in tx_skb_align_workaround() local
433 new_skb = netdev_alloc_skb(dev, skb->len + 4); in tx_skb_align_workaround()
434 if (!new_skb) in tx_skb_align_workaround()
438 skb_align(new_skb, 4); in tx_skb_align_workaround()
441 skb_copy_from_linear_data(skb, new_skb->data, skb->len); in tx_skb_align_workaround()
442 skb_put(new_skb, skb->len); in tx_skb_align_workaround()
447 return new_skb; in tx_skb_align_workaround()
/linux/drivers/net/wireless/marvell/mwifiex/
H A Duap_txrx.c87 struct sk_buff *new_skb; in mwifiex_uap_queue_bridged_pkt() local
163 new_skb = in mwifiex_uap_queue_bridged_pkt()
165 if (unlikely(!new_skb)) { in mwifiex_uap_queue_bridged_pkt()
174 skb = new_skb; in mwifiex_uap_queue_bridged_pkt()
/linux/drivers/net/ethernet/freescale/dpaa/
H A Ddpaa_eth.c2141 struct sk_buff *new_skb, *skb = *s; in dpaa_a050385_wa_skb() local
2173 new_skb = netdev_alloc_skb(net_dev, skb->len + DPAA_A050385_ALIGN - 1 + in dpaa_a050385_wa_skb()
2175 if (!new_skb) in dpaa_a050385_wa_skb()
2179 skb_reserve(new_skb, priv->tx_headroom - NET_SKB_PAD); in dpaa_a050385_wa_skb()
2182 start = PTR_ALIGN(new_skb->data, DPAA_A050385_ALIGN); in dpaa_a050385_wa_skb()
2183 if (start - new_skb->data) in dpaa_a050385_wa_skb()
2184 skb_reserve(new_skb, start - new_skb->data); in dpaa_a050385_wa_skb()
2186 skb_put(new_skb, skb->len); in dpaa_a050385_wa_skb()
2187 skb_copy_bits(skb, 0, new_skb->data, skb->len); in dpaa_a050385_wa_skb()
2188 skb_copy_header(new_skb, skb); in dpaa_a050385_wa_skb()
[all …]
/linux/drivers/net/ethernet/mediatek/
H A Dmtk_star_emac.c1276 struct sk_buff *curr_skb, *new_skb; in mtk_star_rx() local
1290 new_skb = curr_skb; in mtk_star_rx()
1297 new_skb = mtk_star_alloc_skb(ndev); in mtk_star_rx()
1298 if (!new_skb) { in mtk_star_rx()
1300 new_skb = curr_skb; in mtk_star_rx()
1304 new_dma_addr = mtk_star_dma_map_rx(priv, new_skb); in mtk_star_rx()
1307 dev_kfree_skb(new_skb); in mtk_star_rx()
1308 new_skb = curr_skb; in mtk_star_rx()
1331 desc_data.len = skb_tailroom(new_skb); in mtk_star_rx()
1332 desc_data.skb = new_skb; in mtk_star_rx()
/linux/drivers/net/ppp/
H A Dppp_generic.c1701 struct sk_buff *new_skb; in pad_compress_skb() local
1707 new_skb = alloc_skb(new_skb_size, GFP_ATOMIC); in pad_compress_skb()
1708 if (!new_skb) { in pad_compress_skb()
1714 skb_reserve(new_skb, in pad_compress_skb()
1719 new_skb->data, skb->len + 2, in pad_compress_skb()
1723 skb = new_skb; in pad_compress_skb()
1728 consume_skb(new_skb); in pad_compress_skb()
1729 new_skb = skb; in pad_compress_skb()
1742 consume_skb(new_skb); in pad_compress_skb()
1743 new_skb = NULL; in pad_compress_skb()
[all …]
H A Dpptp.c181 struct sk_buff *new_skb = skb_realloc_headroom(skb, max_headroom); in pptp_xmit() local
182 if (!new_skb) { in pptp_xmit()
187 skb_set_owner_w(new_skb, skb->sk); in pptp_xmit()
189 skb = new_skb; in pptp_xmit()
/linux/drivers/net/ethernet/3com/
H A Dtyphoon.c1632 struct sk_buff *skb, *new_skb; in typhoon_rx() local
1662 (new_skb = netdev_alloc_skb(tp->dev, pkt_len + 2)) != NULL) { in typhoon_rx()
1663 skb_reserve(new_skb, 2); in typhoon_rx()
1666 skb_copy_to_linear_data(new_skb, skb->data, pkt_len); in typhoon_rx()
1670 skb_put(new_skb, pkt_len); in typhoon_rx()
1673 new_skb = skb; in typhoon_rx()
1674 skb_put(new_skb, pkt_len); in typhoon_rx()
1679 new_skb->protocol = eth_type_trans(new_skb, tp->dev); in typhoon_rx()
1686 new_skb->ip_summed = CHECKSUM_UNNECESSARY; in typhoon_rx()
1688 skb_checksum_none_assert(new_skb); in typhoon_rx()
[all …]
/linux/drivers/net/ethernet/ti/icssg/
H A Dicssg_prueth_sr1.c277 struct sk_buff *skb, *new_skb; in prueth_process_rx_mgm() local
309 new_skb = netdev_alloc_skb_ip_align(ndev, PRUETH_MAX_PKT_SIZE); in prueth_process_rx_mgm()
313 if (!new_skb) { in prueth_process_rx_mgm()
317 new_skb = skb; in prueth_process_rx_mgm()
325 ret = prueth_dma_rx_push(emac, new_skb, &emac->rx_mgm_chn); in prueth_process_rx_mgm()
327 dev_kfree_skb_any(new_skb); in prueth_process_rx_mgm()
H A Dicssg_common.c544 struct sk_buff *skb, *new_skb; in emac_rx_packet() local
581 new_skb = netdev_alloc_skb_ip_align(ndev, PRUETH_MAX_PKT_SIZE); in emac_rx_packet()
585 if (!new_skb) { in emac_rx_packet()
587 new_skb = skb; in emac_rx_packet()
600 ret = prueth_dma_rx_push(emac, new_skb, &emac->rx_chns); in emac_rx_packet()
602 dev_kfree_skb_any(new_skb); in emac_rx_packet()
/linux/drivers/net/wireless/ath/ath6kl/
H A Dtxrx.c993 struct sk_buff *new_skb; in aggr_slice_amsdu() local
1014 new_skb = aggr_get_free_skb(p_aggr); in aggr_slice_amsdu()
1015 if (!new_skb) { in aggr_slice_amsdu()
1020 memcpy(new_skb->data, framep, frame_8023_len); in aggr_slice_amsdu()
1021 skb_put(new_skb, frame_8023_len); in aggr_slice_amsdu()
1022 if (ath6kl_wmi_dot3_2_dix(new_skb)) { in aggr_slice_amsdu()
1024 dev_kfree_skb(new_skb); in aggr_slice_amsdu()
1028 skb_queue_tail(&rxtid->q, new_skb); in aggr_slice_amsdu()
/linux/drivers/net/ethernet/amd/
H A Damd8111e.c687 struct sk_buff *skb, *new_skb; in amd8111e_rx_poll() local
733 new_skb = netdev_alloc_skb(dev, lp->rx_buff_len); in amd8111e_rx_poll()
734 if (!new_skb) { in amd8111e_rx_poll()
743 skb_reserve(new_skb, 2); in amd8111e_rx_poll()
748 lp->rx_skbuff[rx_index] = new_skb; in amd8111e_rx_poll()
750 new_skb->data, in amd8111e_rx_poll()
/linux/drivers/net/hippi/
H A Drrunner.c1405 struct sk_buff *new_skb; in rr_start_xmit() local
1417 if (!(new_skb = dev_alloc_skb(len + 8))) { in rr_start_xmit()
1422 skb_reserve(new_skb, 8); in rr_start_xmit()
1423 skb_put(new_skb, len); in rr_start_xmit()
1424 skb_copy_from_linear_data(skb, new_skb->data, len); in rr_start_xmit()
1426 skb = new_skb; in rr_start_xmit()
/linux/drivers/s390/net/
H A Dctcm_fsms.c1379 struct sk_buff *new_skb; in ctcmpc_chx_rx() local
1405 new_skb = __dev_alloc_skb(ch->max_bufsize, GFP_ATOMIC); in ctcmpc_chx_rx()
1407 if (new_skb == NULL) { in ctcmpc_chx_rx()
1417 dev_kfree_skb_any(new_skb); in ctcmpc_chx_rx()
1421 skb_put_data(new_skb, skb->data, block_len); in ctcmpc_chx_rx()
1422 skb_queue_tail(&ch->io_queue, new_skb); in ctcmpc_chx_rx()
1426 skb_put_data(new_skb, skb->data, len); in ctcmpc_chx_rx()
1427 skb_queue_tail(&ch->io_queue, new_skb); in ctcmpc_chx_rx()

12