| /linux/drivers/net/ethernet/aquantia/atlantic/ |
| H A D | aq_vec.c | 18 unsigned int tx_rings; member 41 for (i = 0U; self->tx_rings > i; ++i) { in aq_vec_poll() 119 self->tx_rings = 0; in aq_vec_alloc() 144 ++self->tx_rings; in aq_vec_ring_alloc() 190 for (i = 0U; self->tx_rings > i; ++i) { in aq_vec_init() 232 for (i = 0U; self->tx_rings > i; ++i) { in aq_vec_start() 256 for (i = 0U; self->tx_rings > i; ++i) { in aq_vec_stop() 276 for (i = 0U; self->tx_rings > i; ++i) { in aq_vec_deinit() 305 for (i = 0U; self->tx_rings > i; ++i) { in aq_vec_ring_free() 314 self->tx_rings = 0; in aq_vec_ring_free() [all …]
|
| H A D | aq_hw.h | 66 u8 tx_rings; member
|
| /linux/drivers/net/ethernet/netronome/nfp/ |
| H A D | nfp_net_dp.c | 187 dp->tx_rings = kcalloc(dp->num_tx_rings, sizeof(*dp->tx_rings), in nfp_net_tx_rings_prepare() 189 if (!dp->tx_rings) in nfp_net_tx_rings_prepare() 206 nfp_net_tx_ring_init(&dp->tx_rings[r], dp, in nfp_net_tx_rings_prepare() 209 if (nfp_net_tx_ring_alloc(dp, &dp->tx_rings[r])) in nfp_net_tx_rings_prepare() 212 if (nfp_net_tx_ring_bufs_alloc(dp, &dp->tx_rings[r])) in nfp_net_tx_rings_prepare() 220 nfp_net_tx_ring_bufs_free(dp, &dp->tx_rings[r]); in nfp_net_tx_rings_prepare() 222 nfp_net_tx_ring_free(dp, &dp->tx_rings[r]); in nfp_net_tx_rings_prepare() 228 kfree(dp->tx_rings); in nfp_net_tx_rings_prepare() 237 nfp_net_tx_ring_bufs_free(dp, &dp->tx_rings[r]); in nfp_net_tx_rings_free() 238 nfp_net_tx_ring_free(dp, &dp->tx_rings[r]); in nfp_net_tx_rings_free() [all …]
|
| H A D | nfp_net_common.c | 797 idx < dp->num_stack_tx_rings ? &dp->tx_rings[idx] : NULL; in nfp_net_vector_assign_rings() 800 &dp->tx_rings[dp->num_stack_tx_rings + idx] : NULL; in nfp_net_vector_assign_rings() 968 nfp_net_tx_ring_reset(&nn->dp, &nn->dp.tx_rings[r]); in nfp_net_clear_config_and_disable() 1001 nfp_net_tx_ring_hw_cfg_write(nn, &nn->dp.tx_rings[r], r); in nfp_net_set_config_and_enable() 1574 new->tx_rings = NULL; in nfp_net_clone_dp()
|
| H A D | nfp_net.h | 520 struct nfp_net_tx_ring *tx_rings; member
|
| /linux/drivers/net/wireless/realtek/rtw88/ |
| H A D | pci.c | 168 tx_ring = &rtwpci->tx_rings[i]; in rtw_pci_free_trx_ring() 329 tx_ring = &rtwpci->tx_rings[i]; in rtw_pci_init_trx_ring() 351 tx_ring = &rtwpci->tx_rings[i]; in rtw_pci_init_trx_ring() 405 dma = rtwpci->tx_rings[RTW_TX_QUEUE_BCN].r.dma; in rtw_pci_reset_buf_desc() 409 len = rtwpci->tx_rings[RTW_TX_QUEUE_H2C].r.len; in rtw_pci_reset_buf_desc() 410 dma = rtwpci->tx_rings[RTW_TX_QUEUE_H2C].r.dma; in rtw_pci_reset_buf_desc() 411 rtwpci->tx_rings[RTW_TX_QUEUE_H2C].r.rp = 0; in rtw_pci_reset_buf_desc() 412 rtwpci->tx_rings[RTW_TX_QUEUE_H2C].r.wp = 0; in rtw_pci_reset_buf_desc() 417 len = rtwpci->tx_rings[RTW_TX_QUEUE_BK].r.len; in rtw_pci_reset_buf_desc() 418 dma = rtwpci->tx_rings[RTW_TX_QUEUE_BK].r.dma; in rtw_pci_reset_buf_desc() [all …]
|
| H A D | pci.h | 223 struct rtw_pci_tx_ring tx_rings[RTK_MAX_TX_QUEUE_NUM]; member
|
| /linux/drivers/net/ethernet/intel/i40e/ |
| H A D | i40e_ethtool.c | 2030 ring->tx_pending = vsi->tx_rings[0]->count; in i40e_get_ringparam() 2052 struct i40e_ring *tx_rings = NULL, *rx_rings = NULL; in i40e_set_ringparam() local 2080 if ((new_tx_count == vsi->tx_rings[0]->count) && in i40e_set_ringparam() 2101 vsi->tx_rings[i]->count = new_tx_count; in i40e_set_ringparam() 2119 if (new_tx_count != vsi->tx_rings[0]->count) { in i40e_set_ringparam() 2122 vsi->tx_rings[0]->count, new_tx_count); in i40e_set_ringparam() 2123 tx_rings = kcalloc(tx_alloc_queue_pairs, in i40e_set_ringparam() 2125 if (!tx_rings) { in i40e_set_ringparam() 2134 tx_rings[i] = *vsi->tx_rings[i]; in i40e_set_ringparam() 2135 tx_rings[i].count = new_tx_count; in i40e_set_ringparam() [all …]
|
| H A D | i40e_main.c | 361 if (vsi->tx_rings[i] && vsi->tx_rings[i]->desc) { in i40e_tx_timeout() 363 vsi->tx_rings[i]->queue_index) { in i40e_tx_timeout() 364 tx_ring = vsi->tx_rings[i]; in i40e_tx_timeout() 474 if (!vsi->tx_rings) in i40e_get_netdev_stats_struct() 482 ring = READ_ONCE(vsi->tx_rings[i]); in i40e_get_netdev_stats_struct() 543 memset(&vsi->tx_rings[i]->stats, 0, in i40e_vsi_reset_stats() 544 sizeof(vsi->tx_rings[i]->stats)); in i40e_vsi_reset_stats() 545 memset(&vsi->tx_rings[i]->tx_stats, 0, in i40e_vsi_reset_stats() 546 sizeof(vsi->tx_rings[i]->tx_stats)); in i40e_vsi_reset_stats() 907 p = READ_ONCE(vsi->tx_rings[q]); in i40e_update_vsi_stats() [all …]
|
| H A D | i40e_debugfs.c | 232 struct i40e_ring *tx_ring = READ_ONCE(vsi->tx_rings[i]); in i40e_dbg_dump_vsi_seid() 514 if (!vsi->tx_rings || !vsi->tx_rings[0]->desc) { in i40e_dbg_dump_desc() 526 ring = kmemdup(vsi->tx_rings[ring_id], sizeof(*ring), GFP_KERNEL); in i40e_dbg_dump_desc()
|
| H A D | i40e_txrx.c | 100 tx_ring = vsi->tx_rings[0]; in i40e_program_fdir_filter() 893 tx_ring = vsi->tx_rings[i]; in i40e_detect_recover_hung() 3979 struct i40e_ring *tx_ring = vsi->tx_rings[skb->queue_mapping]; in i40e_lan_xmit_frame()
|
| H A D | i40e.h | 852 struct i40e_ring **tx_rings; member
|
| /linux/drivers/thunderbolt/ |
| H A D | nhi.c | 532 if (!nhi->tx_rings[i]) { in nhi_alloc_hop() 555 if (ring->is_tx && nhi->tx_rings[ring->hop]) { in nhi_alloc_hop() 569 nhi->tx_rings[ring->hop] = ring; in nhi_alloc_hop() 824 ring->nhi->tx_rings[ring->hop] = NULL; in tb_ring_free() 949 ring = nhi->tx_rings[hop]; in nhi_interrupt_work() 1147 if (nhi->tx_rings[i]) in nhi_shutdown() 1368 nhi->tx_rings = devm_kcalloc(&pdev->dev, nhi->hop_count, in nhi_probe() 1369 sizeof(*nhi->tx_rings), GFP_KERNEL); in nhi_probe() 1372 if (!nhi->tx_rings || !nhi->rx_rings) in nhi_probe()
|
| /linux/drivers/net/ethernet/broadcom/ |
| H A D | bcmsysport.c | 435 ring = &priv->tx_rings[q]; in bcm_sysport_update_tx_stats() 501 ring = &priv->tx_rings[i]; in bcm_sysport_get_stats() 633 bcm_sysport_set_tx_coalesce(&priv->tx_rings[i], ec); in bcm_sysport_set_coalesce() 989 bcm_sysport_tx_reclaim(priv, &priv->tx_rings[q]); in bcm_sysport_tx_reclaim_all() 1143 txr = &priv->tx_rings[ring]; in bcm_sysport_rx_isr() 1175 txr = &priv->tx_rings[ring]; in bcm_sysport_tx_isr() 1300 ring = &priv->tx_rings[queue]; in bcm_sysport_xmit() 1482 struct bcm_sysport_tx_ring *ring = &priv->tx_rings[index]; in bcm_sysport_init_tx_ring() 1573 struct bcm_sysport_tx_ring *ring = &priv->tx_rings[index]; in bcm_sysport_fini_tx_ring() 2339 ring = &priv->tx_rings[q]; in bcm_sysport_map_queues() [all …]
|
| /linux/drivers/net/ethernet/intel/iavf/ |
| H A D | iavf_main.c | 483 struct iavf_ring *tx_ring = &adapter->tx_rings[t_idx]; in iavf_map_vector_to_txq() 672 adapter->tx_rings[i].tail = hw->hw_addr + IAVF_QTX_TAIL1(i); in iavf_configure_tx() 1474 kfree(adapter->tx_rings); in iavf_free_queues() 1475 adapter->tx_rings = NULL; in iavf_free_queues() 1494 struct iavf_ring *tx_ring = &adapter->tx_rings[i]; in iavf_set_queue_vlan_tag_loc() 1588 adapter->tx_rings = kcalloc(num_active_queues, in iavf_alloc_queues() 1590 if (!adapter->tx_rings) in iavf_alloc_queues() 1601 tx_ring = &adapter->tx_rings[i]; in iavf_alloc_queues() 3092 if (adapter->tx_rings[i].q_shaper.bw_min || in iavf_reconfig_qs_bw() 3093 adapter->tx_rings[i].q_shaper.bw_max) { in iavf_reconfig_qs_bw() [all …]
|
| H A D | iavf.h | 277 struct iavf_ring *tx_rings; member
|
| H A D | iavf_txrx.c | 198 tx_ring = &vsi->back->tx_rings[i]; in iavf_detect_recover_hung() 2394 struct iavf_ring *tx_ring = &adapter->tx_rings[skb->queue_mapping]; in iavf_xmit_frame()
|
| /linux/drivers/net/ethernet/intel/ice/ |
| H A D | ice_dcb_lib.c | 209 return vsi->tx_rings[queue_index]->dcb_tc; in ice_dcb_get_tc() 226 tx_ring = vsi->tx_rings[i]; in ice_vsi_cfg_dcb_rings() 243 vsi->tx_rings[i]->dcb_tc = n; in ice_vsi_cfg_dcb_rings() 265 vsi->tx_rings[i]->dcb_tc = first_droptc; in ice_vsi_cfg_dcb_rings()
|
| /linux/drivers/net/ethernet/sun/ |
| H A D | niu.c | 3610 index = (rp - np->tx_rings); in niu_tx_work() 3757 struct tx_ring_info *rp = &np->tx_rings[i]; in niu_poll_core() 4109 struct tx_ring_info *rp = &np->tx_rings[i]; in niu_slowpath_interrupt() 4187 struct tx_ring_info *rp = &np->tx_rings[i]; in __niu_fastpath_interrupt() 4327 if (np->tx_rings) { in niu_free_channels() 4329 struct tx_ring_info *rp = &np->tx_rings[i]; in niu_free_channels() 4333 kfree(np->tx_rings); in niu_free_channels() 4334 np->tx_rings = NULL; in niu_free_channels() 4475 struct tx_ring_info *tx_rings; in niu_alloc_channels() local 4528 tx_rings = kcalloc(num_tx_rings, sizeof(struct tx_ring_info), in niu_alloc_channels() [all …]
|
| H A D | niu.h | 3274 struct tx_ring_info *tx_rings; member
|
| /linux/Documentation/networking/ |
| H A D | driver.rst | 66 dr = dp->tx_rings[idx];
|
| /linux/drivers/net/ethernet/aquantia/atlantic/hw_atl2/ |
| H A D | hw_atl2.c | 38 .tx_rings = HW_ATL2_TX_RINGS, \
|
| /linux/drivers/net/ethernet/qlogic/qlcnic/ |
| H A D | qlcnic_main.c | 3983 u8 tx_rings, rx_rings; in qlcnic_setup_rings() local 3989 tx_rings = adapter->drv_tss_rings; in qlcnic_setup_rings() 3994 err = qlcnic_set_real_num_queues(adapter, tx_rings, rx_rings); in qlcnic_setup_rings() 4020 if ((tx_rings != adapter->drv_tx_rings) || in qlcnic_setup_rings()
|
| /linux/drivers/net/ethernet/aquantia/atlantic/hw_atl/ |
| H A D | hw_atl_b0.c | 37 .tx_rings = HW_ATL_B0_TX_RINGS, \
|
| /linux/drivers/net/ethernet/broadcom/bnxt/ |
| H A D | bnxt.h | 2925 int __bnxt_hwrm_get_tx_rings(struct bnxt *bp, u16 fid, int *tx_rings);
|