Lines Matching refs:qpc_mask

4197 				 struct hns_roce_v2_qp_context *qpc_mask,  in hns_roce_v2_qp_modify()  argument
4211 memcpy(mailbox->buf + qpc_size, qpc_mask, qpc_size); in hns_roce_v2_qp_modify()
4223 struct hns_roce_v2_qp_context *qpc_mask, in set_access_flags() argument
4240 hr_reg_clear(qpc_mask, QPC_RRE); in set_access_flags()
4244 hr_reg_clear(qpc_mask, QPC_RWE); in set_access_flags()
4248 hr_reg_clear(qpc_mask, QPC_ATE); in set_access_flags()
4251 hr_reg_clear(qpc_mask, QPC_EXT_ATE); in set_access_flags()
4278 struct hns_roce_v2_qp_context *qpc_mask) in modify_qp_reset_to_init() argument
4337 struct hns_roce_v2_qp_context *qpc_mask) in modify_qp_init_to_init() argument
4346 hr_reg_clear(qpc_mask, QPC_TST); in modify_qp_init_to_init()
4349 hr_reg_clear(qpc_mask, QPC_PD); in modify_qp_init_to_init()
4352 hr_reg_clear(qpc_mask, QPC_RX_CQN); in modify_qp_init_to_init()
4355 hr_reg_clear(qpc_mask, QPC_TX_CQN); in modify_qp_init_to_init()
4359 hr_reg_clear(qpc_mask, QPC_SRQ_EN); in modify_qp_init_to_init()
4361 hr_reg_clear(qpc_mask, QPC_SRQN); in modify_qp_init_to_init()
4368 struct hns_roce_v2_qp_context *qpc_mask) in config_qp_rq_buf() argument
4387 qpc_mask->wqe_sge_ba = 0; in config_qp_rq_buf()
4396 hr_reg_clear(qpc_mask, QPC_WQE_SGE_BA_H); in config_qp_rq_buf()
4401 hr_reg_clear(qpc_mask, QPC_SQ_HOP_NUM); in config_qp_rq_buf()
4406 hr_reg_clear(qpc_mask, QPC_SGE_HOP_NUM); in config_qp_rq_buf()
4412 hr_reg_clear(qpc_mask, QPC_RQ_HOP_NUM); in config_qp_rq_buf()
4416 hr_reg_clear(qpc_mask, QPC_WQE_SGE_BA_PG_SZ); in config_qp_rq_buf()
4420 hr_reg_clear(qpc_mask, QPC_WQE_SGE_BUF_PG_SZ); in config_qp_rq_buf()
4423 qpc_mask->rq_cur_blk_addr = 0; in config_qp_rq_buf()
4427 hr_reg_clear(qpc_mask, QPC_RQ_CUR_BLK_ADDR_H); in config_qp_rq_buf()
4432 qpc_mask->rq_nxt_blk_addr = 0; in config_qp_rq_buf()
4435 hr_reg_clear(qpc_mask, QPC_RQ_NXT_BLK_ADDR_H); in config_qp_rq_buf()
4444 struct hns_roce_v2_qp_context *qpc_mask) in config_qp_sq_buf() argument
4479 hr_reg_clear(qpc_mask, QPC_SQ_CUR_BLK_ADDR_L); in config_qp_sq_buf()
4480 hr_reg_clear(qpc_mask, QPC_SQ_CUR_BLK_ADDR_H); in config_qp_sq_buf()
4486 hr_reg_clear(qpc_mask, QPC_SQ_CUR_SGE_BLK_ADDR_L); in config_qp_sq_buf()
4487 hr_reg_clear(qpc_mask, QPC_SQ_CUR_SGE_BLK_ADDR_H); in config_qp_sq_buf()
4493 hr_reg_clear(qpc_mask, QPC_RX_SQ_CUR_BLK_ADDR_L); in config_qp_sq_buf()
4494 hr_reg_clear(qpc_mask, QPC_RX_SQ_CUR_BLK_ADDR_H); in config_qp_sq_buf()
4511 struct hns_roce_v2_qp_context *qpc_mask, in modify_qp_init_to_rtr() argument
4530 ret = config_qp_rq_buf(hr_dev, hr_qp, context, qpc_mask); in modify_qp_init_to_rtr()
4559 hr_reg_clear(qpc_mask, QPC_TRRL_BA_L); in modify_qp_init_to_rtr()
4561 qpc_mask->trrl_ba = 0; in modify_qp_init_to_rtr()
4563 hr_reg_clear(qpc_mask, QPC_TRRL_BA_H); in modify_qp_init_to_rtr()
4566 qpc_mask->irrl_ba = 0; in modify_qp_init_to_rtr()
4568 hr_reg_clear(qpc_mask, QPC_IRRL_BA_H); in modify_qp_init_to_rtr()
4571 hr_reg_clear(qpc_mask, QPC_RMT_E2E); in modify_qp_init_to_rtr()
4574 hr_reg_clear(qpc_mask, QPC_SIG_TYPE); in modify_qp_init_to_rtr()
4584 hr_reg_clear(qpc_mask, QPC_LBI); in modify_qp_init_to_rtr()
4589 hr_reg_clear(qpc_mask, QPC_DQPN); in modify_qp_init_to_rtr()
4594 qpc_mask->dmac = 0; in modify_qp_init_to_rtr()
4595 hr_reg_clear(qpc_mask, QPC_DMAC_H); in modify_qp_init_to_rtr()
4609 hr_reg_clear(qpc_mask, QPC_MTU); in modify_qp_init_to_rtr()
4613 hr_reg_clear(qpc_mask, QPC_LP_PKTN_INI); in modify_qp_init_to_rtr()
4617 hr_reg_clear(qpc_mask, QPC_ACK_REQ_FREQ); in modify_qp_init_to_rtr()
4619 hr_reg_clear(qpc_mask, QPC_RX_REQ_PSN_ERR); in modify_qp_init_to_rtr()
4620 hr_reg_clear(qpc_mask, QPC_RX_REQ_MSN); in modify_qp_init_to_rtr()
4621 hr_reg_clear(qpc_mask, QPC_RX_REQ_LAST_OPTYPE); in modify_qp_init_to_rtr()
4624 qpc_mask->rq_rnr_timer = 0; in modify_qp_init_to_rtr()
4626 hr_reg_clear(qpc_mask, QPC_TRRL_HEAD_MAX); in modify_qp_init_to_rtr()
4627 hr_reg_clear(qpc_mask, QPC_TRRL_TAIL_MAX); in modify_qp_init_to_rtr()
4632 hr_reg_clear(qpc_mask, QPC_LP_SGEN_INI); in modify_qp_init_to_rtr()
4639 hr_reg_clear(qpc_mask, QPC_RQIE); in modify_qp_init_to_rtr()
4648 hr_reg_clear(qpc_mask, QPC_CQEIE); in modify_qp_init_to_rtr()
4651 hr_reg_clear(qpc_mask, QPC_CQEIS); in modify_qp_init_to_rtr()
4659 struct hns_roce_v2_qp_context *qpc_mask) in modify_qp_rtr_to_rts() argument
4672 ret = config_qp_sq_buf(hr_dev, hr_qp, context, qpc_mask); in modify_qp_rtr_to_rts()
4683 hr_reg_clear(qpc_mask, QPC_IRRL_SGE_IDX); in modify_qp_rtr_to_rts()
4685 hr_reg_clear(qpc_mask, QPC_RX_ACK_MSN); in modify_qp_rtr_to_rts()
4687 hr_reg_clear(qpc_mask, QPC_ACK_LAST_OPTYPE); in modify_qp_rtr_to_rts()
4688 hr_reg_clear(qpc_mask, QPC_IRRL_PSN_VLD); in modify_qp_rtr_to_rts()
4689 hr_reg_clear(qpc_mask, QPC_IRRL_PSN); in modify_qp_rtr_to_rts()
4691 hr_reg_clear(qpc_mask, QPC_IRRL_TAIL_REAL); in modify_qp_rtr_to_rts()
4693 hr_reg_clear(qpc_mask, QPC_RETRY_MSG_MSN); in modify_qp_rtr_to_rts()
4695 hr_reg_clear(qpc_mask, QPC_RNR_RETRY_FLAG); in modify_qp_rtr_to_rts()
4697 hr_reg_clear(qpc_mask, QPC_CHECK_FLG); in modify_qp_rtr_to_rts()
4699 hr_reg_clear(qpc_mask, QPC_V2_IRRL_HEAD); in modify_qp_rtr_to_rts()
4817 struct hns_roce_v2_qp_context *qpc_mask) in fill_cong_field() argument
4837 hr_reg_clear(qpc_mask, QPC_CONG_ALGO_TMPL_ID); in fill_cong_field()
4839 hr_reg_clear(&qpc_mask->ext, QPCEX_CONG_ALG_SEL); in fill_cong_field()
4842 hr_reg_clear(&qpc_mask->ext, QPCEX_CONG_ALG_SUB_SEL); in fill_cong_field()
4844 hr_reg_clear(&qpc_mask->ext, QPCEX_DIP_CTX_IDX_VLD); in fill_cong_field()
4847 hr_reg_clear(&qpc_mask->ext, QPCEX_SQ_RQ_NOT_FORBID_EN); in fill_cong_field()
4860 hr_reg_write(&qpc_mask->ext, QPCEX_DIP_CTX_IDX, 0); in fill_cong_field()
4896 struct hns_roce_v2_qp_context *qpc_mask) in hns_roce_set_sl() argument
4923 hr_reg_clear(qpc_mask, QPC_SL); in hns_roce_set_sl()
4932 struct hns_roce_v2_qp_context *qpc_mask) in hns_roce_v2_set_path() argument
4956 hr_reg_clear(qpc_mask, QPC_SL); in hns_roce_v2_set_path()
4979 hr_reg_clear(qpc_mask, QPC_RQ_VLAN_EN); in hns_roce_v2_set_path()
4981 hr_reg_clear(qpc_mask, QPC_SQ_VLAN_EN); in hns_roce_v2_set_path()
4985 hr_reg_clear(qpc_mask, QPC_VLAN_ID); in hns_roce_v2_set_path()
5003 hr_reg_clear(qpc_mask, QPC_UDPSPN); in hns_roce_v2_set_path()
5007 hr_reg_clear(qpc_mask, QPC_GMV_IDX); in hns_roce_v2_set_path()
5010 hr_reg_clear(qpc_mask, QPC_HOPLIMIT); in hns_roce_v2_set_path()
5012 ret = fill_cong_field(ibqp, attr, context, qpc_mask); in hns_roce_v2_set_path()
5017 hr_reg_clear(qpc_mask, QPC_TC); in hns_roce_v2_set_path()
5020 hr_reg_clear(qpc_mask, QPC_FL); in hns_roce_v2_set_path()
5022 memset(qpc_mask->dgid, 0, sizeof(grh->dgid.raw)); in hns_roce_v2_set_path()
5024 return hns_roce_set_sl(ibqp, attr, context, qpc_mask); in hns_roce_v2_set_path()
5058 struct hns_roce_v2_qp_context *qpc_mask, in hns_roce_v2_set_abs_fields() argument
5070 memset(qpc_mask, 0, hr_dev->caps.qpc_sz); in hns_roce_v2_set_abs_fields()
5071 modify_qp_reset_to_init(ibqp, context, qpc_mask); in hns_roce_v2_set_abs_fields()
5073 modify_qp_init_to_init(ibqp, context, qpc_mask); in hns_roce_v2_set_abs_fields()
5076 qpc_mask, udata); in hns_roce_v2_set_abs_fields()
5078 ret = modify_qp_rtr_to_rts(ibqp, attr_mask, context, qpc_mask); in hns_roce_v2_set_abs_fields()
5111 struct hns_roce_v2_qp_context *qpc_mask) in hns_roce_v2_set_opt_fields() argument
5120 qpc_mask); in hns_roce_v2_set_opt_fields()
5129 hr_reg_clear(qpc_mask, QPC_AT); in hns_roce_v2_set_opt_fields()
5135 hr_reg_clear(qpc_mask, QPC_RETRY_NUM_INIT); in hns_roce_v2_set_opt_fields()
5138 hr_reg_clear(qpc_mask, QPC_RETRY_CNT); in hns_roce_v2_set_opt_fields()
5143 hr_reg_clear(qpc_mask, QPC_RNR_NUM_INIT); in hns_roce_v2_set_opt_fields()
5146 hr_reg_clear(qpc_mask, QPC_RNR_CNT); in hns_roce_v2_set_opt_fields()
5151 hr_reg_clear(qpc_mask, QPC_SQ_CUR_PSN); in hns_roce_v2_set_opt_fields()
5154 hr_reg_clear(qpc_mask, QPC_SQ_MAX_PSN); in hns_roce_v2_set_opt_fields()
5157 hr_reg_clear(qpc_mask, QPC_RETRY_MSG_PSN_L); in hns_roce_v2_set_opt_fields()
5161 hr_reg_clear(qpc_mask, QPC_RETRY_MSG_PSN_H); in hns_roce_v2_set_opt_fields()
5164 hr_reg_clear(qpc_mask, QPC_RETRY_MSG_FPKT_PSN); in hns_roce_v2_set_opt_fields()
5167 hr_reg_clear(qpc_mask, QPC_RX_ACK_EPSN); in hns_roce_v2_set_opt_fields()
5174 hr_reg_clear(qpc_mask, QPC_RR_MAX); in hns_roce_v2_set_opt_fields()
5179 hr_reg_clear(qpc_mask, QPC_SR_MAX); in hns_roce_v2_set_opt_fields()
5183 set_access_flags(hr_qp, context, qpc_mask, attr, attr_mask); in hns_roce_v2_set_opt_fields()
5189 hr_reg_clear(qpc_mask, QPC_MIN_RNR_TIME); in hns_roce_v2_set_opt_fields()
5194 hr_reg_clear(qpc_mask, QPC_RX_REQ_EPSN); in hns_roce_v2_set_opt_fields()
5197 hr_reg_clear(qpc_mask, QPC_RAQ_PSN); in hns_roce_v2_set_opt_fields()
5202 qpc_mask->qkey_xrcd = 0; in hns_roce_v2_set_opt_fields()
5252 struct hns_roce_v2_qp_context *qpc_mask) in v2_set_flushed_fields() argument
5263 hr_reg_clear(qpc_mask, QPC_SQ_PRODUCER_IDX); in v2_set_flushed_fields()
5272 hr_reg_clear(qpc_mask, QPC_RQ_PRODUCER_IDX); in v2_set_flushed_fields()
5285 struct hns_roce_v2_qp_context *qpc_mask = ctx + 1; in hns_roce_v2_modify_qp() local
5299 memset(qpc_mask, 0xff, hr_dev->caps.qpc_sz); in hns_roce_v2_modify_qp()
5302 new_state, context, qpc_mask, udata); in hns_roce_v2_modify_qp()
5308 v2_set_flushed_fields(ibqp, context, qpc_mask); in hns_roce_v2_modify_qp()
5312 qpc_mask); in hns_roce_v2_modify_qp()
5319 hr_reg_clear(qpc_mask, QPC_INV_CREDIT); in hns_roce_v2_modify_qp()
5323 hr_reg_clear(qpc_mask, QPC_QP_ST); in hns_roce_v2_modify_qp()
5326 ret = hns_roce_v2_qp_modify(hr_dev, context, qpc_mask, hr_qp); in hns_roce_v2_modify_qp()