Home
last modified time | relevance | path

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

123

/openbmc/linux/drivers/infiniband/hw/mlx5/
H A Dcong.c179 u32 var, u32 *attr_mask) in mlx5_ib_set_cc_param_mask_val() argument
183 *attr_mask |= MLX5_IB_RP_CLAMP_TGT_RATE_ATTR; in mlx5_ib_set_cc_param_mask_val()
188 *attr_mask |= MLX5_IB_RP_CLAMP_TGT_RATE_ATI_ATTR; in mlx5_ib_set_cc_param_mask_val()
193 *attr_mask |= MLX5_IB_RP_TIME_RESET_ATTR; in mlx5_ib_set_cc_param_mask_val()
198 *attr_mask |= MLX5_IB_RP_BYTE_RESET_ATTR; in mlx5_ib_set_cc_param_mask_val()
203 *attr_mask |= MLX5_IB_RP_THRESHOLD_ATTR; in mlx5_ib_set_cc_param_mask_val()
208 *attr_mask |= MLX5_IB_RP_AI_RATE_ATTR; in mlx5_ib_set_cc_param_mask_val()
213 *attr_mask |= MLX5_IB_RP_MAX_RATE_ATTR; in mlx5_ib_set_cc_param_mask_val()
218 *attr_mask |= MLX5_IB_RP_HAI_RATE_ATTR; in mlx5_ib_set_cc_param_mask_val()
223 *attr_mask |= MLX5_IB_RP_MIN_DEC_FAC_ATTR; in mlx5_ib_set_cc_param_mask_val()
[all …]
H A Dqp.c3356 const struct ib_qp_attr *attr, int attr_mask, in set_qpc_atomic_flags() argument
3363 if (attr_mask & IB_QP_MAX_DEST_RD_ATOMIC) in set_qpc_atomic_flags()
3368 if (attr_mask & IB_QP_ACCESS_FLAGS) in set_qpc_atomic_flags()
3522 int attr_mask, u32 path_flags, in mlx5_set_path() argument
3531 if (attr_mask & IB_QP_PKEY_INDEX) in mlx5_set_path()
3558 (attr_mask & IB_QP_DEST_QPN)) in mlx5_set_path()
3591 if (attr_mask & IB_QP_TIMEOUT) in mlx5_set_path()
4018 int attr_mask, u8 init, in get_tx_affinity() argument
4036 else if ((attr_mask & IB_QP_AV) && attr->xmit_slave) in get_tx_affinity()
4107 const struct ib_qp_attr *attr, int attr_mask, in __mlx5_ib_modify_qp() argument
[all …]
/openbmc/linux/drivers/infiniband/ulp/ipoib/
H A 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()
/openbmc/linux/drivers/infiniband/hw/mthca/
H A 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 …]
/openbmc/linux/drivers/infiniband/hw/mlx4/
H A Dqp.c1727 int attr_mask) in to_mlx4_access_flags() argument
1733 if (attr_mask & IB_QP_MAX_DEST_RD_ATOMIC) in to_mlx4_access_flags()
1738 if (attr_mask & IB_QP_ACCESS_FLAGS) in to_mlx4_access_flags()
1757 int attr_mask) in store_sqp_attrs() argument
1759 if (attr_mask & IB_QP_PKEY_INDEX) in store_sqp_attrs()
1761 if (attr_mask & IB_QP_QKEY) in store_sqp_attrs()
1763 if (attr_mask & IB_QP_SQ_PSN) in store_sqp_attrs()
2109 const struct ib_qp_attr *attr, int attr_mask, in __mlx4_ib_modify_qp() argument
2154 if (attr_mask & IB_QP_ALT_PATH && in __mlx4_ib_modify_qp()
2166 if (!(attr_mask & IB_QP_PATH_MIG_STATE)) in __mlx4_ib_modify_qp()
[all …]
H A Dsrq.c225 enum ib_srq_attr_mask attr_mask, struct ib_udata *udata) in mlx4_ib_modify_srq() argument
232 if (attr_mask & IB_SRQ_MAX_WR) in mlx4_ib_modify_srq()
235 if (attr_mask & IB_SRQ_LIMIT) { in mlx4_ib_modify_srq()
/openbmc/linux/drivers/infiniband/hw/hns/
H A Dhns_roce_qp.c69 int attr_mask; in flush_work_handle() local
72 attr_mask = IB_QP_STATE; in flush_work_handle()
76 ret = hns_roce_modify_qp(&hr_qp->ibqp, &attr, attr_mask, NULL); in flush_work_handle()
1271 struct ib_qp_attr *attr, int attr_mask) in check_mtu_validate() argument
1276 p = attr_mask & IB_QP_PORT ? (attr->port_num - 1) : hr_qp->port; in check_mtu_validate()
1292 int attr_mask) in hns_roce_check_qp_attr() argument
1298 if ((attr_mask & IB_QP_PORT) && in hns_roce_check_qp_attr()
1305 if (attr_mask & IB_QP_PKEY_INDEX) { in hns_roce_check_qp_attr()
1306 p = attr_mask & IB_QP_PORT ? (attr->port_num - 1) : hr_qp->port; in hns_roce_check_qp_attr()
1315 if (attr_mask & IB_QP_MAX_QP_RD_ATOMIC && in hns_roce_check_qp_attr()
[all …]
H A Dhns_roce_hw_v2.c4183 const struct ib_qp_attr *attr, int attr_mask) in set_access_flags() argument
4188 dest_rd_atomic = (attr_mask & IB_QP_MAX_DEST_RD_ATOMIC) ? in set_access_flags()
4191 access_flags = (attr_mask & IB_QP_ACCESS_FLAGS) ? in set_access_flags()
4468 const struct ib_qp_attr *attr, int attr_mask, in modify_qp_init_to_rtr() argument
4511 if (attr_mask & IB_QP_ALT_PATH) { in modify_qp_init_to_rtr()
4513 attr_mask); in modify_qp_init_to_rtr()
4535 port = (attr_mask & IB_QP_PORT) ? (attr->port_num - 1) : hr_qp->port; in modify_qp_init_to_rtr()
4546 if (attr_mask & IB_QP_DEST_QPN) { in modify_qp_init_to_rtr()
4566 if (attr_mask & IB_QP_PATH_MTU) { in modify_qp_init_to_rtr()
4615 static int modify_qp_rtr_to_rts(struct ib_qp *ibqp, int attr_mask, in modify_qp_rtr_to_rts() argument
[all …]
/openbmc/linux/drivers/infiniband/sw/rdmavt/
H A Dqp.c1403 int attr_mask, struct ib_udata *udata) in rvt_modify_qp() argument
1414 if (attr_mask & ~IB_QP_ATTR_STANDARD_BITS) in rvt_modify_qp()
1421 cur_state = attr_mask & IB_QP_CUR_STATE ? in rvt_modify_qp()
1423 new_state = attr_mask & IB_QP_STATE ? attr->qp_state : cur_state; in rvt_modify_qp()
1427 attr_mask)) in rvt_modify_qp()
1431 rdi->driver_f.check_modify_qp(qp, attr, attr_mask, udata)) in rvt_modify_qp()
1434 if (attr_mask & IB_QP_AV) { in rvt_modify_qp()
1449 if (attr_mask & IB_QP_ALT_PATH) { in rvt_modify_qp()
1466 if (attr_mask & IB_QP_PKEY_INDEX) in rvt_modify_qp()
1470 if (attr_mask & IB_QP_MIN_RNR_TIMER) in rvt_modify_qp()
[all …]
H A Dqp.h16 int attr_mask, struct ib_udata *udata);
19 int attr_mask, struct ib_qp_init_attr *init_attr);
H A Dsrq.c125 enum ib_srq_attr_mask attr_mask, in rvt_modify_srq() argument
133 if (attr_mask & IB_SRQ_MAX_WR) { in rvt_modify_srq()
141 ((attr_mask & IB_SRQ_LIMIT) ? in rvt_modify_srq()
220 if (attr_mask & IB_SRQ_LIMIT) in rvt_modify_srq()
255 } else if (attr_mask & IB_SRQ_LIMIT) { in rvt_modify_srq()
H A Dsrq.h14 enum ib_srq_attr_mask attr_mask,
/openbmc/linux/arch/x86/kernel/cpu/sgx/
H A Ddriver.c149 u64 attr_mask; in sgx_drv_init() local
167 attr_mask = (((u64)ebx) << 32) + (u64)eax; in sgx_drv_init()
168 sgx_attributes_reserved_mask = ~attr_mask | SGX_ATTR_RESERVED_MASK; in sgx_drv_init()
/openbmc/linux/drivers/infiniband/hw/vmw_pvrdma/
H A Dpvrdma_qp.c526 int attr_mask, struct ib_udata *udata) in pvrdma_modify_qp() argument
536 if (attr_mask & ~IB_QP_ATTR_STANDARD_BITS) in pvrdma_modify_qp()
541 cur_state = (attr_mask & IB_QP_CUR_STATE) ? attr->cur_qp_state : in pvrdma_modify_qp()
543 next_state = (attr_mask & IB_QP_STATE) ? attr->qp_state : cur_state; in pvrdma_modify_qp()
546 attr_mask)) { in pvrdma_modify_qp()
551 if (attr_mask & IB_QP_PORT) { in pvrdma_modify_qp()
559 if (attr_mask & IB_QP_MIN_RNR_TIMER) { in pvrdma_modify_qp()
566 if (attr_mask & IB_QP_PKEY_INDEX) { in pvrdma_modify_qp()
573 if (attr_mask & IB_QP_QKEY) in pvrdma_modify_qp()
585 cmd->attr_mask = ib_qp_attr_mask_to_pvrdma(attr_mask); in pvrdma_modify_qp()
[all …]
H A 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()
/openbmc/linux/drivers/infiniband/core/
H A Duverbs_cmd.c1663 ret = ib_query_qp(qp, attr, cmd.attr_mask, init_attr); in ib_uverbs_query_qp()
1769 if ((cmd->base.attr_mask & IB_QP_PORT) && in modify_qp()
1775 if ((cmd->base.attr_mask & IB_QP_AV)) { in modify_qp()
1781 if (cmd->base.attr_mask & IB_QP_STATE && in modify_qp()
1815 if (((cmd->base.attr_mask & (IB_QP_AV | IB_QP_PORT)) in modify_qp()
1821 if ((cmd->base.attr_mask & (IB_QP_AV | IB_QP_PORT)) in modify_qp()
1823 cmd->base.attr_mask |= IB_QP_PORT; in modify_qp()
1829 if ((cmd->base.attr_mask & IB_QP_ALT_PATH) && in modify_qp()
1837 if ((cmd->base.attr_mask & IB_QP_CUR_STATE && in modify_qp()
1839 (cmd->base.attr_mask & IB_QP_STATE && in modify_qp()
[all …]
H A Dverbs.c1753 int attr_mask, struct ib_udata *udata) in _ib_modify_qp() argument
1755 u32 port = attr_mask & IB_QP_PORT ? attr->port_num : qp->port; in _ib_modify_qp()
1761 if (attr_mask & IB_QP_AV) { in _ib_modify_qp()
1792 if (attr_mask & IB_QP_ALT_PATH) { in _ib_modify_qp()
1818 if (attr_mask & IB_QP_RQ_PSN && attr->rq_psn & ~0xffffff) { in _ib_modify_qp()
1825 if (attr_mask & IB_QP_SQ_PSN && attr->sq_psn & ~0xffffff) { in _ib_modify_qp()
1837 if (!qp->counter && (attr_mask & IB_QP_PORT) && in _ib_modify_qp()
1838 ((attr_mask & IB_QP_STATE) && attr->qp_state == IB_QPS_INIT)) in _ib_modify_qp()
1841 ret = ib_security_modify_qp(qp, attr, attr_mask, udata); in _ib_modify_qp()
1845 if (attr_mask & IB_QP_PORT) in _ib_modify_qp()
[all …]
/openbmc/linux/drivers/infiniband/hw/hfi1/
H A 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()
H A Dqp.c161 int attr_mask, struct ib_udata *udata) in hfi1_check_modify_qp() argument
168 if (attr_mask & IB_QP_AV) { in hfi1_check_modify_qp()
181 if (attr_mask & IB_QP_ALT_PATH) { in hfi1_check_modify_qp()
223 int attr_mask, struct ib_udata *udata) in hfi1_modify_qp() argument
228 if (attr_mask & IB_QP_AV) { in hfi1_modify_qp()
235 if (attr_mask & IB_QP_PATH_MIG_STATE && in hfi1_modify_qp()
245 opfn_qp_init(qp, attr, attr_mask); in hfi1_modify_qp()
H A Dopfn.h82 void opfn_qp_init(struct rvt_qp *qp, struct ib_qp_attr *attr, int attr_mask);
/openbmc/linux/drivers/infiniband/hw/ocrdma/
H A Docrdma_verbs.h80 int attr_mask);
82 int attr_mask, struct ib_udata *udata);
H A Docrdma_hw.c2486 int attr_mask) in ocrdma_set_av_params() argument
2571 struct ib_qp_attr *attrs, int attr_mask) in ocrdma_set_qp_params() argument
2576 if (attr_mask & IB_QP_PKEY_INDEX) { in ocrdma_set_qp_params()
2581 if (attr_mask & IB_QP_QKEY) { in ocrdma_set_qp_params()
2586 if (attr_mask & IB_QP_AV) { in ocrdma_set_qp_params()
2587 status = ocrdma_set_av_params(qp, cmd, attrs, attr_mask); in ocrdma_set_qp_params()
2599 if ((attr_mask & IB_QP_EN_SQD_ASYNC_NOTIFY) && in ocrdma_set_qp_params()
2605 if (attr_mask & IB_QP_DEST_QPN) { in ocrdma_set_qp_params()
2610 if (attr_mask & IB_QP_PATH_MTU) { in ocrdma_set_qp_params()
2624 if (attr_mask & IB_QP_TIMEOUT) { in ocrdma_set_qp_params()
[all …]
/openbmc/linux/drivers/infiniband/hw/qedr/
H A Dverbs.h61 int attr_mask, struct ib_udata *udata);
69 enum ib_srq_attr_mask attr_mask, struct ib_udata *udata);
H A Dverbs.c1127 int attr_mask, in get_gid_info_from_table() argument
1676 enum ib_srq_attr_mask attr_mask, struct ib_udata *udata) in qedr_modify_srq() argument
1683 if (attr_mask & IB_SRQ_MAX_WR) { in qedr_modify_srq()
1686 attr_mask, srq); in qedr_modify_srq()
1690 if (attr_mask & IB_SRQ_LIMIT) { in qedr_modify_srq()
2466 int attr_mask, struct ib_udata *udata) in qedr_modify_qp() argument
2477 "modify qp: qp %p attr_mask=0x%x, state=%d", qp, attr_mask, in qedr_modify_qp()
2480 if (attr_mask & ~IB_QP_ATTR_STANDARD_BITS) 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()
[all …]
/openbmc/linux/drivers/infiniband/hw/usnic/
H A Dusnic_ib_verbs.c550 int attr_mask, struct ib_udata *udata) in usnic_ib_modify_qp() argument
556 if (attr_mask & ~IB_QP_ATTR_STANDARD_BITS) in usnic_ib_modify_qp()
562 if ((attr_mask & IB_QP_PORT) && attr->port_num != 1) { in usnic_ib_modify_qp()
567 if (attr_mask & IB_QP_STATE) { in usnic_ib_modify_qp()
570 usnic_err("Unhandled request, attr_mask=0x%x\n", attr_mask); in usnic_ib_modify_qp()

123