Home
last modified time | relevance | path

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

12

/linux/drivers/net/wireless/ath/ath10k/
H A Dwow.c89 int total_len = old->pkt_offset + old->pattern_len; in ath10k_wow_convert_8023_to_80211()
106 memcpy(hdr_8023_pattern + old->pkt_offset, in ath10k_wow_convert_8023_to_80211()
107 old->pattern, ETH_HLEN - old->pkt_offset); in ath10k_wow_convert_8023_to_80211()
108 memcpy(hdr_8023_bit_mask + old->pkt_offset, in ath10k_wow_convert_8023_to_80211()
109 old->mask, ETH_HLEN - old->pkt_offset); in ath10k_wow_convert_8023_to_80211()
128 if (old->pkt_offset < ETH_ALEN) in ath10k_wow_convert_8023_to_80211()
129 new->pkt_offset = old->pkt_offset + in ath10k_wow_convert_8023_to_80211()
131 else if (old->pkt_offset < offsetof(struct ethhdr, h_proto)) in ath10k_wow_convert_8023_to_80211()
132 new->pkt_offset = old->pkt_offset + in ath10k_wow_convert_8023_to_80211()
136 new->pkt_offset = old->pkt_offset + hdr_len + rfc_len - ETH_HLEN; in ath10k_wow_convert_8023_to_80211()
[all …]
/linux/drivers/net/wireless/marvell/mwifiex/
H A Dsta_tx.c39 u16 pkt_type, pkt_length, pkt_offset; in mwifiex_process_sta_txpd() local
89 pkt_offset = sizeof(struct txpd) + pad; in mwifiex_process_sta_txpd()
93 pkt_offset += MWIFIEX_MGMT_FRAME_HEADER_SIZE; in mwifiex_process_sta_txpd()
96 local_tx_pd->tx_pkt_offset = cpu_to_le16(pkt_offset); in mwifiex_process_sta_txpd()
H A Duap_txrx.c480 u16 pkt_type, pkt_offset; in mwifiex_process_uap_txpd() local
515 pkt_offset = sizeof(*txpd) + pad; in mwifiex_process_uap_txpd()
519 pkt_offset += MWIFIEX_MGMT_FRAME_HEADER_SIZE; in mwifiex_process_uap_txpd()
522 txpd->tx_pkt_offset = cpu_to_le16(pkt_offset); in mwifiex_process_uap_txpd()
/linux/drivers/gpu/drm/i915/gt/uc/
H A Dintel_huc_fw.c34 u64 pkt_offset; in intel_huc_fw_auth_via_gsccs() local
42 pkt_offset = i915_ggtt_offset(huc->heci_pkt); in intel_huc_fw_auth_via_gsccs()
66 pkt_offset, sizeof(*msg_in), in intel_huc_fw_auth_via_gsccs()
67 pkt_offset + PXP43_HUC_AUTH_INOUT_SIZE, in intel_huc_fw_auth_via_gsccs()
/linux/drivers/net/wireless/ti/wlcore/
H A 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/drivers/hv/
H A Dring_buffer.c467 u32 bytes_avail, pkt_len, pkt_offset; in hv_pkt_iter_first() local
483 pkt_offset = READ_ONCE(desc->offset8) << 3; in hv_pkt_iter_first()
496 if (pkt_offset < sizeof(struct vmpacket_descriptor) || pkt_offset > pkt_len) in hv_pkt_iter_first()
497 pkt_offset = sizeof(struct vmpacket_descriptor); in hv_pkt_iter_first()
509 desc_copy->offset8 = pkt_offset >> 3; in hv_pkt_iter_first()
/linux/drivers/net/wireless/microchip/wilc1000/
H A 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()
H A Dnetdev.h296 void wilc_frmw_to_host(struct wilc *wilc, u8 *buff, u32 size, u32 pkt_offset);
/linux/drivers/staging/rtl8723bs/hal/
H A Drtl8723bs_recv.c229 u32 pkt_offset, skb_len, alloc_sz; in rtl8723bs_recv_tasklet() local
260 pkt_offset = rx_report_sz + in rtl8723bs_recv_tasklet()
264 if (pkt_exceeds_tail(precvpriv, ptr + pkt_offset, in rtl8723bs_recv_tasklet()
351 pkt_offset = round_up(pkt_offset, 8); in rtl8723bs_recv_tasklet()
352 precvbuf->pdata += pkt_offset; in rtl8723bs_recv_tasklet()
/linux/drivers/net/ethernet/huawei/hinic/
H A 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/drivers/net/wireless/realtek/rtw88/
H A Dsdio.c937 u32 pkt_offset, struct rtw_rx_pkt_stat *pkt_stat, in rtw_sdio_rx_skb() argument
943 skb_put(skb, pkt_stat->pkt_len + pkt_offset); in rtw_sdio_rx_skb()
944 rtw_fw_c2h_cmd_rx_irqsafe(rtwdev, pkt_offset, skb); in rtw_sdio_rx_skb()
949 skb_reserve(skb, pkt_offset); in rtw_sdio_rx_skb()
965 u32 pkt_offset, curr_pkt_len; in rtw_sdio_rxfifo_recv() local
985 pkt_offset = pkt_desc_sz + pkt_stat.drv_info_sz + in rtw_sdio_rxfifo_recv()
988 curr_pkt_len = ALIGN(pkt_offset + pkt_stat.pkt_len, in rtw_sdio_rxfifo_recv()
996 rtw_sdio_rx_skb(rtwdev, skb, pkt_offset, &pkt_stat, in rtw_sdio_rxfifo_recv()
1003 rtw_sdio_rx_skb(rtwdev, skb, pkt_offset, &pkt_stat, in rtw_sdio_rxfifo_recv()
1011 rtw_sdio_rx_skb(rtwdev, split_skb, pkt_offset, &pkt_stat, in rtw_sdio_rxfifo_recv()
H A Dusb.c37 pkt_info.pkt_offset = le32_get_bits(tx_desc->w1, RTW_TX_DESC_W1_PKT_OFFSET); in rtw_usb_fill_tx_checksum()
553 u32 pkt_offset, next_pkt, urb_len; in rtw_usb_rx_handler() local
577 pkt_offset = pkt_desc_sz + pkt_stat.drv_info_sz + in rtw_usb_rx_handler()
580 next_pkt = round_up(pkt_stat.pkt_len + pkt_offset, 8); in rtw_usb_rx_handler()
588 skb_trim(skb, pkt_stat.pkt_len + pkt_offset); in rtw_usb_rx_handler()
589 rtw_fw_c2h_cmd_rx_irqsafe(rtwdev, pkt_offset, skb); in rtw_usb_rx_handler()
591 skb_pull(skb, pkt_offset); in rtw_usb_rx_handler()
H A Dfw.c301 u32 pkt_offset; in rtw_fw_c2h_cmd_handle() local
304 pkt_offset = *((u32 *)skb->cb); in rtw_fw_c2h_cmd_handle()
305 c2h = (struct rtw_c2h_cmd *)(skb->data + pkt_offset); in rtw_fw_c2h_cmd_handle()
306 len = skb->len - pkt_offset - 2; in rtw_fw_c2h_cmd_handle()
344 void rtw_fw_c2h_cmd_rx_irqsafe(struct rtw_dev *rtwdev, u32 pkt_offset, in rtw_fw_c2h_cmd_rx_irqsafe() argument
350 c2h = (struct rtw_c2h_cmd *)(skb->data + pkt_offset); in rtw_fw_c2h_cmd_rx_irqsafe()
351 len = skb->len - pkt_offset - 2; in rtw_fw_c2h_cmd_rx_irqsafe()
352 *((u32 *)skb->cb) = pkt_offset; in rtw_fw_c2h_cmd_rx_irqsafe()
376 *((u32 *)skb->cb) = pkt_offset; in rtw_fw_c2h_cmd_rx_irqsafe()
H A Dpci.c1051 u32 pkt_offset; in rtw_pci_rx_napi() local
1071 pkt_offset = pkt_desc_sz + pkt_stat.drv_info_sz + in rtw_pci_rx_napi()
1077 new_len = pkt_stat.pkt_len + pkt_offset; in rtw_pci_rx_napi()
1086 rtw_fw_c2h_cmd_rx_irqsafe(rtwdev, pkt_offset, new); in rtw_pci_rx_napi()
1089 skb_pull(new, pkt_offset); in rtw_pci_rx_napi()
/linux/drivers/net/wireless/ath/ath12k/
H A Dwow.h24 int pkt_offset; member
H A Dwow.c173 size_t eth_pkt_ofs = eth_pattern->pkt_offset; in ath12k_wow_convert_8023_to_80211()
260 i80211_pattern->pkt_offset = pkt_ofs; in ath12k_wow_convert_8023_to_80211()
439 new_pattern.pkt_offset = eth_pattern->pkt_offset; in ath12k_wow_vif_set_wakeups()
447 new_pattern.pkt_offset); in ath12k_wow_vif_set_wakeups()
H A Dhal_tx.c55 le32_encode_bits(ti->pkt_offset, HAL_TCL_DATA_CMD_INFO2_PKT_OFFSET); in ath12k_hal_tx_cmd_desc_setup()
H A Dhal_tx.h29 u32 pkt_offset; member
/linux/drivers/net/wireless/ath/ath11k/
H A Dhal_tx.h27 u32 pkt_offset; member
H A Dhal_tx.c65 FIELD_PREP(HAL_TCL_DATA_CMD_INFO1_PKT_OFFSET, ti->pkt_offset); in ath11k_hal_tx_cmd_desc_setup()
/linux/drivers/net/ethernet/amazon/ena/
H A Dena_netdev.c941 u16 len, int pkt_offset) in ena_try_rx_buf_page_reuse() argument
948 if (SKB_DATA_ALIGN(len + pkt_offset) + ENA_MIN_RX_BUF_SIZE <= ena_buf->len) { in ena_try_rx_buf_page_reuse()
968 int page_offset, pkt_offset; in ena_rx_skb() local
996 pkt_offset = buf_offset - rx_ring->rx_headroom; in ena_rx_skb()
1007 dma_unmap_addr(&rx_info->ena_buf, paddr) + pkt_offset, in ena_rx_skb()
1025 ena_try_rx_buf_page_reuse(rx_info, buf_len, len, pkt_offset); in ena_rx_skb()
1062 pkt_offset = buf_offset - rx_ring->rx_headroom; in ena_rx_skb()
1069 ena_try_rx_buf_page_reuse(rx_info, buf_len, len, pkt_offset); in ena_rx_skb()
1072 pre_reuse_paddr + pkt_offset, in ena_rx_skb()
1223 u8 pkt_offset; in ena_clean_rx_irq() local
[all …]
H A Dena_eth_com.h51 u8 pkt_offset; member
/linux/drivers/net/ethernet/qlogic/qlcnic/
H A Dqlcnic_io.c1202 int index, length, cksum, pkt_offset, is_lb_pkt; in qlcnic_process_rcv() local
1217 pkt_offset = qlcnic_get_sts_pkt_offset(sts_data0); in qlcnic_process_rcv()
1234 if (pkt_offset) in qlcnic_process_rcv()
1235 skb_pull(skb, pkt_offset); in qlcnic_process_rcv()
1497 int index, length, cksum, pkt_offset; in qlcnic_process_rcv_diag() local
1510 pkt_offset = qlcnic_get_sts_pkt_offset(sts_data0); in qlcnic_process_rcv_diag()
1521 if (pkt_offset) in qlcnic_process_rcv_diag()
1522 skb_pull(skb, pkt_offset); in qlcnic_process_rcv_diag()
/linux/drivers/net/usb/
H A 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/drivers/net/ethernet/qlogic/netxen/
H A Dnetxen_nic_init.c1521 int index, length, cksum, pkt_offset; in netxen_process_rcv() local
1536 pkt_offset = netxen_get_sts_pkt_offset(sts_data0); in netxen_process_rcv()
1548 if (pkt_offset) in netxen_process_rcv()
1549 skb_pull(skb, pkt_offset); in netxen_process_rcv()

12