/linux-4.4.14/drivers/net/ethernet/intel/ixgb/ |
D | ixgb.h | 119 unsigned int next_to_use; member 127 ((((R)->next_to_clean > (R)->next_to_use) ? 0 : (R)->count) + \ 128 (R)->next_to_clean - (R)->next_to_use - 1)
|
D | ixgb_main.c | 723 txdr->next_to_use = 0; in ixgb_setup_tx_resources() 809 rxdr->next_to_use = 0; in ixgb_setup_rx_resources() 976 tx_ring->next_to_use = 0; in ixgb_clean_tx_ring() 1048 rx_ring->next_to_use = 0; in ixgb_clean_rx_ring() 1249 i = adapter->tx_ring.next_to_use; in ixgb_tso() 1273 adapter->tx_ring.next_to_use = i; in ixgb_tso() 1293 i = adapter->tx_ring.next_to_use; in ixgb_tx_csum() 1311 adapter->tx_ring.next_to_use = i; in ixgb_tx_csum() 1335 i = tx_ring->next_to_use; in ixgb_tx_map() 1446 i = tx_ring->next_to_use; in ixgb_tx_queue() [all …]
|
/linux-4.4.14/drivers/net/ethernet/intel/i40evf/ |
D | i40e_adminq.c | 374 hw->aq.asq.next_to_use = 0; in i40e_init_asq() 433 hw->aq.arq.next_to_use = 0; in i40e_init_arq() 654 return rd32(hw, hw->aq.asq.head) == hw->aq.asq.next_to_use; in i40evf_asq_done() 702 details = I40E_ADMINQ_DETAILS(hw->aq.asq, hw->aq.asq.next_to_use); in i40evf_asq_send_command() 757 desc_on_ring = I40E_ADMINQ_DESC(hw->aq.asq, hw->aq.asq.next_to_use); in i40evf_asq_send_command() 764 dma_buff = &(hw->aq.asq.r.asq_bi[hw->aq.asq.next_to_use]); in i40evf_asq_send_command() 782 (hw->aq.asq.next_to_use)++; in i40evf_asq_send_command() 783 if (hw->aq.asq.next_to_use == hw->aq.asq.count) in i40evf_asq_send_command() 784 hw->aq.asq.next_to_use = 0; in i40evf_asq_send_command() 786 wr32(hw, hw->aq.asq.tail, hw->aq.asq.next_to_use); in i40evf_asq_send_command() [all …]
|
D | i40e_txrx.c | 99 tx_ring->next_to_use = 0; in i40evf_clean_tx_ring() 453 tx_ring->next_to_use = 0; in i40evf_setup_tx_descriptors() 529 rx_ring->next_to_use = 0; in i40evf_clean_rx_ring() 617 rx_ring->next_to_use = 0; in i40evf_setup_rx_descriptors() 633 rx_ring->next_to_use = val; in i40e_release_rx_desc() 650 u16 i = rx_ring->next_to_use; in i40evf_alloc_rx_buffers_ps() 704 if (rx_ring->next_to_use != i) in i40evf_alloc_rx_buffers_ps() 715 u16 i = rx_ring->next_to_use; in i40evf_alloc_rx_buffers_1buf() 761 if (rx_ring->next_to_use != i) in i40evf_alloc_rx_buffers_1buf() 1638 int i = tx_ring->next_to_use; in i40e_create_tx_ctx() [all …]
|
D | i40evf.h | 132 ((((R)->next_to_clean > (R)->next_to_use) ? 0 : (R)->count) + \ 133 (R)->next_to_clean - (R)->next_to_use - 1)
|
D | i40e_adminq.h | 53 u16 next_to_use; member
|
D | i40e_txrx.h | 262 u16 next_to_use; member
|
D | i40e_type.h | 59 ((((R)->next_to_clean > (R)->next_to_use) ? 0 : (R)->count) + \ 60 (R)->next_to_clean - (R)->next_to_use - 1)
|
D | i40evf_main.c | 998 ring->next_to_use = ring->count - 1; in i40evf_configure() 999 writel(ring->next_to_use, ring->tail); in i40evf_configure()
|
/linux-4.4.14/drivers/net/ethernet/hisilicon/hns/ |
D | hns_enet.c | 41 struct hnae_desc *desc = &ring->desc[ring->next_to_use]; in fill_desc() 42 struct hnae_desc_cb *desc_cb = &ring->desc_cb[ring->next_to_use]; in fill_desc() 95 ring_ptr_move_fw(ring, next_to_use); in fill_desc() 100 ring_ptr_move_bw(ring, next_to_use); in unfill_desc() 114 int size, next_to_use; in hns_nic_net_xmit_hw() local 144 next_to_use = ring->next_to_use; in hns_nic_net_xmit_hw() 187 next_to_use = ring->next_to_use; in hns_nic_net_xmit_hw() 188 dma_unmap_page(dev, ring->desc_cb[next_to_use].dma, in hns_nic_net_xmit_hw() 189 ring->desc_cb[next_to_use].length, in hns_nic_net_xmit_hw() 194 next_to_use = ring->next_to_use; in hns_nic_net_xmit_hw() [all …]
|
D | hnae.h | 238 int next_to_use; /* idx of next spare desc */ member 276 ring_dist(ring, ring->next_to_clean, ring->next_to_use) - 1; in ring_space() 281 assert_is_ring_idx(ring, ring->next_to_use); in is_ring_empty() 284 return ring->next_to_use == ring->next_to_clean; in is_ring_empty()
|
D | hnae.c | 184 ring->next_to_use = 0; in hnae_fini_ring() 201 assert(ring->next_to_use == 0); in hnae_init_ring()
|
D | hns_dsaf_rcb.c | 420 ring->next_to_use = 0; in hns_rcb_ring_get_cfg()
|
/linux-4.4.14/drivers/net/ethernet/atheros/atlx/ |
D | atl1.c | 1133 atomic_set(&tpd_ring->next_to_use, 0); in atl1_init_ring_ptrs() 1137 atomic_set(&rfd_ring->next_to_use, 0); in atl1_init_ring_ptrs() 1139 rrd_ring->next_to_use = 0; in atl1_init_ring_ptrs() 1177 atomic_set(&rfd_ring->next_to_use, 0); in atl1_clean_rx_ring() 1179 rrd_ring->next_to_use = 0; in atl1_clean_rx_ring() 1219 atomic_set(&tpd_ring->next_to_use, 0); in atl1_clean_tx_ring() 1518 value = ((atomic_read(&adapter->tpd_ring.next_to_use) in atl1_configure() 1522 ((atomic_read(&adapter->rfd_ring.next_to_use) in atl1_configure() 1764 tpd_next_to_use = atomic_read(&adapter->tpd_ring.next_to_use); in atl1_update_mailbox() 1765 rfd_next_to_use = atomic_read(&adapter->rfd_ring.next_to_use); in atl1_update_mailbox() [all …]
|
D | atl1.h | 621 atomic_t next_to_use; member 631 atomic_t next_to_use; member 642 u16 next_to_use; member
|
/linux-4.4.14/drivers/net/ethernet/intel/i40e/ |
D | i40e_adminq.c | 387 hw->aq.asq.next_to_use = 0; in i40e_init_asq() 446 hw->aq.arq.next_to_use = 0; in i40e_init_arq() 721 return rd32(hw, hw->aq.asq.head) == hw->aq.asq.next_to_use; in i40e_asq_done() 769 details = I40E_ADMINQ_DETAILS(hw->aq.asq, hw->aq.asq.next_to_use); in i40e_asq_send_command() 824 desc_on_ring = I40E_ADMINQ_DESC(hw->aq.asq, hw->aq.asq.next_to_use); in i40e_asq_send_command() 831 dma_buff = &(hw->aq.asq.r.asq_bi[hw->aq.asq.next_to_use]); in i40e_asq_send_command() 849 (hw->aq.asq.next_to_use)++; in i40e_asq_send_command() 850 if (hw->aq.asq.next_to_use == hw->aq.asq.count) in i40e_asq_send_command() 851 hw->aq.asq.next_to_use = 0; in i40e_asq_send_command() 853 wr32(hw, hw->aq.asq.tail, hw->aq.asq.next_to_use); in i40e_asq_send_command() [all …]
|
D | i40e_txrx.c | 94 i = tx_ring->next_to_use; in i40e_program_fdir_filter() 99 tx_ring->next_to_use = ((i + 1) < tx_ring->count) ? i + 1 : 0; in i40e_program_fdir_filter() 147 i = tx_ring->next_to_use; in i40e_program_fdir_filter() 151 tx_ring->next_to_use = ((i + 1) < tx_ring->count) ? i + 1 : 0; in i40e_program_fdir_filter() 176 writel(tx_ring->next_to_use, tx_ring->tail); in i40e_program_fdir_filter() 574 tx_ring->next_to_use = 0; in i40e_clean_tx_ring() 979 tx_ring->next_to_use = 0; in i40e_setup_tx_descriptors() 1055 rx_ring->next_to_use = 0; in i40e_clean_rx_ring() 1143 rx_ring->next_to_use = 0; in i40e_setup_rx_descriptors() 1159 rx_ring->next_to_use = val; in i40e_release_rx_desc() [all …]
|
D | i40e_fcoe.c | 1013 u16 i = tx_ring->next_to_use; in i40e_fcoe_program_ddp() 1092 tx_ring->next_to_use = i; in i40e_fcoe_program_ddp() 1113 i = tx_ring->next_to_use; in i40e_fcoe_invalidate_ddp() 1128 tx_ring->next_to_use = i; in i40e_fcoe_invalidate_ddp() 1251 context_desc = I40E_TX_CTXTDESC(tx_ring, tx_ring->next_to_use); in i40e_fcoe_tso() 1252 tx_ring->next_to_use++; in i40e_fcoe_tso() 1253 if (tx_ring->next_to_use == tx_ring->count) in i40e_fcoe_tso() 1254 tx_ring->next_to_use = 0; in i40e_fcoe_tso() 1378 first = &tx_ring->tx_bi[tx_ring->next_to_use]; in i40e_fcoe_xmit_frame()
|
D | i40e_adminq.h | 53 u16 next_to_use; member
|
D | i40e_txrx.h | 263 u16 next_to_use; member
|
D | i40e_type.h | 59 ((((R)->next_to_clean > (R)->next_to_use) ? 0 : (R)->count) + \ 60 (R)->next_to_clean - (R)->next_to_use - 1)
|
D | i40e_debugfs.c | 515 rx_ring->next_to_use, in i40e_dbg_dump_vsi_seid() 562 tx_ring->next_to_use, in i40e_dbg_dump_vsi_seid()
|
D | i40e_main.c | 359 head, tx_ring->next_to_use, in i40e_tx_timeout() 393 rx_ring->next_to_use = val; in i40e_release_rx_desc()
|
/linux-4.4.14/drivers/net/ethernet/intel/e1000/ |
D | e1000.h | 180 unsigned int next_to_use; member 201 unsigned int next_to_use; member 216 ((((R)->next_to_clean > (R)->next_to_use) \ 217 ? 0 : (R)->count) + (R)->next_to_clean - (R)->next_to_use - 1)
|
D | e1000_main.c | 1560 txdr->next_to_use = 0; in e1000_setup_tx_resources() 1752 rxdr->next_to_use = 0; in e1000_setup_rx_resources() 2008 tx_ring->next_to_use = 0; in e1000_clean_tx_ring() 2133 rx_ring->next_to_use = 0; in e1000_clean_rx_ring() 2747 i = tx_ring->next_to_use; in e1000_tso() 2765 tx_ring->next_to_use = i; in e1000_tso() 2804 i = tx_ring->next_to_use; in e1000_tx_csum() 2820 tx_ring->next_to_use = i; in e1000_tx_csum() 2841 i = tx_ring->next_to_use; in e1000_tx_map() 3007 i = tx_ring->next_to_use; in e1000_tx_queue() [all …]
|
D | e1000_ethtool.c | 1022 txdr->next_to_use = txdr->next_to_clean = 0; in e1000_setup_desc_rings() 1080 rxdr->next_to_use = rxdr->next_to_clean = 0; in e1000_setup_desc_rings()
|
/linux-4.4.14/drivers/net/ethernet/atheros/atl1e/ |
D | atl1e_main.c | 771 tx_ring->next_to_use = 0; in atl1e_init_ring_ptrs() 1572 u16 next_to_use = 0; in atl1e_tpd_avail() local 1576 next_to_use = tx_ring->next_to_use; in atl1e_tpd_avail() 1578 return (u16)(next_to_clean > next_to_use) ? in atl1e_tpd_avail() 1579 (next_to_clean - next_to_use - 1) : in atl1e_tpd_avail() 1580 (tx_ring->count + next_to_clean - next_to_use - 1); in atl1e_tpd_avail() 1591 u16 next_to_use = 0; in atl1e_get_tpd() local 1593 next_to_use = tx_ring->next_to_use; in atl1e_get_tpd() 1594 if (++tx_ring->next_to_use == tx_ring->count) in atl1e_get_tpd() 1595 tx_ring->next_to_use = 0; in atl1e_get_tpd() [all …]
|
D | atl1e.h | 414 u16 next_to_use; member
|
/linux-4.4.14/drivers/net/ethernet/atheros/atl1c/ |
D | atl1c_main.c | 883 tpd_ring->next_to_use = 0; in atl1c_clean_tx_ring() 905 rfd_ring->next_to_use = 0; in atl1c_clean_rx_ring() 906 rrd_ring->next_to_use = 0; in atl1c_clean_rx_ring() 922 tpd_ring[i].next_to_use = 0; in atl1c_init_ring_ptrs() 929 rfd_ring->next_to_use = 0; in atl1c_init_ring_ptrs() 931 rrd_ring->next_to_use = 0; in atl1c_init_ring_ptrs() 1707 next_next = rfd_next_to_use = rfd_ring->next_to_use; in atl1c_alloc_rx_buffer() 1758 rfd_ring->next_to_use = rfd_next_to_use; in atl1c_alloc_rx_buffer() 1760 rfd_ring->next_to_use & MB_RFDX_PROD_IDX_MASK); in atl1c_alloc_rx_buffer() 1920 u16 next_to_use = 0; in atl1c_tpd_avail() local [all …]
|
D | atl1c.h | 491 u16 next_to_use; /* this is protectd by adapter->tx_lock */ member 502 u16 next_to_use; member 513 u16 next_to_use; member
|
/linux-4.4.14/drivers/net/ethernet/intel/igb/ |
D | igb.h | 253 u16 next_to_use; member 317 if (ring->next_to_clean > ring->next_to_use) in igb_desc_unused() 318 return ring->next_to_clean - ring->next_to_use - 1; in igb_desc_unused() 320 return ring->count + ring->next_to_clean - ring->next_to_use - 1; in igb_desc_unused()
|
D | igb_main.c | 407 n, tx_ring->next_to_use, tx_ring->next_to_clean, in igb_dump() 444 if (i == tx_ring->next_to_use && in igb_dump() 447 else if (i == tx_ring->next_to_use) in igb_dump() 479 n, rx_ring->next_to_use, rx_ring->next_to_clean); in igb_dump() 525 if (i == rx_ring->next_to_use) in igb_dump() 3195 tx_ring->next_to_use = 0; in igb_setup_tx_resources() 3339 rx_ring->next_to_use = 0; in igb_setup_rx_resources() 3780 tx_ring->next_to_use = 0; in igb_clean_tx_ring() 3875 rx_ring->next_to_use = 0; in igb_clean_rx_ring() 4623 u16 i = tx_ring->next_to_use; in igb_tx_ctxtdesc() [all …]
|
/linux-4.4.14/drivers/net/ethernet/intel/igbvf/ |
D | netdev.c | 92 if (ring->next_to_clean > ring->next_to_use) in igbvf_desc_unused() 93 return ring->next_to_clean - ring->next_to_use - 1; in igbvf_desc_unused() 95 return ring->count + ring->next_to_clean - ring->next_to_use - 1; in igbvf_desc_unused() 167 i = rx_ring->next_to_use; in igbvf_alloc_rx_buffers() 240 if (rx_ring->next_to_use != i) { in igbvf_alloc_rx_buffers() 241 rx_ring->next_to_use = i; in igbvf_alloc_rx_buffers() 457 tx_ring->next_to_use = 0; in igbvf_setup_tx_resources() 497 rx_ring->next_to_use = 0; in igbvf_setup_rx_resources() 537 tx_ring->next_to_use = 0; in igbvf_clean_tx_ring() 621 rx_ring->next_to_use = 0; in igbvf_clean_rx_ring() [all …]
|
D | igbvf.h | 153 u16 next_to_use; member
|
/linux-4.4.14/drivers/net/ethernet/intel/fm10k/ |
D | fm10k_main.c | 133 u16 i = rx_ring->next_to_use; in fm10k_alloc_rx_buffers() 169 if (rx_ring->next_to_use != i) { in fm10k_alloc_rx_buffers() 171 rx_ring->next_to_use = i; in fm10k_alloc_rx_buffers() 817 tx_desc = FM10K_TX_DESC(tx_ring, tx_ring->next_to_use); in fm10k_tso() 902 tx_desc = FM10K_TX_DESC(tx_ring, tx_ring->next_to_use); in fm10k_tx_csum() 981 u16 i = tx_ring->next_to_use; in fm10k_tx_map() 1061 tx_ring->next_to_use = i; in fm10k_tx_map() 1091 tx_ring->next_to_use = i; in fm10k_tx_map() 1117 first = &tx_ring->tx_buffer[tx_ring->next_to_use]; in fm10k_xmit_frame_ring() 1151 u32 tail = ring->next_to_use; in fm10k_get_tx_pending() [all …]
|
D | fm10k.h | 145 u16 next_to_use; member 405 s16 unused = ring->next_to_clean - ring->next_to_use - 1; in fm10k_desc_unused()
|
D | fm10k_pci.c | 430 if (tx_ring->next_to_use != tx_ring->next_to_clean) { in fm10k_watchdog_flush_tx() 568 ring->next_to_use = 0; in fm10k_configure_tx_ring() 674 ring->next_to_use = 0; in fm10k_configure_rx_ring()
|
D | fm10k_netdev.c | 303 rx_ring->next_to_use = 0; in fm10k_clean_rx_ring()
|
/linux-4.4.14/drivers/net/ethernet/oki-semi/pch_gbe/ |
D | pch_gbe_main.c | 71 ((((R)->next_to_clean > (R)->next_to_use) ? 0 : (R)->count) + \ 72 (R)->next_to_clean - (R)->next_to_use - 1) 997 tx_ring->next_to_use = 0; in pch_gbe_clean_tx_ring() 1030 rx_ring->next_to_use = 0; in pch_gbe_clean_rx_ring() 1204 ring_num = tx_ring->next_to_use; in pch_gbe_tx_queue() 1206 tx_ring->next_to_use = 0; in pch_gbe_tx_queue() 1208 tx_ring->next_to_use = ring_num + 1; in pch_gbe_tx_queue() 1230 tx_ring->next_to_use = ring_num; in pch_gbe_tx_queue() 1421 i = rx_ring->next_to_use; in pch_gbe_alloc_rx_buffers() 1459 if (likely(rx_ring->next_to_use != i)) { in pch_gbe_alloc_rx_buffers() [all …]
|
D | pch_gbe.h | 499 unsigned int next_to_use; member 522 unsigned int next_to_use; member
|
/linux-4.4.14/drivers/net/ethernet/freescale/ |
D | gianfar.h | 1050 u16 next_to_use; member 1313 if (rxq->next_to_clean > rxq->next_to_use) in gfar_rxbd_unused() 1314 return rxq->next_to_clean - rxq->next_to_use - 1; in gfar_rxbd_unused() 1316 return rxq->rx_ring_size + rxq->next_to_clean - rxq->next_to_use - 1; in gfar_rxbd_unused() 1325 i = rxq->next_to_use ? rxq->next_to_use - 1 : rxq->rx_ring_size - 1; in gfar_rxbd_dma_lastfree()
|
D | gianfar.c | 209 rx_queue->next_to_use = 0; in gfar_init_bds() 2801 i = rx_queue->next_to_use; in gfar_alloc_rx_buffs() 2829 rx_queue->next_to_use = i; in gfar_alloc_rx_buffs()
|
/linux-4.4.14/drivers/net/ethernet/intel/e1000e/ |
D | netdev.c | 264 0, tx_ring->next_to_use, tx_ring->next_to_clean, in e1000e_dump() 311 if (i == tx_ring->next_to_use && i == tx_ring->next_to_clean) in e1000e_dump() 313 else if (i == tx_ring->next_to_use) in e1000e_dump() 341 0, rx_ring->next_to_use, rx_ring->next_to_clean); in e1000e_dump() 385 if (i == rx_ring->next_to_use) in e1000e_dump() 451 if (i == rx_ring->next_to_use) in e1000e_dump() 491 if (ring->next_to_clean > ring->next_to_use) in e1000_desc_unused() 492 return ring->next_to_clean - ring->next_to_use - 1; in e1000_desc_unused() 494 return ring->count + ring->next_to_clean - ring->next_to_use - 1; in e1000_desc_unused() 673 i = rx_ring->next_to_use; in e1000_alloc_rx_buffers() [all …]
|
D | e1000.h | 178 u16 next_to_use; member
|
D | ethtool.c | 1194 tx_ring->next_to_use = 0; in e1000_setup_desc_rings() 1254 rx_ring->next_to_use = 0; in e1000_setup_desc_rings()
|
/linux-4.4.14/drivers/net/ethernet/intel/ixgbevf/ |
D | ixgbevf.h | 115 u16 next_to_use; member 350 u16 ntu = ring->next_to_use; in ixgbevf_desc_unused()
|
D | ixgbevf_main.c | 407 tx_ring->next_to_use, i, in ixgbevf_clean_tx_irq() 625 unsigned int i = rx_ring->next_to_use; in ixgbevf_alloc_rx_buffers() 661 if (rx_ring->next_to_use != i) { in ixgbevf_alloc_rx_buffers() 663 rx_ring->next_to_use = i; in ixgbevf_alloc_rx_buffers() 1578 ring->next_to_use = 0; in ixgbevf_configure_tx_ring() 1761 ring->next_to_use = 0; in ixgbevf_configure_rx_ring() 3262 u16 i = tx_ring->next_to_use; in ixgbevf_tx_ctxtdesc() 3267 tx_ring->next_to_use = (i < tx_ring->count) ? i : 0; in ixgbevf_tx_ctxtdesc() 3471 u16 i = tx_ring->next_to_use; in ixgbevf_tx_map() 3560 tx_ring->next_to_use = i; in ixgbevf_tx_map() [all …]
|
/linux-4.4.14/drivers/net/ethernet/intel/ixgbe/ |
D | ixgbe.h | 282 u16 next_to_use; member 562 u16 ntu = ring->next_to_use; in ixgbe_desc_unused()
|
D | ixgbe_main.c | 613 n, tx_ring->next_to_use, tx_ring->next_to_clean, in ixgbe_dump() 685 if (i == tx_ring->next_to_use && in ixgbe_dump() 688 else if (i == tx_ring->next_to_use) in ixgbe_dump() 713 n, rx_ring->next_to_use, rx_ring->next_to_clean); in ixgbe_dump() 811 if (i == rx_ring->next_to_use) in ixgbe_dump() 1204 tx_ring->next_to_use, i, in ixgbe_clean_tx_irq() 1543 u16 i = rx_ring->next_to_use; in ixgbe_alloc_rx_buffers() 1580 if (rx_ring->next_to_use != i) { in ixgbe_alloc_rx_buffers() 1581 rx_ring->next_to_use = i; in ixgbe_alloc_rx_buffers() 4646 rx_ring->next_to_use = 0; in ixgbe_clean_rx_ring() [all …]
|
D | ixgbe_lib.c | 1206 u16 i = tx_ring->next_to_use; in ixgbe_tx_ctxtdesc() 1211 tx_ring->next_to_use = (i < tx_ring->count) ? i : 0; in ixgbe_tx_ctxtdesc()
|
/linux-4.4.14/drivers/net/ethernet/ |
D | jme.c | 588 txring->next_to_use = 0; in jme_setup_tx_resources() 653 txring->next_to_use = 0; in jme_free_tx_resources() 826 rxring->next_to_use = 0; in jme_free_rx_resources() 849 rxring->next_to_use = 0; in jme_setup_rx_resources() 1980 idx = txring->next_to_use; in jme_alloc_txdesc() 1988 txring->next_to_use = (txring->next_to_use + nr_alloc) & mask; in jme_alloc_txdesc()
|
D | jme.h | 385 int next_to_use; member
|