Home
last modified time | relevance | path

Searched refs:newskb (Results 1 – 20 of 20) sorted by relevance

/drivers/net/wireless/intersil/prism54/
Dislpci_eth.c74 struct sk_buff *newskb; in islpci_eth_transmit() local
136 newskb = in islpci_eth_transmit()
138 if (unlikely(newskb == NULL)) { in islpci_eth_transmit()
143 newskb_offset = (4 - (long) newskb->data) & 0x03; in islpci_eth_transmit()
147 skb_reserve(newskb, newskb_offset); in islpci_eth_transmit()
149 skb_put(newskb, init_wds ? skb->len + 6 : skb->len); in islpci_eth_transmit()
152 newskb->data + 6, in islpci_eth_transmit()
154 skb_copy_to_linear_data(newskb, wds_mac, 6); in islpci_eth_transmit()
159 skb_copy_from_linear_data(skb, newskb->data, in islpci_eth_transmit()
164 newskb->data, skb->data, skb->len, init_wds); in islpci_eth_transmit()
[all …]
/drivers/staging/rtl8188eu/os_dep/
Dxmit_linux.c115 struct sk_buff *newskb; in rtw_mlcst2unicst() local
133 newskb = skb_copy(skb, GFP_ATOMIC); in rtw_mlcst2unicst()
135 if (newskb) { in rtw_mlcst2unicst()
136 memcpy(newskb->data, psta->hwaddr, 6); in rtw_mlcst2unicst()
137 res = rtw_xmit(padapter, &newskb); in rtw_mlcst2unicst()
142 dev_kfree_skb_any(newskb); in rtw_mlcst2unicst()
/drivers/staging/rtl8723bs/os_dep/
Dxmit_linux.c132 struct sk_buff *newskb; in rtw_mlcst2unicst() local
178 newskb = rtw_skb_copy(skb); in rtw_mlcst2unicst()
180 if (newskb) { in rtw_mlcst2unicst()
181 memcpy(newskb->data, psta->hwaddr, 6); in rtw_mlcst2unicst()
182 res = rtw_xmit(padapter, &newskb); in rtw_mlcst2unicst()
187 dev_kfree_skb_any(newskb); in rtw_mlcst2unicst()
/drivers/net/ethernet/seeq/
Dsgiseeq.c347 struct sk_buff *newskb; in sgiseeq_rx() local
366 newskb = netdev_alloc_skb(dev, PKT_BUF_SZ); in sgiseeq_rx()
367 if (!newskb) { in sgiseeq_rx()
368 newskb = skb; in sgiseeq_rx()
372 skb_reserve(newskb, 2); in sgiseeq_rx()
378 newskb = rd->skb; in sgiseeq_rx()
392 newskb = rd->skb; in sgiseeq_rx()
396 newskb = rd->skb; in sgiseeq_rx()
398 rd->skb = newskb; in sgiseeq_rx()
400 newskb->data - 2, in sgiseeq_rx()
/drivers/net/ieee802154/
Dfakelb.c73 struct sk_buff *newskb = pskb_copy(skb, GFP_ATOMIC); in fakelb_hw_xmit() local
75 if (newskb) in fakelb_hw_xmit()
76 ieee802154_rx_irqsafe(phy->hw, newskb, 0xcc); in fakelb_hw_xmit()
Dmac802154_hwsim.c132 struct sk_buff *newskb = pskb_copy(skb, GFP_ATOMIC); in hwsim_hw_xmit() local
135 if (newskb) in hwsim_hw_xmit()
136 ieee802154_rx_irqsafe(e->endpoint->hw, newskb, in hwsim_hw_xmit()
/drivers/net/fddi/
Ddefxx.c3016 struct sk_buff *newskb; in dfx_rcv_init() local
3019 newskb = __netdev_alloc_skb(bp->dev, NEW_SKB_SIZE, in dfx_rcv_init()
3021 if (!newskb) in dfx_rcv_init()
3028 my_skb_align(newskb, 128); in dfx_rcv_init()
3030 newskb->data, in dfx_rcv_init()
3034 dev_kfree_skb(newskb); in dfx_rcv_init()
3049 bp->p_rcv_buff_va[i+j] = (char *) newskb; in dfx_rcv_init()
3154 struct sk_buff *newskb = NULL; in dfx_rcv_queue_process() local
3159 newskb = netdev_alloc_skb(bp->dev, in dfx_rcv_queue_process()
3161 if (newskb){ in dfx_rcv_queue_process()
[all …]
Ddefza.c678 struct sk_buff *skb, *newskb; in fza_rx() local
714 newskb = fza_alloc_skb_irq(dev, FZA_RX_BUFFER_SIZE + 511); in fza_rx()
715 if (newskb) { in fza_rx()
716 fza_skb_align(newskb, 512); in fza_rx()
717 newdma = dma_map_single(fp->bdev, newskb->data, in fza_rx()
721 dev_kfree_skb_irq(newskb); in fza_rx()
722 newskb = NULL; in fza_rx()
725 if (newskb) { in fza_rx()
764 skb = newskb; in fza_rx()
/drivers/net/ethernet/chelsio/cxgb3/
Dsge.c847 struct sk_buff *newskb, *skb; in get_packet_pg() local
852 newskb = skb = q->pg_skb; in get_packet_pg()
854 newskb = alloc_skb(len, GFP_ATOMIC); in get_packet_pg()
855 if (likely(newskb != NULL)) { in get_packet_pg()
856 __skb_put(newskb, len); in get_packet_pg()
859 memcpy(newskb->data, sd->pg_chunk.va, len); in get_packet_pg()
869 return newskb; in get_packet_pg()
878 newskb = alloc_skb(SGE_RX_PULL_LEN, GFP_ATOMIC); in get_packet_pg()
880 if (unlikely(!newskb)) { in get_packet_pg()
895 __skb_put(newskb, SGE_RX_PULL_LEN); in get_packet_pg()
[all …]
/drivers/net/wireless/ti/wl1251/
Dtx.c207 struct sk_buff *newskb = skb_copy_expand(skb, 0, 3, in wl1251_tx_send_packet() local
210 if (unlikely(newskb == NULL)) in wl1251_tx_send_packet()
213 tx_hdr = (struct tx_double_buffer_desc *) newskb->data; in wl1251_tx_send_packet()
216 wl->tx_frames[tx_hdr->id] = skb = newskb; in wl1251_tx_send_packet()
/drivers/net/ethernet/i825xx/
D82596.c784 struct sk_buff *newskb; in i596_rx() local
787 newskb = netdev_alloc_skb(dev, PKT_BUF_SZ); in i596_rx()
788 if (newskb == NULL) { in i596_rx()
795 rbd->skb = newskb; in i596_rx()
796 rbd->v_data = newskb->data; in i596_rx()
797 rbd->b_data = WSWAPchar(virt_to_bus(newskb->data)); in i596_rx()
799 cache_clear(virt_to_phys(newskb->data), PKT_BUF_SZ); in i596_rx()
Dlib82596.c720 struct sk_buff *newskb; in i596_rx() local
727 newskb = netdev_alloc_skb_ip_align(dev, in i596_rx()
729 if (newskb == NULL) { in i596_rx()
737 rbd->skb = newskb; in i596_rx()
739 newskb->data, in i596_rx()
742 rbd->v_data = newskb->data; in i596_rx()
/drivers/s390/net/
Dctcm_main.c918 struct sk_buff *newskb = NULL; in ctcmpc_tx() local
939 newskb = __dev_alloc_skb(len, gfp_type() | GFP_DMA); in ctcmpc_tx()
941 if (!newskb) { in ctcmpc_tx()
953 newskb->protocol = skb->protocol; in ctcmpc_tx()
954 skb_reserve(newskb, TH_HEADER_LENGTH + PDU_HEADER_LENGTH); in ctcmpc_tx()
955 skb_put_data(newskb, skb->data, skb->len); in ctcmpc_tx()
957 skb = newskb; in ctcmpc_tx()
/drivers/net/ethernet/aeroflex/
Dgreth.c858 struct sk_buff *skb, *newskb; in greth_rx_gbit() local
896 if (!bad && (newskb=netdev_alloc_skb(dev, MAX_FRAME_SIZE + NET_IP_ALIGN))) { in greth_rx_gbit()
897 skb_reserve(newskb, NET_IP_ALIGN); in greth_rx_gbit()
900 newskb->data, in greth_rx_gbit()
928 greth->rx_skbuff[greth->rx_cur] = newskb; in greth_rx_gbit()
933 dev_kfree_skb(newskb); in greth_rx_gbit()
/drivers/net/wireless/admtek/
Dadm8211.c357 struct sk_buff *skb, *newskb; in adm8211_interrupt_rci() local
398 newskb = dev_alloc_skb(RX_PKT_SIZE); in adm8211_interrupt_rci()
399 if (newskb) { in adm8211_interrupt_rci()
405 priv->rx_buffers[entry].skb = newskb; in adm8211_interrupt_rci()
408 skb_tail_pointer(newskb), in adm8211_interrupt_rci()
414 dev_kfree_skb(newskb); in adm8211_interrupt_rci()
/drivers/net/hippi/
Drrunner.c973 struct sk_buff *newskb; in rx_int() local
975 newskb = alloc_skb(dev->mtu + HIPPI_HLEN, in rx_int()
977 if (newskb){ in rx_int()
986 rrpriv->rx_skbuff[index] = newskb; in rx_int()
988 newskb->data, in rx_int()
/drivers/net/ethernet/amd/
Dpcnet32.c1212 struct sk_buff *newskb; in pcnet32_rx_entry() local
1215 newskb = netdev_alloc_skb(dev, PKT_BUF_SKB); in pcnet32_rx_entry()
1220 if (newskb) { in pcnet32_rx_entry()
1221 skb_reserve(newskb, NET_IP_ALIGN); in pcnet32_rx_entry()
1223 newskb->data, in pcnet32_rx_entry()
1229 dev_kfree_skb(newskb); in pcnet32_rx_entry()
1238 lp->rx_skbuff[entry] = newskb; in pcnet32_rx_entry()
/drivers/infiniband/ulp/ipoib/
Dipoib_cm.c565 struct sk_buff *skb, *newskb; in ipoib_cm_handle_rx_wc() local
647 newskb = ipoib_cm_alloc_rx_skb(dev, rx_ring, wr_id, frags, in ipoib_cm_handle_rx_wc()
649 if (unlikely(!newskb)) { in ipoib_cm_handle_rx_wc()
665 skb_put_frags(skb, IPOIB_CM_HEAD_SIZE, wc->byte_len, newskb); in ipoib_cm_handle_rx_wc()
/drivers/net/ethernet/3com/
D3c59x.c2616 struct sk_buff *skb, *newskb; in boomerang_rx() local
2640 newskb = netdev_alloc_skb_ip_align(dev, PKT_BUF_SZ); in boomerang_rx()
2641 if (!newskb) { in boomerang_rx()
2645 newdma = dma_map_single(vp->gendev, newskb->data, in boomerang_rx()
2649 consume_skb(newskb); in boomerang_rx()
2655 vp->rx_skbuff[entry] = newskb; in boomerang_rx()
/drivers/net/ethernet/dec/tulip/
Ddmfe.c948 struct sk_buff *skb, *newskb; in dmfe_rx_packet() local
1001 ((newskb = netdev_alloc_skb(dev, rxlen + 2)) in dmfe_rx_packet()
1004 skb = newskb; in dmfe_rx_packet()