Lines Matching refs:ntc
623 u16 ntc = asq->next_to_clean; in i40e_clean_asq() local
627 desc = I40E_ADMINQ_DESC(*asq, ntc); in i40e_clean_asq()
628 details = I40E_ADMINQ_DETAILS(*asq, ntc); in i40e_clean_asq()
629 while (rd32(hw, hw->aq.asq.head) != ntc) { in i40e_clean_asq()
631 "%s: ntc %d head %d.\n", __func__, ntc, in i40e_clean_asq()
643 ntc++; in i40e_clean_asq()
644 if (ntc == asq->count) in i40e_clean_asq()
645 ntc = 0; in i40e_clean_asq()
646 desc = I40E_ADMINQ_DESC(*asq, ntc); in i40e_clean_asq()
647 details = I40E_ADMINQ_DETAILS(*asq, ntc); in i40e_clean_asq()
650 asq->next_to_clean = ntc; in i40e_clean_asq()
890 u16 ntc = hw->aq.arq.next_to_clean; in i40evf_clean_arq_element() local
903 if (ntu == ntc) { in i40evf_clean_arq_element()
910 desc = I40E_ADMINQ_DESC(hw->aq.arq, ntc); in i40evf_clean_arq_element()
911 desc_idx = ntc; in i40evf_clean_arq_element()
939 bi = &hw->aq.arq.r.arq_bi[ntc]; in i40evf_clean_arq_element()
950 wr32(hw, hw->aq.arq.tail, ntc); in i40evf_clean_arq_element()
952 ntc++; in i40evf_clean_arq_element()
953 if (ntc == hw->aq.num_arq_entries) in i40evf_clean_arq_element()
954 ntc = 0; in i40evf_clean_arq_element()
955 hw->aq.arq.next_to_clean = ntc; in i40evf_clean_arq_element()
961 *pending = (ntc > ntu ? hw->aq.arq.count : 0) + (ntu - ntc); in i40evf_clean_arq_element()