Searched refs:phys_caps (Results 1 – 9 of 9) sorted by relevance
83 u32 pf_proxy_offset = dev->phys_caps.base_proxy_sqpn + 8 * mlx4_master_func_num(dev); in is_master_qp0()86 *real_qp0 = qp->qpn >= dev->phys_caps.base_sqpn && in is_master_qp0()87 qp->qpn <= dev->phys_caps.base_sqpn + 1; in is_master_qp0()799 dev->phys_caps.base_sqpn = ALIGN(bottom_reserved_for_rss_bitmap, 8); in mlx4_init_qp_table()851 dev->phys_caps.base_proxy_sqpn = dev->phys_caps.base_sqpn + 8; in mlx4_init_qp_table()852 dev->phys_caps.base_tunnel_sqpn = dev->phys_caps.base_sqpn + 8 + 8 * MLX4_MFUNC_MAX; in mlx4_init_qp_table()865 dev->caps.spec_qps[k].qp0_proxy = dev->phys_caps.base_proxy_sqpn + in mlx4_init_qp_table()868 dev->caps.spec_qps[k].qp1_proxy = dev->phys_caps.base_proxy_sqpn + in mlx4_init_qp_table()875 err = mlx4_CONF_SPECIAL_QP(dev, dev->phys_caps.base_sqpn); in mlx4_init_qp_table()
397 dev->phys_caps.gid_phys_table_len[port] = port_cap->max_gids; in _mlx4_dev_port()398 dev->phys_caps.pkey_phys_table_len[port] = port_cap->max_pkeys; in _mlx4_dev_port()485 dev->phys_caps.num_phys_eqs = dev_cap->flags2 & MLX4_DEV_CAP_FLAG2_SYS_EQS ? in mlx4_dev_cap()760 if (qpn >= dev->phys_caps.base_tunnel_sqpn + 8 * MLX4_MFUNC_MAX || in mlx4_get_parav_qkey()761 qpn < dev->phys_caps.base_proxy_sqpn) in mlx4_get_parav_qkey()764 if (qpn >= dev->phys_caps.base_tunnel_sqpn) in mlx4_get_parav_qkey()766 qk += qpn - dev->phys_caps.base_tunnel_sqpn; in mlx4_get_parav_qkey()768 qk += qpn - dev->phys_caps.base_proxy_sqpn; in mlx4_get_parav_qkey()1639 num_eqs = dev->phys_caps.num_phys_eqs; in mlx4_init_cmpt_table()1701 num_eqs = dev->phys_caps.num_phys_eqs; in mlx4_init_icm()[all …]
129 profile[MLX4_RES_EQ].num = mlx4_is_mfunc(dev) ? dev->phys_caps.num_phys_eqs : in mlx4_make_profile()
411 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()
879 struct mlx4_phys_caps phys_caps; member1048 return dev->phys_caps.base_sqpn + 8 + in mlx4_num_reserved_sqps()1054 return (qpn < dev->phys_caps.base_sqpn + 8 + in mlx4_is_qp_reserved()1056 qpn >= dev->phys_caps.base_sqpn) || in mlx4_is_qp_reserved()1062 int guest_proxy_base = dev->phys_caps.base_proxy_sqpn + slave * 8; in mlx4_is_guest_proxy()
456 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()
118 return qp->mqp.qpn >= dev->dev->phys_caps.base_tunnel_sqpn && in is_tunnel_qp()119 qp->mqp.qpn < dev->dev->phys_caps.base_tunnel_sqpn + in is_tunnel_qp()130 qp->mqp.qpn >= dev->dev->phys_caps.base_sqpn && in is_sqp()131 qp->mqp.qpn <= dev->dev->phys_caps.base_sqpn + 3); in is_sqp()158 qp->mqp.qpn >= dev->dev->phys_caps.base_sqpn && in is_qp0()159 qp->mqp.qpn <= dev->dev->phys_caps.base_sqpn + 1); in is_qp0()1040 qpn = dev->dev->phys_caps.base_tunnel_sqpn + 8 * tnl_init->slave in create_qp_common()1505 return dev->dev->phys_caps.base_sqpn + in get_sqp_num()
467 idx = p->dev->dev->phys_caps.pkey_phys_table_len[p->port_num] - 1; in store_port_pkey()
2403 i < ibdev->dev->phys_caps.pkey_phys_table_len[port]; in init_pkeys()2408 ibdev->dev->phys_caps.pkey_phys_table_len[port] - 1; in init_pkeys()2417 i < ibdev->dev->phys_caps.pkey_phys_table_len[port]; in init_pkeys()