• Home
  • Raw
  • Download

Lines Matching refs:attr_mask

3036 				const struct ib_qp_attr *attr, int attr_mask,  in set_qpc_atomic_flags()  argument
3043 if (attr_mask & IB_QP_MAX_DEST_RD_ATOMIC) in set_qpc_atomic_flags()
3048 if (attr_mask & IB_QP_ACCESS_FLAGS) in set_qpc_atomic_flags()
3200 int attr_mask, u32 path_flags, in mlx5_set_path() argument
3209 if (attr_mask & IB_QP_PKEY_INDEX) in mlx5_set_path()
3234 (attr_mask & IB_QP_DEST_QPN)) in mlx5_set_path()
3267 if (attr_mask & IB_QP_TIMEOUT) in mlx5_set_path()
3683 int attr_mask, u8 init, in get_tx_affinity() argument
3701 else if ((attr_mask & IB_QP_AV) && attr->xmit_slave) in get_tx_affinity()
3745 const struct ib_qp_attr *attr, int attr_mask, in __mlx5_ib_modify_qp() argument
3814 if (!(attr_mask & IB_QP_PATH_MIG_STATE)) { in __mlx5_ib_modify_qp()
3830 tx_affinity = get_tx_affinity(ibqp, attr, attr_mask, in __mlx5_ib_modify_qp()
3847 } else if (attr_mask & IB_QP_PATH_MTU) { in __mlx5_ib_modify_qp()
3859 if (attr_mask & IB_QP_DEST_QPN) in __mlx5_ib_modify_qp()
3865 if (attr_mask & IB_QP_PKEY_INDEX) in __mlx5_ib_modify_qp()
3873 if (attr_mask & IB_QP_PORT) in __mlx5_ib_modify_qp()
3876 if (attr_mask & IB_QP_AV) { in __mlx5_ib_modify_qp()
3878 attr_mask & IB_QP_PORT ? attr->port_num : in __mlx5_ib_modify_qp()
3880 attr_mask, 0, attr, false); in __mlx5_ib_modify_qp()
3885 if (attr_mask & IB_QP_TIMEOUT) in __mlx5_ib_modify_qp()
3888 if (attr_mask & IB_QP_ALT_PATH) { in __mlx5_ib_modify_qp()
3891 attr_mask | IB_QP_PKEY_INDEX | in __mlx5_ib_modify_qp()
3909 if (attr_mask & IB_QP_RNR_RETRY) in __mlx5_ib_modify_qp()
3912 if (attr_mask & IB_QP_RETRY_CNT) in __mlx5_ib_modify_qp()
3915 if (attr_mask & IB_QP_MAX_QP_RD_ATOMIC && attr->max_rd_atomic) in __mlx5_ib_modify_qp()
3918 if (attr_mask & IB_QP_SQ_PSN) in __mlx5_ib_modify_qp()
3921 if (attr_mask & IB_QP_MAX_DEST_RD_ATOMIC && attr->max_dest_rd_atomic) in __mlx5_ib_modify_qp()
3925 if (attr_mask & (IB_QP_ACCESS_FLAGS | IB_QP_MAX_DEST_RD_ATOMIC)) { in __mlx5_ib_modify_qp()
3926 err = set_qpc_atomic_flags(qp, attr, attr_mask, qpc); in __mlx5_ib_modify_qp()
3931 if (attr_mask & IB_QP_MIN_RNR_TIMER) in __mlx5_ib_modify_qp()
3934 if (attr_mask & IB_QP_RQ_PSN) in __mlx5_ib_modify_qp()
3937 if (attr_mask & IB_QP_QKEY) in __mlx5_ib_modify_qp()
3944 u8 port_num = (attr_mask & IB_QP_PORT ? attr->port_num : in __mlx5_ib_modify_qp()
3974 optpar |= ib_mask_to_mlx5_opt(attr_mask); in __mlx5_ib_modify_qp()
3987 if (attr_mask & IB_QP_PORT) in __mlx5_ib_modify_qp()
3990 if (attr_mask & IB_QP_RATE_LIMIT) { in __mlx5_ib_modify_qp()
4036 if (attr_mask & IB_QP_ACCESS_FLAGS) in __mlx5_ib_modify_qp()
4038 if (attr_mask & IB_QP_MAX_DEST_RD_ATOMIC) in __mlx5_ib_modify_qp()
4040 if (attr_mask & IB_QP_PORT) in __mlx5_ib_modify_qp()
4042 if (attr_mask & IB_QP_ALT_PATH) in __mlx5_ib_modify_qp()
4094 enum ib_qp_attr_mask attr_mask) in modify_dci_qp_is_ok() argument
4100 return is_valid_mask(attr_mask, req, opt); in modify_dci_qp_is_ok()
4103 return is_valid_mask(attr_mask, req, opt); in modify_dci_qp_is_ok()
4106 return is_valid_mask(attr_mask, req, opt); in modify_dci_qp_is_ok()
4110 return is_valid_mask(attr_mask, req, opt); in modify_dci_qp_is_ok()
4115 return is_valid_mask(attr_mask, req, opt); in modify_dci_qp_is_ok()
4118 return is_valid_mask(attr_mask, req, opt); in modify_dci_qp_is_ok()
4120 return is_valid_mask(attr_mask, req, opt); in modify_dci_qp_is_ok()
4133 int attr_mask, struct mlx5_ib_modify_qp *ucmd, in mlx5_ib_modify_dct() argument
4143 if (!(attr_mask & IB_QP_STATE)) in mlx5_ib_modify_dct()
4163 if (!is_valid_mask(attr_mask, required, 0)) in mlx5_ib_modify_dct()
4211 if (!is_valid_mask(attr_mask, required, 0)) in mlx5_ib_modify_dct()
4262 int attr_mask, enum ib_qp_type qp_type) in validate_rd_atomic() argument
4279 if (attr_mask & IB_QP_MAX_QP_RD_ATOMIC && in validate_rd_atomic()
4286 if (attr_mask & IB_QP_MAX_DEST_RD_ATOMIC && in validate_rd_atomic()
4296 int attr_mask, struct ib_udata *udata) in mlx5_ib_modify_qp() argument
4334 return mlx5_ib_gsi_modify_qp(ibqp, attr, attr_mask); in mlx5_ib_modify_qp()
4340 return mlx5_ib_modify_dct(ibqp, attr, attr_mask, &ucmd, udata); in mlx5_ib_modify_qp()
4344 cur_state = attr_mask & IB_QP_CUR_STATE ? attr->cur_qp_state : qp->state; in mlx5_ib_modify_qp()
4345 new_state = attr_mask & IB_QP_STATE ? attr->qp_state : cur_state; in mlx5_ib_modify_qp()
4348 port = attr_mask & IB_QP_PORT ? attr->port_num : qp->port; in mlx5_ib_modify_qp()
4352 if (attr_mask & ~(IB_QP_STATE | IB_QP_CUR_STATE)) { in mlx5_ib_modify_qp()
4354 attr_mask); in mlx5_ib_modify_qp()
4360 attr_mask)) { in mlx5_ib_modify_qp()
4362 cur_state, new_state, ibqp->qp_type, attr_mask); in mlx5_ib_modify_qp()
4365 !modify_dci_qp_is_ok(cur_state, new_state, attr_mask)) { in mlx5_ib_modify_qp()
4367 cur_state, new_state, qp_type, attr_mask); in mlx5_ib_modify_qp()
4371 if ((attr_mask & IB_QP_PORT) && in mlx5_ib_modify_qp()
4379 if (attr_mask & IB_QP_PKEY_INDEX) { in mlx5_ib_modify_qp()
4380 port = attr_mask & IB_QP_PORT ? attr->port_num : qp->port; in mlx5_ib_modify_qp()
4389 if (!validate_rd_atomic(dev, attr, attr_mask, qp_type)) in mlx5_ib_modify_qp()
4397 err = __mlx5_ib_modify_qp(ibqp, attr, attr_mask, cur_state, in mlx5_ib_modify_qp()