Home
last modified time | relevance | path

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

123

/openbmc/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()
/openbmc/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 …]
/openbmc/linux/net/mac80211/
H A Dmesh_ps.c418 struct sk_buff *new_skb, *skb = skb_peek_tail(frames); in mpsp_qos_null_append() local
425 new_skb = mps_qos_null_get(sta); in mpsp_qos_null_append()
426 if (!new_skb) in mpsp_qos_null_append()
435 new_skb->priority = 1; in mpsp_qos_null_append()
436 skb_set_queue_mapping(new_skb, IEEE80211_AC_BK); in mpsp_qos_null_append()
437 ieee80211_set_qos_hdr(sdata, new_skb); in mpsp_qos_null_append()
439 info = IEEE80211_SKB_CB(new_skb); in mpsp_qos_null_append()
443 __skb_queue_tail(frames, new_skb); in mpsp_qos_null_append()
/openbmc/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()
/openbmc/linux/drivers/net/ethernet/sgi/
H A Dioc3-eth.c126 struct sk_buff *new_skb; in ioc3_alloc_skb() local
131 if (!new_skb) in ioc3_alloc_skb()
137 skb_reserve(new_skb, offset); in ioc3_alloc_skb()
143 dev_kfree_skb_any(new_skb); in ioc3_alloc_skb()
147 *rxb = (struct ioc3_erxbuf *)new_skb->data; in ioc3_alloc_skb()
148 skb_reserve(new_skb, RX_OFFSET); in ioc3_alloc_skb()
149 *skb = new_skb; in ioc3_alloc_skb()
368 struct sk_buff *skb, *new_skb; in ioc3_rx() local
395 new_skb = skb; in ioc3_rx()
419 new_skb = skb; in ioc3_rx()
[all …]
/openbmc/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()
/openbmc/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
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()
1162 usbnet_skb_return(dev, new_skb); in aqc111_rx_fixup()
1171 new_skb = NULL; in aqc111_rx_fixup()
1184 struct sk_buff *new_skb = NULL; in aqc111_tx_fixup() local
1223 new_skb = skb_copy_expand(skb, sizeof(tx_desc), in aqc111_tx_fixup()
[all …]
/openbmc/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()
/openbmc/linux/drivers/net/ethernet/xilinx/
H A Dxilinx_emaclite.c999 struct sk_buff *new_skb; in xemaclite_send() local
1005 new_skb = orig_skb; in xemaclite_send()
1008 if (xemaclite_send_data(lp, (u8 *)new_skb->data, len) != 0) { in xemaclite_send()
1014 lp->deferred_skb = new_skb; in xemaclite_send()
1016 skb_tx_timestamp(new_skb); in xemaclite_send()
1022 skb_tx_timestamp(new_skb); in xemaclite_send()
1025 dev_consume_skb_any(new_skb); in xemaclite_send()
/openbmc/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()
/openbmc/linux/drivers/net/ethernet/microchip/sparx5/
H A Dsparx5_fdma.c210 struct sk_buff *new_skb; in sparx5_fdma_rx_get_frame() local
221 new_skb = sparx5_fdma_rx_alloc_skb(rx); in sparx5_fdma_rx_get_frame()
222 if (unlikely(!new_skb)) in sparx5_fdma_rx_get_frame()
225 dma_addr = virt_to_phys(new_skb->data); in sparx5_fdma_rx_get_frame()
226 rx->skb[rx->dcb_index][rx->db_index] = new_skb; in sparx5_fdma_rx_get_frame()
/openbmc/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()
/openbmc/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()
/openbmc/linux/drivers/net/ethernet/freescale/fs_enet/
H A Dfs_enet-main.c457 struct sk_buff *new_skb; in tx_skb_align_workaround() local
463 new_skb = netdev_alloc_skb(dev, skb->len + 4); in tx_skb_align_workaround()
464 if (!new_skb) in tx_skb_align_workaround()
468 skb_align(new_skb, 4); in tx_skb_align_workaround()
471 skb_copy_from_linear_data(skb, new_skb->data, skb->len); in tx_skb_align_workaround()
472 skb_put(new_skb, skb->len); in tx_skb_align_workaround()
477 return new_skb; in tx_skb_align_workaround()
/openbmc/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()
/openbmc/linux/drivers/net/ethernet/freescale/dpaa/
H A Ddpaa_eth.c2131 struct sk_buff *new_skb, *skb = *s; in dpaa_a050385_wa_skb() local
2165 if (!new_skb) in dpaa_a050385_wa_skb()
2172 start = PTR_ALIGN(new_skb->data, DPAA_A050385_ALIGN); in dpaa_a050385_wa_skb()
2173 if (start - new_skb->data) in dpaa_a050385_wa_skb()
2174 skb_reserve(new_skb, start - new_skb->data); in dpaa_a050385_wa_skb()
2176 skb_put(new_skb, skb->len); in dpaa_a050385_wa_skb()
2177 skb_copy_bits(skb, 0, new_skb->data, skb->len); in dpaa_a050385_wa_skb()
2178 skb_copy_header(new_skb, skb); in dpaa_a050385_wa_skb()
2179 new_skb->dev = skb->dev; in dpaa_a050385_wa_skb()
2187 skb_set_owner_w(new_skb, skb->sk); in dpaa_a050385_wa_skb()
[all …]
/openbmc/linux/drivers/net/ppp/
H A Dppp_generic.c1708 if (!new_skb) { in pad_compress_skb()
1714 skb_reserve(new_skb, 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()
1745 return new_skb; in pad_compress_skb()
1799 if (!new_skb) { in ppp_send_frame()
1810 consume_skb(new_skb); in ppp_send_frame()
[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()
/openbmc/linux/drivers/net/ethernet/sun/
H A Dsunbmac.c825 struct sk_buff *new_skb; in bigmac_rx() local
828 new_skb = big_mac_alloc_skb(RX_BUF_ALLOC_SIZE, GFP_ATOMIC); in bigmac_rx()
829 if (new_skb == NULL) { in bigmac_rx()
837 bp->rx_skbs[elem] = new_skb; in bigmac_rx()
838 skb_put(new_skb, ETH_FRAME_LEN); in bigmac_rx()
839 skb_reserve(new_skb, 34); in bigmac_rx()
842 new_skb->data, in bigmac_rx()
/openbmc/linux/drivers/net/ethernet/3com/
H A Dtyphoon.c1632 struct sk_buff *skb, *new_skb; in typhoon_rx() local
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()
1691 __vlan_hwaccel_put_tag(new_skb, htons(ETH_P_8021Q), in typhoon_rx()
[all …]
/openbmc/linux/drivers/net/ethernet/actions/
H A Dowl-emac.c752 struct sk_buff *curr_skb, *new_skb; in owl_emac_rx_process() local
815 new_skb = owl_emac_alloc_skb(netdev); in owl_emac_rx_process()
816 if (unlikely(!new_skb)) in owl_emac_rx_process()
819 new_dma = owl_emac_dma_map_rx(priv, new_skb); in owl_emac_rx_process()
821 dev_kfree_skb(new_skb); in owl_emac_rx_process()
844 new_skb = curr_skb; in owl_emac_rx_process()
850 ring->skbs[ring->head] = new_skb; in owl_emac_rx_process()
/openbmc/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()
/openbmc/linux/drivers/net/ethernet/ni/
H A Dnixge.c598 struct sk_buff *skb, *new_skb; in nixge_recv() local
639 new_skb = netdev_alloc_skb_ip_align(ndev, in nixge_recv()
641 if (!new_skb) in nixge_recv()
644 cur_phys = dma_map_single(ndev->dev.parent, new_skb->data, in nixge_recv()
654 nixge_hw_dma_bd_set_offset(cur_p, (uintptr_t)new_skb); in nixge_recv()

123