Home
last modified time | relevance | path

Searched refs:phys_caps (Results 1 – 9 of 9) sorted by relevance

/linux-5.19.10/drivers/net/ethernet/mellanox/mlx4/
Dqp.c78 u32 pf_proxy_offset = dev->phys_caps.base_proxy_sqpn + 8 * mlx4_master_func_num(dev); in is_master_qp0()
81 *real_qp0 = qp->qpn >= dev->phys_caps.base_sqpn && in is_master_qp0()
82 qp->qpn <= dev->phys_caps.base_sqpn + 1; in is_master_qp0()
794 dev->phys_caps.base_sqpn = ALIGN(bottom_reserved_for_rss_bitmap, 8); in mlx4_init_qp_table()
846 dev->phys_caps.base_proxy_sqpn = dev->phys_caps.base_sqpn + 8; in mlx4_init_qp_table()
847 dev->phys_caps.base_tunnel_sqpn = dev->phys_caps.base_sqpn + 8 + 8 * MLX4_MFUNC_MAX; in mlx4_init_qp_table()
860 dev->caps.spec_qps[k].qp0_proxy = dev->phys_caps.base_proxy_sqpn + in mlx4_init_qp_table()
863 dev->caps.spec_qps[k].qp1_proxy = dev->phys_caps.base_proxy_sqpn + in mlx4_init_qp_table()
870 err = mlx4_CONF_SPECIAL_QP(dev, dev->phys_caps.base_sqpn); in mlx4_init_qp_table()
Dmain.c402 dev->phys_caps.gid_phys_table_len[port] = port_cap->max_gids; in _mlx4_dev_port()
403 dev->phys_caps.pkey_phys_table_len[port] = port_cap->max_pkeys; in _mlx4_dev_port()
490 dev->phys_caps.num_phys_eqs = dev_cap->flags2 & MLX4_DEV_CAP_FLAG2_SYS_EQS ? in mlx4_dev_cap()
765 if (qpn >= dev->phys_caps.base_tunnel_sqpn + 8 * MLX4_MFUNC_MAX || in mlx4_get_parav_qkey()
766 qpn < dev->phys_caps.base_proxy_sqpn) in mlx4_get_parav_qkey()
769 if (qpn >= dev->phys_caps.base_tunnel_sqpn) in mlx4_get_parav_qkey()
771 qk += qpn - dev->phys_caps.base_tunnel_sqpn; in mlx4_get_parav_qkey()
773 qk += qpn - dev->phys_caps.base_proxy_sqpn; in mlx4_get_parav_qkey()
1618 num_eqs = dev->phys_caps.num_phys_eqs; in mlx4_init_cmpt_table()
1680 num_eqs = dev->phys_caps.num_phys_eqs; in mlx4_init_icm()
[all …]
Dprofile.c129 profile[MLX4_RES_EQ].num = mlx4_is_mfunc(dev) ? dev->phys_caps.num_phys_eqs : in mlx4_make_profile()
Dfw.c411 proxy_qp = dev->phys_caps.base_proxy_sqpn + 8 * slave + port - 1; in mlx4_QUERY_FUNC_CAP_wrapper()
425 size = dev->phys_caps.base_tunnel_sqpn + 8 * slave + port - 1; in mlx4_QUERY_FUNC_CAP_wrapper()
/linux-5.19.10/include/linux/mlx4/
Ddevice.h878 struct mlx4_phys_caps phys_caps; member
1041 return dev->phys_caps.base_sqpn + 8 + in mlx4_num_reserved_sqps()
1047 return (qpn < dev->phys_caps.base_sqpn + 8 + in mlx4_is_qp_reserved()
1049 qpn >= dev->phys_caps.base_sqpn) || in mlx4_is_qp_reserved()
1055 int guest_proxy_base = dev->phys_caps.base_proxy_sqpn + slave * 8; in mlx4_is_guest_proxy()
/linux-5.19.10/drivers/infiniband/hw/mlx4/
Dmad.c456 unassigned_pkey_ix = dev->dev->phys_caps.pkey_phys_table_len[port] - 1; in find_slave_port_pkey_ix()
506 int proxy_start = dev->dev->phys_caps.base_proxy_sqpn + 8 * slave; in is_proxy_qp0()
569 dqpn = dev->dev->phys_caps.base_proxy_sqpn + 8 * slave + port + (dest_qpt * 2) - 1; in mlx4_ib_send_to_slave()
1494 if (wc->src_qp < dev->dev->phys_caps.base_proxy_sqpn || in mlx4_ib_multiplex_mad()
1495 wc->src_qp >= dev->dev->phys_caps.base_proxy_sqpn + 8 * MLX4_MFUNC_MAX || in mlx4_ib_multiplex_mad()
1501 slave = ((wc->src_qp & ~0x7) - dev->dev->phys_caps.base_proxy_sqpn) / 8; in mlx4_ib_multiplex_mad()
Dqp.c110 return qp->mqp.qpn >= dev->dev->phys_caps.base_tunnel_sqpn && in is_tunnel_qp()
111 qp->mqp.qpn < dev->dev->phys_caps.base_tunnel_sqpn + in is_tunnel_qp()
122 qp->mqp.qpn >= dev->dev->phys_caps.base_sqpn && in is_sqp()
123 qp->mqp.qpn <= dev->dev->phys_caps.base_sqpn + 3); in is_sqp()
150 qp->mqp.qpn >= dev->dev->phys_caps.base_sqpn && in is_qp0()
151 qp->mqp.qpn <= dev->dev->phys_caps.base_sqpn + 1); in is_qp0()
1001 qpn = dev->dev->phys_caps.base_tunnel_sqpn + 8 * tnl_init->slave in create_qp_common()
1466 return dev->dev->phys_caps.base_sqpn + in get_sqp_num()
Dsysfs.c467 idx = p->dev->dev->phys_caps.pkey_phys_table_len[p->port_num] - 1; in store_port_pkey()
Dmain.c2409 i < ibdev->dev->phys_caps.pkey_phys_table_len[port]; in init_pkeys()
2414 ibdev->dev->phys_caps.pkey_phys_table_len[port] - 1; in init_pkeys()
2423 i < ibdev->dev->phys_caps.pkey_phys_table_len[port]; in init_pkeys()