Home
last modified time | relevance | path

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

123

/linux-6.6.21/drivers/bluetooth/
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()
/linux-6.6.21/drivers/atm/
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-6.6.21/net/mac80211/
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()
/linux-6.6.21/drivers/net/ethernet/sunplus/
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-6.6.21/drivers/net/ethernet/sgi/
Dioc3-eth.c126 struct sk_buff *new_skb; in ioc3_alloc_skb() local
130 new_skb = alloc_skb(RX_BUF_SIZE + IOC3_DMA_XFER_LEN - 1, GFP_ATOMIC); in ioc3_alloc_skb()
131 if (!new_skb) in ioc3_alloc_skb()
135 offset = aligned_rx_skb_addr((unsigned long)new_skb->data); in ioc3_alloc_skb()
137 skb_reserve(new_skb, offset); in ioc3_alloc_skb()
139 d = dma_map_single(ip->dma_dev, new_skb->data, 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()
[all …]
/linux-6.6.21/drivers/net/ethernet/natsemi/
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-6.6.21/drivers/net/usb/
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()
Daqc111.c1074 struct sk_buff *new_skb = NULL; in aqc111_rx_fixup() local
1145 new_skb = skb_clone(skb, GFP_ATOMIC); in aqc111_rx_fixup()
1147 if (!new_skb) in aqc111_rx_fixup()
1150 new_skb->len = pkt_len; in aqc111_rx_fixup()
1151 skb_pull(new_skb, AQ_RX_HW_PAD); in aqc111_rx_fixup()
1152 skb_set_tail_pointer(new_skb, new_skb->len); in aqc111_rx_fixup()
1154 new_skb->truesize = SKB_TRUESIZE(new_skb->len); in aqc111_rx_fixup()
1156 aqc111_rx_checksum(new_skb, pkt_desc); in aqc111_rx_fixup()
1160 __vlan_hwaccel_put_tag(new_skb, htons(ETH_P_8021Q), in aqc111_rx_fixup()
1164 usbnet_skb_return(dev, new_skb); in aqc111_rx_fixup()
[all …]
/linux-6.6.21/net/sctp/
Dinqueue.c126 goto new_skb; in sctp_inq_pop()
130 goto new_skb; in sctp_inq_pop()
181 new_skb: in sctp_inq_pop()
/linux-6.6.21/drivers/net/ethernet/xilinx/
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()
/linux-6.6.21/net/atm/
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-6.6.21/drivers/net/ethernet/microchip/sparx5/
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()
/linux-6.6.21/drivers/net/wireless/marvell/mwifiex/
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-6.6.21/net/nfc/
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()
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-6.6.21/drivers/net/ethernet/freescale/fs_enet/
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()
/linux-6.6.21/drivers/net/ethernet/mediatek/
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-6.6.21/drivers/net/ethernet/freescale/dpaa/
Ddpaa_eth.c2123 struct sk_buff *new_skb, *skb = *s; in dpaa_a050385_wa_skb() local
2155 new_skb = netdev_alloc_skb(net_dev, skb->len + DPAA_A050385_ALIGN - 1 + in dpaa_a050385_wa_skb()
2157 if (!new_skb) in dpaa_a050385_wa_skb()
2161 skb_reserve(new_skb, priv->tx_headroom - NET_SKB_PAD); in dpaa_a050385_wa_skb()
2164 start = PTR_ALIGN(new_skb->data, DPAA_A050385_ALIGN); in dpaa_a050385_wa_skb()
2165 if (start - new_skb->data) in dpaa_a050385_wa_skb()
2166 skb_reserve(new_skb, start - new_skb->data); in dpaa_a050385_wa_skb()
2168 skb_put(new_skb, skb->len); in dpaa_a050385_wa_skb()
2169 skb_copy_bits(skb, 0, new_skb->data, skb->len); in dpaa_a050385_wa_skb()
2170 skb_copy_header(new_skb, skb); in dpaa_a050385_wa_skb()
[all …]
/linux-6.6.21/drivers/net/ppp/
Dppp_generic.c1686 struct sk_buff *new_skb; in pad_compress_skb() local
1692 new_skb = alloc_skb(new_skb_size, GFP_ATOMIC); in pad_compress_skb()
1693 if (!new_skb) { in pad_compress_skb()
1699 skb_reserve(new_skb, in pad_compress_skb()
1704 new_skb->data, skb->len + 2, in pad_compress_skb()
1708 skb = new_skb; in pad_compress_skb()
1713 consume_skb(new_skb); in pad_compress_skb()
1714 new_skb = skb; in pad_compress_skb()
1727 consume_skb(new_skb); in pad_compress_skb()
1728 new_skb = NULL; in pad_compress_skb()
[all …]
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-6.6.21/drivers/net/ethernet/sun/
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()
/linux-6.6.21/drivers/net/ethernet/3com/
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-6.6.21/drivers/net/ethernet/actions/
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()
/linux-6.6.21/drivers/net/wireless/ath/ath6kl/
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-6.6.21/drivers/net/ethernet/ni/
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