/linux/drivers/net/ethernet/sunplus/ |
H A D | spl2sw_desc.c | 16 struct spl2sw_mac_desc *rx_desc; in spl2sw_rx_descs_flush() local 20 rx_desc = comm->rx_desc[i]; in spl2sw_rx_descs_flush() 23 rx_desc[j].addr1 = rx_skbinfo[j].mapping; in spl2sw_rx_descs_flush() 24 rx_desc[j].cmd2 = (j == comm->rx_desc_num[i] - 1) ? in spl2sw_rx_descs_flush() 28 rx_desc[j].cmd1 = RXD_OWN; in spl2sw_rx_descs_flush() 63 struct spl2sw_mac_desc *rx_desc; in spl2sw_rx_descs_clean() local 70 rx_desc = comm->rx_desc[i]; in spl2sw_rx_descs_clean() 73 rx_desc[j].cmd1 = 0; in spl2sw_rx_descs_clean() 75 rx_desc[j].cmd2 = 0; in spl2sw_rx_descs_clean() 76 rx_desc[j].addr1 = 0; in spl2sw_rx_descs_clean() [all …]
|
/linux/drivers/net/wireless/ath/ath10k/ |
H A D | htt.c | 142 struct htt_rx_desc_v1 *rx_desc = container_of(rxd, in ath10k_qca99x0_rx_desc_get_l3_pad_bytes() local 146 return MS(__le32_to_cpu(rx_desc->msdu_end.qca99x0.info1), in ath10k_qca99x0_rx_desc_get_l3_pad_bytes() 152 struct htt_rx_desc_v1 *rx_desc = container_of(rxd, in ath10k_qca99x0_rx_desc_msdu_limit_error() local 156 return !!(rx_desc->msdu_end.common.info0 & in ath10k_qca99x0_rx_desc_msdu_limit_error() 193 struct htt_rx_desc_v2 *rx_desc = container_of(rxd, struct htt_rx_desc_v2, base); in ath10k_rx_desc_wcn3990_get_attention() local 195 return &rx_desc->attention; in ath10k_rx_desc_wcn3990_get_attention() 201 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 203 return &rx_desc->frag_info.common; in ath10k_rx_desc_wcn3990_get_frag_info() 209 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 211 return &rx_desc->mpdu_start; in ath10k_rx_desc_wcn3990_get_mpdu_start() [all …]
|
H A D | htt.h | 21 #include "rx_desc.h" 2079 * so all possible rx_desc structures must respect this assumption. 2146 /* rx_desc abstraction */ 2150 /* sizeof() of the rx_desc structure used by this hw */ 2153 /* offset of msdu_payload inside the rx_desc structure used by this hw */ 2164 * to the proper rx_desc structure 2201 /* The default implementation of all these getters is using the old rx_desc, 2204 * to switch the default implementation to the new rx_desc, since this would 2240 struct htt_rx_desc_v1 *rx_desc; in ath10k_htt_rx_desc_get_attention() local 2245 rx_desc = container_of(rxd, struct htt_rx_desc_v1, base); in ath10k_htt_rx_desc_get_attention() [all …]
|
/linux/drivers/net/ethernet/intel/idpf/ |
H A D | idpf_singleq_txrx.c | 559 * @rx_desc: pointer to receive descriptor (in le64 format) 567 static bool idpf_rx_singleq_test_staterr(const union virtchnl2_rx_desc *rx_desc, in idpf_rx_singleq_test_staterr() argument 570 return !!(rx_desc->base_wb.qword1.status_error_ptype_len & in idpf_rx_singleq_test_staterr() 576 * @rx_desc: Rx descriptor for current buffer 578 static bool idpf_rx_singleq_is_non_eop(const union virtchnl2_rx_desc *rx_desc) in idpf_rx_singleq_is_non_eop() argument 581 if (likely(idpf_rx_singleq_test_staterr(rx_desc, IDPF_RXD_EOF_SINGLEQ))) in idpf_rx_singleq_is_non_eop() 657 * @rx_desc: the receive descriptor 665 idpf_rx_singleq_base_csum(const union virtchnl2_rx_desc *rx_desc) in idpf_rx_singleq_base_csum() argument 671 qword = le64_to_cpu(rx_desc->base_wb.qword1.status_error_ptype_len); in idpf_rx_singleq_base_csum() 692 * @rx_desc: the receive descriptor [all …]
|
/linux/drivers/net/ethernet/intel/ice/ |
H A D | ice_txrx_lib.c | 44 * @rx_desc: specific descriptor 48 static u32 ice_get_rx_hash(const union ice_32b_rx_flex_desc *rx_desc) in ice_get_rx_hash() argument 52 if (unlikely(rx_desc->wb.rxdid != ICE_RXDID_FLEX_NIC)) in ice_get_rx_hash() 55 nic_mdid = (struct ice_32b_rx_flex_desc_nic *)rx_desc; in ice_get_rx_hash() 62 * @rx_desc: specific descriptor 68 const union ice_32b_rx_flex_desc *rx_desc, in ice_rx_hash_to_skb() argument 78 hash = ice_get_rx_hash(rx_desc); in ice_rx_hash_to_skb() 87 * @rx_desc: the receive descriptor 94 union ice_32b_rx_flex_desc *rx_desc, u16 ptype) in ice_rx_csum() argument 107 rx_status0 = le16_to_cpu(rx_desc->wb.status_error0); in ice_rx_csum() [all …]
|
H A D | ice_txrx_lib.h | 70 * @rx_desc: Rx descriptor for current buffer 77 const union ice_32b_rx_flex_desc *rx_desc) in ice_is_non_eop() argument 81 if (likely(ice_test_staterr(rx_desc->wb.status_error0, ICE_RXD_EOF))) in ice_is_non_eop() 101 * @rx_desc: Rx 32b flex descriptor with RXDID=2 108 ice_get_vlan_tci(const union ice_32b_rx_flex_desc *rx_desc) in ice_get_vlan_tci() argument 113 if (ice_test_staterr(rx_desc->wb.status_error0, stat_err_bits)) in ice_get_vlan_tci() 114 return le16_to_cpu(rx_desc->wb.l2tag1); in ice_get_vlan_tci() 117 if (ice_test_staterr(rx_desc->wb.status_error1, stat_err_bits)) in ice_get_vlan_tci() 118 return le16_to_cpu(rx_desc->wb.l2tag2_2nd); in ice_get_vlan_tci() 163 union ice_32b_rx_flex_desc *rx_desc,
|
H A D | ice_xsk.c | 427 * @rx_desc: Pointer to Rx descriptors that will be filled 438 union ice_32b_rx_flex_desc *rx_desc, u16 count) in ice_fill_rx_descs() argument 447 rx_desc->read.pkt_addr = cpu_to_le64(dma); in ice_fill_rx_descs() 448 rx_desc->wb.status_error0 = 0; in ice_fill_rx_descs() 453 ice_xdp_meta_set_desc(*xdp, rx_desc); in ice_fill_rx_descs() 455 rx_desc++; in ice_fill_rx_descs() 478 union ice_32b_rx_flex_desc *rx_desc; in __ice_alloc_rx_bufs_zc() local 483 rx_desc = ICE_RX_DESC(rx_ring, ntu); in __ice_alloc_rx_bufs_zc() 487 nb_buffs_extra = ice_fill_rx_descs(xsk_pool, xdp, rx_desc, in __ice_alloc_rx_bufs_zc() 493 rx_desc = ICE_RX_DESC(rx_ring, 0); in __ice_alloc_rx_bufs_zc() [all …]
|
H A D | ice_virtchnl_fdir.h | 21 union ice_32b_rx_flex_desc rx_desc; member 50 union ice_32b_rx_flex_desc *rx_desc); 54 ice_vc_fdir_irq_handler(struct ice_vsi *ctrl_vsi, union ice_32b_rx_flex_desc *rx_desc) { } in ice_vc_fdir_irq_handler() argument
|
/linux/drivers/net/ethernet/intel/fm10k/ |
H A D | fm10k_main.c | 118 union fm10k_rx_desc *rx_desc; in fm10k_alloc_rx_buffers() local 126 rx_desc = FM10K_RX_DESC(rx_ring, i); in fm10k_alloc_rx_buffers() 137 rx_desc->q.pkt_addr = cpu_to_le64(bi->dma + bi->page_offset); in fm10k_alloc_rx_buffers() 139 rx_desc++; in fm10k_alloc_rx_buffers() 143 rx_desc = FM10K_RX_DESC(rx_ring, 0); in fm10k_alloc_rx_buffers() 149 rx_desc->d.staterr = 0; in fm10k_alloc_rx_buffers() 238 * @size: packet size from rx_desc 239 * @rx_desc: descriptor containing length of buffer written by hardware 252 union fm10k_rx_desc *rx_desc, in fm10k_add_rx_frag() argument 299 union fm10k_rx_desc *rx_desc, in fm10k_fetch_rx_buffer() argument [all …]
|
/linux/drivers/infiniband/ulp/isert/ |
H A D | ib_isert.c | 150 struct iser_rx_desc *rx_desc; in isert_alloc_rx_descriptors() local 161 rx_desc = isert_conn->rx_descs; in isert_alloc_rx_descriptors() 163 for (i = 0; i < ISERT_QP_MAX_RECV_DTOS; i++, rx_desc++) { in isert_alloc_rx_descriptors() 164 dma_addr = ib_dma_map_single(ib_dev, rx_desc->buf, in isert_alloc_rx_descriptors() 169 rx_desc->dma_addr = dma_addr; in isert_alloc_rx_descriptors() 171 rx_sg = &rx_desc->rx_sg; in isert_alloc_rx_descriptors() 172 rx_sg->addr = rx_desc->dma_addr + isert_get_hdr_offset(rx_desc); in isert_alloc_rx_descriptors() 175 rx_desc->rx_cqe.done = isert_recv_done; in isert_alloc_rx_descriptors() 181 rx_desc = isert_conn->rx_descs; in isert_alloc_rx_descriptors() 182 for (j = 0; j < i; j++, rx_desc++) { in isert_alloc_rx_descriptors() [all …]
|
/linux/drivers/net/wireless/ath/ath12k/ |
H A D | dp_rx.c | 256 struct ath12k_rx_desc_info *rx_desc; in ath12k_dp_list_cut_nodes() local 268 rx_desc = list_entry(cur, struct ath12k_rx_desc_info, list); in ath12k_dp_list_cut_nodes() 269 rx_desc->in_use = true; in ath12k_dp_list_cut_nodes() 283 struct ath12k_rx_desc_info *rx_desc, *safe; in ath12k_dp_rx_enqueue_free() local 286 list_for_each_entry_safe(rx_desc, safe, used_list, list) in ath12k_dp_rx_enqueue_free() 287 rx_desc->in_use = false; in ath12k_dp_rx_enqueue_free() 308 struct ath12k_rx_desc_info *rx_desc; in ath12k_dp_rx_bufs_replenish() local 358 rx_desc = list_first_entry_or_null(used_list, in ath12k_dp_rx_bufs_replenish() 361 if (!rx_desc) in ath12k_dp_rx_bufs_replenish() 364 rx_desc->skb = skb; in ath12k_dp_rx_bufs_replenish() [all …]
|
/linux/drivers/net/ethernet/seeq/ |
H A D | sgiseeq.c | 59 (unsigned long)((sp)->rx_desc))) 95 struct sgiseeq_rx_desc *rx_desc; member 202 if (!sp->rx_desc[i].skb) { in seeq_init_ring() 212 sp->rx_desc[i].skb = skb; in seeq_init_ring() 213 sp->rx_desc[i].rdma.pbuf = dma_addr; in seeq_init_ring() 215 sp->rx_desc[i].rdma.cntinfo = RCNTINFO_INIT; in seeq_init_ring() 216 dma_sync_desc_dev(dev, &sp->rx_desc[i]); in seeq_init_ring() 218 sp->rx_desc[i - 1].rdma.cntinfo |= HPCDMA_EOR; in seeq_init_ring() 219 dma_sync_desc_dev(dev, &sp->rx_desc[i - 1]); in seeq_init_ring() 238 if (sp->rx_desc[i].skb) { in seeq_purge_ring() [all …]
|
/linux/drivers/spi/ |
H A D | spi-pxa2xx-dma.c | 139 struct dma_async_tx_descriptor *tx_desc, *rx_desc; in pxa2xx_spi_dma_prepare() local 149 rx_desc = pxa2xx_spi_dma_prepare_one(drv_data, DMA_DEV_TO_MEM, xfer); in pxa2xx_spi_dma_prepare() 150 if (!rx_desc) { in pxa2xx_spi_dma_prepare() 157 rx_desc->callback = pxa2xx_spi_dma_callback; in pxa2xx_spi_dma_prepare() 158 rx_desc->callback_param = drv_data; in pxa2xx_spi_dma_prepare() 160 dmaengine_submit(rx_desc); in pxa2xx_spi_dma_prepare()
|
/linux/drivers/net/wireless/ath/ath11k/ |
H A D | dp_rx.c | 255 struct hal_rx_desc *rx_desc) in ath11k_dp_rxdesc_get_80211hdr() argument 259 rx_pkt_hdr = ab->hw_params.hw_ops->rx_desc_get_msdu_payload(rx_desc); in ath11k_dp_rxdesc_get_80211hdr() 265 struct hal_rx_desc *rx_desc) in ath11k_dp_rxdesc_mpdu_valid() argument 269 tlv_tag = ab->hw_params.hw_ops->rx_desc_get_mpdu_start_tag(rx_desc); in ath11k_dp_rxdesc_mpdu_valid() 275 struct hal_rx_desc *rx_desc) in ath11k_dp_rxdesc_get_ppduid() argument 277 return ab->hw_params.hw_ops->rx_desc_get_mpdu_ppdu_id(rx_desc); in ath11k_dp_rxdesc_get_ppduid() 1803 ath11k_dp_rx_desc_end_tlv_copy(ab, rxcb->rx_desc, ldesc); in ath11k_dp_rx_msdu_coalesce() 1872 rx_attention = ath11k_dp_rx_get_attention(ar->ab, rxcb->rx_desc); in ath11k_dp_rx_h_csum_offload() 2004 if (ath11k_dp_rx_h_msdu_start_mesh_ctl_present(ar->ab, rxcb->rx_desc)) in ath11k_dp_rx_h_undecap_nwifi() 2108 hdr = (struct ieee80211_hdr *)ath11k_dp_rx_h_80211_hdr(ar->ab, rxcb->rx_desc); in ath11k_dp_rx_h_find_rfc1042() [all …]
|
/linux/drivers/infiniband/ulp/iser/ |
H A D | iser_initiator.c | 228 struct iser_rx_desc *rx_desc; in iser_alloc_rx_descriptors() local 249 rx_desc = iser_conn->rx_descs; in iser_alloc_rx_descriptors() 251 for (i = 0; i < iser_conn->qp_max_recv_dtos; i++, rx_desc++) { in iser_alloc_rx_descriptors() 252 dma_addr = ib_dma_map_single(device->ib_device, (void *)rx_desc, in iser_alloc_rx_descriptors() 257 rx_desc->dma_addr = dma_addr; in iser_alloc_rx_descriptors() 258 rx_desc->cqe.done = iser_task_rsp; in iser_alloc_rx_descriptors() 259 rx_sg = &rx_desc->rx_sg; in iser_alloc_rx_descriptors() 260 rx_sg->addr = rx_desc->dma_addr; in iser_alloc_rx_descriptors() 268 rx_desc = iser_conn->rx_descs; in iser_alloc_rx_descriptors() 269 for (j = 0; j < i; j++, rx_desc++) in iser_alloc_rx_descriptors() [all …]
|
/linux/drivers/net/ethernet/wangxun/libwx/ |
H A D | wx_lib.c | 158 static __le32 wx_test_staterr(union wx_rx_desc *rx_desc, in wx_test_staterr() argument 161 return rx_desc->wb.upper.status_error & cpu_to_le32(stat_err_bits); in wx_test_staterr() 182 union wx_rx_desc *rx_desc, in wx_get_rx_buffer() argument 190 size = le16_to_cpu(rx_desc->wb.upper.length); in wx_get_rx_buffer() 205 if (!wx_test_staterr(rx_desc, WX_RXD_STAT_EOP)) { in wx_get_rx_buffer() 239 union wx_rx_desc *rx_desc) in wx_build_skb() argument 241 unsigned int size = le16_to_cpu(rx_desc->wb.upper.length); in wx_build_skb() 276 if (!wx_test_staterr(rx_desc, WX_RXD_STAT_EOP)) in wx_build_skb() 330 union wx_rx_desc *rx_desc; in wx_alloc_rx_buffers() local 337 rx_desc = WX_RX_DESC(rx_ring, i); in wx_alloc_rx_buffers() [all …]
|
/linux/drivers/net/ethernet/intel/iavf/ |
H A D | iavf_txrx.c | 848 union iavf_rx_desc *rx_desc; in iavf_alloc_rx_buffers() local 854 rx_desc = IAVF_RX_DESC(rx_ring, ntu); in iavf_alloc_rx_buffers() 866 rx_desc->read.pkt_addr = cpu_to_le64(addr); in iavf_alloc_rx_buffers() 868 rx_desc++; in iavf_alloc_rx_buffers() 871 rx_desc = IAVF_RX_DESC(rx_ring, 0); in iavf_alloc_rx_buffers() 876 rx_desc->wb.qword1.status_error_len = 0; in iavf_alloc_rx_buffers() 902 * @rx_desc: the receive descriptor 906 union iavf_rx_desc *rx_desc) in iavf_rx_checksum() argument 916 qword = le64_to_cpu(rx_desc->wb.qword1.status_error_len); in iavf_rx_checksum() 965 * @rx_desc: specific descriptor [all …]
|
/linux/drivers/net/ethernet/alteon/ |
H A D | acenic.h | 477 #define RX_STD_RING_SIZE (RX_STD_RING_ENTRIES * sizeof(struct rx_desc)) 480 #define RX_JUMBO_RING_SIZE (RX_JUMBO_RING_ENTRIES *sizeof(struct rx_desc)) 483 #define RX_MINI_RING_SIZE (RX_MINI_RING_ENTRIES *sizeof(struct rx_desc)) 487 sizeof(struct rx_desc)) 489 struct rx_desc{ struct 665 struct rx_desc *rx_std_ring; 666 struct rx_desc *rx_jumbo_ring; 667 struct rx_desc *rx_mini_ring; 668 struct rx_desc *rx_return_ring;
|
/linux/drivers/net/ethernet/ |
H A D | ec_bhf.c | 87 struct rx_desc { struct 139 struct rx_desc *rx_descs; 194 static int ec_bhf_pkt_received(struct rx_desc *desc) in ec_bhf_pkt_received() 199 static void ec_bhf_add_rx_desc(struct ec_bhf_priv *priv, struct rx_desc *desc) in ec_bhf_add_rx_desc() 207 struct rx_desc *desc = &priv->rx_descs[priv->rx_dnext]; in ec_bhf_process_rx() 373 priv->rx_dcount = priv->rx_buf.len / sizeof(struct rx_desc); in ec_bhf_setup_rx_descs() 374 priv->rx_descs = (struct rx_desc *)priv->rx_buf.buf; in ec_bhf_setup_rx_descs() 378 struct rx_desc *desc = &priv->rx_descs[i]; in ec_bhf_setup_rx_descs() 401 FIFO_SIZE * sizeof(struct rx_desc)); in ec_bhf_open()
|
/linux/drivers/net/wireless/ti/wl1251/ |
H A D | rx.c | 206 struct wl1251_rx_descriptor *rx_desc; in wl1251_rx() local 211 rx_desc = wl->rx_descriptor; in wl1251_rx() 214 wl1251_rx_header(wl, rx_desc); in wl1251_rx() 217 wl1251_rx_body(wl, rx_desc); in wl1251_rx()
|
/linux/Documentation/devicetree/bindings/net/ |
H A D | altr,tse.yaml | 104 - 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";
|
/linux/tools/testing/selftests/bpf/prog_tests/ |
H A D | xdp_metadata.c | 119 printf("%p: rx_desc[%d] -> %lx\n", xsk, i, addr); in open_xsk() 278 const struct xdp_desc *rx_desc; in verify_xsk_metadata() local 305 rx_desc = xsk_ring_cons__rx_desc(&xsk->rx, idx); in verify_xsk_metadata() 306 comp_addr = xsk_umem__extract_addr(rx_desc->addr); in verify_xsk_metadata() 307 addr = xsk_umem__add_offset_to_addr(rx_desc->addr); in verify_xsk_metadata() 308 printf("%p: rx_desc[%u]->addr=%llx addr=%llx comp_addr=%llx\n", in verify_xsk_metadata() 309 xsk, idx, rx_desc->addr, addr, comp_addr); in verify_xsk_metadata()
|
/linux/drivers/net/wireless/ti/wlcore/ |
H A D | hw_ops.h | 45 wlcore_hw_get_rx_buf_align(struct wl1271 *wl, u32 rx_desc) in wlcore_hw_get_rx_buf_align() argument 51 return wl->ops->get_rx_buf_align(wl, rx_desc); in wlcore_hw_get_rx_buf_align() 55 wlcore_hw_prepare_read(struct wl1271 *wl, u32 rx_desc, u32 len) in wlcore_hw_prepare_read() argument 58 return wl->ops->prepare_read(wl, rx_desc, len); in wlcore_hw_prepare_read()
|
/linux/drivers/net/ethernet/intel/ixgbe/ |
H A D | ixgbe_txrx_common.h | 19 union ixgbe_adv_rx_desc *rx_desc, 22 union ixgbe_adv_rx_desc *rx_desc,
|
/linux/drivers/net/ethernet/marvell/ |
H A D | pxa168_eth.c | 175 struct rx_desc { struct 207 struct rx_desc *p_rx_desc_area; 307 struct rx_desc *p_used_rx_desc; in rxq_refill() 643 (u32) (pep->rx_desc_dma + rx_curr_desc * sizeof(struct rx_desc))); in eth_port_start() 646 (u32) (pep->rx_desc_dma + rx_curr_desc * sizeof(struct rx_desc))); in eth_port_start() 773 struct rx_desc *rx_desc; in rxq_process() local 781 rx_desc = &pep->p_rx_desc_area[rx_curr_desc]; in rxq_process() 782 cmd_sts = rx_desc->cmd_sts; in rxq_process() 797 dma_unmap_single(&pep->pdev->dev, rx_desc->buf_ptr, in rxq_process() 798 rx_desc->buf_size, in rxq_process() [all …]
|