Lines Matching refs:attr_mask

1688 				   int attr_mask)  in to_mlx4_access_flags()  argument
1694 if (attr_mask & IB_QP_MAX_DEST_RD_ATOMIC) in to_mlx4_access_flags()
1699 if (attr_mask & IB_QP_ACCESS_FLAGS) in to_mlx4_access_flags()
1718 int attr_mask) in store_sqp_attrs() argument
1720 if (attr_mask & IB_QP_PKEY_INDEX) in store_sqp_attrs()
1722 if (attr_mask & IB_QP_QKEY) in store_sqp_attrs()
1724 if (attr_mask & IB_QP_SQ_PSN) in store_sqp_attrs()
2070 const struct ib_qp_attr *attr, int attr_mask, in __mlx4_ib_modify_qp() argument
2115 if (attr_mask & IB_QP_ALT_PATH && in __mlx4_ib_modify_qp()
2127 if (!(attr_mask & IB_QP_PATH_MIG_STATE)) in __mlx4_ib_modify_qp()
2160 } else if (attr_mask & IB_QP_PATH_MTU) { in __mlx4_ib_modify_qp()
2197 if (attr_mask & IB_QP_DEST_QPN) in __mlx4_ib_modify_qp()
2200 if (attr_mask & IB_QP_PORT) { in __mlx4_ib_modify_qp()
2202 !(attr_mask & IB_QP_AV)) { in __mlx4_ib_modify_qp()
2245 if (attr_mask & IB_QP_PKEY_INDEX) { in __mlx4_ib_modify_qp()
2252 if (attr_mask & IB_QP_AV) { in __mlx4_ib_modify_qp()
2254 attr_mask & IB_QP_PORT ? attr->port_num : qp->port; in __mlx4_ib_modify_qp()
2269 if (mlx4_set_path(dev, attr, attr_mask, qp, &context->pri_path, in __mlx4_ib_modify_qp()
2289 if (attr_mask & IB_QP_TIMEOUT) { in __mlx4_ib_modify_qp()
2294 if (attr_mask & IB_QP_ALT_PATH) { in __mlx4_ib_modify_qp()
2303 if (mlx4_set_alt_path(dev, attr, attr_mask, qp, in __mlx4_ib_modify_qp()
2329 if (attr_mask & IB_QP_RNR_RETRY) { in __mlx4_ib_modify_qp()
2334 if (attr_mask & IB_QP_RETRY_CNT) { in __mlx4_ib_modify_qp()
2339 if (attr_mask & IB_QP_MAX_QP_RD_ATOMIC) { in __mlx4_ib_modify_qp()
2346 if (attr_mask & IB_QP_SQ_PSN) in __mlx4_ib_modify_qp()
2349 if (attr_mask & IB_QP_MAX_DEST_RD_ATOMIC) { in __mlx4_ib_modify_qp()
2356 if (attr_mask & (IB_QP_ACCESS_FLAGS | IB_QP_MAX_DEST_RD_ATOMIC)) { in __mlx4_ib_modify_qp()
2357 context->params2 |= to_mlx4_access_flags(qp, attr, attr_mask); in __mlx4_ib_modify_qp()
2364 if (attr_mask & IB_QP_MIN_RNR_TIMER) { in __mlx4_ib_modify_qp()
2368 if (attr_mask & IB_QP_RQ_PSN) in __mlx4_ib_modify_qp()
2372 if (attr_mask & IB_QP_QKEY) { in __mlx4_ib_modify_qp()
2458 attr_mask & IB_QP_EN_SQD_ASYNC_NOTIFY && attr->en_sqd_async_notify) in __mlx4_ib_modify_qp()
2504 if (attr_mask & IB_QP_ACCESS_FLAGS) in __mlx4_ib_modify_qp()
2506 if (attr_mask & IB_QP_MAX_DEST_RD_ATOMIC) in __mlx4_ib_modify_qp()
2508 if (attr_mask & IB_QP_PORT) { in __mlx4_ib_modify_qp()
2512 if (attr_mask & IB_QP_ALT_PATH) in __mlx4_ib_modify_qp()
2516 store_sqp_attrs(qp->sqp, attr, attr_mask); in __mlx4_ib_modify_qp()
2657 int attr_mask, struct ib_udata *udata) in _mlx4_ib_modify_qp() argument
2665 cur_state = attr_mask & IB_QP_CUR_STATE ? attr->cur_qp_state : qp->state; in _mlx4_ib_modify_qp()
2666 new_state = attr_mask & IB_QP_STATE ? attr->qp_state : cur_state; in _mlx4_ib_modify_qp()
2669 attr_mask)) { in _mlx4_ib_modify_qp()
2674 ibqp->qp_type, attr_mask); in _mlx4_ib_modify_qp()
2690 if (attr_mask & ~MLX4_IB_MODIFY_QP_RSS_SUP_ATTR_MSK) { in _mlx4_ib_modify_qp()
2692 ibqp->qp_num, attr_mask, cur_state, new_state); in _mlx4_ib_modify_qp()
2699 if (mlx4_is_bonded(dev->dev) && (attr_mask & IB_QP_PORT)) { in _mlx4_ib_modify_qp()
2711 attr_mask &= ~IB_QP_PORT; in _mlx4_ib_modify_qp()
2715 if ((attr_mask & IB_QP_PORT) && in _mlx4_ib_modify_qp()
2724 if ((attr_mask & IB_QP_PORT) && (ibqp->qp_type == IB_QPT_RAW_PACKET) && in _mlx4_ib_modify_qp()
2729 if (attr_mask & IB_QP_PKEY_INDEX) { in _mlx4_ib_modify_qp()
2730 int p = attr_mask & IB_QP_PORT ? attr->port_num : qp->port; in _mlx4_ib_modify_qp()
2740 if (attr_mask & IB_QP_MAX_QP_RD_ATOMIC && in _mlx4_ib_modify_qp()
2749 if (attr_mask & IB_QP_MAX_DEST_RD_ATOMIC && in _mlx4_ib_modify_qp()
2770 err = __mlx4_ib_modify_qp(ibqp, MLX4_IB_QP_SRC, attr, attr_mask, in _mlx4_ib_modify_qp()
2776 if (mlx4_is_bonded(dev->dev) && (attr_mask & IB_QP_PORT)) in _mlx4_ib_modify_qp()
2785 int attr_mask, struct ib_udata *udata) in mlx4_ib_modify_qp() argument
2790 if (attr_mask & ~IB_QP_ATTR_STANDARD_BITS) in mlx4_ib_modify_qp()
2793 ret = _mlx4_ib_modify_qp(ibqp, attr, attr_mask, udata); in mlx4_ib_modify_qp()
2800 err = ib_modify_qp(sqp->roce_v2_gsi, attr, attr_mask); in mlx4_ib_modify_qp()
4171 int attr_mask; in _mlx4_ib_modify_wq() local
4187 attr_mask = IB_QP_PORT; in _mlx4_ib_modify_wq()
4190 attr_mask, IB_QPS_RESET, IB_QPS_INIT, in _mlx4_ib_modify_wq()
4201 attr_mask = 0; in _mlx4_ib_modify_wq()
4202 err = __mlx4_ib_modify_qp(ibwq, MLX4_IB_RWQ_SRC, NULL, attr_mask, in _mlx4_ib_modify_wq()
4208 attr_mask, IB_QPS_INIT, IB_QPS_RESET, in _mlx4_ib_modify_wq()