Lines Matching refs:cons_index
3520 *hr_cq->set_ci_db = hr_cq->cons_index & V2_CQ_DB_CONS_IDX_M; in update_cq_db()
3526 hr_reg_write(&cq_db, DB_CQ_CI, hr_cq->cons_index); in update_cq_db()
3543 for (prod_index = hr_cq->cons_index; get_sw_cqe_v2(hr_cq, prod_index); in __hns_roce_v2_cq_clean()
3545 if (prod_index > hr_cq->cons_index + hr_cq->ib_cq.cqe) in __hns_roce_v2_cq_clean()
3553 while ((int) --prod_index - (int) hr_cq->cons_index >= 0) { in __hns_roce_v2_cq_clean()
3571 hr_cq->cons_index += nfreed; in __hns_roce_v2_cq_clean()
3650 hr_reg_write(&cq_db, DB_CQ_CI, hr_cq->cons_index); in hns_roce_v2_req_notify_cq()
3930 cqe = get_sw_cqe_v2(hr_cq, hr_cq->cons_index); in hns_roce_v2_poll_one()
3934 ++hr_cq->cons_index; in hns_roce_v2_poll_one()
6070 hr_reg_write(&eq_db, EQ_DB_CI, eq->cons_index); in update_eq_db()
6080 (eq->cons_index & (eq->entries - 1)) * in next_aeqe_sw_v2()
6084 !!(eq->cons_index & eq->entries)) ? aeqe : NULL; in next_aeqe_sw_v2()
6139 event_type, eq->eqn, eq->cons_index); in hns_roce_v2_aeq_int()
6145 ++eq->cons_index; in hns_roce_v2_aeq_int()
6165 (eq->cons_index & (eq->entries - 1)) * in next_ceqe_sw_v2()
6169 !!(eq->cons_index & eq->entries)) ? ceqe : NULL; in next_ceqe_sw_v2()
6430 eq->cons_index = 0; in init_eq_config()
6580 ++eq->cons_index; in hns_roce_ceq_work()