Lines Matching refs:attr_mask
51 int attr_mask; in flush_work_handle() local
54 attr_mask = IB_QP_STATE; in flush_work_handle()
58 ret = hns_roce_modify_qp(&hr_qp->ibqp, &attr, attr_mask, NULL); in flush_work_handle()
1227 struct ib_qp_attr *attr, int attr_mask) in check_mtu_validate() argument
1232 p = attr_mask & IB_QP_PORT ? (attr->port_num - 1) : hr_qp->port; in check_mtu_validate()
1248 int attr_mask) in hns_roce_check_qp_attr() argument
1254 if ((attr_mask & IB_QP_PORT) && in hns_roce_check_qp_attr()
1261 if (attr_mask & IB_QP_PKEY_INDEX) { in hns_roce_check_qp_attr()
1262 p = attr_mask & IB_QP_PORT ? (attr->port_num - 1) : hr_qp->port; in hns_roce_check_qp_attr()
1271 if (attr_mask & IB_QP_MAX_QP_RD_ATOMIC && in hns_roce_check_qp_attr()
1279 if (attr_mask & IB_QP_MAX_DEST_RD_ATOMIC && in hns_roce_check_qp_attr()
1287 if (attr_mask & IB_QP_PATH_MTU) in hns_roce_check_qp_attr()
1288 return check_mtu_validate(hr_dev, hr_qp, attr, attr_mask); in hns_roce_check_qp_attr()
1294 int attr_mask, struct ib_udata *udata) in hns_roce_modify_qp() argument
1303 if (attr_mask & IB_QP_CUR_STATE && attr->cur_qp_state != hr_qp->state) in hns_roce_modify_qp()
1307 new_state = attr_mask & IB_QP_STATE ? attr->qp_state : cur_state; in hns_roce_modify_qp()
1310 (attr_mask & IB_QP_STATE) && new_state == IB_QPS_ERR) { in hns_roce_modify_qp()
1324 attr_mask)) { in hns_roce_modify_qp()
1329 ret = hns_roce_check_qp_attr(ibqp, attr, attr_mask); in hns_roce_modify_qp()
1336 ret = hr_dev->hw->modify_qp(ibqp, attr, attr_mask, cur_state, in hns_roce_modify_qp()