Lines Matching refs:func_cap
540 struct mlx4_func_cap *func_cap) in mlx4_QUERY_FUNC_CAP() argument
574 func_cap->flags = field; in mlx4_QUERY_FUNC_CAP()
575 quotas = !!(func_cap->flags & QUERY_FUNC_CAP_FLAG_QUOTAS); in mlx4_QUERY_FUNC_CAP()
578 func_cap->num_ports = field; in mlx4_QUERY_FUNC_CAP()
581 func_cap->pf_context_behaviour = size; in mlx4_QUERY_FUNC_CAP()
585 func_cap->qp_quota = size & 0xFFFFFF; in mlx4_QUERY_FUNC_CAP()
588 func_cap->srq_quota = size & 0xFFFFFF; in mlx4_QUERY_FUNC_CAP()
591 func_cap->cq_quota = size & 0xFFFFFF; in mlx4_QUERY_FUNC_CAP()
594 func_cap->mpt_quota = size & 0xFFFFFF; in mlx4_QUERY_FUNC_CAP()
597 func_cap->mtt_quota = size & 0xFFFFFF; in mlx4_QUERY_FUNC_CAP()
600 func_cap->mcg_quota = size & 0xFFFFFF; in mlx4_QUERY_FUNC_CAP()
604 func_cap->qp_quota = size & 0xFFFFFF; in mlx4_QUERY_FUNC_CAP()
607 func_cap->srq_quota = size & 0xFFFFFF; in mlx4_QUERY_FUNC_CAP()
610 func_cap->cq_quota = size & 0xFFFFFF; in mlx4_QUERY_FUNC_CAP()
613 func_cap->mpt_quota = size & 0xFFFFFF; in mlx4_QUERY_FUNC_CAP()
616 func_cap->mtt_quota = size & 0xFFFFFF; in mlx4_QUERY_FUNC_CAP()
619 func_cap->mcg_quota = size & 0xFFFFFF; in mlx4_QUERY_FUNC_CAP()
622 func_cap->max_eq = size & 0xFFFFFF; in mlx4_QUERY_FUNC_CAP()
625 func_cap->reserved_eq = size & 0xFFFFFF; in mlx4_QUERY_FUNC_CAP()
627 if (func_cap->flags & QUERY_FUNC_CAP_FLAG_RESD_LKEY) { in mlx4_QUERY_FUNC_CAP()
629 func_cap->reserved_lkey = size; in mlx4_QUERY_FUNC_CAP()
631 func_cap->reserved_lkey = 0; in mlx4_QUERY_FUNC_CAP()
634 func_cap->extra_flags = 0; in mlx4_QUERY_FUNC_CAP()
639 if (func_cap->flags & QUERY_FUNC_CAP_FLAG_VALID_MAILBOX) { in mlx4_QUERY_FUNC_CAP()
642 func_cap->extra_flags |= MLX4_QUERY_FUNC_FLAGS_BF_RES_QP; in mlx4_QUERY_FUNC_CAP()
644 func_cap->extra_flags |= MLX4_QUERY_FUNC_FLAGS_A0_RES_QP; in mlx4_QUERY_FUNC_CAP()
656 MLX4_GET(func_cap->flags1, outbox, QUERY_FUNC_CAP_FLAGS1_OFFSET); in mlx4_QUERY_FUNC_CAP()
658 if (func_cap->flags1 & QUERY_FUNC_CAP_FLAGS1_FORCE_VLAN) { in mlx4_QUERY_FUNC_CAP()
664 if (func_cap->flags1 & QUERY_FUNC_CAP_FLAGS1_FORCE_MAC) { in mlx4_QUERY_FUNC_CAP()
679 func_cap->physical_port = field; in mlx4_QUERY_FUNC_CAP()
680 if (func_cap->physical_port != gen_or_port) { in mlx4_QUERY_FUNC_CAP()
685 if (func_cap->flags1 & QUERY_FUNC_CAP_VF_ENABLE_QP0) { in mlx4_QUERY_FUNC_CAP()
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()
704 if (func_cap->flags1 & QUERY_FUNC_CAP_FLAGS1_NIC_INFO) in mlx4_QUERY_FUNC_CAP()
705 MLX4_GET(func_cap->phys_port_id, outbox, in mlx4_QUERY_FUNC_CAP()
708 MLX4_GET(func_cap->flags0, outbox, QUERY_FUNC_CAP_FLAGS0_OFFSET); in mlx4_QUERY_FUNC_CAP()
3052 struct mlx4_func_cap func_cap; in get_phv_bit() local
3054 memset(&func_cap, 0, sizeof(func_cap)); in get_phv_bit()
3055 err = mlx4_QUERY_FUNC_CAP(dev, port, &func_cap); in get_phv_bit()
3057 *phv = func_cap.flags0 & QUERY_FUNC_CAP_PHV_BIT; in get_phv_bit()
3084 struct mlx4_func_cap func_cap; in mlx4_get_is_vlan_offload_disabled() local
3087 memset(&func_cap, 0, sizeof(func_cap)); in mlx4_get_is_vlan_offload_disabled()
3088 err = mlx4_QUERY_FUNC_CAP(dev, port, &func_cap); in mlx4_get_is_vlan_offload_disabled()
3091 !!(func_cap.flags0 & in mlx4_get_is_vlan_offload_disabled()