Home
last modified time | relevance | path

Searched refs:rx_desc (Results 1 – 25 of 135) sorted by relevance

123456

/linux-6.6.21/drivers/net/ethernet/sunplus/
Dspl2sw_desc.c16 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-6.6.21/drivers/net/wireless/ath/ath10k/
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 …]
Dhtt.h2236 struct htt_rx_desc_v1 *rx_desc; in ath10k_htt_rx_desc_get_attention() local
2241 rx_desc = container_of(rxd, struct htt_rx_desc_v1, base); in ath10k_htt_rx_desc_get_attention()
2242 return &rx_desc->attention; in ath10k_htt_rx_desc_get_attention()
2248 struct htt_rx_desc_v1 *rx_desc; in ath10k_htt_rx_desc_get_frag_info() local
2253 rx_desc = container_of(rxd, struct htt_rx_desc_v1, base); in ath10k_htt_rx_desc_get_frag_info()
2254 return &rx_desc->frag_info.common; in ath10k_htt_rx_desc_get_frag_info()
2260 struct htt_rx_desc_v1 *rx_desc; in ath10k_htt_rx_desc_get_mpdu_start() local
2265 rx_desc = container_of(rxd, struct htt_rx_desc_v1, base); in ath10k_htt_rx_desc_get_mpdu_start()
2266 return &rx_desc->mpdu_start; in ath10k_htt_rx_desc_get_mpdu_start()
2272 struct htt_rx_desc_v1 *rx_desc; in ath10k_htt_rx_desc_get_mpdu_end() local
[all …]
/linux-6.6.21/drivers/net/ethernet/intel/ice/
Dice_txrx_lib.h77 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()
108 ice_get_vlan_tag_from_rx_desc(union ice_32b_rx_flex_desc *rx_desc) in ice_get_vlan_tag_from_rx_desc() argument
113 if (ice_test_staterr(rx_desc->wb.status_error0, stat_err_bits)) in ice_get_vlan_tag_from_rx_desc()
114 return le16_to_cpu(rx_desc->wb.l2tag1); in ice_get_vlan_tag_from_rx_desc()
117 if (ice_test_staterr(rx_desc->wb.status_error1, stat_err_bits)) in ice_get_vlan_tag_from_rx_desc()
118 return le16_to_cpu(rx_desc->wb.l2tag2_2nd); in ice_get_vlan_tag_from_rx_desc()
163 union ice_32b_rx_flex_desc *rx_desc,
Dice_txrx_lib.c73 ice_rx_hash(struct ice_rx_ring *rx_ring, union ice_32b_rx_flex_desc *rx_desc, in ice_rx_hash() argument
82 if (rx_desc->wb.rxdid != ICE_RXDID_FLEX_NIC) in ice_rx_hash()
85 nic_mdid = (struct ice_32b_rx_flex_desc_nic *)rx_desc; in ice_rx_hash()
101 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()
108 rx_status1 = le16_to_cpu(rx_desc->wb.status_error1); in ice_rx_csum()
186 union ice_32b_rx_flex_desc *rx_desc, in ice_process_skb_fields() argument
189 ice_rx_hash(rx_ring, rx_desc, skb, ptype); in ice_process_skb_fields()
194 ice_rx_csum(rx_ring, skb, rx_desc, ptype); in ice_process_skb_fields()
197 ice_ptp_rx_hwtstamp(rx_ring, rx_desc, skb); in ice_process_skb_fields()
Dice_virtchnl_fdir.h21 union ice_32b_rx_flex_desc rx_desc; member
49 union ice_32b_rx_flex_desc *rx_desc);
53 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
Dice_xsk.c455 union ice_32b_rx_flex_desc *rx_desc, u16 count) in ice_fill_rx_descs() argument
464 rx_desc->read.pkt_addr = cpu_to_le64(dma); in ice_fill_rx_descs()
465 rx_desc->wb.status_error0 = 0; in ice_fill_rx_descs()
467 rx_desc++; in ice_fill_rx_descs()
488 union ice_32b_rx_flex_desc *rx_desc; in __ice_alloc_rx_bufs_zc() local
493 rx_desc = ICE_RX_DESC(rx_ring, ntu); in __ice_alloc_rx_bufs_zc()
498 rx_desc, in __ice_alloc_rx_bufs_zc()
504 rx_desc = ICE_RX_DESC(rx_ring, 0); in __ice_alloc_rx_bufs_zc()
511 nb_buffs = ice_fill_rx_descs(rx_ring->xsk_pool, xdp, rx_desc, count); in __ice_alloc_rx_bufs_zc()
868 union ice_32b_rx_flex_desc *rx_desc; in ice_clean_rx_irq_zc() local
[all …]
/linux-6.6.21/drivers/net/ethernet/intel/fm10k/
Dfm10k_main.c119 union fm10k_rx_desc *rx_desc; in fm10k_alloc_rx_buffers() local
127 rx_desc = FM10K_RX_DESC(rx_ring, i); in fm10k_alloc_rx_buffers()
138 rx_desc->q.pkt_addr = cpu_to_le64(bi->dma + bi->page_offset); in fm10k_alloc_rx_buffers()
140 rx_desc++; in fm10k_alloc_rx_buffers()
144 rx_desc = FM10K_RX_DESC(rx_ring, 0); in fm10k_alloc_rx_buffers()
150 rx_desc->d.staterr = 0; in fm10k_alloc_rx_buffers()
253 union fm10k_rx_desc *rx_desc, in fm10k_add_rx_frag() argument
300 union fm10k_rx_desc *rx_desc, in fm10k_fetch_rx_buffer() argument
303 unsigned int size = le16_to_cpu(rx_desc->w.length); in fm10k_fetch_rx_buffer()
341 if (fm10k_add_rx_frag(rx_buffer, size, rx_desc, skb)) { in fm10k_fetch_rx_buffer()
[all …]
/linux-6.6.21/drivers/net/ethernet/seeq/
Dsgiseeq.c59 (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-6.6.21/drivers/infiniband/ulp/isert/
Dib_isert.c153 struct iser_rx_desc *rx_desc; in isert_alloc_rx_descriptors() local
164 rx_desc = isert_conn->rx_descs; in isert_alloc_rx_descriptors()
166 for (i = 0; i < ISERT_QP_MAX_RECV_DTOS; i++, rx_desc++) { in isert_alloc_rx_descriptors()
167 dma_addr = ib_dma_map_single(ib_dev, rx_desc->buf, in isert_alloc_rx_descriptors()
172 rx_desc->dma_addr = dma_addr; in isert_alloc_rx_descriptors()
174 rx_sg = &rx_desc->rx_sg; in isert_alloc_rx_descriptors()
175 rx_sg->addr = rx_desc->dma_addr + isert_get_hdr_offset(rx_desc); in isert_alloc_rx_descriptors()
178 rx_desc->rx_cqe.done = isert_recv_done; in isert_alloc_rx_descriptors()
184 rx_desc = isert_conn->rx_descs; in isert_alloc_rx_descriptors()
185 for (j = 0; j < i; j++, rx_desc++) { in isert_alloc_rx_descriptors()
[all …]
/linux-6.6.21/drivers/net/wireless/ath/ath12k/
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 …]
/linux-6.6.21/drivers/net/ethernet/intel/i40e/
Di40e_xsk.c247 union i40e_rx_desc *rx_desc; in i40e_alloc_rx_buffers_zc() local
252 rx_desc = I40E_RX_DESC(rx_ring, ntu); in i40e_alloc_rx_buffers_zc()
263 rx_desc->read.pkt_addr = cpu_to_le64(dma); in i40e_alloc_rx_buffers_zc()
264 rx_desc->read.hdr_addr = 0; in i40e_alloc_rx_buffers_zc()
266 rx_desc++; in i40e_alloc_rx_buffers_zc()
272 rx_desc = I40E_RX_DESC(rx_ring, 0); in i40e_alloc_rx_buffers_zc()
277 rx_desc->wb.qword1.status_error_len = 0; in i40e_alloc_rx_buffers_zc()
350 union i40e_rx_desc *rx_desc, in i40e_handle_xdp_result_zc() argument
393 i40e_process_skb_fields(rx_ring, rx_desc, skb); in i40e_handle_xdp_result_zc()
457 union i40e_rx_desc *rx_desc; in i40e_clean_rx_irq_zc() local
[all …]
/linux-6.6.21/drivers/net/ethernet/wangxun/libwx/
Dwx_lib.c157 static __le32 wx_test_staterr(union wx_rx_desc *rx_desc, in wx_test_staterr() argument
160 return rx_desc->wb.upper.status_error & cpu_to_le32(stat_err_bits); in wx_test_staterr()
181 union wx_rx_desc *rx_desc, in wx_get_rx_buffer() argument
189 size = le16_to_cpu(rx_desc->wb.upper.length); in wx_get_rx_buffer()
204 if (!wx_test_staterr(rx_desc, WX_RXD_STAT_EOP)) { in wx_get_rx_buffer()
238 union wx_rx_desc *rx_desc) in wx_build_skb() argument
240 unsigned int size = le16_to_cpu(rx_desc->wb.upper.length); in wx_build_skb()
278 if (!wx_test_staterr(rx_desc, WX_RXD_STAT_EOP)) in wx_build_skb()
332 union wx_rx_desc *rx_desc; in wx_alloc_rx_buffers() local
339 rx_desc = WX_RX_DESC(rx_ring, i); in wx_alloc_rx_buffers()
[all …]
/linux-6.6.21/drivers/spi/
Dspi-pxa2xx-dma.c136 struct dma_async_tx_descriptor *tx_desc, *rx_desc; in pxa2xx_spi_dma_prepare() local
146 rx_desc = pxa2xx_spi_dma_prepare_one(drv_data, DMA_DEV_TO_MEM, xfer); in pxa2xx_spi_dma_prepare()
147 if (!rx_desc) { in pxa2xx_spi_dma_prepare()
154 rx_desc->callback = pxa2xx_spi_dma_callback; in pxa2xx_spi_dma_prepare()
155 rx_desc->callback_param = drv_data; in pxa2xx_spi_dma_prepare()
157 dmaengine_submit(rx_desc); in pxa2xx_spi_dma_prepare()
/linux-6.6.21/drivers/infiniband/ulp/iser/
Diser_initiator.c228 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-6.6.21/drivers/net/ethernet/intel/ixgbe/
Dixgbe_xsk.c153 union ixgbe_adv_rx_desc *rx_desc; in ixgbe_alloc_rx_buffers_zc() local
163 rx_desc = IXGBE_RX_DESC(rx_ring, i); in ixgbe_alloc_rx_buffers_zc()
179 rx_desc->read.pkt_addr = cpu_to_le64(dma); in ixgbe_alloc_rx_buffers_zc()
181 rx_desc++; in ixgbe_alloc_rx_buffers_zc()
185 rx_desc = IXGBE_RX_DESC(rx_ring, 0); in ixgbe_alloc_rx_buffers_zc()
191 rx_desc->wb.upper.length = 0; in ixgbe_alloc_rx_buffers_zc()
260 union ixgbe_adv_rx_desc *rx_desc; in ixgbe_clean_rx_irq_zc() local
272 rx_desc = IXGBE_RX_DESC(rx_ring, rx_ring->next_to_clean); in ixgbe_clean_rx_irq_zc()
273 size = le16_to_cpu(rx_desc->wb.upper.length); in ixgbe_clean_rx_irq_zc()
285 if (unlikely(!ixgbe_test_staterr(rx_desc, in ixgbe_clean_rx_irq_zc()
[all …]
Dixgbe_txrx_common.h19 union ixgbe_adv_rx_desc *rx_desc,
22 union ixgbe_adv_rx_desc *rx_desc,
/linux-6.6.21/drivers/net/ethernet/intel/iavf/
Diavf_txrx.c919 union iavf_rx_desc *rx_desc; in iavf_alloc_rx_buffers() local
926 rx_desc = IAVF_RX_DESC(rx_ring, ntu); in iavf_alloc_rx_buffers()
942 rx_desc->read.pkt_addr = cpu_to_le64(bi->dma + bi->page_offset); in iavf_alloc_rx_buffers()
944 rx_desc++; in iavf_alloc_rx_buffers()
948 rx_desc = IAVF_RX_DESC(rx_ring, 0); in iavf_alloc_rx_buffers()
954 rx_desc->wb.qword1.status_error_len = 0; in iavf_alloc_rx_buffers()
982 union iavf_rx_desc *rx_desc) in iavf_rx_checksum() argument
990 qword = le64_to_cpu(rx_desc->wb.qword1.status_error_len); in iavf_rx_checksum()
1089 union iavf_rx_desc *rx_desc, in iavf_rx_hash() argument
1101 if ((rx_desc->wb.qword1.status_error_len & rss_mask) == rss_mask) { in iavf_rx_hash()
[all …]
/linux-6.6.21/drivers/net/wireless/ath/ath11k/
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()
1805 ath11k_dp_rx_desc_end_tlv_copy(ab, rxcb->rx_desc, ldesc); in ath11k_dp_rx_msdu_coalesce()
1874 rx_attention = ath11k_dp_rx_get_attention(ar->ab, rxcb->rx_desc); in ath11k_dp_rx_h_csum_offload()
2007 if (ath11k_dp_rx_h_msdu_start_mesh_ctl_present(ar->ab, rxcb->rx_desc)) in ath11k_dp_rx_h_undecap_nwifi()
2111 hdr = (struct ieee80211_hdr *)ath11k_dp_rx_h_80211_hdr(ar->ab, rxcb->rx_desc); in ath11k_dp_rx_h_find_rfc1042()
[all …]
/linux-6.6.21/drivers/net/ethernet/alteon/
Dacenic.h477 #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-6.6.21/drivers/net/wireless/ti/wl1251/
Drx.c206 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-6.6.21/drivers/net/ethernet/
Dec_bhf.c87 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-6.6.21/drivers/net/ethernet/marvell/
Dpxa168_eth.c175 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 …]
/linux-6.6.21/drivers/net/ethernet/intel/igc/
Digc_dump.c117 union igc_adv_rx_desc *rx_desc; in igc_rings_dump() local
260 rx_desc = IGC_RX_DESC(rx_ring, i); in igc_rings_dump()
261 u0 = (struct my_u0 *)rx_desc; in igc_rings_dump()
262 staterr = le32_to_cpu(rx_desc->wb.upper.status_error); in igc_rings_dump()
/linux-6.6.21/drivers/net/wireless/ti/wlcore/
Dhw_ops.h45 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()

123456