Home
last modified time | relevance | path

Searched refs:in_param (Results 1 – 17 of 17) sorted by relevance

/linux/include/linux/mlx4/
H A Dcmd.h268 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/
H A Dfw_qos.c199 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()
H A Dresource_tracker.c972 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 …]
H A Dmr.c176 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 …]
H A Dqp.c256 u64 in_param = 0; in mlx4_qp_reserve_range() local
264 set_param_l(&in_param, (((u32)flags) << 24) | (u32)cnt); in mlx4_qp_reserve_range()
265 set_param_h(&in_param, align); in mlx4_qp_reserve_range()
266 err = mlx4_cmd_imm(dev, in_param, &out_param, in mlx4_qp_reserve_range()
292 u64 in_param = 0; in mlx4_qp_release_range() local
299 set_param_l(&in_param, base_qpn); in mlx4_qp_release_range()
300 set_param_h(&in_param, cnt); in mlx4_qp_release_range()
301 err = mlx4_cmd(dev, in_param, RES_QP, RES_OP_RESERVE, in mlx4_qp_release_range()
384 u64 in_param = 0; in mlx4_qp_free_icm() local
387 set_param_l(&in_param, qpn); in mlx4_qp_free_icm()
[all …]
H A Dcmd.c432 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 …]
H A Dpd.c103 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()
H A Dsrq.c149 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()
H A Dfw_qos.h143 struct mlx4_vport_qos_param *in_param);
H A Dcq.c276 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()
H A Dmcg.c1091 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()
H A Deq.c886 u64 in_param = vhcr->in_param; in mlx4_MAP_EQ_wrapper() local
891 err = mlx4_cmd(dev, in_param, (in_modifier & 0x80000000) | eqn, in mlx4_MAP_EQ_wrapper()
896 if (in_param & (1LL << i)) in mlx4_MAP_EQ_wrapper()
H A Dmlx4.h177 u64 in_param; member
188 __be64 in_param; member
H A Dmain.c2672 u64 in_param = 0; in mlx4_counter_free() local
2675 set_param_l(&in_param, idx); in mlx4_counter_free()
2676 mlx4_cmd(dev, in_param, RES_COUNTER, RES_OP_RESERVE, in mlx4_counter_free()
/linux/drivers/infiniband/hw/mthca/
H A Dmthca_cmd.c199 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 …]
/linux/drivers/infiniband/hw/hns/
H A Dhns_roce_cmd.c170 int hns_roce_cmd_mbox(struct hns_roce_dev *hr_dev, u64 in_param, u64 out_param, in hns_roce_cmd_mbox() argument
180 mbox_msg.in_param = in_param; in hns_roce_cmd_mbox()
H A Dhns_roce_cmd.h145 int hns_roce_cmd_mbox(struct hns_roce_dev *hr_dev, u64 in_param, u64 out_param,