/linux/drivers/infiniband/hw/hns/ |
A D | hns_roce_cmd.c | 42 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 47 return hr_dev->hw->post_mbox(hr_dev, in_param, out_param, in_modifier, in hns_roce_cmd_mbox_post_hw() 52 static int __hns_roce_cmd_mbox_poll(struct hns_roce_dev *hr_dev, u64 in_param, in __hns_roce_cmd_mbox_poll() argument 59 ret = hns_roce_cmd_mbox_post_hw(hr_dev, in_param, out_param, in __hns_roce_cmd_mbox_poll() 72 static int hns_roce_cmd_mbox_poll(struct hns_roce_dev *hr_dev, u64 in_param, in hns_roce_cmd_mbox_poll() argument 79 ret = __hns_roce_cmd_mbox_poll(hr_dev, in_param, out_param, in_modifier, in hns_roce_cmd_mbox_poll() 128 ret = hns_roce_cmd_mbox_post_hw(hr_dev, in_param, out_param, in __hns_roce_cmd_mbox_wait() 156 static int hns_roce_cmd_mbox_wait(struct hns_roce_dev *hr_dev, u64 in_param, in hns_roce_cmd_mbox_wait() argument 163 ret = __hns_roce_cmd_mbox_wait(hr_dev, in_param, out_param, in_modifier, in hns_roce_cmd_mbox_wait() 181 return hns_roce_cmd_mbox_wait(hr_dev, in_param, out_param, in hns_roce_cmd_mbox() [all …]
|
A D | hns_roce_cmd.h | 142 int hns_roce_cmd_mbox(struct hns_roce_dev *hr_dev, u64 in_param, u64 out_param,
|
A D | hns_roce_device.h | 906 int (*post_mbox)(struct hns_roce_dev *hr_dev, u64 in_param,
|
A D | hns_roce_hw_v2.c | 2779 static int hns_roce_mbox_post(struct hns_roce_dev *hr_dev, u64 in_param, in hns_roce_mbox_post() argument 2788 mb->in_param_l = cpu_to_le32(in_param); in hns_roce_mbox_post() 2789 mb->in_param_h = cpu_to_le32(in_param >> 32); in hns_roce_mbox_post() 2846 static int v2_post_mbox(struct hns_roce_dev *hr_dev, u64 in_param, in v2_post_mbox() argument 2864 ret = hns_roce_mbox_post(hr_dev, in_param, out_param, in_modifier, in v2_post_mbox()
|
A D | hns_roce_hw_v1.c | 1684 static int hns_roce_v1_post_mbox(struct hns_roce_dev *hr_dev, u64 in_param, in hns_roce_v1_post_mbox() argument 1714 writeq(in_param, hcr + 0); in hns_roce_v1_post_mbox()
|
/linux/include/linux/mlx4/ |
A 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/drivers/net/ethernet/mellanox/mlx4/ |
A 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()
|
A D | resource_tracker.c | 2112 mac = in_param; in mac_alloc_res() 2360 u64 in_param) in qp_free_res() argument 2420 u64 in_param) in mpt_free_res() argument 2620 vhcr->in_param); in mlx4_FREE_RES_wrapper() 4669 u64 in_param; in rem_slave_qps() local 4707 in_param = slave; in rem_slave_qps() 4742 u64 in_param; in rem_slave_srqs() local 4773 in_param = slave; in rem_slave_srqs() 4807 u64 in_param; in rem_slave_cqs() local 4838 in_param = slave; in rem_slave_cqs() [all …]
|
A 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() 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() 513 u64 in_param = 0; in mlx4_mpt_free_icm() local [all …]
|
A 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 …]
|
A D | cmd.c | 521 vhcr->in_param = cpu_to_be64(in_param); in mlx4_slave_cmd() 816 u64 in_param; in mlx4_ACCESS_MEM() local 1040 u64 in_param; in mlx4_DMA_wrapper() local 1044 in_param = cmd->has_inbox ? (u64) inbox->dma : vhcr->in_param; in mlx4_DMA_wrapper() 1047 in_param &= 0xffffffffffffff00ll; in mlx4_DMA_wrapper() 1048 in_param |= slave; in mlx4_DMA_wrapper() 1670 u64 in_param; in mlx4_master_process_vhcr() local 1698 vhcr->in_param = be64_to_cpu(vhcr_cmd->in_param); in mlx4_master_process_vhcr() 1722 vhcr->in_param &= INBOX_MASK; in mlx4_master_process_vhcr() 1731 vhcr->in_param, in mlx4_master_process_vhcr() [all …]
|
A 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()
|
A 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()
|
A D | fw_qos.h | 143 struct mlx4_vport_qos_param *in_param);
|
A 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()
|
A 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()
|
A 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()
|
A D | mlx4.h | 175 u64 in_param; member 186 __be64 in_param; member
|
A D | main.c | 2651 u64 in_param = 0; in mlx4_counter_free() local 2654 set_param_l(&in_param, idx); in mlx4_counter_free() 2655 mlx4_cmd(dev, in_param, RES_COUNTER, RES_OP_RESERVE, in mlx4_counter_free()
|
/linux/drivers/infiniband/hw/mthca/ |
A D | mthca_cmd.c | 199 u64 in_param, in mthca_cmd_post_dbell() argument 231 u64 in_param, in mthca_cmd_post_hcr() argument 276 u64 in_param, in mthca_cmd_post() argument 332 u64 in_param, in mthca_cmd_poll() argument 346 err = mthca_cmd_post(dev, in_param, in mthca_cmd_poll() 407 u64 in_param, in mthca_cmd_wait() argument 429 err = mthca_cmd_post(dev, in_param, in mthca_cmd_wait() 470 u64 in_param, in mthca_cmd_box() argument 489 u64 in_param, in mthca_cmd() argument 495 return mthca_cmd_box(dev, in_param, 0, in_modifier, in mthca_cmd() [all …]
|