Home
last modified time | relevance | path

Searched refs:ntu (Results 1 – 4 of 4) sorted by relevance

/dpdk/drivers/net/hns3/
H A Dhns3_cmd.c16 int ntu = ring->next_to_use; in hns3_ring_space() local
18 int used = (ntu - ntc + ring->desc_num) % ring->desc_num; in hns3_ring_space()
26 int ntu = ring->next_to_use; in is_valid_csq_clean_head() local
29 if (ntu > ntc) in is_valid_csq_clean_head()
30 return head >= ntc && head <= ntu; in is_valid_csq_clean_head()
32 return head >= ntc || head <= ntu; in is_valid_csq_clean_head()
/dpdk/drivers/net/i40e/base/
H A Di40e_adminq.c1150 u16 ntu; local
1168 ntu = rd32(hw, hw->aq.arq.head) & I40E_PF_ARQH_ARQH_MASK;
1170 ntu = rd32(hw, hw->aq.arq.head) & I40E_VF_ARQH1_ARQH_MASK;
1173 ntu = rd32(hw, hw->aq.arq.head) & I40E_PF_ARQH_ARQH_MASK;
1176 ntu = rd32(hw, hw->aq.arq.head) & I40E_VF_ARQH1_ARQH_MASK;
1179 if (ntu == ntc) {
1234 hw->aq.arq.next_to_use = ntu;
1242 *pending = (ntc > ntu ? hw->aq.arq.count : 0) + (ntu - ntc);
/dpdk/drivers/net/ice/base/
H A Dice_controlq.c1170 u16 ntu; in ice_clean_rq_elem() local
1185 ntu = (u16)(rd32(hw, cq->rq.head) & cq->rq.head_mask); in ice_clean_rq_elem()
1187 if (ntu == ntc) { in ice_clean_rq_elem()
1235 cq->rq.next_to_use = ntu; in ice_clean_rq_elem()
1241 ntu = (u16)(rd32(hw, cq->rq.head) & cq->rq.head_mask); in ice_clean_rq_elem()
1242 *pending = (u16)((ntc > ntu ? cq->rq.count : 0) + (ntu - ntc)); in ice_clean_rq_elem()
/dpdk/drivers/common/iavf/
H A Diavf_adminq.c883 u16 ntu; in iavf_clean_arq_element() local
899 ntu = rd32(hw, hw->aq.arq.head) & IAVF_VF_ARQH1_ARQH_MASK; in iavf_clean_arq_element()
900 if (ntu == ntc) { in iavf_clean_arq_element()
955 hw->aq.arq.next_to_use = ntu; in iavf_clean_arq_element()
960 *pending = (ntc > ntu ? hw->aq.arq.count : 0) + (ntu - ntc); in iavf_clean_arq_element()