Lines Matching refs:r_a
1668 struct hns_roce_cmq_req *r_a = (struct hns_roce_cmq_req *)desc[0].data; in load_func_res_caps() local
1691 caps->qpc_bt_num = hr_reg_read(r_a, FUNC_RES_A_QPC_BT_NUM) / func_num; in load_func_res_caps()
1692 caps->srqc_bt_num = hr_reg_read(r_a, FUNC_RES_A_SRQC_BT_NUM) / func_num; in load_func_res_caps()
1693 caps->cqc_bt_num = hr_reg_read(r_a, FUNC_RES_A_CQC_BT_NUM) / func_num; in load_func_res_caps()
1694 caps->mpt_bt_num = hr_reg_read(r_a, FUNC_RES_A_MPT_BT_NUM) / func_num; in load_func_res_caps()
1695 caps->eqc_bt_num = hr_reg_read(r_a, FUNC_RES_A_EQC_BT_NUM) / func_num; in load_func_res_caps()
1840 struct hns_roce_cmq_req *r_a = (struct hns_roce_cmq_req *)desc[0].data; in config_vf_hem_resource() local
1849 hr_reg_write(r_a, FUNC_RES_A_VF_ID, vf_id); in config_vf_hem_resource()
1851 hr_reg_write(r_a, FUNC_RES_A_QPC_BT_NUM, caps->qpc_bt_num); in config_vf_hem_resource()
1852 hr_reg_write(r_a, FUNC_RES_A_QPC_BT_IDX, vf_id * caps->qpc_bt_num); in config_vf_hem_resource()
1853 hr_reg_write(r_a, FUNC_RES_A_SRQC_BT_NUM, caps->srqc_bt_num); in config_vf_hem_resource()
1854 hr_reg_write(r_a, FUNC_RES_A_SRQC_BT_IDX, vf_id * caps->srqc_bt_num); in config_vf_hem_resource()
1855 hr_reg_write(r_a, FUNC_RES_A_CQC_BT_NUM, caps->cqc_bt_num); in config_vf_hem_resource()
1856 hr_reg_write(r_a, FUNC_RES_A_CQC_BT_IDX, vf_id * caps->cqc_bt_num); in config_vf_hem_resource()
1857 hr_reg_write(r_a, FUNC_RES_A_MPT_BT_NUM, caps->mpt_bt_num); in config_vf_hem_resource()
1858 hr_reg_write(r_a, FUNC_RES_A_MPT_BT_IDX, vf_id * caps->mpt_bt_num); in config_vf_hem_resource()
1859 hr_reg_write(r_a, FUNC_RES_A_EQC_BT_NUM, caps->eqc_bt_num); in config_vf_hem_resource()
1860 hr_reg_write(r_a, FUNC_RES_A_EQC_BT_IDX, vf_id * caps->eqc_bt_num); in config_vf_hem_resource()
2537 struct hns_roce_cmq_req *r_a = (struct hns_roce_cmq_req *)desc[0].data; in set_llm_cfg_to_hw() local
2548 hr_reg_write(r_a, CFG_LLM_A_BA_L, lower_32_bits(table->table.map)); in set_llm_cfg_to_hw()
2549 hr_reg_write(r_a, CFG_LLM_A_BA_H, upper_32_bits(table->table.map)); in set_llm_cfg_to_hw()
2550 hr_reg_write(r_a, CFG_LLM_A_DEPTH, buf->npages); in set_llm_cfg_to_hw()
2551 hr_reg_write(r_a, CFG_LLM_A_PGSZ, to_hr_hw_page_shift(buf->page_shift)); in set_llm_cfg_to_hw()
2552 hr_reg_enable(r_a, CFG_LLM_A_INIT_EN); in set_llm_cfg_to_hw()
2555 hr_reg_write(r_a, CFG_LLM_A_HEAD_BA_L, lower_32_bits(addr)); in set_llm_cfg_to_hw()
2556 hr_reg_write(r_a, CFG_LLM_A_HEAD_BA_H, upper_32_bits(addr)); in set_llm_cfg_to_hw()
2557 hr_reg_write(r_a, CFG_LLM_A_HEAD_NXTPTR, 1); in set_llm_cfg_to_hw()
2558 hr_reg_write(r_a, CFG_LLM_A_HEAD_PTR, 0); in set_llm_cfg_to_hw()