Lines Matching refs:func_cap

775 	struct mlx4_func_cap	   func_cap;  in mlx4_slave_cap()  local
828 memset(&func_cap, 0, sizeof(func_cap)); in mlx4_slave_cap()
829 err = mlx4_QUERY_FUNC_CAP(dev, 0, &func_cap); in mlx4_slave_cap()
836 if ((func_cap.pf_context_behaviour | PF_CONTEXT_BEHAVIOUR_MASK) != in mlx4_slave_cap()
839 func_cap.pf_context_behaviour, PF_CONTEXT_BEHAVIOUR_MASK); in mlx4_slave_cap()
843 dev->caps.num_ports = func_cap.num_ports; in mlx4_slave_cap()
844 dev->quotas.qp = func_cap.qp_quota; in mlx4_slave_cap()
845 dev->quotas.srq = func_cap.srq_quota; in mlx4_slave_cap()
846 dev->quotas.cq = func_cap.cq_quota; in mlx4_slave_cap()
847 dev->quotas.mpt = func_cap.mpt_quota; in mlx4_slave_cap()
848 dev->quotas.mtt = func_cap.mtt_quota; in mlx4_slave_cap()
853 dev->caps.num_eqs = func_cap.max_eq; in mlx4_slave_cap()
854 dev->caps.reserved_eqs = func_cap.reserved_eq; in mlx4_slave_cap()
855 dev->caps.reserved_lkey = func_cap.reserved_lkey; in mlx4_slave_cap()
882 err = mlx4_QUERY_FUNC_CAP(dev, i, &func_cap); in mlx4_slave_cap()
888 dev->caps.qp0_qkey[i - 1] = func_cap.qp0_qkey; in mlx4_slave_cap()
889 dev->caps.qp0_tunnel[i - 1] = func_cap.qp0_tunnel_qpn; in mlx4_slave_cap()
890 dev->caps.qp0_proxy[i - 1] = func_cap.qp0_proxy_qpn; in mlx4_slave_cap()
891 dev->caps.qp1_tunnel[i - 1] = func_cap.qp1_tunnel_qpn; in mlx4_slave_cap()
892 dev->caps.qp1_proxy[i - 1] = func_cap.qp1_proxy_qpn; in mlx4_slave_cap()
894 dev->caps.phys_port_id[i] = func_cap.phys_port_id; in mlx4_slave_cap()
947 if (func_cap.extra_flags & MLX4_QUERY_FUNC_FLAGS_BF_RES_QP && in mlx4_slave_cap()
951 if (func_cap.extra_flags & MLX4_QUERY_FUNC_FLAGS_A0_RES_QP) in mlx4_slave_cap()