• Home
  • Raw
  • Download

Lines Matching refs:cq_context

3324 	struct hns_roce_v2_cq_context *cq_context;  in hns_roce_v2_write_cqc()  local
3326 cq_context = mb_buf; in hns_roce_v2_write_cqc()
3327 memset(cq_context, 0, sizeof(*cq_context)); in hns_roce_v2_write_cqc()
3329 hr_reg_write(cq_context, CQC_CQ_ST, V2_CQ_STATE_VALID); in hns_roce_v2_write_cqc()
3330 hr_reg_write(cq_context, CQC_ARM_ST, NO_ARMED); in hns_roce_v2_write_cqc()
3331 hr_reg_write(cq_context, CQC_SHIFT, ilog2(hr_cq->cq_depth)); in hns_roce_v2_write_cqc()
3332 hr_reg_write(cq_context, CQC_CEQN, hr_cq->vector); in hns_roce_v2_write_cqc()
3333 hr_reg_write(cq_context, CQC_CQN, hr_cq->cqn); in hns_roce_v2_write_cqc()
3336 hr_reg_write(cq_context, CQC_CQE_SIZE, CQE_SIZE_64B); in hns_roce_v2_write_cqc()
3339 hr_reg_enable(cq_context, CQC_STASH); in hns_roce_v2_write_cqc()
3341 hr_reg_write(cq_context, CQC_CQE_CUR_BLK_ADDR_L, in hns_roce_v2_write_cqc()
3343 hr_reg_write(cq_context, CQC_CQE_CUR_BLK_ADDR_H, in hns_roce_v2_write_cqc()
3345 hr_reg_write(cq_context, CQC_CQE_HOP_NUM, hr_dev->caps.cqe_hop_num == in hns_roce_v2_write_cqc()
3347 hr_reg_write(cq_context, CQC_CQE_NEX_BLK_ADDR_L, in hns_roce_v2_write_cqc()
3349 hr_reg_write(cq_context, CQC_CQE_NEX_BLK_ADDR_H, in hns_roce_v2_write_cqc()
3351 hr_reg_write(cq_context, CQC_CQE_BAR_PG_SZ, in hns_roce_v2_write_cqc()
3353 hr_reg_write(cq_context, CQC_CQE_BUF_PG_SZ, in hns_roce_v2_write_cqc()
3355 hr_reg_write(cq_context, CQC_CQE_BA_L, dma_handle >> 3); in hns_roce_v2_write_cqc()
3356 hr_reg_write(cq_context, CQC_CQE_BA_H, (dma_handle >> (32 + 3))); in hns_roce_v2_write_cqc()
3357 hr_reg_write_bool(cq_context, CQC_DB_RECORD_EN, in hns_roce_v2_write_cqc()
3359 hr_reg_write(cq_context, CQC_CQE_DB_RECORD_ADDR_L, in hns_roce_v2_write_cqc()
3361 hr_reg_write(cq_context, CQC_CQE_DB_RECORD_ADDR_H, in hns_roce_v2_write_cqc()
3363 hr_reg_write(cq_context, CQC_CQ_MAX_CNT, in hns_roce_v2_write_cqc()
3365 hr_reg_write(cq_context, CQC_CQ_PERIOD, in hns_roce_v2_write_cqc()
5513 struct hns_roce_v2_cq_context *cq_context; in hns_roce_v2_modify_cq() local
5523 cq_context = mailbox->buf; in hns_roce_v2_modify_cq()
5528 hr_reg_write(cq_context, CQC_CQ_MAX_CNT, cq_count); in hns_roce_v2_modify_cq()
5540 hr_reg_write(cq_context, CQC_CQ_PERIOD, cq_period); in hns_roce_v2_modify_cq()