Lines Matching refs:func_cap
752 struct mlx4_func_cap func_cap; in mlx4_slave_cap() local
805 memset(&func_cap, 0, sizeof(func_cap)); in mlx4_slave_cap()
806 err = mlx4_QUERY_FUNC_CAP(dev, 0, &func_cap); in mlx4_slave_cap()
813 if ((func_cap.pf_context_behaviour | PF_CONTEXT_BEHAVIOUR_MASK) != in mlx4_slave_cap()
816 func_cap.pf_context_behaviour, PF_CONTEXT_BEHAVIOUR_MASK); in mlx4_slave_cap()
820 dev->caps.num_ports = func_cap.num_ports; in mlx4_slave_cap()
821 dev->quotas.qp = func_cap.qp_quota; in mlx4_slave_cap()
822 dev->quotas.srq = func_cap.srq_quota; in mlx4_slave_cap()
823 dev->quotas.cq = func_cap.cq_quota; in mlx4_slave_cap()
824 dev->quotas.mpt = func_cap.mpt_quota; in mlx4_slave_cap()
825 dev->quotas.mtt = func_cap.mtt_quota; in mlx4_slave_cap()
830 dev->caps.num_eqs = func_cap.max_eq; in mlx4_slave_cap()
831 dev->caps.reserved_eqs = func_cap.reserved_eq; in mlx4_slave_cap()
832 dev->caps.reserved_lkey = func_cap.reserved_lkey; in mlx4_slave_cap()
857 err = mlx4_QUERY_FUNC_CAP(dev, i, &func_cap); in mlx4_slave_cap()
863 dev->caps.qp0_qkey[i - 1] = func_cap.qp0_qkey; in mlx4_slave_cap()
864 dev->caps.qp0_tunnel[i - 1] = func_cap.qp0_tunnel_qpn; in mlx4_slave_cap()
865 dev->caps.qp0_proxy[i - 1] = func_cap.qp0_proxy_qpn; in mlx4_slave_cap()
866 dev->caps.qp1_tunnel[i - 1] = func_cap.qp1_tunnel_qpn; in mlx4_slave_cap()
867 dev->caps.qp1_proxy[i - 1] = func_cap.qp1_proxy_qpn; in mlx4_slave_cap()
869 dev->caps.phys_port_id[i] = func_cap.phys_port_id; in mlx4_slave_cap()
920 if (func_cap.extra_flags & MLX4_QUERY_FUNC_FLAGS_BF_RES_QP && in mlx4_slave_cap()
924 if (func_cap.extra_flags & MLX4_QUERY_FUNC_FLAGS_A0_RES_QP) in mlx4_slave_cap()