Home
last modified time | relevance | path

Searched refs:pkt_offset (Results 1 – 25 of 45) sorted by relevance

12

/linux-6.1.9/drivers/net/wireless/ath/ath10k/
Dwow.c88 int total_len = old->pkt_offset + old->pattern_len; in ath10k_wow_convert_8023_to_80211()
105 memcpy(hdr_8023_pattern + old->pkt_offset, in ath10k_wow_convert_8023_to_80211()
106 old->pattern, ETH_HLEN - old->pkt_offset); in ath10k_wow_convert_8023_to_80211()
107 memcpy(hdr_8023_bit_mask + old->pkt_offset, in ath10k_wow_convert_8023_to_80211()
108 old->mask, ETH_HLEN - old->pkt_offset); in ath10k_wow_convert_8023_to_80211()
127 if (old->pkt_offset < ETH_ALEN) in ath10k_wow_convert_8023_to_80211()
128 new->pkt_offset = old->pkt_offset + in ath10k_wow_convert_8023_to_80211()
130 else if (old->pkt_offset < offsetof(struct ethhdr, h_proto)) in ath10k_wow_convert_8023_to_80211()
131 new->pkt_offset = old->pkt_offset + in ath10k_wow_convert_8023_to_80211()
135 new->pkt_offset = old->pkt_offset + hdr_len + rfc_len - ETH_HLEN; in ath10k_wow_convert_8023_to_80211()
[all …]
/linux-6.1.9/drivers/net/wireless/ath/ath11k/
Dwow.c159 int total_len = old->pkt_offset + old->pattern_len; in ath11k_wow_convert_8023_to_80211()
176 memcpy(hdr_8023_pattern + old->pkt_offset, in ath11k_wow_convert_8023_to_80211()
177 old->pattern, ETH_HLEN - old->pkt_offset); in ath11k_wow_convert_8023_to_80211()
178 memcpy(hdr_8023_bit_mask + old->pkt_offset, in ath11k_wow_convert_8023_to_80211()
179 old->mask, ETH_HLEN - old->pkt_offset); in ath11k_wow_convert_8023_to_80211()
198 if (old->pkt_offset < ETH_ALEN) in ath11k_wow_convert_8023_to_80211()
199 new->pkt_offset = old->pkt_offset + in ath11k_wow_convert_8023_to_80211()
201 else if (old->pkt_offset < offsetof(struct ethhdr, h_proto)) in ath11k_wow_convert_8023_to_80211()
202 new->pkt_offset = old->pkt_offset + in ath11k_wow_convert_8023_to_80211()
206 new->pkt_offset = old->pkt_offset + hdr_len + rfc_len - ETH_HLEN; in ath11k_wow_convert_8023_to_80211()
[all …]
Dhal_tx.h27 u32 pkt_offset; member
Dhal_tx.c65 FIELD_PREP(HAL_TCL_DATA_CMD_INFO1_PKT_OFFSET, ti->pkt_offset); in ath11k_hal_tx_cmd_desc_setup()
/linux-6.1.9/drivers/net/wireless/marvell/mwifiex/
Dsta_tx.c39 u16 pkt_type, pkt_offset; in mwifiex_process_sta_txpd() local
97 pkt_offset = sizeof(struct txpd) + pad; in mwifiex_process_sta_txpd()
101 pkt_offset += MWIFIEX_MGMT_FRAME_HEADER_SIZE; in mwifiex_process_sta_txpd()
104 local_tx_pd->tx_pkt_offset = cpu_to_le16(pkt_offset); in mwifiex_process_sta_txpd()
Duap_txrx.c452 u16 pkt_type, pkt_offset; in mwifiex_process_uap_txpd() local
496 pkt_offset = sizeof(*txpd) + pad; in mwifiex_process_uap_txpd()
500 pkt_offset += MWIFIEX_MGMT_FRAME_HEADER_SIZE; in mwifiex_process_uap_txpd()
503 txpd->tx_pkt_offset = cpu_to_le16(pkt_offset); in mwifiex_process_uap_txpd()
/linux-6.1.9/drivers/staging/r8188eu/hal/
Drtl8188eu_xmit.c176 if (pxmitframe->pkt_offset > 0) in update_txdesc()
177 ptxdesc->txdw1 |= cpu_to_le32((pxmitframe->pkt_offset << 26) & 0x7c000000); in update_txdesc()
429 pxmitframe->pkt_offset = 1; /* first frame of aggregation, reserve offset */ in rtl8188eu_xmitframe_complete()
438 …len = xmitframe_need_length(pfirstframe) + TXDESC_SIZE + (pfirstframe->pkt_offset * PACKET_OFFSET_… in rtl8188eu_xmitframe_complete()
487 pxmitframe->pkt_offset = 0; /* not first frame of aggregation, no need to reserve offset */ in rtl8188eu_xmitframe_complete()
489 …len = xmitframe_need_length(pxmitframe) + TXDESC_SIZE + (pxmitframe->pkt_offset * PACKET_OFFSET_SZ… in rtl8188eu_xmitframe_complete()
493 pxmitframe->pkt_offset = 1; in rtl8188eu_xmitframe_complete()
544 pfirstframe->pkt_offset--; in rtl8188eu_xmitframe_complete()
555 pbuf_tail -= (pfirstframe->pkt_offset * PACKET_OFFSET_SZ); in rtl8188eu_xmitframe_complete()
Dusb_ops_linux.c211 u32 pkt_offset, skb_len, alloc_sz; in recvbuf2recvframe() local
251 pkt_offset = RXDESC_SIZE + pattrib->drvinfo_sz + pattrib->shift_sz + pattrib->pkt_len; in recvbuf2recvframe()
253 if ((pattrib->pkt_len <= 0) || (pkt_offset > transfer_len)) { in recvbuf2recvframe()
310 pkt_offset = (u16)round_up(pkt_offset, 128); in recvbuf2recvframe()
333 transfer_len -= pkt_offset; in recvbuf2recvframe()
334 pbuf += pkt_offset; in recvbuf2recvframe()
/linux-6.1.9/drivers/net/wireless/ti/wlcore/
Drx.c207 u32 pkt_offset, des; in wlcore_rx() local
251 pkt_offset = 0; in wlcore_rx()
252 while (pkt_offset < buf_size) { in wlcore_rx()
263 wl->aggr_buf + pkt_offset, in wlcore_rx()
277 pkt_offset += wlcore_rx_get_align_buf_size(wl, pkt_len); in wlcore_rx()
/linux-6.1.9/drivers/net/wireless/microchip/wilc1000/
Dmon.c26 u32 header, pkt_offset; in wilc_wfi_monitor_rx() local
43 pkt_offset = FIELD_GET(WILC_PKT_HDR_OFFSET_FIELD, header); in wilc_wfi_monitor_rx()
45 if (pkt_offset & IS_MANAGMEMENT_CALLBACK) { in wilc_wfi_monitor_rx()
65 if (pkt_offset & IS_MGMT_STATUS_SUCCES) { in wilc_wfi_monitor_rx()
Dwlan.c953 u32 pkt_len, pkt_offset, tp_len; in wilc_wlan_handle_rx_buff() local
962 pkt_offset = FIELD_GET(WILC_PKT_HDR_OFFSET_FIELD, header); in wilc_wlan_handle_rx_buff()
969 if (pkt_offset & IS_MANAGMEMENT) { in wilc_wlan_handle_rx_buff()
972 pkt_offset & IS_MGMT_AUTH_PKT); in wilc_wlan_handle_rx_buff()
976 pkt_offset); in wilc_wlan_handle_rx_buff()
980 buff_ptr += pkt_offset; in wilc_wlan_handle_rx_buff()
Dnetdev.h280 void wilc_frmw_to_host(struct wilc *wilc, u8 *buff, u32 size, u32 pkt_offset);
/linux-6.1.9/drivers/hv/
Dring_buffer.c489 u32 bytes_avail, pkt_len, pkt_offset; in hv_pkt_iter_first() local
505 pkt_offset = READ_ONCE(desc->offset8) << 3; in hv_pkt_iter_first()
518 if (pkt_offset < sizeof(struct vmpacket_descriptor) || pkt_offset > pkt_len) in hv_pkt_iter_first()
519 pkt_offset = sizeof(struct vmpacket_descriptor); in hv_pkt_iter_first()
531 desc_copy->offset8 = pkt_offset >> 3; in hv_pkt_iter_first()
/linux-6.1.9/drivers/staging/rtl8723bs/hal/
Drtl8723bs_recv.c230 u32 pkt_offset, skb_len, alloc_sz; in rtl8723bs_recv_tasklet() local
261 pkt_offset = rx_report_sz + in rtl8723bs_recv_tasklet()
265 if (pkt_exceeds_tail(precvpriv, ptr + pkt_offset, in rtl8723bs_recv_tasklet()
352 pkt_offset = round_up(pkt_offset, 8); in rtl8723bs_recv_tasklet()
353 precvbuf->pdata += pkt_offset; in rtl8723bs_recv_tasklet()
/linux-6.1.9/drivers/net/ethernet/huawei/hinic/
Dhinic_rx.c320 int pkt_offset, frag_len, i; in hinic_copy_lp_data() local
334 pkt_offset = nic_dev->lb_test_rx_idx * lb_len; in hinic_copy_lp_data()
336 memcpy(lb_buf + pkt_offset, skb->data, frag_len); in hinic_copy_lp_data()
337 pkt_offset += frag_len; in hinic_copy_lp_data()
341 memcpy((lb_buf + pkt_offset), frag_data, frag_len); in hinic_copy_lp_data()
342 pkt_offset += frag_len; in hinic_copy_lp_data()
/linux-6.1.9/drivers/net/wireless/broadcom/brcm80211/brcmfmac/
Dbcmsdh.c382 unsigned int req_sz, func_blk_sz, sg_cnt, sg_data_sz, pkt_offset; in brcmf_sdiod_sglist_rw() local
449 pkt_offset = 0; in brcmf_sdiod_sglist_rw()
450 while (pkt_offset < pkt_next->len) { in brcmf_sdiod_sglist_rw()
451 pkt_data = pkt_next->data + pkt_offset; in brcmf_sdiod_sglist_rw()
452 sg_data_sz = pkt_next->len - pkt_offset; in brcmf_sdiod_sglist_rw()
463 pkt_offset += sg_data_sz; in brcmf_sdiod_sglist_rw()
/linux-6.1.9/drivers/net/wireless/realtek/rtw88/
Dfw.c219 u32 pkt_offset; in rtw_fw_c2h_cmd_handle() local
222 pkt_offset = *((u32 *)skb->cb); in rtw_fw_c2h_cmd_handle()
223 c2h = (struct rtw_c2h_cmd *)(skb->data + pkt_offset); in rtw_fw_c2h_cmd_handle()
224 len = skb->len - pkt_offset - 2; in rtw_fw_c2h_cmd_handle()
262 void rtw_fw_c2h_cmd_rx_irqsafe(struct rtw_dev *rtwdev, u32 pkt_offset, in rtw_fw_c2h_cmd_rx_irqsafe() argument
268 c2h = (struct rtw_c2h_cmd *)(skb->data + pkt_offset); in rtw_fw_c2h_cmd_rx_irqsafe()
269 len = skb->len - pkt_offset - 2; in rtw_fw_c2h_cmd_rx_irqsafe()
270 *((u32 *)skb->cb) = pkt_offset; in rtw_fw_c2h_cmd_rx_irqsafe()
294 *((u32 *)skb->cb) = pkt_offset; in rtw_fw_c2h_cmd_rx_irqsafe()
Dfw.h771 u32 pkt_offset; in get_c2h_from_skb() local
773 pkt_offset = *((u32 *)skb->cb); in get_c2h_from_skb()
774 return (struct rtw_c2h_cmd *)(skb->data + pkt_offset); in get_c2h_from_skb()
789 void rtw_fw_c2h_cmd_rx_irqsafe(struct rtw_dev *rtwdev, u32 pkt_offset,
Dpci.c1084 u32 pkt_offset; in rtw_pci_rx_napi() local
1104 pkt_offset = pkt_desc_sz + pkt_stat.drv_info_sz + in rtw_pci_rx_napi()
1110 new_len = pkt_stat.pkt_len + pkt_offset; in rtw_pci_rx_napi()
1119 rtw_fw_c2h_cmd_rx_irqsafe(rtwdev, pkt_offset, new); in rtw_pci_rx_napi()
1122 skb_pull(new, pkt_offset); in rtw_pci_rx_napi()
/linux-6.1.9/drivers/staging/rtl8712/
Drtl8712_recv.c977 u16 pkt_cnt, drvinfo_sz, pkt_offset, tmp_len, alloc_sz; in recvbuf2recvframe() local
1021 pkt_offset = (u16)round_up(tmp_len, 128); in recvbuf2recvframe()
1055 transfer_len -= pkt_offset; in recvbuf2recvframe()
1056 pbuf += pkt_offset; in recvbuf2recvframe()
/linux-6.1.9/drivers/net/ethernet/qlogic/qlcnic/
Dqlcnic_io.c1203 int index, length, cksum, pkt_offset, is_lb_pkt; in qlcnic_process_rcv() local
1218 pkt_offset = qlcnic_get_sts_pkt_offset(sts_data0); in qlcnic_process_rcv()
1235 if (pkt_offset) in qlcnic_process_rcv()
1236 skb_pull(skb, pkt_offset); in qlcnic_process_rcv()
1498 int index, length, cksum, pkt_offset; in qlcnic_process_rcv_diag() local
1511 pkt_offset = qlcnic_get_sts_pkt_offset(sts_data0); in qlcnic_process_rcv_diag()
1522 if (pkt_offset) in qlcnic_process_rcv_diag()
1523 skb_pull(skb, pkt_offset); in qlcnic_process_rcv_diag()
/linux-6.1.9/drivers/net/ethernet/amazon/ena/
Dena_eth_com.h49 u8 pkt_offset; member
/linux-6.1.9/drivers/net/usb/
Dcatc.c217 int pkt_len, pkt_offset = 0; in catc_rx_done() local
222 pkt_offset = 2; in catc_rx_done()
246 skb_copy_to_linear_data(skb, pkt_start + pkt_offset, pkt_len); in catc_rx_done()
/linux-6.1.9/drivers/net/ethernet/qlogic/netxen/
Dnetxen_nic_init.c1523 int index, length, cksum, pkt_offset; in netxen_process_rcv() local
1538 pkt_offset = netxen_get_sts_pkt_offset(sts_data0); in netxen_process_rcv()
1550 if (pkt_offset) in netxen_process_rcv()
1551 skb_pull(skb, pkt_offset); in netxen_process_rcv()
/linux-6.1.9/drivers/staging/r8188eu/core/
Drtw_security.c37 hw_hdr_offset = TXDESC_SIZE + pxmitframe->pkt_offset * PACKET_OFFSET_SZ; in rtw_wep_encrypt()
464 hw_hdr_offset = TXDESC_SIZE + pxmitframe->pkt_offset * PACKET_OFFSET_SZ; in rtw_tkip_encrypt()
1111 hw_hdr_offset = TXDESC_SIZE + pxmitframe->pkt_offset * PACKET_OFFSET_SZ; in rtw_aes_encrypt()

12