/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
|
/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() 713 return rd32(hw, hw->aq.asq.head) == hw->aq.asq.next_to_use; in i40e_asq_done() 763 details = I40E_ADMINQ_DETAILS(hw->aq.asq, hw->aq.asq.next_to_use); in i40e_asq_send_command() 820 desc_on_ring = I40E_ADMINQ_DESC(hw->aq.asq, hw->aq.asq.next_to_use); in i40e_asq_send_command() 827 dma_buff = &(hw->aq.asq.r.asq_bi[hw->aq.asq.next_to_use]); in i40e_asq_send_command() 845 (hw->aq.asq.next_to_use)++; in i40e_asq_send_command() 846 if (hw->aq.asq.next_to_use == hw->aq.asq.count) in i40e_asq_send_command() 847 hw->aq.asq.next_to_use = 0; in i40e_asq_send_command() 849 wr32(hw, hw->aq.asq.tail, hw->aq.asq.next_to_use); in i40e_asq_send_command() [all …]
|
D | i40e_txrx.c | 93 i = tx_ring->next_to_use; in i40e_program_fdir_filter() 98 tx_ring->next_to_use = ((i + 1) < tx_ring->count) ? i + 1 : 0; in i40e_program_fdir_filter() 146 i = tx_ring->next_to_use; in i40e_program_fdir_filter() 150 tx_ring->next_to_use = ((i + 1) < tx_ring->count) ? i + 1 : 0; in i40e_program_fdir_filter() 178 writel(tx_ring->next_to_use, tx_ring->tail); in i40e_program_fdir_filter() 558 tx_ring->next_to_use = 0; in i40e_clean_tx_ring() 597 u32 ntu = ((ring->next_to_clean <= ring->next_to_use) in i40e_get_tx_pending() 598 ? ring->next_to_use in i40e_get_tx_pending() 599 : ring->next_to_use + ring->count); in i40e_get_tx_pending() 771 tx_ring->next_to_use, i); in i40e_clean_tx_irq() [all …]
|
D | i40e_fcoe.c | 1018 u16 i = tx_ring->next_to_use; in i40e_fcoe_program_ddp() 1097 tx_ring->next_to_use = i; in i40e_fcoe_program_ddp() 1118 i = tx_ring->next_to_use; in i40e_fcoe_invalidate_ddp() 1133 tx_ring->next_to_use = i; in i40e_fcoe_invalidate_ddp() 1256 context_desc = I40E_TX_CTXTDESC(tx_ring, tx_ring->next_to_use); in i40e_fcoe_tso() 1257 tx_ring->next_to_use++; in i40e_fcoe_tso() 1258 if (tx_ring->next_to_use == tx_ring->count) in i40e_fcoe_tso() 1259 tx_ring->next_to_use = 0; in i40e_fcoe_tso() 1384 first = &tx_ring->tx_bi[tx_ring->next_to_use]; in i40e_fcoe_xmit_frame()
|
D | i40e_adminq.h | 52 u16 next_to_use; member
|
/drivers/net/ethernet/intel/i40evf/ |
D | i40e_adminq.c | 385 hw->aq.asq.next_to_use = 0; in i40e_init_asq() 444 hw->aq.arq.next_to_use = 0; in i40e_init_arq() 667 return rd32(hw, hw->aq.asq.head) == hw->aq.asq.next_to_use; in i40evf_asq_done() 711 details = I40E_ADMINQ_DETAILS(hw->aq.asq, hw->aq.asq.next_to_use); in i40evf_asq_send_command() 768 desc_on_ring = I40E_ADMINQ_DESC(hw->aq.asq, hw->aq.asq.next_to_use); in i40evf_asq_send_command() 775 dma_buff = &(hw->aq.asq.r.asq_bi[hw->aq.asq.next_to_use]); in i40evf_asq_send_command() 793 (hw->aq.asq.next_to_use)++; in i40evf_asq_send_command() 794 if (hw->aq.asq.next_to_use == hw->aq.asq.count) in i40evf_asq_send_command() 795 hw->aq.asq.next_to_use = 0; in i40evf_asq_send_command() 797 wr32(hw, hw->aq.asq.tail, hw->aq.asq.next_to_use); in i40evf_asq_send_command() [all …]
|
D | i40e_txrx.c | 98 tx_ring->next_to_use = 0; in i40evf_clean_tx_ring() 137 u32 ntu = ((ring->next_to_clean <= ring->next_to_use) in i40e_get_tx_pending() 138 ? ring->next_to_use in i40e_get_tx_pending() 139 : ring->next_to_use + ring->count); in i40e_get_tx_pending() 305 tx_ring->next_to_use, i); in i40e_clean_tx_irq() 473 tx_ring->next_to_use = 0; in i40evf_setup_tx_descriptors() 533 rx_ring->next_to_use = 0; in i40evf_clean_rx_ring() 586 rx_ring->next_to_use = 0; in i40evf_setup_rx_descriptors() 602 rx_ring->next_to_use = val; in i40e_release_rx_desc() 619 u16 i = rx_ring->next_to_use; in i40evf_alloc_rx_buffers() [all …]
|
D | i40evf.h | 130 ((((R)->next_to_clean > (R)->next_to_use) ? 0 : (R)->count) + \ 131 (R)->next_to_clean - (R)->next_to_use - 1)
|
D | i40e_adminq.h | 52 u16 next_to_use; member
|
/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 | 722 txdr->next_to_use = 0; in ixgb_setup_tx_resources() 808 rxdr->next_to_use = 0; in ixgb_setup_rx_resources() 975 tx_ring->next_to_use = 0; in ixgb_clean_tx_ring() 1047 rx_ring->next_to_use = 0; in ixgb_clean_rx_ring() 1248 i = adapter->tx_ring.next_to_use; in ixgb_tso() 1272 adapter->tx_ring.next_to_use = i; in ixgb_tso() 1292 i = adapter->tx_ring.next_to_use; in ixgb_tx_csum() 1310 adapter->tx_ring.next_to_use = i; in ixgb_tx_csum() 1334 i = tx_ring->next_to_use; in ixgb_tx_map() 1445 i = tx_ring->next_to_use; in ixgb_tx_queue() [all …]
|
/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() 2138 rx_ring->next_to_use = 0; in e1000_clean_rx_ring() 2752 i = tx_ring->next_to_use; in e1000_tso() 2770 tx_ring->next_to_use = i; in e1000_tso() 2809 i = tx_ring->next_to_use; in e1000_tx_csum() 2825 tx_ring->next_to_use = i; in e1000_tx_csum() 2846 i = tx_ring->next_to_use; in e1000_tx_map() 3013 i = tx_ring->next_to_use; in e1000_tx_queue() [all …]
|
/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 …]
|
/drivers/net/ethernet/atheros/atl1c/ |
D | atl1c_main.c | 881 tpd_ring->next_to_use = 0; in atl1c_clean_tx_ring() 903 rfd_ring->next_to_use = 0; in atl1c_clean_rx_ring() 904 rrd_ring->next_to_use = 0; in atl1c_clean_rx_ring() 920 tpd_ring[i].next_to_use = 0; in atl1c_init_ring_ptrs() 927 rfd_ring->next_to_use = 0; in atl1c_init_ring_ptrs() 929 rrd_ring->next_to_use = 0; in atl1c_init_ring_ptrs() 1698 next_next = rfd_next_to_use = rfd_ring->next_to_use; in atl1c_alloc_rx_buffer() 1749 rfd_ring->next_to_use = rfd_next_to_use; in atl1c_alloc_rx_buffer() 1751 rfd_ring->next_to_use & MB_RFDX_PROD_IDX_MASK); in atl1c_alloc_rx_buffer() 1911 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
|
/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() 454 tx_ring->next_to_use = 0; in igbvf_setup_tx_resources() 494 rx_ring->next_to_use = 0; in igbvf_setup_rx_resources() 534 tx_ring->next_to_use = 0; in igbvf_clean_tx_ring() 618 rx_ring->next_to_use = 0; in igbvf_clean_rx_ring() [all …]
|
/drivers/net/ethernet/intel/fm10k/ |
D | fm10k_main.c | 122 u16 i = rx_ring->next_to_use; in fm10k_alloc_rx_buffers() 158 if (rx_ring->next_to_use != i) { in fm10k_alloc_rx_buffers() 160 rx_ring->next_to_use = i; in fm10k_alloc_rx_buffers() 804 tx_desc = FM10K_TX_DESC(tx_ring, tx_ring->next_to_use); in fm10k_tso() 888 tx_desc = FM10K_TX_DESC(tx_ring, tx_ring->next_to_use); in fm10k_tx_csum() 967 u16 i = tx_ring->next_to_use; in fm10k_tx_map() 1047 tx_ring->next_to_use = i; in fm10k_tx_map() 1077 tx_ring->next_to_use = i; in fm10k_tx_map() 1108 first = &tx_ring->tx_buffer[tx_ring->next_to_use]; in fm10k_xmit_frame_ring() 1142 u32 tail = ring->next_to_use; in fm10k_get_tx_pending() [all …]
|
D | fm10k.h | 138 u16 next_to_use; member 384 s16 unused = ring->next_to_clean - ring->next_to_use - 1; in fm10k_desc_unused()
|
/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()
|
/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
|
/drivers/net/ethernet/intel/e1000e/ |
D | netdev.c | 263 0, tx_ring->next_to_use, tx_ring->next_to_clean, in e1000e_dump() 310 if (i == tx_ring->next_to_use && i == tx_ring->next_to_clean) in e1000e_dump() 312 else if (i == tx_ring->next_to_use) in e1000e_dump() 340 0, rx_ring->next_to_use, rx_ring->next_to_clean); in e1000e_dump() 384 if (i == rx_ring->next_to_use) in e1000e_dump() 450 if (i == rx_ring->next_to_use) in e1000e_dump() 490 if (ring->next_to_clean > ring->next_to_use) in e1000_desc_unused() 491 return ring->next_to_clean - ring->next_to_use - 1; in e1000_desc_unused() 493 return ring->count + ring->next_to_clean - ring->next_to_use - 1; in e1000_desc_unused() 672 i = rx_ring->next_to_use; in e1000_alloc_rx_buffers() [all …]
|
/drivers/net/ethernet/intel/ixgbevf/ |
D | ixgbevf.h | 96 unsigned int next_to_use; member 313 u16 ntu = ring->next_to_use; in ixgbevf_desc_unused()
|