Lines Matching refs:ntc
865 u16 ntc = sq->next_to_clean; in ice_clean_sq() local
869 desc = ICE_CTL_Q_DESC(*sq, ntc); in ice_clean_sq()
870 details = ICE_CTL_Q_DETAILS(*sq, ntc); in ice_clean_sq()
872 while (rd32(hw, cq->sq.head) != ntc) { in ice_clean_sq()
873 ice_debug(hw, ICE_DBG_AQ_MSG, "ntc %d head %d.\n", ntc, rd32(hw, cq->sq.head)); in ice_clean_sq()
876 ntc++; in ice_clean_sq()
877 if (ntc == sq->count) in ice_clean_sq()
878 ntc = 0; in ice_clean_sq()
879 desc = ICE_CTL_Q_DESC(*sq, ntc); in ice_clean_sq()
880 details = ICE_CTL_Q_DETAILS(*sq, ntc); in ice_clean_sq()
883 sq->next_to_clean = ntc; in ice_clean_sq()
1157 u16 ntc = cq->rq.next_to_clean; in ice_clean_rq_elem() local
1182 if (ntu == ntc) { in ice_clean_rq_elem()
1189 desc = ICE_CTL_Q_DESC(cq->rq, ntc); in ice_clean_rq_elem()
1190 desc_idx = ntc; in ice_clean_rq_elem()
1212 bi = &cq->rq.r.rq_bi[ntc]; in ice_clean_rq_elem()
1223 wr32(hw, cq->rq.tail, ntc); in ice_clean_rq_elem()
1225 ntc++; in ice_clean_rq_elem()
1226 if (ntc == cq->num_rq_entries) in ice_clean_rq_elem()
1227 ntc = 0; in ice_clean_rq_elem()
1228 cq->rq.next_to_clean = ntc; in ice_clean_rq_elem()
1236 *pending = (u16)((ntc > ntu ? cq->rq.count : 0) + (ntu - ntc)); in ice_clean_rq_elem()