Home
last modified time | relevance | path

Searched refs:vhcr (Results 1 – 8 of 8) sorted by relevance

/trueos/sys/ofed/drivers/net/mlx4/
HDmlx4.h204 int (*verify)(struct mlx4_dev *dev, int slave, struct mlx4_vhcr *vhcr,
206 int (*wrapper)(struct mlx4_dev *dev, int slave, struct mlx4_vhcr *vhcr,
575 struct mlx4_vhcr_cmd *vhcr; member
923 struct mlx4_vhcr *vhcr,
928 struct mlx4_vhcr *vhcr,
933 struct mlx4_vhcr *vhcr,
938 struct mlx4_vhcr *vhcr,
943 struct mlx4_vhcr *vhcr,
948 struct mlx4_vhcr *vhcr,
953 struct mlx4_vhcr *vhcr,
[all …]
HDcmd.c565 struct mlx4_vhcr_cmd *vhcr = priv->mfunc.vhcr; in mlx4_slave_cmd() local
570 vhcr->in_param = cpu_to_be64(in_param); in mlx4_slave_cmd()
571 vhcr->out_param = out_param ? cpu_to_be64(*out_param) : 0; in mlx4_slave_cmd()
572 vhcr->in_modifier = cpu_to_be32(in_modifier); in mlx4_slave_cmd()
573 vhcr->opcode = cpu_to_be16((((u16) op_modifier) << 12) | (op & 0xfff)); in mlx4_slave_cmd()
574 vhcr->token = cpu_to_be16(CMD_POLL_TOKEN); in mlx4_slave_cmd()
575 vhcr->status = 0; in mlx4_slave_cmd()
576 vhcr->flags = !!(priv->cmd.use_events) << 6; in mlx4_slave_cmd()
579 ret = mlx4_master_process_vhcr(dev, dev->caps.function, vhcr); in mlx4_slave_cmd()
584 be64_to_cpu(vhcr->out_param); in mlx4_slave_cmd()
[all …]
HDresource_tracker.c2019 struct mlx4_vhcr *vhcr, in mlx4_ALLOC_RES_wrapper() argument
2025 int alop = vhcr->op_modifier; in mlx4_ALLOC_RES_wrapper()
2027 switch (vhcr->in_modifier & 0xFF) { in mlx4_ALLOC_RES_wrapper()
2029 err = qp_alloc_res(dev, slave, vhcr->op_modifier, alop, in mlx4_ALLOC_RES_wrapper()
2030 vhcr->in_param, &vhcr->out_param); in mlx4_ALLOC_RES_wrapper()
2034 err = mtt_alloc_res(dev, slave, vhcr->op_modifier, alop, in mlx4_ALLOC_RES_wrapper()
2035 vhcr->in_param, &vhcr->out_param); in mlx4_ALLOC_RES_wrapper()
2039 err = mpt_alloc_res(dev, slave, vhcr->op_modifier, alop, in mlx4_ALLOC_RES_wrapper()
2040 vhcr->in_param, &vhcr->out_param); in mlx4_ALLOC_RES_wrapper()
2044 err = cq_alloc_res(dev, slave, vhcr->op_modifier, alop, in mlx4_ALLOC_RES_wrapper()
[all …]
HDfw.c181 struct mlx4_vhcr *vhcr, in mlx4_QUERY_FUNC_CAP_wrapper() argument
233 if (vhcr->op_modifier == 1) { in mlx4_QUERY_FUNC_CAP_wrapper()
234 port = vhcr->in_modifier; /* phys-port = logical-port */ in mlx4_QUERY_FUNC_CAP_wrapper()
248 field = mlx4_get_default_counter_index(dev, slave, vhcr->in_modifier); in mlx4_QUERY_FUNC_CAP_wrapper()
264 } else if (vhcr->op_modifier == 0) { in mlx4_QUERY_FUNC_CAP_wrapper()
870 struct mlx4_vhcr *vhcr, in mlx4_QUERY_DEV_CAP_wrapper() argument
906 struct mlx4_vhcr *vhcr, in mlx4_QUERY_PORT_wrapper() argument
923 err = mlx4_cmd_box(dev, 0, outbox->dma, vhcr->in_modifier, 0, in mlx4_QUERY_PORT_wrapper()
929 def_mac = priv->mfunc.master.vf_oper[slave].vport[vhcr->in_modifier].state.mac; in mlx4_QUERY_PORT_wrapper()
939 port_type |= (dev->caps.port_type[vhcr->in_modifier] & 0x3); in mlx4_QUERY_PORT_wrapper()
[all …]
HDport.c735 struct mlx4_vhcr *vhcr, in mlx4_SET_PORT_wrapper() argument
740 return mlx4_common_set_port(dev, slave, vhcr->in_modifier, in mlx4_SET_PORT_wrapper()
741 vhcr->op_modifier, inbox); in mlx4_SET_PORT_wrapper()
944 struct mlx4_vhcr *vhcr, in mlx4_SET_MCAST_FLTR_wrapper() argument
964 struct mlx4_vhcr *vhcr, in mlx4_SET_VLAN_FLTR_wrapper() argument
975 struct mlx4_vhcr *vhcr, in mlx4_DUMP_ETH_STATS_wrapper() argument
HDmcg.c1456 struct mlx4_vhcr *vhcr, in mlx4_PROMISC_wrapper() argument
1461 u32 qpn = (u32) vhcr->in_param & 0xffffffff; in mlx4_PROMISC_wrapper()
1462 u8 port = vhcr->in_param >> 62; in mlx4_PROMISC_wrapper()
1463 enum mlx4_steer_type steer = vhcr->in_modifier; in mlx4_PROMISC_wrapper()
1469 if (vhcr->op_modifier) in mlx4_PROMISC_wrapper()
HDfw.h212 struct mlx4_vhcr *vhcr,
HDeq.c808 struct mlx4_vhcr *vhcr, in mlx4_MAP_EQ_wrapper() argument
816 u32 in_modifier = vhcr->in_modifier; in mlx4_MAP_EQ_wrapper()
818 u64 in_param = vhcr->in_param; in mlx4_MAP_EQ_wrapper()