Home
last modified time | relevance | path

Searched refs:pskb (Results 1 – 25 of 54) sorted by relevance

123

/linux-5.19.10/drivers/staging/r8188eu/hal/
Dusb_ops_linux.c193 static int recvbuf2recvframe(struct adapter *adapt, struct sk_buff *pskb) in recvbuf2recvframe() argument
209 transfer_len = (s32)pskb->len; in recvbuf2recvframe()
210 pbuf = pskb->data; in recvbuf2recvframe()
283 precvframe->pkt = skb_clone(pskb, GFP_ATOMIC); in recvbuf2recvframe()
337 struct sk_buff *pskb; in rtl8188eu_recv_tasklet() local
341 while (NULL != (pskb = skb_dequeue(&precvpriv->rx_skb_queue))) { in rtl8188eu_recv_tasklet()
343 dev_kfree_skb_any(pskb); in rtl8188eu_recv_tasklet()
346 recvbuf2recvframe(adapt, pskb); in rtl8188eu_recv_tasklet()
347 skb_reset_tail_pointer(pskb); in rtl8188eu_recv_tasklet()
348 pskb->len = 0; in rtl8188eu_recv_tasklet()
[all …]
Drtl8188eu_recv.c52 struct sk_buff *pskb = NULL; in rtl8188eu_init_recv_priv() local
57 pskb = __netdev_alloc_skb(padapter->pnetdev, MAX_RECVBUF_SZ + RECVBUFF_ALIGN_SZ, GFP_KERNEL); in rtl8188eu_init_recv_priv()
58 if (pskb) { in rtl8188eu_init_recv_priv()
59 pskb->dev = padapter->pnetdev; in rtl8188eu_init_recv_priv()
60 tmpaddr = (size_t)pskb->data; in rtl8188eu_init_recv_priv()
62 skb_reserve(pskb, (RECVBUFF_ALIGN_SZ - alignment)); in rtl8188eu_init_recv_priv()
64 skb_queue_tail(&precvpriv->free_recv_skb_queue, pskb); in rtl8188eu_init_recv_priv()
66 pskb = NULL; in rtl8188eu_init_recv_priv()
/linux-5.19.10/drivers/staging/rtl8712/
Dusb_ops_linux.c197 _pkt *pskb = precvbuf->pskb; in r8712_usb_read_port_complete() local
204 skb_queue_tail(&precvpriv->rx_skb_queue, pskb); in r8712_usb_read_port_complete()
208 skb_put(pskb, purb->actual_length); in r8712_usb_read_port_complete()
209 skb_queue_tail(&precvpriv->rx_skb_queue, pskb); in r8712_usb_read_port_complete()
262 precvbuf->pskb = skb_dequeue(&precvpriv->free_recv_skb_queue); in r8712_usb_read_port()
264 if (!precvbuf->pskb) { in r8712_usb_read_port()
265 precvbuf->pskb = netdev_alloc_skb(adapter->pnetdev, in r8712_usb_read_port()
267 if (!precvbuf->pskb) in r8712_usb_read_port()
269 tmpaddr = (addr_t)precvbuf->pskb->data; in r8712_usb_read_port()
271 skb_reserve(precvbuf->pskb, in r8712_usb_read_port()
[all …]
Drtl8712_recv.c40 struct sk_buff *pskb = NULL; in r8712_init_recv_priv() local
68 pskb = netdev_alloc_skb(padapter->pnetdev, MAX_RECVBUF_SZ + in r8712_init_recv_priv()
70 if (pskb) { in r8712_init_recv_priv()
71 tmpaddr = (addr_t)pskb->data; in r8712_init_recv_priv()
73 skb_reserve(pskb, (RECVBUFF_ALIGN_SZ - alignment)); in r8712_init_recv_priv()
74 skb_queue_tail(&precvpriv->free_recv_skb_queue, pskb); in r8712_init_recv_priv()
76 pskb = NULL; in r8712_init_recv_priv()
970 static void recvbuf2recvframe(struct _adapter *padapter, struct sk_buff *pskb) in recvbuf2recvframe() argument
984 pbuf = pskb->data; in recvbuf2recvframe()
988 transfer_len = pskb->len; in recvbuf2recvframe()
[all …]
Drecv_linux.c49 precvbuf->pskb = NULL; in r8712_os_recvbuf_resource_alloc()
65 if (precvbuf->pskb) in r8712_os_recvbuf_resource_free()
66 dev_kfree_skb_any(precvbuf->pskb); in r8712_os_recvbuf_resource_free()
/linux-5.19.10/drivers/net/ipvlan/
Dipvlan_core.c311 static int ipvlan_rcv_frame(struct ipvl_addr *addr, struct sk_buff **pskb, in ipvlan_rcv_frame() argument
319 struct sk_buff *skb = *pskb; in ipvlan_rcv_frame()
335 *pskb = skb; in ipvlan_rcv_frame()
679 static rx_handler_result_t ipvlan_handle_mode_l3(struct sk_buff **pskb, in ipvlan_handle_mode_l3() argument
685 struct sk_buff *skb = *pskb; in ipvlan_handle_mode_l3()
694 ret = ipvlan_rcv_frame(addr, pskb, false); in ipvlan_handle_mode_l3()
700 static rx_handler_result_t ipvlan_handle_mode_l2(struct sk_buff **pskb, in ipvlan_handle_mode_l2() argument
703 struct sk_buff *skb = *pskb; in ipvlan_handle_mode_l2()
724 ret = ipvlan_handle_mode_l3(pskb, port); in ipvlan_handle_mode_l2()
730 rx_handler_result_t ipvlan_handle_frame(struct sk_buff **pskb) in ipvlan_handle_frame() argument
[all …]
/linux-5.19.10/net/bridge/
Dbr_input.c231 static int nf_hook_bridge_pre(struct sk_buff *skb, struct sk_buff **pskb) in nf_hook_bridge_pre() argument
259 *pskb = skb; in nf_hook_bridge_pre()
303 static rx_handler_result_t br_handle_frame(struct sk_buff **pskb) in br_handle_frame() argument
306 struct sk_buff *skb = *pskb; in br_handle_frame()
349 *pskb = skb; in br_handle_frame()
360 *pskb = skb; in br_handle_frame()
399 return nf_hook_bridge_pre(skb, pskb); in br_handle_frame()
414 static rx_handler_result_t br_handle_frame_dummy(struct sk_buff **pskb) in br_handle_frame_dummy() argument
/linux-5.19.10/drivers/s390/net/
Dctcm_mpc.c107 static void ctcmpc_unpack_skb(struct channel *ch, struct sk_buff *pskb);
1025 static void ctcmpc_unpack_skb(struct channel *ch, struct sk_buff *pskb) in ctcmpc_unpack_skb() argument
1043 header = (struct th_header *)pskb->data; in ctcmpc_unpack_skb()
1052 CTCM_PR_DBGDATA("%s: pskb len: %04x \n", __func__, pskb->len); in ctcmpc_unpack_skb()
1054 pskb->dev = dev; in ctcmpc_unpack_skb()
1055 pskb->ip_summed = CHECKSUM_UNNECESSARY; in ctcmpc_unpack_skb()
1056 skb_pull(pskb, TH_HEADER_LENGTH); in ctcmpc_unpack_skb()
1071 __skb_push(pskb, TH_HEADER_LENGTH); in ctcmpc_unpack_skb()
1072 skb_queue_tail(&ch->io_queue, pskb); in ctcmpc_unpack_skb()
1087 while ((pskb->len > 0) && !pdu_last_seen) { in ctcmpc_unpack_skb()
[all …]
Dctcm_main.c75 void ctcm_unpack_skb(struct channel *ch, struct sk_buff *pskb) in ctcm_unpack_skb() argument
79 __u16 len = *((__u16 *) pskb->data); in ctcm_unpack_skb()
81 skb_put(pskb, 2 + LL_HEADER_LENGTH); in ctcm_unpack_skb()
82 skb_pull(pskb, 2); in ctcm_unpack_skb()
83 pskb->dev = dev; in ctcm_unpack_skb()
84 pskb->ip_summed = CHECKSUM_UNNECESSARY; in ctcm_unpack_skb()
88 struct ll_header *header = (struct ll_header *)pskb->data; in ctcm_unpack_skb()
90 skb_pull(pskb, LL_HEADER_LENGTH); in ctcm_unpack_skb()
110 pskb->protocol = cpu_to_be16(header->type); in ctcm_unpack_skb()
128 if ((header->length > skb_tailroom(pskb)) || in ctcm_unpack_skb()
[all …]
Dnetiucv.c579 struct sk_buff *pskb) in netiucv_unpack_skb() argument
585 skb_put(pskb, NETIUCV_HDRLEN); in netiucv_unpack_skb()
586 pskb->dev = dev; in netiucv_unpack_skb()
587 pskb->ip_summed = CHECKSUM_NONE; in netiucv_unpack_skb()
588 pskb->protocol = cpu_to_be16(ETH_P_IP); in netiucv_unpack_skb()
592 struct ll_header *header = (struct ll_header *) pskb->data; in netiucv_unpack_skb()
597 skb_pull(pskb, NETIUCV_HDRLEN); in netiucv_unpack_skb()
601 if (skb_tailroom(pskb) < header->next) { in netiucv_unpack_skb()
603 header->next, skb_tailroom(pskb)); in netiucv_unpack_skb()
606 skb_put(pskb, header->next); in netiucv_unpack_skb()
[all …]
/linux-5.19.10/drivers/staging/rtl8723bs/hal/
Dsdio_ops.c809 if (!recvbuf->pskb) { in sd_recv_rxfifo()
813 recvbuf->pskb = rtw_skb_alloc(MAX_RECVBUF_SZ + RECVBUFF_ALIGN_SZ); in sd_recv_rxfifo()
814 if (!recvbuf->pskb) in sd_recv_rxfifo()
817 recvbuf->pskb->dev = adapter->pnetdev; in sd_recv_rxfifo()
819 tmpaddr = (SIZE_PTR)recvbuf->pskb->data; in sd_recv_rxfifo()
821 skb_reserve(recvbuf->pskb, (RECVBUFF_ALIGN_SZ - alignment)); in sd_recv_rxfifo()
825 readbuf = recvbuf->pskb->data; in sd_recv_rxfifo()
832 recvbuf->phead = recvbuf->pskb->head; in sd_recv_rxfifo()
833 recvbuf->pdata = recvbuf->pskb->data; in sd_recv_rxfifo()
834 skb_set_tail_pointer(recvbuf->pskb, size); in sd_recv_rxfifo()
[all …]
Drtl8723bs_recv.c399 if (!precvbuf->pskb) { in rtl8723bs_init_recv_priv()
403 precvbuf->pskb = rtw_skb_alloc(MAX_RECVBUF_SZ + RECVBUFF_ALIGN_SZ); in rtl8723bs_init_recv_priv()
405 if (precvbuf->pskb) { in rtl8723bs_init_recv_priv()
406 precvbuf->pskb->dev = padapter->pnetdev; in rtl8723bs_init_recv_priv()
408 tmpaddr = (SIZE_PTR)precvbuf->pskb->data; in rtl8723bs_init_recv_priv()
410 skb_reserve(precvbuf->pskb, (RECVBUFF_ALIGN_SZ - alignment)); in rtl8723bs_init_recv_priv()
/linux-5.19.10/net/netfilter/
Dxt_socket.c52 struct sk_buff *pskb = (struct sk_buff *)skb; in socket_match() local
80 pskb->mark = sk->sk_mark; in socket_match()
113 struct sk_buff *pskb = (struct sk_buff *)skb; in socket_mt6_v1_v2_v3() local
141 pskb->mark = sk->sk_mark; in socket_mt6_v1_v2_v3()
Dxt_cluster.c81 struct sk_buff *pskb = (struct sk_buff *)skb; in xt_cluster_mt() local
106 pskb->pkt_type = PACKET_HOST; in xt_cluster_mt()
/linux-5.19.10/drivers/net/wireless/realtek/rtlwifi/rtl8723com/
Dfw_common.c225 struct sk_buff *pskb = NULL; in rtl8723_cmd_send_packet() local
230 pskb = __skb_dequeue(&ring->queue); in rtl8723_cmd_send_packet()
231 kfree_skb(pskb); in rtl8723_cmd_send_packet()
/linux-5.19.10/drivers/staging/octeon/
Dethernet-rx.c220 struct sk_buff **pskb = NULL; in cvm_oct_poll() local
248 pskb = (struct sk_buff **) in cvm_oct_poll()
251 prefetch(pskb); in cvm_oct_poll()
262 skb = *pskb; in cvm_oct_poll()
/linux-5.19.10/drivers/net/ethernet/qualcomm/rmnet/
Drmnet_handlers.h14 rx_handler_result_t rmnet_rx_handler(struct sk_buff **pskb);
Drmnet_handlers.c190 rx_handler_result_t rmnet_rx_handler(struct sk_buff **pskb) in rmnet_rx_handler() argument
192 struct sk_buff *skb = *pskb; in rmnet_rx_handler()
/linux-5.19.10/net/openvswitch/
Dvport-netdev.c57 static rx_handler_result_t netdev_frame_hook(struct sk_buff **pskb) in netdev_frame_hook() argument
59 struct sk_buff *skb = *pskb; in netdev_frame_hook()
/linux-5.19.10/net/hsr/
Dhsr_slave.c24 static rx_handler_result_t hsr_handle_frame(struct sk_buff **pskb) in hsr_handle_frame() argument
26 struct sk_buff *skb = *pskb; in hsr_handle_frame()
/linux-5.19.10/include/net/
Dfailover.h22 rx_handler_result_t (*slave_handle_frame)(struct sk_buff **pskb);
/linux-5.19.10/net/xfrm/
Dxfrm_device.c106 struct sk_buff *skb2, *nskb, *pskb = NULL; in validate_xmit_xfrm() local
196 pskb->next = nskb; in validate_xmit_xfrm()
202 pskb = skb2; in validate_xmit_xfrm()
/linux-5.19.10/drivers/net/ethernet/intel/ice/
Dice_lag.h38 rx_handler_result_t ice_lag_nop_handler(struct sk_buff **pskb);
/linux-5.19.10/drivers/staging/rtl8723bs/os_dep/
Drecv_linux.c49 if (precvbuf->pskb) { in rtw_os_recvbuf_resource_free()
50 dev_kfree_skb_any(precvbuf->pskb); in rtw_os_recvbuf_resource_free()
/linux-5.19.10/include/linux/
Dif_tap.h75 rx_handler_result_t tap_handle_frame(struct sk_buff **pskb);

123