Lines Matching full:ntc
560 u16 ntc = asq->next_to_clean; in iavf_clean_asq() local
564 desc = IAVF_ADMINQ_DESC(*asq, ntc); in iavf_clean_asq()
565 details = IAVF_ADMINQ_DETAILS(*asq, ntc); in iavf_clean_asq()
566 while (rd32(hw, IAVF_VF_ATQH1) != ntc) { in iavf_clean_asq()
568 "ntc %d head %d.\n", ntc, rd32(hw, IAVF_VF_ATQH1)); in iavf_clean_asq()
579 ntc++; in iavf_clean_asq()
580 if (ntc == asq->count) in iavf_clean_asq()
581 ntc = 0; in iavf_clean_asq()
582 desc = IAVF_ADMINQ_DESC(*asq, ntc); in iavf_clean_asq()
583 details = IAVF_ADMINQ_DETAILS(*asq, ntc); in iavf_clean_asq()
586 asq->next_to_clean = ntc; in iavf_clean_asq()
834 u16 ntc = hw->aq.arq.next_to_clean; in iavf_clean_arq_element() local
858 if (ntu == ntc) { in iavf_clean_arq_element()
865 desc = IAVF_ADMINQ_DESC(hw->aq.arq, ntc); in iavf_clean_arq_element()
866 desc_idx = ntc; in iavf_clean_arq_element()
894 bi = &hw->aq.arq.r.arq_bi[ntc]; in iavf_clean_arq_element()
905 wr32(hw, IAVF_VF_ARQT1, ntc); in iavf_clean_arq_element()
906 /* ntc is updated to tail + 1 */ in iavf_clean_arq_element()
907 ntc++; in iavf_clean_arq_element()
908 if (ntc == hw->aq.num_arq_entries) in iavf_clean_arq_element()
909 ntc = 0; in iavf_clean_arq_element()
910 hw->aq.arq.next_to_clean = ntc; in iavf_clean_arq_element()
916 *pending = (ntc > ntu ? hw->aq.arq.count : 0) + (ntu - ntc); in iavf_clean_arq_element()