| /freebsd-14-stable/sys/compat/linuxkpi/common/include/linux/ |
| HD | skbuff.h | 219 struct sk_buff *skb; in alloc_skb() local 221 skb = linuxkpi_alloc_skb(size, gfp); in alloc_skb() 222 SKB_TRACE(skb); in alloc_skb() 223 return (skb); in alloc_skb() 229 struct sk_buff *skb; in __dev_alloc_skb() local 231 skb = linuxkpi_dev_alloc_skb(len, gfp); in __dev_alloc_skb() 233 SKB_TRACE(skb); in __dev_alloc_skb() 234 return (skb); in __dev_alloc_skb() 240 struct sk_buff *skb; in dev_alloc_skb() local 242 skb = __dev_alloc_skb(len, GFP_NOWAIT); in dev_alloc_skb() [all …]
|
| /freebsd-14-stable/sys/compat/linuxkpi/common/src/ |
| HD | linux_skbuff.c | 59 SYSCTL_NODE(_compat_linuxkpi, OID_AUTO, skb, CTLFLAG_RW | CTLFLAG_MPSAFE, 0, 94 struct sk_buff *skb; in linuxkpi_alloc_skb() local 98 skb = uma_zalloc(skbzone, linux_check_m_flags(gfp) | M_ZERO); in linuxkpi_alloc_skb() 99 if (skb == NULL) in linuxkpi_alloc_skb() 102 skb->prev = skb->next = skb; in linuxkpi_alloc_skb() 103 skb->truesize = size; in linuxkpi_alloc_skb() 104 skb->shinfo = (struct skb_shared_info *)(skb + 1); in linuxkpi_alloc_skb() 107 return (skb); in linuxkpi_alloc_skb() 136 uma_zfree(skbzone, skb); in linuxkpi_alloc_skb() 140 skb->head = skb->data = (uint8_t *)p; in linuxkpi_alloc_skb() [all …]
|
| /freebsd-14-stable/sys/contrib/dev/athk/ath10k/ |
| HD | wmi-ops.h | 15 void (*rx)(struct ath10k *ar, struct sk_buff *skb); 19 int (*pull_scan)(struct ath10k *ar, struct sk_buff *skb, 21 int (*pull_mgmt_rx)(struct ath10k *ar, struct sk_buff *skb, 23 int (*pull_mgmt_tx_compl)(struct ath10k *ar, struct sk_buff *skb, 26 struct ath10k *ar, struct sk_buff *skb, 28 int (*pull_ch_info)(struct ath10k *ar, struct sk_buff *skb, 30 int (*pull_vdev_start)(struct ath10k *ar, struct sk_buff *skb, 32 int (*pull_peer_kick)(struct ath10k *ar, struct sk_buff *skb, 34 int (*pull_swba)(struct ath10k *ar, struct sk_buff *skb, 36 int (*pull_phyerr_hdr)(struct ath10k *ar, struct sk_buff *skb, [all …]
|
| HD | htc.c | 19 struct sk_buff *skb) in ath10k_htc_control_tx_complete() argument 21 kfree_skb(skb); in ath10k_htc_control_tx_complete() 26 struct sk_buff *skb; in ath10k_htc_build_tx_ctrl_skb() local 29 skb = dev_alloc_skb(ATH10K_HTC_CONTROL_BUFFER_SIZE); in ath10k_htc_build_tx_ctrl_skb() 30 if (!skb) in ath10k_htc_build_tx_ctrl_skb() 33 skb_reserve(skb, 20); /* FIXME: why 20 bytes? */ in ath10k_htc_build_tx_ctrl_skb() 34 WARN_ONCE((unsigned long)skb->data & 3, "unaligned skb"); in ath10k_htc_build_tx_ctrl_skb() 36 skb_cb = ATH10K_SKB_CB(skb); in ath10k_htc_build_tx_ctrl_skb() 39 ath10k_dbg(ar, ATH10K_DBG_HTC, "%s: skb %pK\n", __func__, skb); in ath10k_htc_build_tx_ctrl_skb() 40 return skb; in ath10k_htc_build_tx_ctrl_skb() [all …]
|
| HD | wmi-tlv.c | 181 struct sk_buff *skb) in ath10k_wmi_tlv_event_bcn_tx_status() argument 189 tb = ath10k_wmi_tlv_parse_alloc(ar, skb->data, skb->len, GFP_ATOMIC); in ath10k_wmi_tlv_event_bcn_tx_status() 228 struct sk_buff *skb) in ath10k_wmi_tlv_event_vdev_delete_resp() argument 274 struct sk_buff *skb) in ath10k_wmi_tlv_op_pull_peer_stats_info() argument 282 tb = ath10k_wmi_tlv_parse_alloc(ar, skb->data, skb->len, GFP_ATOMIC); in ath10k_wmi_tlv_op_pull_peer_stats_info() 315 struct sk_buff *skb) in ath10k_wmi_tlv_event_peer_stats_info() argument 318 ath10k_wmi_tlv_op_pull_peer_stats_info(ar, skb); in ath10k_wmi_tlv_event_peer_stats_info() 323 struct sk_buff *skb) in ath10k_wmi_tlv_event_diag_data() argument 335 tb = ath10k_wmi_tlv_parse_alloc(ar, skb->data, skb->len, GFP_ATOMIC); in ath10k_wmi_tlv_event_diag_data() 394 struct sk_buff *skb) in ath10k_wmi_tlv_event_diag() argument [all …]
|
| HD | wmi.c | 1794 struct sk_buff *skb; in ath10k_wmi_alloc_skb() local 1797 skb = ath10k_htc_alloc_skb(ar, WMI_SKB_HEADROOM + round_len); in ath10k_wmi_alloc_skb() 1798 if (!skb) in ath10k_wmi_alloc_skb() 1801 skb_reserve(skb, WMI_SKB_HEADROOM); in ath10k_wmi_alloc_skb() 1802 if (!IS_ALIGNED((unsigned long)skb->data, 4)) in ath10k_wmi_alloc_skb() 1805 skb_put(skb, round_len); in ath10k_wmi_alloc_skb() 1806 memset(skb->data, 0, round_len); in ath10k_wmi_alloc_skb() 1808 return skb; in ath10k_wmi_alloc_skb() 1811 static void ath10k_wmi_htc_tx_complete(struct ath10k *ar, struct sk_buff *skb) in ath10k_wmi_htc_tx_complete() argument 1813 dev_kfree_skb(skb); in ath10k_wmi_htc_tx_complete() [all …]
|
| /freebsd-14-stable/sys/contrib/dev/rtw89/ |
| HD | fw.c | 56 struct sk_buff *skb); 57 static int rtw89_h2c_tx_and_wait(struct rtw89_dev *rtwdev, struct sk_buff *skb, 72 struct sk_buff *skb; in rtw89_fw_h2c_alloc_skb() local 79 skb = dev_alloc_skb(len + header_len + h2c_desc_size); in rtw89_fw_h2c_alloc_skb() 80 if (!skb) in rtw89_fw_h2c_alloc_skb() 82 skb_reserve(skb, header_len + h2c_desc_size); in rtw89_fw_h2c_alloc_skb() 83 memset(skb->data, 0, len); in rtw89_fw_h2c_alloc_skb() 85 return skb; in rtw89_fw_h2c_alloc_skb() 1210 void rtw89_h2c_pkt_set_hdr(struct rtw89_dev *rtwdev, struct sk_buff *skb, in rtw89_h2c_pkt_set_hdr() argument 1216 hdr = (struct fwcmd_hdr *)skb_push(skb, 8); in rtw89_h2c_pkt_set_hdr() [all …]
|
| /freebsd-14-stable/sys/contrib/dev/mediatek/mt76/ |
| HD | tx.c | 18 mt76_tx_check_agg_ssn(struct ieee80211_sta *sta, struct sk_buff *skb) in mt76_tx_check_agg_ssn() argument 20 struct ieee80211_hdr *hdr = (struct ieee80211_hdr *)skb->data; in mt76_tx_check_agg_ssn() 29 tid = skb->priority & IEEE80211_QOS_CTL_TAG1D_MASK; in mt76_tx_check_agg_ssn() 53 struct sk_buff *skb; in mt76_tx_status_unlock() local 58 while ((skb = __skb_dequeue(list)) != NULL) { in mt76_tx_status_unlock() 60 .skb = skb, in mt76_tx_status_unlock() 61 .info = IEEE80211_SKB_CB(skb), in mt76_tx_status_unlock() 64 struct mt76_tx_cb *cb = mt76_tx_skb_cb(skb); in mt76_tx_status_unlock() 79 hw = mt76_tx_status_get_hw(dev, skb); in mt76_tx_status_unlock() 89 __mt76_tx_status_skb_done(struct mt76_dev *dev, struct sk_buff *skb, u8 flags, in __mt76_tx_status_skb_done() argument [all …]
|
| HD | mt76x02_beacon.c | 26 mt76x02_write_beacon(struct mt76x02_dev *dev, int offset, struct sk_buff *skb) in mt76x02_write_beacon() argument 30 if (WARN_ON_ONCE(beacon_len < skb->len + sizeof(struct mt76x02_txwi))) in mt76x02_write_beacon() 39 txwi = (struct mt76x02_txwi *)(skb->data - sizeof(*txwi)); in mt76x02_write_beacon() 40 mt76x02_mac_write_txwi(dev, txwi, skb, NULL, NULL, skb->len); in mt76x02_write_beacon() 41 skb_push(skb, sizeof(*txwi)); in mt76x02_write_beacon() 45 mt76x02_mac_write_txwi(dev, &txwi, skb, NULL, NULL, skb->len); in mt76x02_write_beacon() 50 mt76_wr_copy(dev, offset, skb->data, skb->len); in mt76x02_write_beacon() 55 struct sk_buff *skb) in mt76x02_mac_set_beacon() argument 60 if (!mt76x02_write_beacon(dev, bcn_addr, skb)) { in mt76x02_mac_set_beacon() 65 dev_kfree_skb(skb); in mt76x02_mac_set_beacon() [all …]
|
| HD | mcu.c | 13 struct sk_buff *skb; in __mt76_mcu_msg_alloc() local 18 skb = alloc_skb(len, gfp); in __mt76_mcu_msg_alloc() 19 if (!skb) in __mt76_mcu_msg_alloc() 22 memset(skb->head, 0, len); in __mt76_mcu_msg_alloc() 23 skb_reserve(skb, ops->headroom); in __mt76_mcu_msg_alloc() 26 skb_put_data(skb, data, data_len); in __mt76_mcu_msg_alloc() 28 return skb; in __mt76_mcu_msg_alloc() 49 void mt76_mcu_rx_event(struct mt76_dev *dev, struct sk_buff *skb) in mt76_mcu_rx_event() argument 51 skb_queue_tail(&dev->mcu.res_q, skb); in mt76_mcu_rx_event() 59 struct sk_buff *skb; in mt76_mcu_send_and_get_msg() local [all …]
|
| HD | mt76x02_usb_core.c | 8 static void mt76x02u_remove_dma_hdr(struct sk_buff *skb) in mt76x02u_remove_dma_hdr() argument 12 skb_pull(skb, sizeof(struct mt76x02_txwi) + MT_DMA_HDR_LEN); in mt76x02u_remove_dma_hdr() 13 hdr_len = ieee80211_get_hdrlen_from_skb(skb); in mt76x02u_remove_dma_hdr() 15 mt76x02_remove_hdr_pad(skb, 2); in mt76x02u_remove_dma_hdr() 20 mt76x02u_remove_dma_hdr(e->skb); in mt76x02u_tx_complete_skb() 21 mt76_tx_complete_skb(mdev, e->wcid, e->skb); in mt76x02u_tx_complete_skb() 46 int mt76x02u_skb_dma_info(struct sk_buff *skb, int port, u32 flags) in mt76x02u_skb_dma_info() argument 56 info = FIELD_PREP(MT_TXD_INFO_LEN, round_up(skb->len, 4)) | in mt76x02u_skb_dma_info() 58 put_unaligned_le32(info, skb_push(skb, sizeof(info))); in mt76x02u_skb_dma_info() 60 pad = round_up(skb->len, 4) + 4 - skb->len; in mt76x02u_skb_dma_info() [all …]
|
| HD | mt76x02_usb_mcu.c | 70 __mt76x02u_mcu_send_msg(struct mt76_dev *dev, struct sk_buff *skb, in __mt76x02u_mcu_send_msg() argument 91 ret = mt76x02u_skb_dma_info(skb, CPU_TX_PORT, info); in __mt76x02u_mcu_send_msg() 95 ret = mt76u_bulk_msg(dev, skb->data, skb->len, NULL, 500, in __mt76x02u_mcu_send_msg() 104 consume_skb(skb); in __mt76x02u_mcu_send_msg() 113 struct sk_buff *skb; in mt76x02u_mcu_send_msg() local 116 skb = mt76_mcu_msg_alloc(dev, data, len); in mt76x02u_mcu_send_msg() 117 if (!skb) in mt76x02u_mcu_send_msg() 121 err = __mt76x02u_mcu_send_msg(dev, skb, cmd, wait_resp); in mt76x02u_mcu_send_msg() 127 static inline void skb_put_le32(struct sk_buff *skb, u32 val) in skb_put_le32() argument 129 put_unaligned_le32(val, skb_put(skb, 4)); in skb_put_le32() [all …]
|
| /freebsd-14-stable/sys/contrib/dev/rtw88/ |
| HD | tx.c | 13 struct sk_buff *skb) in rtw_tx_stats() argument 18 hdr = (struct ieee80211_hdr *)skb->data; in rtw_tx_stats() 25 rtwdev->stats.tx_unicast += skb->len; in rtw_tx_stats() 29 rtwvif->stats.tx_unicast += skb->len; in rtw_tx_stats() 36 struct rtw_tx_pkt_info *pkt_info, struct sk_buff *skb) in rtw_tx_fill_tx_desc() argument 38 struct rtw_tx_desc *tx_desc = (struct rtw_tx_desc *)skb->data; in rtw_tx_fill_tx_desc() 215 void rtw_tx_report_enqueue(struct rtw_dev *rtwdev, struct sk_buff *skb, u8 sn) in rtw_tx_report_enqueue() argument 222 drv_data = (u8 *)IEEE80211_SKB_CB(skb)->status.status_driver_data; in rtw_tx_report_enqueue() 226 __skb_queue_tail(&tx_report->queue, skb); in rtw_tx_report_enqueue() 234 struct sk_buff *skb, bool acked) in rtw_tx_report_tx_status() argument [all …]
|
| /freebsd-14-stable/sys/contrib/dev/athk/ath11k/ |
| HD | htc.c | 13 struct sk_buff *skb; in ath11k_htc_alloc_skb() local 15 skb = dev_alloc_skb(size + sizeof(struct ath11k_htc_hdr)); in ath11k_htc_alloc_skb() 16 if (!skb) in ath11k_htc_alloc_skb() 19 skb_reserve(skb, sizeof(struct ath11k_htc_hdr)); in ath11k_htc_alloc_skb() 22 if (!IS_ALIGNED((unsigned long)skb->data, 4)) in ath11k_htc_alloc_skb() 25 return skb; in ath11k_htc_alloc_skb() 29 struct sk_buff *skb) in ath11k_htc_control_tx_complete() argument 31 kfree_skb(skb); in ath11k_htc_control_tx_complete() 36 struct sk_buff *skb; in ath11k_htc_build_tx_ctrl_skb() local 39 skb = dev_alloc_skb(ATH11K_HTC_CONTROL_BUFFER_SIZE); in ath11k_htc_build_tx_ctrl_skb() [all …]
|
| HD | wmi.c | 296 static int ath11k_wmi_cmd_send_nowait(struct ath11k_pdev_wmi *wmi, struct sk_buff *skb, in ath11k_wmi_cmd_send_nowait() argument 299 struct ath11k_skb_cb *skb_cb = ATH11K_SKB_CB(skb); in ath11k_wmi_cmd_send_nowait() 305 if (skb_push(skb, sizeof(struct wmi_cmd_hdr)) == NULL) in ath11k_wmi_cmd_send_nowait() 310 cmd_hdr = (struct wmi_cmd_hdr *)skb->data; in ath11k_wmi_cmd_send_nowait() 313 trace_ath11k_wmi_cmd(ab, cmd_id, skb->data, skb->len); in ath11k_wmi_cmd_send_nowait() 316 ret = ath11k_htc_send(&ab->htc, wmi->eid, skb); in ath11k_wmi_cmd_send_nowait() 324 skb_pull(skb, sizeof(struct wmi_cmd_hdr)); in ath11k_wmi_cmd_send_nowait() 328 int ath11k_wmi_cmd_send(struct ath11k_pdev_wmi *wmi, struct sk_buff *skb, in ath11k_wmi_cmd_send() argument 339 ret = ath11k_wmi_cmd_send_nowait(wmi, skb, cmd_id); in ath11k_wmi_cmd_send() 349 ret = ath11k_wmi_cmd_send_nowait(wmi, skb, cmd_id); in ath11k_wmi_cmd_send() [all …]
|
| HD | ce.c | 272 struct sk_buff *skb, dma_addr_t paddr) in ath11k_ce_rx_buf_enqueue_pipe() argument 305 ring->skb[write_index] = skb; in ath11k_ce_rx_buf_enqueue_pipe() 323 struct sk_buff *skb; in ath11k_ce_rx_post_pipe() local 332 skb = dev_alloc_skb(pipe->buf_sz); in ath11k_ce_rx_post_pipe() 333 if (!skb) { in ath11k_ce_rx_post_pipe() 338 WARN_ON_ONCE(!IS_ALIGNED((unsigned long)skb->data, 4)); in ath11k_ce_rx_post_pipe() 340 paddr = dma_map_single(ab->dev, skb->data, in ath11k_ce_rx_post_pipe() 341 skb->len + skb_tailroom(skb), in ath11k_ce_rx_post_pipe() 345 dev_kfree_skb_any(skb); in ath11k_ce_rx_post_pipe() 350 ATH11K_SKB_RXCB(skb)->paddr = paddr; in ath11k_ce_rx_post_pipe() [all …]
|
| HD | testmode.c | 48 struct sk_buff *skb) in ath11k_tm_wmi_event_unsegmented() argument 55 cmd_id, skb->len); in ath11k_tm_wmi_event_unsegmented() 56 ath11k_dbg_dump(ab, ATH11K_DBG_TESTMODE, NULL, "", skb->data, skb->len); in ath11k_tm_wmi_event_unsegmented() 68 nla_total_size(skb->len), in ath11k_tm_wmi_event_unsegmented() 78 nla_put(nl_skb, ATH11K_TM_ATTR_DATA, skb->len, skb->data)) { in ath11k_tm_wmi_event_unsegmented() 194 struct sk_buff *skb) in ath11k_tm_wmi_event_segmented() argument 201 tb = ath11k_wmi_tlv_parse_alloc(ab, skb->data, skb->len, GFP_ATOMIC); in ath11k_tm_wmi_event_segmented() 215 length = skb->len - TLV_HDR_SIZE; in ath11k_tm_wmi_event_segmented() 223 void ath11k_tm_wmi_event(struct ath11k_base *ab, u32 cmd_id, struct sk_buff *skb) in ath11k_tm_wmi_event() argument 226 ath11k_tm_wmi_event_segmented(ab, cmd_id, skb); in ath11k_tm_wmi_event() [all …]
|
| /freebsd-14-stable/sys/contrib/dev/athk/ath12k/ |
| HD | htc.c | 14 struct sk_buff *skb; in ath12k_htc_alloc_skb() local 16 skb = dev_alloc_skb(size + sizeof(struct ath12k_htc_hdr)); in ath12k_htc_alloc_skb() 17 if (!skb) in ath12k_htc_alloc_skb() 20 skb_reserve(skb, sizeof(struct ath12k_htc_hdr)); in ath12k_htc_alloc_skb() 23 if (!IS_ALIGNED((unsigned long)skb->data, 4)) in ath12k_htc_alloc_skb() 26 return skb; in ath12k_htc_alloc_skb() 30 struct sk_buff *skb) in ath12k_htc_control_tx_complete() argument 32 kfree_skb(skb); in ath12k_htc_control_tx_complete() 37 struct sk_buff *skb; in ath12k_htc_build_tx_ctrl_skb() local 40 skb = dev_alloc_skb(ATH12K_HTC_CONTROL_BUFFER_SIZE); in ath12k_htc_build_tx_ctrl_skb() [all …]
|
| HD | wmi.c | 391 static int ath12k_wmi_cmd_send_nowait(struct ath12k_wmi_pdev *wmi, struct sk_buff *skb, in ath12k_wmi_cmd_send_nowait() argument 394 struct ath12k_skb_cb *skb_cb = ATH12K_SKB_CB(skb); in ath12k_wmi_cmd_send_nowait() 399 if (!skb_push(skb, sizeof(struct wmi_cmd_hdr))) in ath12k_wmi_cmd_send_nowait() 402 cmd_hdr = (struct wmi_cmd_hdr *)skb->data; in ath12k_wmi_cmd_send_nowait() 406 ret = ath12k_htc_send(&ab->htc, wmi->eid, skb); in ath12k_wmi_cmd_send_nowait() 414 skb_pull(skb, sizeof(struct wmi_cmd_hdr)); in ath12k_wmi_cmd_send_nowait() 418 int ath12k_wmi_cmd_send(struct ath12k_wmi_pdev *wmi, struct sk_buff *skb, in ath12k_wmi_cmd_send() argument 427 ret = ath12k_wmi_cmd_send_nowait(wmi, skb, cmd_id); in ath12k_wmi_cmd_send() 724 static int ath12k_service_ready_event(struct ath12k_base *ab, struct sk_buff *skb) in ath12k_service_ready_event() argument 729 ret = ath12k_wmi_tlv_iter(ab, skb->data, skb->len, in ath12k_service_ready_event() [all …]
|
| HD | ce.c | 223 struct sk_buff *skb, dma_addr_t paddr) in ath12k_ce_rx_buf_enqueue_pipe() argument 256 ring->skb[write_index] = skb; in ath12k_ce_rx_buf_enqueue_pipe() 274 struct sk_buff *skb; in ath12k_ce_rx_post_pipe() local 283 skb = dev_alloc_skb(pipe->buf_sz); in ath12k_ce_rx_post_pipe() 284 if (!skb) { in ath12k_ce_rx_post_pipe() 289 WARN_ON_ONCE(!IS_ALIGNED((unsigned long)skb->data, 4)); in ath12k_ce_rx_post_pipe() 291 paddr = dma_map_single(ab->dev, skb->data, in ath12k_ce_rx_post_pipe() 292 skb->len + skb_tailroom(skb), in ath12k_ce_rx_post_pipe() 296 dev_kfree_skb_any(skb); in ath12k_ce_rx_post_pipe() 301 ATH12K_SKB_RXCB(skb)->paddr = paddr; in ath12k_ce_rx_post_pipe() [all …]
|
| HD | dp_tx.c | 13 ath12k_dp_tx_get_encap_type(struct ath12k_vif *arvif, struct sk_buff *skb) in ath12k_dp_tx_get_encap_type() argument 15 struct ieee80211_tx_info *tx_info = IEEE80211_SKB_CB(skb); in ath12k_dp_tx_get_encap_type() 27 static void ath12k_dp_tx_encap_nwifi(struct sk_buff *skb) in ath12k_dp_tx_encap_nwifi() argument 29 struct ieee80211_hdr *hdr = (void *)skb->data; in ath12k_dp_tx_encap_nwifi() 36 memmove(skb->data + IEEE80211_QOS_CTL_LEN, in ath12k_dp_tx_encap_nwifi() 38 skb->data, (void *)qos_ctl - (void *)skb->data); in ath12k_dp_tx_encap_nwifi() 40 skb->data, qos_ctl - skb->data); in ath12k_dp_tx_encap_nwifi() 42 skb_pull(skb, IEEE80211_QOS_CTL_LEN); in ath12k_dp_tx_encap_nwifi() 44 hdr = (void *)skb->data; in ath12k_dp_tx_encap_nwifi() 48 static u8 ath12k_dp_tx_get_tid(struct sk_buff *skb) in ath12k_dp_tx_get_tid() argument [all …]
|
| /freebsd-14-stable/sys/contrib/dev/mediatek/mt76/mt7921/ |
| HD | mac.c | 172 mt7921_mac_fill_rx(struct mt792x_dev *dev, struct sk_buff *skb) in mt7921_mac_fill_rx() argument 175 struct mt76_rx_status *status = (struct mt76_rx_status *)skb->cb; in mt7921_mac_fill_rx() 179 __le32 *rxv = NULL, *rxd = (__le32 *)skb->data; in mt7921_mac_fill_rx() 183 u32 csum_status = *(u32 *)skb->cb; in mt7921_mac_fill_rx() 247 skb->ip_summed = CHECKSUM_UNNECESSARY; in mt7921_mac_fill_rx() 277 if ((u8 *)rxd - skb->data >= skb->len) in mt7921_mac_fill_rx() 308 if ((u8 *)rxd - skb->data >= skb->len) in mt7921_mac_fill_rx() 330 if ((u8 *)rxd - skb->data >= skb->len) in mt7921_mac_fill_rx() 341 if ((u8 *)rxd - skb->data >= skb->len) in mt7921_mac_fill_rx() 357 if ((u8 *)rxd - skb->data >= skb->len) in mt7921_mac_fill_rx() [all …]
|
| /freebsd-14-stable/sys/contrib/dev/mediatek/mt76/mt7996/ |
| HD | mcu.c | 181 struct sk_buff *skb, int seq) in mt7996_mcu_parse_response() argument 188 if (!skb) { in mt7996_mcu_parse_response() 194 rxd = (struct mt7996_mcu_rxd *)skb->data; in mt7996_mcu_parse_response() 199 skb_pull(skb, sizeof(*rxd) - 4); in mt7996_mcu_parse_response() 200 ret = *skb->data; in mt7996_mcu_parse_response() 203 skb_pull(skb, sizeof(*rxd)); in mt7996_mcu_parse_response() 204 event = (struct mt7996_mcu_uni_event *)skb->data; in mt7996_mcu_parse_response() 210 skb_pull(skb, sizeof(struct mt7996_mcu_rxd)); in mt7996_mcu_parse_response() 217 mt7996_mcu_send_message(struct mt76_dev *mdev, struct sk_buff *skb, in mt7996_mcu_send_message() argument 241 txd = (__le32 *)skb_push(skb, txd_len); in mt7996_mcu_send_message() [all …]
|
| /freebsd-14-stable/sys/contrib/dev/iwlwifi/mvm/ |
| HD | time-sync.c | 15 static bool iwl_mvm_is_skb_match(struct sk_buff *skb, u8 *addr, u8 dialog_token) in iwl_mvm_is_skb_match() argument 17 struct ieee80211_mgmt *mgmt = (void *)skb->data; in iwl_mvm_is_skb_match() 20 if (ieee80211_is_timing_measurement(skb)) in iwl_mvm_is_skb_match() 36 struct sk_buff *skb; in iwl_mvm_time_sync_find_skb() local 42 while ((skb = skb_dequeue(&mvm->time_sync.frame_list))) { in iwl_mvm_time_sync_find_skb() 43 if (iwl_mvm_is_skb_match(skb, addr, dialog_token)) in iwl_mvm_time_sync_find_skb() 46 kfree_skb(skb); in iwl_mvm_time_sync_find_skb() 47 skb = NULL; in iwl_mvm_time_sync_find_skb() 50 return skb; in iwl_mvm_time_sync_find_skb() 66 struct sk_buff *skb = in iwl_mvm_time_sync_msmt_event() local [all …]
|
| /freebsd-14-stable/sys/contrib/dev/mediatek/mt76/mt7603/ |
| HD | dma.c | 8 mt7603_rx_loopback_skb(struct mt7603_dev *dev, struct sk_buff *skb) in mt7603_rx_loopback_skb() argument 20 __le32 *txd = (__le32 *)skb->data; in mt7603_rx_loopback_skb() 30 if (skb->len < MT_TXD_SIZE + sizeof(struct ieee80211_hdr)) in mt7603_rx_loopback_skb() 35 skb->priority = FIELD_GET(MT_TXD1_TID, val); in mt7603_rx_loopback_skb() 51 hdr = (struct ieee80211_hdr *)&skb->data[MT_TXD_SIZE]; in mt7603_rx_loopback_skb() 55 skb_set_queue_mapping(skb, tid_to_ac[tid]); in mt7603_rx_loopback_skb() 59 __skb_queue_tail(&msta->psq, skb); in mt7603_rx_loopback_skb() 61 skb = __skb_dequeue(&msta->psq); in mt7603_rx_loopback_skb() 62 dev_kfree_skb(skb); in mt7603_rx_loopback_skb() 68 dev_kfree_skb(skb); in mt7603_rx_loopback_skb() [all …]
|