/Linux-v5.4/drivers/infiniband/hw/hns/ |
D | hns_roce_cmd.c | 43 static int hns_roce_cmd_mbox_post_hw(struct hns_roce_dev *hr_dev, u64 in_param, in hns_roce_cmd_mbox_post_hw() argument 52 ret = hr_dev->hw->post_mbox(hr_dev, in_param, out_param, in_modifier, in hns_roce_cmd_mbox_post_hw() 60 static int __hns_roce_cmd_mbox_poll(struct hns_roce_dev *hr_dev, u64 in_param, in __hns_roce_cmd_mbox_poll() argument 68 ret = hns_roce_cmd_mbox_post_hw(hr_dev, in_param, out_param, in __hns_roce_cmd_mbox_poll() 79 static int hns_roce_cmd_mbox_poll(struct hns_roce_dev *hr_dev, u64 in_param, in hns_roce_cmd_mbox_poll() argument 86 ret = __hns_roce_cmd_mbox_poll(hr_dev, in_param, out_param, in_modifier, in hns_roce_cmd_mbox_poll() 108 static int __hns_roce_cmd_mbox_wait(struct hns_roce_dev *hr_dev, u64 in_param, in __hns_roce_cmd_mbox_wait() argument 127 ret = hns_roce_cmd_mbox_post_hw(hr_dev, in_param, out_param, in __hns_roce_cmd_mbox_wait() 160 static int hns_roce_cmd_mbox_wait(struct hns_roce_dev *hr_dev, u64 in_param, in hns_roce_cmd_mbox_wait() argument 167 ret = __hns_roce_cmd_mbox_wait(hr_dev, in_param, out_param, in hns_roce_cmd_mbox_wait() [all …]
|
D | hns_roce_cmd.h | 142 int hns_roce_cmd_mbox(struct hns_roce_dev *hr_dev, u64 in_param, u64 out_param,
|
D | hns_roce_device.h | 936 int (*post_mbox)(struct hns_roce_dev *hr_dev, u64 in_param,
|
D | hns_roce_hw_v2.c | 2060 static int hns_roce_mbox_post(struct hns_roce_dev *hr_dev, u64 in_param, in hns_roce_mbox_post() argument 2069 mb->in_param_l = cpu_to_le32(in_param); in hns_roce_mbox_post() 2070 mb->in_param_h = cpu_to_le32(in_param >> 32); in hns_roce_mbox_post() 2079 static int hns_roce_v2_post_mbox(struct hns_roce_dev *hr_dev, u64 in_param, in hns_roce_v2_post_mbox() argument 2097 ret = hns_roce_mbox_post(hr_dev, in_param, out_param, in_modifier, in hns_roce_v2_post_mbox()
|
D | hns_roce_hw_v1.c | 1675 static int hns_roce_v1_post_mbox(struct hns_roce_dev *hr_dev, u64 in_param, in hns_roce_v1_post_mbox() argument 1705 writeq(in_param, hcr + 0); in hns_roce_v1_post_mbox()
|
/Linux-v5.4/include/linux/mlx4/ |
D | cmd.h | 268 int __mlx4_cmd(struct mlx4_dev *dev, u64 in_param, u64 *out_param, 273 static inline int mlx4_cmd(struct mlx4_dev *dev, u64 in_param, u32 in_modifier, in mlx4_cmd() argument 277 return __mlx4_cmd(dev, in_param, NULL, 0, in_modifier, in mlx4_cmd() 282 static inline int mlx4_cmd_box(struct mlx4_dev *dev, u64 in_param, u64 out_param, in mlx4_cmd_box() argument 286 return __mlx4_cmd(dev, in_param, &out_param, 0, in_modifier, in mlx4_cmd_box() 295 static inline int mlx4_cmd_imm(struct mlx4_dev *dev, u64 in_param, u64 *out_param, in mlx4_cmd_imm() argument 299 return __mlx4_cmd(dev, in_param, out_param, 1, in_modifier, in mlx4_cmd_imm()
|
/Linux-v5.4/drivers/net/ethernet/mellanox/mlx4/ |
D | fw_qos.c | 199 struct mlx4_alloc_vpp_param *in_param; in mlx4_ALLOCATE_VPP_set() local 205 in_param = mailbox->buf; in mlx4_ALLOCATE_VPP_set() 208 in_param->vpp_p_up[i] = cpu_to_be32(vpp_p_up[i]); in mlx4_ALLOCATE_VPP_set() 259 struct mlx4_vport_qos_param *in_param) in mlx4_SET_VPORT_QOS_set() argument 273 ctx->qos_p_up[i].bw_share = cpu_to_be32(in_param[i].bw_share); in mlx4_SET_VPORT_QOS_set() 275 cpu_to_be32(in_param[i].max_avg_bw); in mlx4_SET_VPORT_QOS_set() 277 cpu_to_be32(in_param[i].enable << 31); in mlx4_SET_VPORT_QOS_set()
|
D | resource_tracker.c | 972 u64 in_param, u64 *out_param, int port); 1787 u64 in_param, u64 *out_param) in qp_alloc_res() argument 1798 count = get_param_l(&in_param) & 0xffffff; in qp_alloc_res() 1802 flags = (get_param_l(&in_param) >> 24) & dev->caps.alloc_res_qp_mask; in qp_alloc_res() 1803 align = get_param_h(&in_param); in qp_alloc_res() 1823 qpn = get_param_l(&in_param) & 0x7fffff; in qp_alloc_res() 1854 u64 in_param, u64 *out_param) in mtt_alloc_res() argument 1863 order = get_param_l(&in_param); in mtt_alloc_res() 1887 u64 in_param, u64 *out_param) in mpt_alloc_res() argument 1916 index = get_param_l(&in_param); in mpt_alloc_res() [all …]
|
D | qp.c | 251 u64 in_param = 0; in mlx4_qp_reserve_range() local 259 set_param_l(&in_param, (((u32)flags) << 24) | (u32)cnt); in mlx4_qp_reserve_range() 260 set_param_h(&in_param, align); in mlx4_qp_reserve_range() 261 err = mlx4_cmd_imm(dev, in_param, &out_param, in mlx4_qp_reserve_range() 287 u64 in_param = 0; in mlx4_qp_release_range() local 294 set_param_l(&in_param, base_qpn); in mlx4_qp_release_range() 295 set_param_h(&in_param, cnt); in mlx4_qp_release_range() 296 err = mlx4_cmd(dev, in_param, RES_QP, RES_OP_RESERVE, in mlx4_qp_release_range() 379 u64 in_param = 0; in mlx4_qp_free_icm() local 382 set_param_l(&in_param, qpn); in mlx4_qp_free_icm() [all …]
|
D | mr.c | 176 u64 in_param = 0; in mlx4_alloc_mtt_range() local 181 set_param_l(&in_param, order); in mlx4_alloc_mtt_range() 182 err = mlx4_cmd_imm(dev, in_param, &out_param, RES_MTT, in mlx4_alloc_mtt_range() 233 u64 in_param = 0; in mlx4_free_mtt_range() local 237 set_param_l(&in_param, offset); in mlx4_free_mtt_range() 238 set_param_h(&in_param, order); in mlx4_free_mtt_range() 239 err = mlx4_cmd(dev, in_param, RES_MTT, RES_OP_RESERVE_AND_MAP, in mlx4_free_mtt_range() 469 u64 in_param = 0; in mlx4_mpt_release() local 472 set_param_l(&in_param, index); in mlx4_mpt_release() 473 if (mlx4_cmd(dev, in_param, RES_MPT, RES_OP_RESERVE, in mlx4_mpt_release() [all …]
|
D | cmd.c | 432 static int mlx4_cmd_post(struct mlx4_dev *dev, u64 in_param, u64 out_param, in mlx4_cmd_post() argument 482 __raw_writel((__force u32) cpu_to_be32(in_param >> 32), hcr + 0); in mlx4_cmd_post() 483 __raw_writel((__force u32) cpu_to_be32(in_param & 0xfffffffful), hcr + 1); in mlx4_cmd_post() 505 op, ret, in_param, in_modifier, op_modifier); in mlx4_cmd_post() 511 static int mlx4_slave_cmd(struct mlx4_dev *dev, u64 in_param, u64 *out_param, in mlx4_slave_cmd() argument 521 vhcr->in_param = cpu_to_be64(in_param); in mlx4_slave_cmd() 576 static int mlx4_cmd_poll(struct mlx4_dev *dev, u64 in_param, u64 *out_param, in mlx4_cmd_poll() argument 604 err = mlx4_cmd_post(dev, in_param, out_param ? *out_param : 0, in mlx4_cmd_poll() 677 static int mlx4_cmd_wait(struct mlx4_dev *dev, u64 in_param, u64 *out_param, in mlx4_cmd_wait() argument 704 err = mlx4_cmd_post(dev, in_param, out_param ? *out_param : 0, in mlx4_cmd_wait() [all …]
|
D | pd.c | 103 u64 in_param = 0; in mlx4_xrcd_free() local 107 set_param_l(&in_param, xrcdn); in mlx4_xrcd_free() 108 err = mlx4_cmd(dev, in_param, RES_XRCD, in mlx4_xrcd_free()
|
D | srq.c | 149 u64 in_param = 0; in mlx4_srq_free_icm() local 152 set_param_l(&in_param, srqn); in mlx4_srq_free_icm() 153 if (mlx4_cmd(dev, in_param, RES_SRQ, RES_OP_RESERVE_AND_MAP, in mlx4_srq_free_icm()
|
D | fw_qos.h | 143 struct mlx4_vport_qos_param *in_param);
|
D | cq.c | 276 u64 in_param = 0; in mlx4_cq_free_icm() local 280 set_param_l(&in_param, cqn); in mlx4_cq_free_icm() 281 err = mlx4_cmd(dev, in_param, RES_CQ, RES_OP_RESERVE_AND_MAP, in mlx4_cq_free_icm()
|
D | mcg.c | 1091 u64 in_param; in mlx4_FLOW_STEERING_IB_UC_QP_RANGE() local 1093 in_param = ((u64) min_range_qpn) << 32; in mlx4_FLOW_STEERING_IB_UC_QP_RANGE() 1094 in_param |= ((u64) max_range_qpn) & 0xFFFFFFFF; in mlx4_FLOW_STEERING_IB_UC_QP_RANGE() 1096 err = mlx4_cmd(dev, in_param, 0, 0, in mlx4_FLOW_STEERING_IB_UC_QP_RANGE() 1564 u32 qpn = (u32) vhcr->in_param & 0xffffffff; in mlx4_PROMISC_wrapper() 1565 int port = mlx4_slave_convert_port(dev, slave, vhcr->in_param >> 62); in mlx4_PROMISC_wrapper()
|
D | eq.c | 885 u64 in_param = vhcr->in_param; in mlx4_MAP_EQ_wrapper() local 890 err = mlx4_cmd(dev, in_param, (in_modifier & 0x80000000) | eqn, in mlx4_MAP_EQ_wrapper() 895 if (in_param & (1LL << i)) in mlx4_MAP_EQ_wrapper()
|
D | mlx4.h | 175 u64 in_param; member 186 __be64 in_param; member
|
D | main.c | 2645 u64 in_param = 0; in mlx4_counter_free() local 2648 set_param_l(&in_param, idx); in mlx4_counter_free() 2649 mlx4_cmd(dev, in_param, RES_COUNTER, RES_OP_RESERVE, in mlx4_counter_free()
|
/Linux-v5.4/drivers/infiniband/hw/mthca/ |
D | mthca_cmd.c | 199 u64 in_param, in mthca_cmd_post_dbell() argument 209 __raw_writel((__force u32) cpu_to_be32(in_param >> 32), ptr + offs[0]); in mthca_cmd_post_dbell() 211 __raw_writel((__force u32) cpu_to_be32(in_param & 0xfffffffful), ptr + offs[1]); in mthca_cmd_post_dbell() 231 u64 in_param, in mthca_cmd_post_hcr() argument 257 __raw_writel((__force u32) cpu_to_be32(in_param >> 32), dev->hcr + 0 * 4); in mthca_cmd_post_hcr() 258 __raw_writel((__force u32) cpu_to_be32(in_param & 0xfffffffful), dev->hcr + 1 * 4); in mthca_cmd_post_hcr() 276 u64 in_param, in mthca_cmd_post() argument 289 mthca_cmd_post_dbell(dev, in_param, out_param, in_modifier, in mthca_cmd_post() 292 err = mthca_cmd_post_hcr(dev, in_param, out_param, in_modifier, in mthca_cmd_post() 332 u64 in_param, in mthca_cmd_poll() argument [all …]
|