/linux/drivers/infiniband/hw/mlx5/ |
H A D | cong.c | 179 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 …]
|
/linux/drivers/infiniband/ulp/ipoib/ |
H A D | ipoib_verbs.c | 94 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()
|
/linux/drivers/infiniband/hw/mthca/ |
H A D | mthca_qp.c | 300 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 …]
|
/linux/drivers/infiniband/hw/mlx4/ |
H A D | qp.c | 1727 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 D | srq.c | 225 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()
|
/linux/drivers/infiniband/sw/rdmavt/ |
H A D | qp.c | 1403 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 D | srq.c | 125 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 D | qp.h | 16 int attr_mask, struct ib_udata *udata); 19 int attr_mask, struct ib_qp_init_attr *init_attr);
|
H A D | srq.h | 14 enum ib_srq_attr_mask attr_mask,
|
/linux/drivers/infiniband/hw/vmw_pvrdma/ |
H A D | pvrdma_qp.c | 526 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 D | pvrdma_srq.c | 275 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()
|
H A D | pvrdma_dev_api.h | 531 u32 attr_mask; member 599 u32 attr_mask; member 606 u32 attr_mask; member
|
/linux/drivers/infiniband/core/ |
H A D | uverbs_cmd.c | 1661 ret = ib_query_qp(qp, attr, cmd.attr_mask, init_attr); in ib_uverbs_query_qp() 1767 if ((cmd->base.attr_mask & IB_QP_PORT) && in modify_qp() 1773 if ((cmd->base.attr_mask & IB_QP_AV)) { in modify_qp() 1779 if (cmd->base.attr_mask & IB_QP_STATE && in modify_qp() 1813 if (((cmd->base.attr_mask & (IB_QP_AV | IB_QP_PORT)) in modify_qp() 1819 if ((cmd->base.attr_mask & (IB_QP_AV | IB_QP_PORT)) in modify_qp() 1821 cmd->base.attr_mask |= IB_QP_PORT; in modify_qp() 1827 if ((cmd->base.attr_mask & IB_QP_ALT_PATH) && in modify_qp() 1835 if ((cmd->base.attr_mask & IB_QP_CUR_STATE && in modify_qp() 1837 (cmd->base.attr_mask & IB_QP_STATE && in modify_qp() [all …]
|
H A D | verbs.c | 1768 int attr_mask, struct ib_udata *udata) in _ib_modify_qp() argument 1770 u32 port = attr_mask & IB_QP_PORT ? attr->port_num : qp->port; in _ib_modify_qp() 1776 if (attr_mask & IB_QP_AV) { in _ib_modify_qp() 1807 if (attr_mask & IB_QP_ALT_PATH) { in _ib_modify_qp() 1833 if (attr_mask & IB_QP_RQ_PSN && attr->rq_psn & ~0xffffff) { in _ib_modify_qp() 1840 if (attr_mask & IB_QP_SQ_PSN && attr->sq_psn & ~0xffffff) { in _ib_modify_qp() 1852 if (!qp->counter && (attr_mask & IB_QP_PORT) && in _ib_modify_qp() 1853 ((attr_mask & IB_QP_STATE) && attr->qp_state == IB_QPS_INIT)) in _ib_modify_qp() 1856 ret = ib_security_modify_qp(qp, attr, attr_mask, udata); in _ib_modify_qp() 1860 if (attr_mask & IB_QP_PORT) in _ib_modify_qp() [all …]
|
/linux/drivers/infiniband/hw/hfi1/ |
H A D | opfn.c | 242 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 D | qp.c | 161 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 D | opfn.h | 82 void opfn_qp_init(struct rvt_qp *qp, struct ib_qp_attr *attr, int attr_mask);
|
/linux/drivers/infiniband/hw/ocrdma/ |
H A D | ocrdma_verbs.h | 80 int attr_mask); 82 int attr_mask, struct ib_udata *udata);
|
H A D | ocrdma_hw.c | 2486 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 …]
|
/linux/drivers/infiniband/hw/qedr/ |
H A D | verbs.h | 61 int attr_mask, struct ib_udata *udata); 69 enum ib_srq_attr_mask attr_mask, struct ib_udata *udata);
|
H A D | verbs.c | 1128 int attr_mask, in get_gid_info_from_table() argument 1677 enum ib_srq_attr_mask attr_mask, struct ib_udata *udata) in qedr_modify_srq() argument 1684 if (attr_mask & IB_SRQ_MAX_WR) { in qedr_modify_srq() 1687 attr_mask, srq); in qedr_modify_srq() 1691 if (attr_mask & IB_SRQ_LIMIT) { in qedr_modify_srq() 2467 int attr_mask, struct ib_udata *udata) in qedr_modify_qp() argument 2478 "modify qp: qp %p attr_mask=0x%x, state=%d", qp, attr_mask, in qedr_modify_qp() 2481 if (attr_mask & ~IB_QP_ATTR_STANDARD_BITS) in qedr_modify_qp() 2485 if (attr_mask & IB_QP_STATE) in qedr_modify_qp() 2492 ibqp->qp_type, attr_mask)) { in qedr_modify_qp() [all …]
|
/linux/drivers/infiniband/hw/mana/ |
H A D | qp.c | 515 int attr_mask, struct ib_udata *udata) in mana_ib_gd_modify_qp() argument 531 req.attr_mask = attr_mask; in mana_ib_gd_modify_qp() 540 if (attr_mask & IB_QP_AV) { in mana_ib_gd_modify_qp() 578 int attr_mask, struct ib_udata *udata) in mana_ib_modify_qp() argument 582 return mana_ib_gd_modify_qp(ibqp, attr, attr_mask, udata); in mana_ib_modify_qp()
|
/linux/drivers/infiniband/hw/usnic/ |
H A D | usnic_ib_verbs.c | 550 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()
|
/linux/drivers/infiniband/hw/hns/ |
H A D | hns_roce_hw_v2.c | 4220 const struct ib_qp_attr *attr, int attr_mask) in set_access_flags() argument 4225 dest_rd_atomic = (attr_mask & IB_QP_MAX_DEST_RD_ATOMIC) ? in set_access_flags() 4228 access_flags = (attr_mask & IB_QP_ACCESS_FLAGS) ? in set_access_flags() 4505 const struct ib_qp_attr *attr, int attr_mask, in modify_qp_init_to_rtr() argument 4548 if (attr_mask & IB_QP_ALT_PATH) { in modify_qp_init_to_rtr() 4550 attr_mask); in modify_qp_init_to_rtr() 4572 port = (attr_mask & IB_QP_PORT) ? (attr->port_num - 1) : hr_qp->port; in modify_qp_init_to_rtr() 4583 if (attr_mask & IB_QP_DEST_QPN) { in modify_qp_init_to_rtr() 4603 if (attr_mask & IB_QP_PATH_MTU) { in modify_qp_init_to_rtr() 4653 static int modify_qp_rtr_to_rts(struct ib_qp *ibqp, int attr_mask, in modify_qp_rtr_to_rts() argument [all …]
|
/linux/include/uapi/rdma/ |
H A D | ib_user_verbs.h | 685 __u32 attr_mask; member 727 __u32 attr_mask; member 1207 __u32 attr_mask; member 1271 __u32 attr_mask; member 1310 __u32 attr_mask; member
|