Home
last modified time | relevance | path

Searched refs:attr_mask (Results 1 – 25 of 53) sorted by relevance

123

/kernel/linux/linux-5.10/drivers/infiniband/hw/mlx5/
Dcong.c166 u32 var, u32 *attr_mask) in mlx5_ib_set_cc_param_mask_val() argument
170 *attr_mask |= MLX5_IB_RP_CLAMP_TGT_RATE_ATTR; in mlx5_ib_set_cc_param_mask_val()
175 *attr_mask |= MLX5_IB_RP_CLAMP_TGT_RATE_ATI_ATTR; in mlx5_ib_set_cc_param_mask_val()
180 *attr_mask |= MLX5_IB_RP_TIME_RESET_ATTR; in mlx5_ib_set_cc_param_mask_val()
185 *attr_mask |= MLX5_IB_RP_BYTE_RESET_ATTR; in mlx5_ib_set_cc_param_mask_val()
190 *attr_mask |= MLX5_IB_RP_THRESHOLD_ATTR; in mlx5_ib_set_cc_param_mask_val()
195 *attr_mask |= MLX5_IB_RP_AI_RATE_ATTR; in mlx5_ib_set_cc_param_mask_val()
200 *attr_mask |= MLX5_IB_RP_MAX_RATE_ATTR; in mlx5_ib_set_cc_param_mask_val()
205 *attr_mask |= MLX5_IB_RP_HAI_RATE_ATTR; in mlx5_ib_set_cc_param_mask_val()
210 *attr_mask |= MLX5_IB_RP_MIN_DEC_FAC_ATTR; in mlx5_ib_set_cc_param_mask_val()
[all …]
Dqp.c3036 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
[all …]
/kernel/linux/linux-5.10/drivers/infiniband/ulp/ipoib/
Dipoib_verbs.c94 int attr_mask; in ipoib_init_qp() local
103 attr_mask = in ipoib_init_qp()
108 ret = ib_modify_qp(priv->qp, &qp_attr, attr_mask); in ipoib_init_qp()
116 attr_mask &= ~IB_QP_PORT; in ipoib_init_qp()
117 ret = ib_modify_qp(priv->qp, &qp_attr, attr_mask); in ipoib_init_qp()
125 attr_mask |= IB_QP_SQ_PSN; in ipoib_init_qp()
126 attr_mask &= ~IB_QP_PKEY_INDEX; in ipoib_init_qp()
127 ret = ib_modify_qp(priv->qp, &qp_attr, attr_mask); in ipoib_init_qp()
/kernel/linux/linux-5.10/drivers/infiniband/hw/mthca/
Dmthca_qp.c300 int attr_mask) in store_attrs() argument
302 if (attr_mask & IB_QP_PKEY_INDEX) in store_attrs()
304 if (attr_mask & IB_QP_QKEY) in store_attrs()
306 if (attr_mask & IB_QP_SQ_PSN) in store_attrs()
329 int attr_mask) in get_hw_access_flags() argument
335 if (attr_mask & IB_QP_MAX_DEST_RD_ATOMIC) in get_hw_access_flags()
340 if (attr_mask & IB_QP_ACCESS_FLAGS) in get_hw_access_flags()
557 const struct ib_qp_attr *attr, int attr_mask, in __mthca_modify_qp() argument
584 if (!(attr_mask & IB_QP_PATH_MIG_STATE)) in __mthca_modify_qp()
605 else if (attr_mask & IB_QP_PATH_MTU) { in __mthca_modify_qp()
[all …]
/kernel/linux/linux-5.10/drivers/infiniband/hw/hns/
Dhns_roce_qp.c52 int attr_mask; in flush_work_handle() local
55 attr_mask = IB_QP_STATE; in flush_work_handle()
59 ret = hns_roce_modify_qp(&hr_qp->ibqp, &attr, attr_mask, NULL); in flush_work_handle()
1079 struct ib_qp_attr *attr, int attr_mask) in check_mtu_validate() argument
1084 p = attr_mask & IB_QP_PORT ? (attr->port_num - 1) : hr_qp->port; in check_mtu_validate()
1100 int attr_mask) in hns_roce_check_qp_attr() argument
1106 if ((attr_mask & IB_QP_PORT) && in hns_roce_check_qp_attr()
1113 if (attr_mask & IB_QP_PKEY_INDEX) { in hns_roce_check_qp_attr()
1114 p = attr_mask & IB_QP_PORT ? (attr->port_num - 1) : hr_qp->port; in hns_roce_check_qp_attr()
1123 if (attr_mask & IB_QP_MAX_QP_RD_ATOMIC && in hns_roce_check_qp_attr()
[all …]
Dhns_roce_hw_v2.c3760 const struct ib_qp_attr *attr, int attr_mask) in set_access_flags() argument
3765 dest_rd_atomic = (attr_mask & IB_QP_MAX_DEST_RD_ATOMIC) ? in set_access_flags()
3768 access_flags = (attr_mask & IB_QP_ACCESS_FLAGS) ? in set_access_flags()
3810 int attr_mask, in modify_qp_reset_to_init() argument
3872 const struct ib_qp_attr *attr, int attr_mask, in modify_qp_init_to_init() argument
3889 if (attr_mask & IB_QP_ACCESS_FLAGS) { in modify_qp_init_to_init()
3966 if (attr_mask & IB_QP_DEST_QPN) { in modify_qp_init_to_init()
4163 const struct ib_qp_attr *attr, int attr_mask, in modify_qp_init_to_rtr() argument
4204 if (attr_mask & IB_QP_ALT_PATH) { in modify_qp_init_to_rtr()
4206 attr_mask); in modify_qp_init_to_rtr()
[all …]
/kernel/linux/linux-5.10/drivers/infiniband/hw/mlx4/
Dqp.c1690 int attr_mask) in to_mlx4_access_flags() argument
1696 if (attr_mask & IB_QP_MAX_DEST_RD_ATOMIC) in to_mlx4_access_flags()
1701 if (attr_mask & IB_QP_ACCESS_FLAGS) in to_mlx4_access_flags()
1720 int attr_mask) in store_sqp_attrs() argument
1722 if (attr_mask & IB_QP_PKEY_INDEX) in store_sqp_attrs()
1724 if (attr_mask & IB_QP_QKEY) in store_sqp_attrs()
1726 if (attr_mask & IB_QP_SQ_PSN) in store_sqp_attrs()
2072 const struct ib_qp_attr *attr, int attr_mask, in __mlx4_ib_modify_qp() argument
2117 if (attr_mask & IB_QP_ALT_PATH && in __mlx4_ib_modify_qp()
2129 if (!(attr_mask & IB_QP_PATH_MIG_STATE)) in __mlx4_ib_modify_qp()
[all …]
Dsrq.c221 enum ib_srq_attr_mask attr_mask, struct ib_udata *udata) in mlx4_ib_modify_srq() argument
228 if (attr_mask & IB_SRQ_MAX_WR) in mlx4_ib_modify_srq()
231 if (attr_mask & IB_SRQ_LIMIT) { in mlx4_ib_modify_srq()
/kernel/linux/linux-5.10/drivers/infiniband/sw/rdmavt/
Dqp.h59 int attr_mask, struct ib_udata *udata);
62 int attr_mask, struct ib_qp_init_attr *init_attr);
Dsrq.c167 enum ib_srq_attr_mask attr_mask, in rvt_modify_srq() argument
175 if (attr_mask & IB_SRQ_MAX_WR) { in rvt_modify_srq()
183 ((attr_mask & IB_SRQ_LIMIT) ? in rvt_modify_srq()
262 if (attr_mask & IB_SRQ_LIMIT) in rvt_modify_srq()
297 } else if (attr_mask & IB_SRQ_LIMIT) { in rvt_modify_srq()
Dqp.c1461 int attr_mask, struct ib_udata *udata) in rvt_modify_qp() argument
1476 cur_state = attr_mask & IB_QP_CUR_STATE ? in rvt_modify_qp()
1478 new_state = attr_mask & IB_QP_STATE ? attr->qp_state : cur_state; in rvt_modify_qp()
1482 attr_mask)) in rvt_modify_qp()
1486 rdi->driver_f.check_modify_qp(qp, attr, attr_mask, udata)) in rvt_modify_qp()
1489 if (attr_mask & IB_QP_AV) { in rvt_modify_qp()
1504 if (attr_mask & IB_QP_ALT_PATH) { in rvt_modify_qp()
1521 if (attr_mask & IB_QP_PKEY_INDEX) in rvt_modify_qp()
1525 if (attr_mask & IB_QP_MIN_RNR_TIMER) in rvt_modify_qp()
1529 if (attr_mask & IB_QP_PORT) in rvt_modify_qp()
[all …]
Dsrq.h56 enum ib_srq_attr_mask attr_mask,
/kernel/linux/linux-5.10/drivers/infiniband/hw/vmw_pvrdma/
Dpvrdma_srq.c275 enum ib_srq_attr_mask attr_mask, struct ib_udata *udata) in pvrdma_modify_srq() argument
284 if (!(attr_mask & IB_SRQ_LIMIT)) in pvrdma_modify_srq()
291 cmd->attr_mask = attr_mask; in pvrdma_modify_srq()
Dpvrdma_qp.c537 int attr_mask, struct ib_udata *udata) in pvrdma_modify_qp() argument
549 cur_state = (attr_mask & IB_QP_CUR_STATE) ? attr->cur_qp_state : in pvrdma_modify_qp()
551 next_state = (attr_mask & IB_QP_STATE) ? attr->qp_state : cur_state; in pvrdma_modify_qp()
554 attr_mask)) { in pvrdma_modify_qp()
559 if (attr_mask & IB_QP_PORT) { in pvrdma_modify_qp()
567 if (attr_mask & IB_QP_MIN_RNR_TIMER) { in pvrdma_modify_qp()
574 if (attr_mask & IB_QP_PKEY_INDEX) { in pvrdma_modify_qp()
581 if (attr_mask & IB_QP_QKEY) in pvrdma_modify_qp()
593 cmd->attr_mask = ib_qp_attr_mask_to_pvrdma(attr_mask); in pvrdma_modify_qp()
983 int attr_mask, struct ib_qp_init_attr *init_attr) in pvrdma_query_qp() argument
[all …]
Dpvrdma_dev_api.h531 u32 attr_mask; member
599 u32 attr_mask; member
606 u32 attr_mask; member
/kernel/linux/linux-5.10/drivers/infiniband/core/
Duverbs_cmd.c1655 ret = ib_query_qp(qp, attr, cmd.attr_mask, init_attr); in ib_uverbs_query_qp()
1761 if ((cmd->base.attr_mask & IB_QP_PORT) && in modify_qp()
1767 if ((cmd->base.attr_mask & IB_QP_AV)) { in modify_qp()
1773 if (cmd->base.attr_mask & IB_QP_STATE && in modify_qp()
1807 if (((cmd->base.attr_mask & (IB_QP_AV | IB_QP_PORT)) in modify_qp()
1813 if ((cmd->base.attr_mask & (IB_QP_AV | IB_QP_PORT)) in modify_qp()
1815 cmd->base.attr_mask |= IB_QP_PORT; in modify_qp()
1821 if ((cmd->base.attr_mask & IB_QP_ALT_PATH) && in modify_qp()
1829 if ((cmd->base.attr_mask & IB_QP_CUR_STATE && in modify_qp()
1831 (cmd->base.attr_mask & IB_QP_STATE && in modify_qp()
[all …]
Dverbs.c1669 int attr_mask, struct ib_udata *udata) in _ib_modify_qp() argument
1671 u8 port = attr_mask & IB_QP_PORT ? attr->port_num : qp->port; in _ib_modify_qp()
1677 if (attr_mask & IB_QP_AV) { in _ib_modify_qp()
1708 if (attr_mask & IB_QP_ALT_PATH) { in _ib_modify_qp()
1734 if (attr_mask & IB_QP_RQ_PSN && attr->rq_psn & ~0xffffff) { in _ib_modify_qp()
1741 if (attr_mask & IB_QP_SQ_PSN && attr->sq_psn & ~0xffffff) { in _ib_modify_qp()
1753 if (!qp->counter && (attr_mask & IB_QP_PORT) && in _ib_modify_qp()
1754 ((attr_mask & IB_QP_STATE) && attr->qp_state == IB_QPS_INIT)) in _ib_modify_qp()
1757 ret = ib_security_modify_qp(qp, attr, attr_mask, udata); in _ib_modify_qp()
1761 if (attr_mask & IB_QP_PORT) in _ib_modify_qp()
[all …]
/kernel/linux/linux-5.10/drivers/infiniband/hw/hfi1/
Dopfn.c242 void opfn_qp_init(struct rvt_qp *qp, struct ib_qp_attr *attr, int attr_mask) in opfn_qp_init() argument
248 if (attr_mask & IB_QP_RETRY_CNT) in opfn_qp_init()
255 if (attr_mask & IB_QP_TIMEOUT) in opfn_qp_init()
264 if (attr_mask & IB_QP_STATE && in opfn_qp_init()
Dqp.c203 int attr_mask, struct ib_udata *udata) in hfi1_check_modify_qp() argument
210 if (attr_mask & IB_QP_AV) { in hfi1_check_modify_qp()
223 if (attr_mask & IB_QP_ALT_PATH) { in hfi1_check_modify_qp()
265 int attr_mask, struct ib_udata *udata) in hfi1_modify_qp() argument
270 if (attr_mask & IB_QP_AV) { in hfi1_modify_qp()
277 if (attr_mask & IB_QP_PATH_MIG_STATE && in hfi1_modify_qp()
287 opfn_qp_init(qp, attr, attr_mask); in hfi1_modify_qp()
Dopfn.h82 void opfn_qp_init(struct rvt_qp *qp, struct ib_qp_attr *attr, int attr_mask);
/kernel/linux/linux-5.10/drivers/infiniband/hw/ocrdma/
Docrdma_verbs.h81 int attr_mask);
83 int attr_mask, struct ib_udata *udata);
Docrdma_hw.c2490 int attr_mask) in ocrdma_set_av_params() argument
2575 struct ib_qp_attr *attrs, int attr_mask) in ocrdma_set_qp_params() argument
2580 if (attr_mask & IB_QP_PKEY_INDEX) { in ocrdma_set_qp_params()
2585 if (attr_mask & IB_QP_QKEY) { in ocrdma_set_qp_params()
2590 if (attr_mask & IB_QP_AV) { in ocrdma_set_qp_params()
2591 status = ocrdma_set_av_params(qp, cmd, attrs, attr_mask); in ocrdma_set_qp_params()
2603 if ((attr_mask & IB_QP_EN_SQD_ASYNC_NOTIFY) && in ocrdma_set_qp_params()
2609 if (attr_mask & IB_QP_DEST_QPN) { in ocrdma_set_qp_params()
2614 if (attr_mask & IB_QP_PATH_MTU) { in ocrdma_set_qp_params()
2628 if (attr_mask & IB_QP_TIMEOUT) { in ocrdma_set_qp_params()
[all …]
/kernel/linux/linux-5.10/drivers/infiniband/hw/qedr/
Dverbs.h61 int attr_mask, struct ib_udata *udata);
69 enum ib_srq_attr_mask attr_mask, struct ib_udata *udata);
Dverbs.c1132 int attr_mask, in get_gid_info_from_table() argument
1662 enum ib_srq_attr_mask attr_mask, struct ib_udata *udata) in qedr_modify_srq() argument
1669 if (attr_mask & IB_SRQ_MAX_WR) { in qedr_modify_srq()
1672 attr_mask, srq); in qedr_modify_srq()
1676 if (attr_mask & IB_SRQ_LIMIT) { in qedr_modify_srq()
2469 int attr_mask, struct ib_udata *udata) in qedr_modify_qp() argument
2480 "modify qp: qp %p attr_mask=0x%x, state=%d", qp, attr_mask, in qedr_modify_qp()
2484 if (attr_mask & IB_QP_STATE) in qedr_modify_qp()
2491 ibqp->qp_type, attr_mask)) { in qedr_modify_qp()
2495 attr_mask, qp->qp_id, ibqp->qp_type, in qedr_modify_qp()
[all …]
/kernel/linux/linux-5.10/drivers/infiniband/hw/usnic/
Dusnic_ib_verbs.h58 int attr_mask, struct ib_udata *udata);

123