/linux/drivers/net/ethernet/intel/ice/ |
A D | ice_txrx.c | 423 memset(rx_ring->xdp_buf, 0, array_size(rx_ring->count, sizeof(*rx_ring->xdp_buf))); in ice_clean_rx_ring() 425 memset(rx_ring->rx_buf, 0, array_size(rx_ring->count, sizeof(*rx_ring->rx_buf))); in ice_clean_rx_ring() 464 rx_ring->desc, rx_ring->dma); in ice_free_rx_ring() 486 kcalloc(rx_ring->count, sizeof(*rx_ring->rx_buf), GFP_KERNEL); in ice_setup_rx_ring() 493 rx_ring->desc = dmam_alloc_coherent(dev, size, &rx_ring->dma, in ice_setup_rx_ring() 505 WRITE_ONCE(rx_ring->xdp_prog, rx_ring->vsi->xdp_prog); in ice_setup_rx_ring() 509 if (xdp_rxq_info_reg(&rx_ring->xdp_rxq, rx_ring->netdev, in ice_setup_rx_ring() 510 rx_ring->q_index, rx_ring->q_vector->napi.napi_id)) in ice_setup_rx_ring() 864 rx_ring->next_to_alloc = (nta < rx_ring->count) ? nta : 0; in ice_reuse_rx_page() 891 rx_buf = &rx_ring->rx_buf[rx_ring->next_to_clean]; in ice_get_rx_buf() [all …]
|
A D | ice_xsk.c | 17 return &rx_ring->xdp_buf[idx]; in ice_xdp_buf() 87 reg = rx_ring->reg_idx; in ice_qvec_dis_irq() 113 struct ice_rx_ring *rx_ring; in ice_qvec_cfg_msix() local 155 struct ice_rx_ring *rx_ring; in ice_qp_dis() local 398 if (ntu == rx_ring->count) in ice_alloc_rx_bufs_zc() 528 rx_desc = ICE_RX_DESC(rx_ring, rx_ring->next_to_clean); in ice_clean_rx_irq_zc() 540 xdp = *ice_xdp_buf(rx_ring, rx_ring->next_to_clean); in ice_clean_rx_irq_zc() 565 ice_bump_ntc(rx_ring); in ice_clean_rx_irq_zc() 576 ice_bump_ntc(rx_ring); in ice_clean_rx_irq_zc() 597 failure = !ice_alloc_rx_bufs_zc(rx_ring, ICE_DESC_UNUSED(rx_ring)); in ice_clean_rx_irq_zc() [all …]
|
A D | ice_txrx_lib.c | 15 u16 prev_ntu = rx_ring->next_to_use & ~0x7; in ice_release_rx_desc() 17 rx_ring->next_to_use = val; in ice_release_rx_desc() 20 rx_ring->next_to_alloc = val; in ice_release_rx_desc() 35 writel(val, rx_ring->tail); in ice_release_rx_desc() 77 if (!(rx_ring->netdev->features & NETIF_F_RXHASH)) in ice_rx_hash() 187 ice_rx_hash(rx_ring, rx_desc, skb, ptype); in ice_process_skb_fields() 191 (rx_ring, rx_desc)); in ice_process_skb_fields() 193 ice_rx_csum(rx_ring, skb, rx_desc, ptype); in ice_process_skb_fields() 195 if (rx_ring->ptp_rx) in ice_process_skb_fields() 196 ice_ptp_rx_hwtstamp(rx_ring, rx_desc, skb); in ice_process_skb_fields() [all …]
|
A D | ice_xsk.h | 14 int ice_clean_rx_irq_zc(struct ice_rx_ring *rx_ring, int budget); 17 bool ice_alloc_rx_bufs_zc(struct ice_rx_ring *rx_ring, u16 count); 19 void ice_xsk_clean_rx_ring(struct ice_rx_ring *rx_ring); 31 ice_clean_rx_irq_zc(struct ice_rx_ring __always_unused *rx_ring, in ice_clean_rx_irq_zc() argument 45 ice_alloc_rx_bufs_zc(struct ice_rx_ring __always_unused *rx_ring, in ice_alloc_rx_bufs_zc() argument 63 static inline void ice_xsk_clean_rx_ring(struct ice_rx_ring *rx_ring) { } in ice_xsk_clean_rx_ring() argument
|
/linux/drivers/net/ethernet/intel/i40e/ |
A D | i40e_xsk.c | 15 unsigned long sz = sizeof(*rx_ring->rx_bi_zc) * rx_ring->count; in i40e_alloc_rx_bi_zc() 18 return rx_ring->rx_bi_zc ? 0 : -ENOMEM; in i40e_alloc_rx_bi_zc() 23 memset(rx_ring->rx_bi_zc, 0, in i40e_clear_rx_bi_zc() 24 sizeof(*rx_ring->rx_bi_zc) * rx_ring->count); in i40e_clear_rx_bi_zc() 29 return &rx_ring->rx_bi_zc[idx]; in i40e_rx_bi() 173 xdp_ring = rx_ring->vsi->xdp_rings[rx_ring->queue_index]; in i40e_run_xdp_zc() 194 u16 ntu = rx_ring->next_to_use; in i40e_alloc_rx_buffers_zc() 201 xdp = i40e_rx_bi(rx_ring, ntu); in i40e_alloc_rx_buffers_zc() 219 if (ntu == rx_ring->count) { in i40e_alloc_rx_buffers_zc() 221 xdp = i40e_rx_bi(rx_ring, 0); in i40e_alloc_rx_buffers_zc() [all …]
|
A D | i40e_txrx.c | 1377 rx_ring->next_to_alloc = (nta < rx_ring->count) ? nta : 0; in i40e_reuse_rx_page() 1483 memset(rx_ring->rx_bi, 0, sizeof(*rx_ring->rx_bi) * rx_ring->count); in i40e_clear_rx_bi() 1543 memset(rx_ring->desc, 0, rx_ring->size); in i40e_clean_rx_ring() 1566 dma_free_coherent(rx_ring->dev, rx_ring->size, in i40e_free_rx_resources() 1567 rx_ring->desc, rx_ring->dma); in i40e_free_rx_resources() 1587 rx_ring->size = ALIGN(rx_ring->size, 4096); in i40e_setup_rx_descriptors() 1588 rx_ring->desc = dma_alloc_coherent(dev, rx_ring->size, in i40e_setup_rx_descriptors() 1609 rx_ring->xdp_prog = rx_ring->vsi->xdp_prog; in i40e_setup_rx_descriptors() 2074 rx_buffer = i40e_rx_bi(rx_ring, rx_ring->next_to_clean); in i40e_get_rx_buffer() 2409 rx_ring->vsi->xdp_rings[rx_ring->queue_index]; in i40e_finalize_xdp_rx() [all …]
|
/linux/drivers/net/ethernet/intel/iavf/ |
A D | iavf_txrx.c | 664 if (rx_ring->skb) { in iavf_clean_rx_ring() 701 memset(rx_ring->desc, 0, rx_ring->size); in iavf_clean_rx_ring() 721 dma_free_coherent(rx_ring->dev, rx_ring->size, in iavf_free_rx_resources() 722 rx_ring->desc, rx_ring->dma); in iavf_free_rx_resources() 748 rx_ring->size = rx_ring->count * sizeof(union iavf_32byte_rx_desc); in iavf_setup_rx_descriptors() 749 rx_ring->size = ALIGN(rx_ring->size, 4096); in iavf_setup_rx_descriptors() 750 rx_ring->desc = dma_alloc_coherent(dev, rx_ring->size, in iavf_setup_rx_descriptors() 755 rx_ring->size); in iavf_setup_rx_descriptors() 1135 rx_ring->next_to_alloc = (nta < rx_ring->count) ? nta : 0; in iavf_reuse_rx_page() 1256 rx_buffer = &rx_ring->rx_bi[rx_ring->next_to_clean]; in iavf_get_rx_buffer() [all …]
|
/linux/drivers/net/ethernet/intel/ixgbe/ |
A D | ixgbe_xsk.c | 161 i -= rx_ring->count; in ixgbe_alloc_rx_buffers_zc() 183 i -= rx_ring->count; in ixgbe_alloc_rx_buffers_zc() 192 i += rx_ring->count; in ixgbe_alloc_rx_buffers_zc() 266 rx_desc = IXGBE_RX_DESC(rx_ring, rx_ring->next_to_clean); in ixgbe_clean_rx_irq_zc() 277 bi = &rx_ring->rx_buffer_info[rx_ring->next_to_clean]; in ixgbe_clean_rx_irq_zc() 285 ixgbe_inc_ntc(rx_ring); in ixgbe_clean_rx_irq_zc() 287 &rx_ring->rx_buffer_info[rx_ring->next_to_clean]; in ixgbe_clean_rx_irq_zc() 296 ixgbe_inc_ntc(rx_ring); in ixgbe_clean_rx_irq_zc() 315 ixgbe_inc_ntc(rx_ring); in ixgbe_clean_rx_irq_zc() 327 ixgbe_inc_ntc(rx_ring); in ixgbe_clean_rx_irq_zc() [all …]
|
A D | ixgbe_main.c | 716 rx_ring = adapter->rx_ring[n]; in ixgbe_dump() 718 n, rx_ring->next_to_use, rx_ring->next_to_clean); in ixgbe_dump() 773 rx_ring = adapter->rx_ring[n]; in ixgbe_dump() 4291 rx_ring = adapter->rx_ring[i]; in ixgbe_set_rx_buffer_len() 6582 rx_ring->size = ALIGN(rx_ring->size, 4096); in ixgbe_setup_rx_resources() 6591 rx_ring->desc = dma_alloc_coherent(dev, rx_ring->size, in ixgbe_setup_rx_resources() 6709 dma_free_coherent(rx_ring->dev, rx_ring->size, in ixgbe_free_rx_resources() 6710 rx_ring->desc, rx_ring->dma); in ixgbe_free_rx_resources() 10398 memset(&rx_ring->stats, 0, sizeof(rx_ring->stats)); in ixgbe_reset_rxr_stats() 10414 rx_ring = adapter->rx_ring[ring]; in ixgbe_txrx_ring_disable() [all …]
|
/linux/drivers/net/ethernet/amazon/ena/ |
A D | ena_netdev.c | 486 rc = xdp_rxq_info_reg(&rx_ring->xdp_rxq, rx_ring->netdev, rx_ring->qid, 0); in ena_xdp_register_rxq_info() 489 netif_err(rx_ring->adapter, ifup, rx_ring->netdev, in ena_xdp_register_rxq_info() 523 rx_ring = &adapter->rx_ring[i]; in ena_xdp_exchange_program_rx_in_range() 1143 rx_ring = &adapter->rx_ring[i]; in ena_refill_all_rx_bufs() 1810 struct ena_ring *rx_ring = ena_napi->rx_ring; in ena_adjust_adaptive_rx_intr_moderation() local 1962 rx_ring = ena_napi->rx_ring; in ena_io_poll() 2287 napi->rx_ring = &adapter->rx_ring[i]; in ena_init_napi_in_range() 2451 rx_ring = &adapter->rx_ring[qid]; in ena_create_io_rx_queue() 3294 rx_ring = &adapter->rx_ring[i]; in ena_get_stats64() 3813 rx_ring = &adapter->rx_ring[i]; in check_for_missing_completions() [all …]
|
/linux/drivers/net/ethernet/freescale/enetc/ |
A D | enetc.c | 720 new = &rx_ring->rx_swbd[rx_ring->next_to_alloc]; in enetc_reuse_page() 723 enetc_bdr_idx_inc(rx_ring, &rx_ring->next_to_alloc); in enetc_reuse_page() 948 enetc_wr_reg_hot(rx_ring->rcir, rx_ring->next_to_use); in enetc_refill_rx_ring() 1110 enetc_put_rx_buff(rx_ring, &rx_ring->rx_swbd[*i]); in enetc_check_bd_errors_and_consume() 1117 enetc_put_rx_buff(rx_ring, &rx_ring->rx_swbd[*i]); in enetc_check_bd_errors_and_consume() 1194 enetc_wr_reg_hot(rx_ring->idr, BIT(rx_ring->index)); in enetc_clean_rx_ring() 1532 enetc_wr_reg_hot(rx_ring->idr, BIT(rx_ring->index)); in enetc_clean_rx_ring_xdp() 1655 struct enetc_bdr *rx_ring = &v->rx_ring; in enetc_poll() local 2522 struct enetc_bdr *rx_ring = priv->rx_ring[i]; in enetc_setup_xdp_prog() local 2829 struct enetc_bdr *rx_ring = &v->rx_ring; in enetc_alloc_msix() local [all …]
|
/linux/drivers/staging/qlge/ |
A D | qlge_main.c | 963 struct rx_ring *rx_ring) in qlge_get_curr_lchunk() argument 1167 struct rx_ring *rx_ring = container_of(work, struct rx_ring, in qlge_slow_refill() local 1357 struct rx_ring *rx_ring) in qlge_categorize_rx_err() argument 1413 struct rx_ring *rx_ring, in qlge_process_mac_rx_gro_page() argument 1550 struct rx_ring *rx_ring, in qlge_process_mac_rx_skb() argument 1670 struct rx_ring *rx_ring, in qlge_build_rx_skb() argument 2767 struct rx_ring *rx_ring = &qdev->rx_ring[i]; in qlge_free_rx_buffers() local 2815 struct rx_ring *rx_ring) in qlge_free_rx_resources() argument 3916 struct rx_ring *rx_ring; in qlge_configure_rings() local 3951 rx_ring = &qdev->rx_ring[i]; in qlge_configure_rings() [all …]
|
/linux/drivers/net/ethernet/broadcom/ |
A D | bcm4908_enet.c | 188 struct bcm4908_enet_dma_ring *rx_ring = &enet->rx_ring; in bcm4908_enet_dma_free() local 194 dma_free_coherent(dev, size, rx_ring->cpu_addr, rx_ring->dma_addr); in bcm4908_enet_dma_free() 206 struct bcm4908_enet_dma_ring *rx_ring = &enet->rx_ring; in bcm4908_enet_dma_alloc() local 221 rx_ring->is_tx = 0; in bcm4908_enet_dma_alloc() 311 struct bcm4908_enet_dma_ring *rx_ring = &enet->rx_ring; in bcm4908_enet_dma_uninit() local 328 struct bcm4908_enet_dma_ring *rx_ring = &enet->rx_ring; in bcm4908_enet_dma_init() local 442 struct bcm4908_enet_dma_ring *rx_ring = &enet->rx_ring; in bcm4908_enet_open() local 492 struct bcm4908_enet_dma_ring *rx_ring = &enet->rx_ring; in bcm4908_enet_stop() local 584 buf_desc = &enet->rx_ring.buf_desc[enet->rx_ring.read_idx]; in bcm4908_enet_poll_rx() 589 slot = enet->rx_ring.slots[enet->rx_ring.read_idx]; in bcm4908_enet_poll_rx() [all …]
|
/linux/drivers/net/ethernet/netronome/nfp/ |
A D | nfp_net_debugfs.c | 14 struct nfp_net_rx_ring *rx_ring; in nfp_rx_q_show() local 26 rx_ring = r_vec->rx_ring; in nfp_rx_q_show() 30 rxd_cnt = rx_ring->cnt; in nfp_rx_q_show() 36 rx_ring->idx, rx_ring->fl_qcidx, in nfp_rx_q_show() 37 rx_ring->cnt, &rx_ring->dma, rx_ring->rxds, in nfp_rx_q_show() 38 rx_ring->rd_p, rx_ring->wr_p, fl_rd_p, fl_wr_p); in nfp_rx_q_show() 41 rxd = &rx_ring->rxds[i]; in nfp_rx_q_show() 49 if (rx_ring->rxbufs[i].dma_addr) in nfp_rx_q_show() 51 &rx_ring->rxbufs[i].dma_addr); in nfp_rx_q_show() 53 if (i == rx_ring->rd_p % rxd_cnt) in nfp_rx_q_show() [all …]
|
A D | nfp_net_common.c | 610 rx_ring->fl_qcidx = rx_ring->idx * nn->stride_rx; in nfp_net_rx_ring_init() 1444 wr_idx = D_IDX(rx_ring, rx_ring->wr_p); in nfp_net_rx_give_one() 1481 if (rx_ring->wr_p == 0 && rx_ring->rd_p == 0) in nfp_net_rx_ring_reset() 1485 wr_idx = D_IDX(rx_ring, rx_ring->wr_p); in nfp_net_rx_ring_reset() 1492 memset(rx_ring->rxds, 0, rx_ring->size); in nfp_net_rx_ring_reset() 1845 idx = D_IDX(rx_ring, rx_ring->rd_p); in nfp_net_rx() 2248 idx = D_IDX(rx_ring, rx_ring->rd_p); in nfp_ctrl_rx_one() 2313 struct nfp_net_rx_ring *rx_ring = r_vec->rx_ring; in nfp_ctrl_rx() local 2547 rx_ring->rxds, rx_ring->dma); in nfp_net_rx_ring_free() 2576 rx_ring->size = array_size(rx_ring->cnt, sizeof(*rx_ring->rxds)); in nfp_net_rx_ring_alloc() [all …]
|
/linux/drivers/net/ethernet/intel/fm10k/ |
A D | fm10k_main.c | 120 bi = &rx_ring->rx_buffer[i]; in fm10k_alloc_rx_buffers() 121 i -= rx_ring->count; in fm10k_alloc_rx_buffers() 137 bi = rx_ring->rx_buffer; in fm10k_alloc_rx_buffers() 138 i -= rx_ring->count; in fm10k_alloc_rx_buffers() 147 i += rx_ring->count; in fm10k_alloc_rx_buffers() 151 rx_ring->next_to_use = i; in fm10k_alloc_rx_buffers() 164 writel(i, rx_ring->tail); in fm10k_alloc_rx_buffers() 185 rx_ring->next_to_alloc = (nta < rx_ring->count) ? nta : 0; in fm10k_reuse_rx_page() 299 rx_buffer = &rx_ring->rx_buffer[rx_ring->next_to_clean]; in fm10k_fetch_rx_buffer() 571 rx_desc = FM10K_RX_DESC(rx_ring, rx_ring->next_to_clean); in fm10k_clean_rx_irq() [all …]
|
A D | fm10k_netdev.c | 97 rx_ring->size = rx_ring->count * sizeof(union fm10k_rx_desc); in fm10k_setup_rx_resources() 98 rx_ring->size = ALIGN(rx_ring->size, 4096); in fm10k_setup_rx_resources() 100 rx_ring->desc = dma_alloc_coherent(dev, rx_ring->size, in fm10k_setup_rx_resources() 102 if (!rx_ring->desc) in fm10k_setup_rx_resources() 257 rx_ring->skb = NULL; in fm10k_clean_rx_ring() 277 memset(rx_ring->desc, 0, rx_ring->size); in fm10k_clean_rx_ring() 298 if (!rx_ring->desc) in fm10k_free_rx_resources() 301 dma_free_coherent(rx_ring->dev, rx_ring->size, in fm10k_free_rx_resources() 302 rx_ring->desc, rx_ring->dma); in fm10k_free_rx_resources() 304 rx_ring->desc = NULL; in fm10k_free_rx_resources() [all …]
|
/linux/drivers/net/ethernet/intel/igc/ |
A D | igc_xdp.c | 42 struct igc_ring *rx_ring, *tx_ring; in igc_xdp_enable_pool() local 70 rx_ring = adapter->rx_ring[queue_id]; in igc_xdp_enable_pool() 73 napi = &rx_ring->q_vector->napi; in igc_xdp_enable_pool() 76 igc_disable_rx_ring(rx_ring); in igc_xdp_enable_pool() 81 set_bit(IGC_RING_FLAG_AF_XDP_ZC, &rx_ring->flags); in igc_xdp_enable_pool() 86 igc_enable_rx_ring(rx_ring); in igc_xdp_enable_pool() 101 struct igc_ring *rx_ring, *tx_ring; in igc_xdp_disable_pool() local 116 rx_ring = adapter->rx_ring[queue_id]; in igc_xdp_disable_pool() 119 napi = &rx_ring->q_vector->napi; in igc_xdp_disable_pool() 122 igc_disable_rx_ring(rx_ring); in igc_xdp_disable_pool() [all …]
|
A D | igc_dump.c | 119 struct igc_ring *rx_ring; in igc_rings_dump() local 214 rx_ring = adapter->rx_ring[n]; in igc_rings_dump() 216 rx_ring->next_to_clean); in igc_rings_dump() 247 rx_ring = adapter->rx_ring[n]; in igc_rings_dump() 250 rx_ring->queue_index); in igc_rings_dump() 255 for (i = 0; i < rx_ring->count; i++) { in igc_rings_dump() 259 buffer_info = &rx_ring->rx_buffer_info[i]; in igc_rings_dump() 260 rx_desc = IGC_RX_DESC(rx_ring, i); in igc_rings_dump() 264 if (i == rx_ring->next_to_use) in igc_rings_dump() 266 else if (i == rx_ring->next_to_clean) in igc_rings_dump() [all …]
|
A D | igc_main.c | 472 if (!rx_ring->desc) in igc_free_rx_resources() 475 dma_free_coherent(rx_ring->dev, rx_ring->size, in igc_free_rx_resources() 476 rx_ring->desc, rx_ring->dma); in igc_free_rx_resources() 524 rx_ring->size = rx_ring->count * desc_len; in igc_setup_rx_resources() 525 rx_ring->size = ALIGN(rx_ring->size, 4096); in igc_setup_rx_resources() 527 rx_ring->desc = dma_alloc_coherent(dev, rx_ring->size, in igc_setup_rx_resources() 530 if (!rx_ring->desc) in igc_setup_rx_resources() 1643 rx_buffer = &rx_ring->rx_buffer_info[rx_ring->next_to_clean]; in igc_get_rx_buffer() 1805 rx_ring->next_to_alloc = (nta < rx_ring->count) ? nta : 0; in igc_reuse_rx_page() 2331 rx_desc = IGC_RX_DESC(rx_ring, rx_ring->next_to_clean); in igc_clean_rx_irq() [all …]
|
/linux/drivers/net/ethernet/intel/igbvf/ |
A D | netdev.c | 247 struct igbvf_ring *rx_ring = adapter->rx_ring; in igbvf_clean_rx_irq() local 470 rx_ring->size = rx_ring->count * desc_len; in igbvf_setup_rx_resources() 471 rx_ring->size = ALIGN(rx_ring->size, 4096); in igbvf_setup_rx_resources() 473 rx_ring->desc = dma_alloc_coherent(&pdev->dev, rx_ring->size, in igbvf_setup_rx_resources() 475 if (!rx_ring->desc) in igbvf_setup_rx_resources() 600 memset(rx_ring->desc, 0, rx_ring->size); in igbvf_clean_rx_ring() 625 dma_free_coherent(&pdev->dev, rx_ring->size, rx_ring->desc, in igbvf_free_rx_resources() 626 rx_ring->dma); in igbvf_free_rx_resources() 980 struct igbvf_ring *rx_ring = adapter->rx_ring; in igbvf_configure_msix() local 990 writel(rx_ring->itr_val, hw->hw_addr + rx_ring->itr_register); in igbvf_configure_msix() [all …]
|
/linux/drivers/net/ethernet/intel/ixgbevf/ |
A D | ixgbevf_main.c | 533 rx_buffer = &rx_ring->rx_buffer_info[rx_ring->next_to_clean]; in ixgbevf_get_rx_buffer() 775 rx_ring->next_to_alloc = (nta < rx_ring->count) ? nta : 0; in ixgbevf_reuse_rx_page() 1144 rx_desc = IXGBEVF_RX_DESC(rx_ring, rx_ring->next_to_clean); in ixgbevf_clean_rx_irq() 1239 rx_ring->skb = skb; in ixgbevf_clean_rx_irq() 2025 struct ixgbevf_ring *rx_ring = adapter->rx_ring[i]; in ixgbevf_configure_rx() local 3133 struct ixgbevf_ring *rx_ring = adapter->rx_ring[i]; in ixgbevf_update_stats() local 3481 rx_ring->size = rx_ring->count * sizeof(union ixgbe_adv_rx_desc); in ixgbevf_setup_rx_resources() 3482 rx_ring->size = ALIGN(rx_ring->size, 4096); in ixgbevf_setup_rx_resources() 3484 rx_ring->desc = dma_alloc_coherent(rx_ring->dev, rx_ring->size, in ixgbevf_setup_rx_resources() 3550 dma_free_coherent(rx_ring->dev, rx_ring->size, rx_ring->desc, in ixgbevf_free_rx_resources() [all …]
|
/linux/drivers/net/ethernet/oki-semi/pch_gbe/ |
A D | pch_gbe_main.c | 958 memset(rx_ring->desc, 0, rx_ring->size); in pch_gbe_clean_rx_ring() 1761 rx_ring->size = rx_ring->count * (int)sizeof(struct pch_gbe_rx_desc); in pch_gbe_setup_rx_resources() 1762 rx_ring->desc = dma_alloc_coherent(&pdev->dev, rx_ring->size, in pch_gbe_setup_rx_resources() 1776 rx_ring->desc, (unsigned long long)rx_ring->dma, in pch_gbe_setup_rx_resources() 1777 rx_ring->next_to_clean, rx_ring->next_to_use); in pch_gbe_setup_rx_resources() 1812 dma_free_coherent(&pdev->dev, rx_ring->size, rx_ring->desc, in pch_gbe_free_rx_resources() 1813 rx_ring->dma); in pch_gbe_free_rx_resources() 1856 struct pch_gbe_rx_ring *rx_ring = adapter->rx_ring; in pch_gbe_up() local 1886 pch_gbe_alloc_rx_buffers(adapter, rx_ring, rx_ring->count); in pch_gbe_up() 1913 struct pch_gbe_rx_ring *rx_ring = adapter->rx_ring; in pch_gbe_down() local [all …]
|
/linux/drivers/net/ethernet/intel/e1000e/ |
A D | netdev.c | 204 struct e1000_ring *rx_ring = adapter->rx_ring; in e1000e_dump() local 320 0, rx_ring->next_to_use, rx_ring->next_to_clean); in e1000e_dump() 1733 memset(rx_ring->desc, 0, rx_ring->size); in e1000_clean_rx_ring() 1946 struct e1000_ring *rx_ring = adapter->rx_ring; in e1000_intr_msix_rx() local 1977 struct e1000_ring *rx_ring = adapter->rx_ring; in e1000_configure_msix() local 2392 rx_ring->size = rx_ring->count * desc_len; in e1000e_setup_rx_resources() 2393 rx_ring->size = ALIGN(rx_ring->size, 4096); in e1000e_setup_rx_resources() 2483 dma_free_coherent(&pdev->dev, rx_ring->size, rx_ring->desc, in e1000e_free_rx_resources() 2484 rx_ring->dma); in e1000e_free_rx_resources() 3198 struct e1000_ring *rx_ring = adapter->rx_ring; in e1000_configure_rx() local [all …]
|
/linux/drivers/net/wireless/realtek/rtw89/ |
A D | pci.c | 245 rx_ring->diliver_skb = new; in rtw89_pci_rxbd_deliver_skbs() 2087 int ring_sz = rx_ring->bd_ring.desc_size * rx_ring->bd_ring.len; in rtw89_pci_free_rx_ring() 2090 buf_sz = rx_ring->buf_sz; in rtw89_pci_free_rx_ring() 2092 skb = rx_ring->buf[i]; in rtw89_pci_free_rx_ring() 2100 rx_ring->buf[i] = NULL; in rtw89_pci_free_rx_ring() 2336 rx_ring->bd_ring.wp = 0; in rtw89_pci_alloc_rx_ring() 2337 rx_ring->bd_ring.rp = 0; in rtw89_pci_alloc_rx_ring() 2338 rx_ring->buf_sz = buf_sz; in rtw89_pci_alloc_rx_ring() 2350 rx_ring->buf[i] = skb; in rtw89_pci_alloc_rx_ring() 2366 skb = rx_ring->buf[i]; in rtw89_pci_alloc_rx_ring() [all …]
|