Lines Matching refs:attr_mask
3262 const struct ib_qp_attr *attr, int attr_mask, in set_qpc_atomic_flags() argument
3269 if (attr_mask & IB_QP_MAX_DEST_RD_ATOMIC) in set_qpc_atomic_flags()
3274 if (attr_mask & IB_QP_ACCESS_FLAGS) in set_qpc_atomic_flags()
3428 int attr_mask, u32 path_flags, in mlx5_set_path() argument
3437 if (attr_mask & IB_QP_PKEY_INDEX) in mlx5_set_path()
3464 (attr_mask & IB_QP_DEST_QPN)) in mlx5_set_path()
3497 if (attr_mask & IB_QP_TIMEOUT) in mlx5_set_path()
3924 int attr_mask, u8 init, in get_tx_affinity() argument
3942 else if ((attr_mask & IB_QP_AV) && attr->xmit_slave) in get_tx_affinity()
3986 const struct ib_qp_attr *attr, int attr_mask, in __mlx5_ib_modify_qp() argument
4056 if (!(attr_mask & IB_QP_PATH_MIG_STATE)) { in __mlx5_ib_modify_qp()
4072 tx_affinity = get_tx_affinity(ibqp, attr, attr_mask, in __mlx5_ib_modify_qp()
4089 } else if (attr_mask & IB_QP_PATH_MTU) { in __mlx5_ib_modify_qp()
4101 if (attr_mask & IB_QP_DEST_QPN) in __mlx5_ib_modify_qp()
4107 if (attr_mask & IB_QP_PKEY_INDEX) in __mlx5_ib_modify_qp()
4115 if (attr_mask & IB_QP_PORT) in __mlx5_ib_modify_qp()
4118 if (attr_mask & IB_QP_AV) { in __mlx5_ib_modify_qp()
4120 attr_mask & IB_QP_PORT ? attr->port_num : in __mlx5_ib_modify_qp()
4122 attr_mask, 0, attr, false); in __mlx5_ib_modify_qp()
4127 if (attr_mask & IB_QP_TIMEOUT) in __mlx5_ib_modify_qp()
4130 if (attr_mask & IB_QP_ALT_PATH) { in __mlx5_ib_modify_qp()
4133 attr_mask | IB_QP_PKEY_INDEX | in __mlx5_ib_modify_qp()
4151 if (attr_mask & IB_QP_RNR_RETRY) in __mlx5_ib_modify_qp()
4154 if (attr_mask & IB_QP_RETRY_CNT) in __mlx5_ib_modify_qp()
4157 if (attr_mask & IB_QP_MAX_QP_RD_ATOMIC && attr->max_rd_atomic) in __mlx5_ib_modify_qp()
4160 if (attr_mask & IB_QP_SQ_PSN) in __mlx5_ib_modify_qp()
4163 if (attr_mask & IB_QP_MAX_DEST_RD_ATOMIC && attr->max_dest_rd_atomic) in __mlx5_ib_modify_qp()
4167 if (attr_mask & (IB_QP_ACCESS_FLAGS | IB_QP_MAX_DEST_RD_ATOMIC)) { in __mlx5_ib_modify_qp()
4168 err = set_qpc_atomic_flags(qp, attr, attr_mask, qpc); in __mlx5_ib_modify_qp()
4173 if (attr_mask & IB_QP_MIN_RNR_TIMER) in __mlx5_ib_modify_qp()
4176 if (attr_mask & IB_QP_RQ_PSN) in __mlx5_ib_modify_qp()
4179 if (attr_mask & IB_QP_QKEY) in __mlx5_ib_modify_qp()
4186 u8 port_num = (attr_mask & IB_QP_PORT ? attr->port_num : in __mlx5_ib_modify_qp()
4216 optpar |= ib_mask_to_mlx5_opt(attr_mask); in __mlx5_ib_modify_qp()
4229 if (attr_mask & IB_QP_PORT) in __mlx5_ib_modify_qp()
4232 if (attr_mask & IB_QP_RATE_LIMIT) { in __mlx5_ib_modify_qp()
4278 if (attr_mask & IB_QP_ACCESS_FLAGS) in __mlx5_ib_modify_qp()
4280 if (attr_mask & IB_QP_MAX_DEST_RD_ATOMIC) in __mlx5_ib_modify_qp()
4282 if (attr_mask & IB_QP_PORT) in __mlx5_ib_modify_qp()
4284 if (attr_mask & IB_QP_ALT_PATH) in __mlx5_ib_modify_qp()
4336 enum ib_qp_attr_mask attr_mask) in modify_dci_qp_is_ok() argument
4342 return is_valid_mask(attr_mask, req, opt); in modify_dci_qp_is_ok()
4345 return is_valid_mask(attr_mask, req, opt); in modify_dci_qp_is_ok()
4348 return is_valid_mask(attr_mask, req, opt); in modify_dci_qp_is_ok()
4352 return is_valid_mask(attr_mask, req, opt); in modify_dci_qp_is_ok()
4357 return is_valid_mask(attr_mask, req, opt); in modify_dci_qp_is_ok()
4360 return is_valid_mask(attr_mask, req, opt); in modify_dci_qp_is_ok()
4362 return is_valid_mask(attr_mask, req, opt); in modify_dci_qp_is_ok()
4375 int attr_mask, struct mlx5_ib_modify_qp *ucmd, in mlx5_ib_modify_dct() argument
4385 if (!(attr_mask & IB_QP_STATE)) in mlx5_ib_modify_dct()
4405 if (!is_valid_mask(attr_mask, required, 0)) in mlx5_ib_modify_dct()
4453 if (!is_valid_mask(attr_mask, required, 0)) in mlx5_ib_modify_dct()
4503 int attr_mask, struct ib_udata *udata) in mlx5_ib_modify_qp() argument
4516 if (attr_mask & ~(IB_QP_ATTR_STANDARD_BITS | IB_QP_RATE_LIMIT)) in mlx5_ib_modify_qp()
4543 return mlx5_ib_gsi_modify_qp(ibqp, attr, attr_mask); in mlx5_ib_modify_qp()
4548 return mlx5_ib_modify_dct(ibqp, attr, attr_mask, &ucmd, udata); in mlx5_ib_modify_qp()
4552 cur_state = attr_mask & IB_QP_CUR_STATE ? attr->cur_qp_state : qp->state; in mlx5_ib_modify_qp()
4553 new_state = attr_mask & IB_QP_STATE ? attr->qp_state : cur_state; in mlx5_ib_modify_qp()
4556 if (attr_mask & ~(IB_QP_STATE | IB_QP_CUR_STATE)) { in mlx5_ib_modify_qp()
4558 attr_mask); in mlx5_ib_modify_qp()
4564 attr_mask)) { in mlx5_ib_modify_qp()
4566 cur_state, new_state, qp->type, attr_mask); in mlx5_ib_modify_qp()
4569 !modify_dci_qp_is_ok(cur_state, new_state, attr_mask)) { in mlx5_ib_modify_qp()
4571 cur_state, new_state, qp_type, attr_mask); in mlx5_ib_modify_qp()
4575 if ((attr_mask & IB_QP_PORT) && in mlx5_ib_modify_qp()
4583 if ((attr_mask & IB_QP_PKEY_INDEX) && in mlx5_ib_modify_qp()
4589 if (attr_mask & IB_QP_MAX_QP_RD_ATOMIC && in mlx5_ib_modify_qp()
4597 if (attr_mask & IB_QP_MAX_DEST_RD_ATOMIC && in mlx5_ib_modify_qp()
4610 err = __mlx5_ib_modify_qp(ibqp, attr, attr_mask, cur_state, in mlx5_ib_modify_qp()