Searched refs:spec_qps (Results 1 – 6 of 6) sorted by relevance
852 dev->caps.spec_qps = kcalloc(dev->caps.num_ports, in mlx4_init_qp_table()853 sizeof(*dev->caps.spec_qps), in mlx4_init_qp_table()855 if (!dev->caps.spec_qps) { in mlx4_init_qp_table()861 dev->caps.spec_qps[k].qp0_proxy = dev->phys_caps.base_proxy_sqpn + in mlx4_init_qp_table()863 dev->caps.spec_qps[k].qp0_tunnel = dev->caps.spec_qps[k].qp0_proxy + 8 * MLX4_MFUNC_MAX; in mlx4_init_qp_table()864 dev->caps.spec_qps[k].qp1_proxy = dev->phys_caps.base_proxy_sqpn + in mlx4_init_qp_table()866 dev->caps.spec_qps[k].qp1_tunnel = dev->caps.spec_qps[k].qp1_proxy + 8 * MLX4_MFUNC_MAX; in mlx4_init_qp_table()878 kfree(dev->caps.spec_qps); in mlx4_init_qp_table()879 dev->caps.spec_qps = NULL; in mlx4_init_qp_table()
149 struct mlx4_spec_qps spec_qps; member
687 func_cap->spec_qps.qp0_qkey = qkey; in mlx4_QUERY_FUNC_CAP()689 func_cap->spec_qps.qp0_qkey = 0; in mlx4_QUERY_FUNC_CAP()693 func_cap->spec_qps.qp0_tunnel = size & 0xFFFFFF; in mlx4_QUERY_FUNC_CAP()696 func_cap->spec_qps.qp0_proxy = size & 0xFFFFFF; in mlx4_QUERY_FUNC_CAP()699 func_cap->spec_qps.qp1_tunnel = size & 0xFFFFFF; in mlx4_QUERY_FUNC_CAP()702 func_cap->spec_qps.qp1_proxy = size & 0xFFFFFF; in mlx4_QUERY_FUNC_CAP()
861 kfree(dev->caps.spec_qps); in mlx4_slave_destroy_special_qp_cap()862 dev->caps.spec_qps = NULL; in mlx4_slave_destroy_special_qp_cap()872 caps->spec_qps = kcalloc(caps->num_ports, sizeof(*caps->spec_qps), GFP_KERNEL); in mlx4_slave_special_qp_cap()874 if (!func_cap || !caps->spec_qps) { in mlx4_slave_special_qp_cap()887 caps->spec_qps[i - 1] = func_cap->spec_qps; in mlx4_slave_special_qp_cap()
129 if (qp->mqp.qpn == dev->dev->caps.spec_qps[i].qp0_proxy || in is_sqp()130 qp->mqp.qpn == dev->dev->caps.spec_qps[i].qp1_proxy) { in is_sqp()157 if (qp->mqp.qpn == dev->dev->caps.spec_qps[i].qp0_proxy) { in is_qp0()495 if (qpn == dev->caps.spec_qps[i].qp0_proxy) in qp0_enabled_vf()496 return !!dev->caps.spec_qps[i].qp0_qkey; in qp0_enabled_vf()1472 return dev->dev->caps.spec_qps[attr->port_num - 1].qp0_proxy; in get_sqp_num()1474 return dev->dev->caps.spec_qps[attr->port_num - 1].qp1_proxy; in get_sqp_num()2812 if (qpn == dev->caps.spec_qps[i].qp0_proxy || in vf_get_qp0_qkey()2813 qpn == dev->caps.spec_qps[i].qp0_tunnel) { in vf_get_qp0_qkey()2814 *qkey = dev->caps.spec_qps[i].qp0_qkey; in vf_get_qp0_qkey()[all …]
562 struct mlx4_spec_qps *spec_qps; member