Home
last modified time | relevance | path

Searched full:rx_desc (Results 1 – 25 of 57) sorted by relevance

123

/freebsd/sys/contrib/dev/athk/ath10k/
H A Dhtt.c141 struct htt_rx_desc_v1 *rx_desc = container_of(rxd, in ath10k_qca99x0_rx_desc_get_l3_pad_bytes() local
145 return MS(__le32_to_cpu(rx_desc->msdu_end.qca99x0.info1), in ath10k_qca99x0_rx_desc_get_l3_pad_bytes()
151 struct htt_rx_desc_v1 *rx_desc = container_of(rxd, in ath10k_qca99x0_rx_desc_msdu_limit_error() local
155 return !!(rx_desc->msdu_end.common.info0 & in ath10k_qca99x0_rx_desc_msdu_limit_error()
192 struct htt_rx_desc_v2 *rx_desc = container_of(rxd, struct htt_rx_desc_v2, base); in ath10k_rx_desc_wcn3990_get_attention() local
194 return &rx_desc->attention; in ath10k_rx_desc_wcn3990_get_attention()
200 struct htt_rx_desc_v2 *rx_desc = container_of(rxd, struct htt_rx_desc_v2, base); in ath10k_rx_desc_wcn3990_get_frag_info() local
202 return &rx_desc->frag_info.common; in ath10k_rx_desc_wcn3990_get_frag_info()
208 struct htt_rx_desc_v2 *rx_desc = container_of(rxd, struct htt_rx_desc_v2, base); in ath10k_rx_desc_wcn3990_get_mpdu_start() local
210 return &rx_desc->mpdu_start; in ath10k_rx_desc_wcn3990_get_mpdu_start()
[all …]
H A Dhtt.h23 #include "rx_desc.h"
2094 * so all possible rx_desc structures must respect this assumption.
2161 /* rx_desc abstraction */
2165 /* sizeof() of the rx_desc structure used by this hw */
2168 /* offset of msdu_payload inside the rx_desc structure used by this hw */
2179 * to the proper rx_desc structure
2216 /* The default implementation of all these getters is using the old rx_desc,
2219 * to switch the default implementation to the new rx_desc, since this would
2255 struct htt_rx_desc_v1 *rx_desc; in ath10k_htt_rx_desc_get_attention() local
2260 rx_desc = container_of(rxd, struct htt_rx_desc_v1, base); in ath10k_htt_rx_desc_get_attention()
[all …]
H A Dhtt_rx.c135 struct htt_rx_desc *rx_desc; in __ath10k_htt_rx_ring_fill_n() local
169 /* Clear rx_desc attention word before posting to Rx ring */ in __ath10k_htt_rx_ring_fill_n()
170 rx_desc = HTT_RX_BUF_TO_RX_DESC(hw, skb->data); in __ath10k_htt_rx_ring_fill_n()
171 ath10k_htt_rx_desc_get_attention(hw, rx_desc)->flags = __cpu_to_le32(0); in __ath10k_htt_rx_ring_fill_n()
357 struct htt_rx_desc *rx_desc; in ath10k_htt_rx_amsdu_pop() local
376 rx_desc = HTT_RX_BUF_TO_RX_DESC(hw, msdu->data); in ath10k_htt_rx_amsdu_pop()
377 rx_desc_attention = ath10k_htt_rx_desc_get_attention(hw, rx_desc); in ath10k_htt_rx_amsdu_pop()
379 rx_desc); in ath10k_htt_rx_amsdu_pop()
380 rx_desc_msdu_end_common = ath10k_htt_rx_desc_get_msdu_end(hw, rx_desc); in ath10k_htt_rx_amsdu_pop()
381 rx_desc_frag_info_common = ath10k_htt_rx_desc_get_frag_info(hw, rx_desc); in ath10k_htt_rx_amsdu_pop()
[all …]
/freebsd/sys/dev/rtwn/pci/
H A Drtwn_pci_rx.c87 struct rtwn_rx_stat_pci *rx_desc = &ring->desc[ring->cur]; in rtwn_pci_rx_frame() local
99 __func__, le32toh(rx_desc->rxdw0), le32toh(rx_desc->rxdw1), in rtwn_pci_rx_frame()
100 le32toh(rx_desc->rxdw2), le32toh(rx_desc->rxdw3), in rtwn_pci_rx_frame()
101 le32toh(rx_desc->rxdw4), le32toh(rx_desc->tsf_low), in rtwn_pci_rx_frame()
102 le32toh(rx_desc->rxbufaddr), le32toh(rx_desc->rxbufaddr64)); in rtwn_pci_rx_frame()
104 rxdw0 = le32toh(rx_desc->rxdw0); in rtwn_pci_rx_frame()
156 ni = rtwn_rx_common(sc, m, rx_desc); in rtwn_pci_rx_frame()
183 struct rtwn_rx_stat_pci *rx_desc = &ring->desc[ring->cur]; in rtwn_pci_rx_buf_copy() local
196 memcpy(pc->pc_rx_buf, rx_desc, desc_size); in rtwn_pci_rx_buf_copy()
198 rxdw0 = le32toh(rx_desc->rxdw0); in rtwn_pci_rx_buf_copy()
[all …]
/freebsd/sys/dev/iser/
H A Diser_initiator.c202 struct iser_rx_desc *rx_desc; in iser_alloc_rx_descriptors() local
221 rx_desc = iser_conn->rx_descs; in iser_alloc_rx_descriptors()
223 for (i = 0; i < iser_conn->qp_max_recv_dtos; i++, rx_desc++) { in iser_alloc_rx_descriptors()
224 dma_addr = ib_dma_map_single(device->ib_device, (void *)rx_desc, in iser_alloc_rx_descriptors()
229 rx_desc->dma_addr = dma_addr; in iser_alloc_rx_descriptors()
231 rx_sg = &rx_desc->rx_sg; in iser_alloc_rx_descriptors()
232 rx_sg->addr = rx_desc->dma_addr; in iser_alloc_rx_descriptors()
242 rx_desc = iser_conn->rx_descs; in iser_alloc_rx_descriptors()
243 for (j = 0; j < i; j++, rx_desc++) in iser_alloc_rx_descriptors()
244 ib_dma_unmap_single(device->ib_device, rx_desc->dma_addr, in iser_alloc_rx_descriptors()
[all …]
H A Diser_verbs.c119 struct iser_rx_desc *rx_desc; in iser_handle_wc() local
124 rx_desc = (struct iser_rx_desc *)(uintptr_t)wc->wr_id; in iser_handle_wc()
125 iser_rcv_completion(rx_desc, wc->byte_len, in iser_handle_wc()
884 struct iser_rx_desc *rx_desc; in iser_post_recvm() local
887 rx_desc = &iser_conn->rx_descs[my_rx_head]; in iser_post_recvm()
888 rx_wr->wr_id = (uintptr_t)rx_desc; in iser_post_recvm()
889 rx_wr->sg_list = &rx_desc->rx_sg; in iser_post_recvm()
/freebsd/sys/contrib/dev/athk/ath12k/
H A Ddp_rx.c274 struct ath12k_rx_desc_info *rx_desc; in ath12k_dp_rx_bufs_replenish() local
319 rx_desc = list_first_entry_or_null(&dp->rx_desc_free_list, in ath12k_dp_rx_bufs_replenish()
322 if (!rx_desc) { in ath12k_dp_rx_bufs_replenish()
327 rx_desc->skb = skb; in ath12k_dp_rx_bufs_replenish()
328 cookie = rx_desc->cookie; in ath12k_dp_rx_bufs_replenish()
329 list_del(&rx_desc->list); in ath12k_dp_rx_bufs_replenish()
330 list_add_tail(&rx_desc->list, &dp->rx_desc_used_list); in ath12k_dp_rx_bufs_replenish()
366 list_del(&rx_desc->list); in ath12k_dp_rx_bufs_replenish()
367 list_add_tail(&rx_desc->list, &dp->rx_desc_free_list); in ath12k_dp_rx_bufs_replenish()
368 rx_desc->skb = NULL; in ath12k_dp_rx_bufs_replenish()
[all …]
H A Ddp_rx.h10 #include "rx_desc.h"
137 void ath12k_dp_rx_h_ppdu(struct ath12k *ar, struct hal_rx_desc *rx_desc,
/freebsd/sys/dev/mlx4/mlx4_en/
H A Dmlx4_en_rx.c52 struct mlx4_en_rx_desc *rx_desc = in mlx4_en_init_rx_desc() local
57 rx_desc->data[0].byte_count = cpu_to_be32(priv->rx_mb_size - MLX4_NET_IP_ALIGN); in mlx4_en_init_rx_desc()
58 rx_desc->data[0].lkey = cpu_to_be32(priv->mdev->mr.key); in mlx4_en_init_rx_desc()
66 rx_desc->data[i].byte_count = 0; in mlx4_en_init_rx_desc()
67 rx_desc->data[i].lkey = cpu_to_be32(MLX4_EN_MEMTYPE_PAD); in mlx4_en_init_rx_desc()
68 rx_desc->data[i].addr = 0; in mlx4_en_init_rx_desc()
110 mlx4_en_alloc_buf(struct mlx4_en_rx_ring *ring, struct mlx4_en_rx_desc *rx_desc, in mlx4_en_alloc_buf() argument
175 rx_desc->data[0].addr = cpu_to_be64(segs[0].ds_addr); in mlx4_en_alloc_buf()
178 rx_desc->data[i].byte_count = cpu_to_be32(segs[i].ds_len); in mlx4_en_alloc_buf()
179 rx_desc->data[i].lkey = ring->rx_mr_key_be; in mlx4_en_alloc_buf()
[all …]
/freebsd/sys/contrib/dev/athk/ath11k/
H A Ddp_rx.c254 struct hal_rx_desc *rx_desc) in ath11k_dp_rxdesc_get_80211hdr() argument
258 rx_pkt_hdr = ab->hw_params.hw_ops->rx_desc_get_msdu_payload(rx_desc); in ath11k_dp_rxdesc_get_80211hdr()
264 struct hal_rx_desc *rx_desc) in ath11k_dp_rxdesc_mpdu_valid() argument
268 tlv_tag = ab->hw_params.hw_ops->rx_desc_get_mpdu_start_tag(rx_desc); in ath11k_dp_rxdesc_mpdu_valid()
274 struct hal_rx_desc *rx_desc) in ath11k_dp_rxdesc_get_ppduid() argument
276 return ab->hw_params.hw_ops->rx_desc_get_mpdu_ppdu_id(rx_desc); in ath11k_dp_rxdesc_get_ppduid()
1823 ath11k_dp_rx_desc_end_tlv_copy(ab, rxcb->rx_desc, ldesc); in ath11k_dp_rx_msdu_coalesce()
1892 rx_attention = ath11k_dp_rx_get_attention(ar->ab, rxcb->rx_desc); in ath11k_dp_rx_h_csum_offload()
2025 if (ath11k_dp_rx_h_msdu_start_mesh_ctl_present(ar->ab, rxcb->rx_desc)) in ath11k_dp_rx_h_undecap_nwifi()
2142 hdr = (struct ieee80211_hdr *)ath11k_dp_rx_h_80211_hdr(ar->ab, rxcb->rx_desc); in ath11k_dp_rx_h_find_rfc1042()
[all …]
H A Dhal_rx.h491 int ath11k_hal_desc_reo_parse_err(struct ath11k_base *ab, u32 *rx_desc,
497 void ath11k_hal_rx_reo_ent_buf_paddr_get(void *rx_desc,
502 ath11k_hal_rx_sw_mon_ring_buf_paddr_get(void *rx_desc,
H A Dhal_rx.c319 int ath11k_hal_desc_reo_parse_err(struct ath11k_base *ab, u32 *rx_desc, in ath11k_hal_desc_reo_parse_err() argument
322 struct hal_reo_dest_ring *desc = (struct hal_reo_dest_ring *)rx_desc; in ath11k_hal_desc_reo_parse_err()
345 ath11k_hal_rx_reo_ent_paddr_get(ab, rx_desc, paddr, desc_bank); in ath11k_hal_desc_reo_parse_err()
1539 void ath11k_hal_rx_reo_ent_buf_paddr_get(void *rx_desc, dma_addr_t *paddr, in ath11k_hal_rx_reo_ent_buf_paddr_get() argument
1544 (struct hal_reo_entrance_ring *)rx_desc; in ath11k_hal_rx_reo_ent_buf_paddr_get()
1570 ath11k_hal_rx_sw_mon_ring_buf_paddr_get(void *rx_desc, in ath11k_hal_rx_sw_mon_ring_buf_paddr_get() argument
1573 struct hal_sw_monitor_ring *sw_mon_ring = rx_desc; in ath11k_hal_rx_sw_mon_ring_buf_paddr_get()
H A Ddp_rx.h9 #include "rx_desc.h"
/freebsd/sys/dev/sfxge/
H A Dsfxge_rx.c257 struct sfxge_rx_sw_desc *rx_desc; in sfxge_rx_qfill() local
262 rx_desc = &rxq->queue[id]; in sfxge_rx_qfill()
263 KASSERT(rx_desc->mbuf == NULL, ("rx_desc->mbuf != NULL")); in sfxge_rx_qfill()
265 rx_desc->flags = EFX_DISCARD; in sfxge_rx_qfill()
266 m = rx_desc->mbuf = m_getjcl(M_NOWAIT, MT_DATA, M_PKTHDR, in sfxge_rx_qfill()
333 sfxge_rx_deliver(struct sfxge_rxq *rxq, struct sfxge_rx_sw_desc *rx_desc) in sfxge_rx_deliver() argument
336 struct mbuf *m = rx_desc->mbuf; in sfxge_rx_deliver()
337 int flags = rx_desc->flags; in sfxge_rx_deliver()
360 m->m_len = rx_desc->size - sc->rx_prefix_size; in sfxge_rx_deliver()
363 __sfxge_rx_deliver(sc, rx_desc->mbuf); in sfxge_rx_deliver()
[all …]
H A Dsfxge_ev.c110 struct sfxge_rx_sw_desc *rx_desc; in sfxge_ev_rx() local
143 rx_desc = &rxq->queue[id]; in sfxge_ev_rx()
145 prefetch_read_many(rx_desc->mbuf); in sfxge_ev_rx()
148 rx_desc = &rxq->queue[id]; in sfxge_ev_rx()
149 KASSERT(rx_desc->flags == EFX_DISCARD, in sfxge_ev_rx()
150 ("rx_desc->flags != EFX_DISCARD")); in sfxge_ev_rx()
151 rx_desc->flags = flags; in sfxge_ev_rx()
154 rx_desc->size = (uint16_t)size; in sfxge_ev_rx()
/freebsd/sys/dev/alc/
H A Dif_alcvar.h36 #define ALC_RX_RING_ALIGN sizeof(struct rx_desc)
65 (sizeof(struct rx_desc) * ALC_RX_RING_CNT)
87 struct rx_desc *rx_desc; member
98 struct rx_desc *alc_rx_ring;
/freebsd/sys/dev/age/
H A Dif_agevar.h80 struct rx_desc *rx_desc; member
117 struct rx_desc *age_rx_ring;
130 (sizeof(struct rx_desc) * AGE_RX_RING_CNT)
/freebsd/sys/contrib/device-tree/Bindings/net/
H A Daltr,tse.yaml104 - const: rx_desc
123 reg-names = "control_port", "rx_csr", "rx_desc", "rx_resp", "tx_csr", "tx_desc", "pcs";
146 reg-names = "control_port", "rx_csr", "rx_desc", "rx_resp", "tx_csr", "tx_desc";
H A Daltera_tse.txt15 "rx_desc": MSGDMA Rx dispatcher descriptor space region
62 reg-names = "control_port", "rx_csr", "rx_desc", "rx_resp", "tx_csr", "tx_desc";
100 reg-names = "control_port", "rx_csr", "rx_desc", "rx_resp", "tx_csr", "tx_desc";
/freebsd/sys/dev/tsec/
H A Dif_tsec.c370 struct tsec_desc *rx_desc = sc->tsec_rx_vaddr; in tsec_init_locked() local
504 rx_desc[i].bufptr = sc->rx_data[i].paddr; in tsec_init_locked()
505 rx_desc[i].length = 0; in tsec_init_locked()
506 rx_desc[i].flags = TSEC_RXBD_E | TSEC_RXBD_I | in tsec_init_locked()
1277 struct tsec_desc *rx_desc; in tsec_receive_intr_locked() local
1298 rx_desc = TSEC_GET_CUR_RX_DESC(sc); in tsec_receive_intr_locked()
1299 flags = rx_desc->flags; in tsec_receive_intr_locked()
1319 rx_desc->length = 0; in tsec_receive_intr_locked()
1320 rx_desc->flags = (rx_desc->flags & in tsec_receive_intr_locked()
1334 m->m_len = rx_desc->length; in tsec_receive_intr_locked()
[all …]
/freebsd/sys/contrib/dev/rtw88/
H A Drtw8821c.c682 static void rtw8821c_query_rx_desc(struct rtw_dev *rtwdev, u8 *rx_desc, in rtw8821c_set_tx_power_index()
692 pkt_stat->phy_status = GET_RX_DESC_PHYST(rx_desc); in rtw8821c_set_tx_power_index()
693 pkt_stat->icv_err = GET_RX_DESC_ICV_ERR(rx_desc);
694 pkt_stat->crc_err = GET_RX_DESC_CRC32(rx_desc); in rtw8821c_false_alarm_statistics()
695 pkt_stat->decrypted = !GET_RX_DESC_SWDEC(rx_desc) && in rtw8821c_false_alarm_statistics()
696 GET_RX_DESC_ENC_TYPE(rx_desc) != RX_DESC_ENC_NONE; in rtw8821c_false_alarm_statistics()
697 pkt_stat->is_c2h = GET_RX_DESC_C2H(rx_desc); in rtw8821c_false_alarm_statistics()
698 pkt_stat->pkt_len = GET_RX_DESC_PKT_LEN(rx_desc); in rtw8821c_false_alarm_statistics()
699 pkt_stat->drv_info_sz = GET_RX_DESC_DRV_INFO_SIZE(rx_desc); in rtw8821c_false_alarm_statistics()
700 pkt_stat->shift = GET_RX_DESC_SHIFT(rx_desc); in rtw8821c_false_alarm_statistics()
615 rtw8821c_query_rx_desc(struct rtw_dev * rtwdev,u8 * rx_desc,struct rtw_rx_pkt_stat * pkt_stat,struct ieee80211_rx_status * rx_status) rtw8821c_query_rx_desc() argument
[all...]
H A Drtw8822b.c936 static void rtw8822b_query_rx_desc(struct rtw_dev *rtwdev, u8 *rx_desc, in rtw8822b_query_rx_desc() argument
946 pkt_stat->phy_status = GET_RX_DESC_PHYST(rx_desc); in rtw8822b_query_rx_desc()
947 pkt_stat->icv_err = GET_RX_DESC_ICV_ERR(rx_desc); in rtw8822b_query_rx_desc()
948 pkt_stat->crc_err = GET_RX_DESC_CRC32(rx_desc); in rtw8822b_query_rx_desc()
949 pkt_stat->decrypted = !GET_RX_DESC_SWDEC(rx_desc) && in rtw8822b_query_rx_desc()
950 GET_RX_DESC_ENC_TYPE(rx_desc) != RX_DESC_ENC_NONE; in rtw8822b_query_rx_desc()
951 pkt_stat->is_c2h = GET_RX_DESC_C2H(rx_desc); in rtw8822b_query_rx_desc()
952 pkt_stat->pkt_len = GET_RX_DESC_PKT_LEN(rx_desc); in rtw8822b_query_rx_desc()
953 pkt_stat->drv_info_sz = GET_RX_DESC_DRV_INFO_SIZE(rx_desc); in rtw8822b_query_rx_desc()
954 pkt_stat->shift = GET_RX_DESC_SHIFT(rx_desc); in rtw8822b_query_rx_desc()
[all...]
H A Drtw8723d.c230 static void rtw8723d_query_rx_desc(struct rtw_dev *rtwdev, u8 *rx_desc, in rtw8723d_read_efuse()
240 pkt_stat->phy_status = GET_RX_DESC_PHYST(rx_desc); in rtw8723d_read_efuse()
241 pkt_stat->icv_err = GET_RX_DESC_ICV_ERR(rx_desc); in rtw8723d_read_efuse()
242 pkt_stat->crc_err = GET_RX_DESC_CRC32(rx_desc); in rtw8723d_read_efuse()
243 pkt_stat->decrypted = !GET_RX_DESC_SWDEC(rx_desc) && in rtw8723d_read_efuse()
244 GET_RX_DESC_ENC_TYPE(rx_desc) != RX_DESC_ENC_NONE; in rtw8723d_read_efuse()
245 pkt_stat->is_c2h = GET_RX_DESC_C2H(rx_desc); in rtw8723d_read_efuse()
246 pkt_stat->pkt_len = GET_RX_DESC_PKT_LEN(rx_desc); in rtw8723d_read_efuse()
247 pkt_stat->drv_info_sz = GET_RX_DESC_DRV_INFO_SIZE(rx_desc); in rtw8723d_read_efuse()
248 pkt_stat->shift = GET_RX_DESC_SHIFT(rx_desc); in rtw8723d_read_efuse()
342 rtw8723d_query_rx_desc(struct rtw_dev * rtwdev,u8 * rx_desc,struct rtw_rx_pkt_stat * pkt_stat,struct ieee80211_rx_status * rx_status) rtw8723d_query_rx_desc() argument
[all...]
/freebsd/sys/dev/vte/
H A Dif_vte.c1458 rxd->rx_desc->drbp = htole32(segs[0].ds_addr); in vte_newbuf()
1459 rxd->rx_desc->drlen = htole16(VTE_RX_LEN(segs[0].ds_len)); in vte_newbuf()
1460 rxd->rx_desc->drst = htole16(VTE_DRST_RX_OWN); in vte_newbuf()
1503 status = le16toh(rxd->rx_desc->drst); in vte_rxeof()
1506 total_len = VTE_RX_LEN(le16toh(rxd->rx_desc->drlen)); in vte_rxeof()
1510 rxd->rx_desc->drlen = in vte_rxeof()
1512 rxd->rx_desc->drst = htole16(VTE_DRST_RX_OWN); in vte_rxeof()
1517 rxd->rx_desc->drlen = in vte_rxeof()
1519 rxd->rx_desc->drst = htole16(VTE_DRST_RX_OWN); in vte_rxeof()
1945 rxd->rx_desc = desc; in vte_init_rx_ring()
H A Dif_vtevar.h60 struct vte_rx_desc *rx_desc; member

123