Searched refs:spec_qps (Results 1 – 6 of 6) sorted by relevance
856 dev->caps.spec_qps = kcalloc(dev->caps.num_ports, in mlx4_init_qp_table()857 sizeof(*dev->caps.spec_qps), in mlx4_init_qp_table()859 if (!dev->caps.spec_qps) { in mlx4_init_qp_table()865 dev->caps.spec_qps[k].qp0_proxy = dev->phys_caps.base_proxy_sqpn + in mlx4_init_qp_table()867 dev->caps.spec_qps[k].qp0_tunnel = dev->caps.spec_qps[k].qp0_proxy + 8 * MLX4_MFUNC_MAX; in mlx4_init_qp_table()868 dev->caps.spec_qps[k].qp1_proxy = dev->phys_caps.base_proxy_sqpn + in mlx4_init_qp_table()870 dev->caps.spec_qps[k].qp1_tunnel = dev->caps.spec_qps[k].qp1_proxy + 8 * MLX4_MFUNC_MAX; in mlx4_init_qp_table()882 kfree(dev->caps.spec_qps); in mlx4_init_qp_table()883 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()
856 kfree(dev->caps.spec_qps); in mlx4_slave_destroy_special_qp_cap()857 dev->caps.spec_qps = NULL; in mlx4_slave_destroy_special_qp_cap()867 caps->spec_qps = kcalloc(caps->num_ports, sizeof(*caps->spec_qps), GFP_KERNEL); in mlx4_slave_special_qp_cap()869 if (!func_cap || !caps->spec_qps) { in mlx4_slave_special_qp_cap()882 caps->spec_qps[i - 1] = func_cap->spec_qps; in mlx4_slave_special_qp_cap()
137 if (qp->mqp.qpn == dev->dev->caps.spec_qps[i].qp0_proxy || in is_sqp()138 qp->mqp.qpn == dev->dev->caps.spec_qps[i].qp1_proxy) { in is_sqp()165 if (qp->mqp.qpn == dev->dev->caps.spec_qps[i].qp0_proxy) { in is_qp0()534 if (qpn == dev->caps.spec_qps[i].qp0_proxy) in qp0_enabled_vf()535 return !!dev->caps.spec_qps[i].qp0_qkey; in qp0_enabled_vf()1511 return dev->dev->caps.spec_qps[attr->port_num - 1].qp0_proxy; in get_sqp_num()1513 return dev->dev->caps.spec_qps[attr->port_num - 1].qp1_proxy; in get_sqp_num()2851 if (qpn == dev->caps.spec_qps[i].qp0_proxy || in vf_get_qp0_qkey()2852 qpn == dev->caps.spec_qps[i].qp0_tunnel) { in vf_get_qp0_qkey()2853 *qkey = dev->caps.spec_qps[i].qp0_qkey; in vf_get_qp0_qkey()[all …]
563 struct mlx4_spec_qps *spec_qps; member