Lines Matching refs:ntu
965 u32 ntc, ntu; in hns3_tx_spare_space() local
971 ntu = tx_spare->next_to_use; in hns3_tx_spare_space()
973 if (ntc > ntu) in hns3_tx_spare_space()
974 return ntc - ntu - 1; in hns3_tx_spare_space()
979 return max(ntc, tx_spare->len - ntu) - 1; in hns3_tx_spare_space()
1094 u32 ntu = tx_spare->next_to_use; in hns3_tx_spare_alloc() local
1102 if (ntu + size > tx_spare->len) { in hns3_tx_spare_alloc()
1103 *cb_len += (tx_spare->len - ntu); in hns3_tx_spare_alloc()
1104 ntu = 0; in hns3_tx_spare_alloc()
1107 tx_spare->next_to_use = ntu + size; in hns3_tx_spare_alloc()
1111 *dma = tx_spare->dma + ntu; in hns3_tx_spare_alloc()
1113 return tx_spare->buf + ntu; in hns3_tx_spare_alloc()
3657 int ntu = ring->next_to_use; in hns3_desc_unused() local
3659 if (unlikely(ntc == ntu && !ring->desc_cb[ntc].refill)) in hns3_desc_unused()
3662 return ((ntc >= ntu) ? 0 : ring->desc_num) + ntc - ntu; in hns3_desc_unused()