Lines Matching refs:ntu
973 u32 ntc, ntu; in hns3_tx_spare_space() local
979 ntu = tx_spare->next_to_use; in hns3_tx_spare_space()
981 if (ntc > ntu) in hns3_tx_spare_space()
982 return ntc - ntu - 1; in hns3_tx_spare_space()
987 return max(ntc, tx_spare->len - ntu) - 1; in hns3_tx_spare_space()
1105 u32 ntu = tx_spare->next_to_use; in hns3_tx_spare_alloc() local
1113 if (ntu + size > tx_spare->len) { in hns3_tx_spare_alloc()
1114 *cb_len += (tx_spare->len - ntu); in hns3_tx_spare_alloc()
1115 ntu = 0; in hns3_tx_spare_alloc()
1118 tx_spare->next_to_use = ntu + size; in hns3_tx_spare_alloc()
1122 *dma = tx_spare->dma + ntu; in hns3_tx_spare_alloc()
1124 return tx_spare->buf + ntu; in hns3_tx_spare_alloc()
3680 int ntu = ring->next_to_use; in hns3_desc_unused() local
3682 if (unlikely(ntc == ntu && !ring->desc_cb[ntc].refill)) in hns3_desc_unused()
3685 return ((ntc >= ntu) ? 0 : ring->desc_num) + ntc - ntu; in hns3_desc_unused()