Home
last modified time | relevance | path

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

/f-stack/dpdk/drivers/net/hns3/
H A Dhns3_cmd.c20 int ntu = ring->next_to_use; in hns3_ring_space() local
22 int used = (ntu - ntc + ring->desc_num) % ring->desc_num; in hns3_ring_space()
30 int ntu = ring->next_to_use; in is_valid_csq_clean_head() local
33 if (ntu > ntc) in is_valid_csq_clean_head()
34 return head >= ntc && head <= ntu; in is_valid_csq_clean_head()
36 return head >= ntc || head <= ntu; in is_valid_csq_clean_head()
/f-stack/dpdk/drivers/net/i40e/base/
H A Di40e_adminq.c1087 u16 ntu; local
1105 ntu = rd32(hw, hw->aq.arq.head) & I40E_PF_ARQH_ARQH_MASK;
1107 ntu = rd32(hw, hw->aq.arq.head) & I40E_VF_ARQH1_ARQH_MASK;
1110 ntu = rd32(hw, hw->aq.arq.head) & I40E_PF_ARQH_ARQH_MASK;
1113 ntu = rd32(hw, hw->aq.arq.head) & I40E_VF_ARQH1_ARQH_MASK;
1116 if (ntu == ntc) {
1171 hw->aq.arq.next_to_use = ntu;
1179 *pending = (ntc > ntu ? hw->aq.arq.count : 0) + (ntu - ntc);
/f-stack/dpdk/drivers/net/ice/base/
H A Dice_controlq.c1119 u16 ntu; in ice_clean_rq_elem() local
1134 ntu = (u16)(rd32(hw, cq->rq.head) & cq->rq.head_mask); in ice_clean_rq_elem()
1136 if (ntu == ntc) { in ice_clean_rq_elem()
1185 cq->rq.next_to_use = ntu; in ice_clean_rq_elem()
1191 ntu = (u16)(rd32(hw, cq->rq.head) & cq->rq.head_mask); in ice_clean_rq_elem()
1192 *pending = (u16)((ntc > ntu ? cq->rq.count : 0) + (ntu - ntc)); in ice_clean_rq_elem()
/f-stack/dpdk/drivers/common/iavf/
H A Diavf_adminq.c879 u16 ntu; in iavf_clean_arq_element() local
895 ntu = rd32(hw, hw->aq.arq.head) & IAVF_VF_ARQH1_ARQH_MASK; in iavf_clean_arq_element()
896 if (ntu == ntc) { in iavf_clean_arq_element()
951 hw->aq.arq.next_to_use = ntu; in iavf_clean_arq_element()
956 *pending = (ntc > ntu ? hw->aq.arq.count : 0) + (ntu - ntc); in iavf_clean_arq_element()