Lines Matching refs:vf_vnics
531 u16 vf_stat_ctx, vf_vnics, vf_ring_grps; in bnxt_hwrm_func_vf_resc_cfg() local
554 vf_vnics = hw_resc->max_vnics - bp->nr_vnics; in bnxt_hwrm_func_vf_resc_cfg()
577 vf_vnics >= pf->max_vfs) { in bnxt_hwrm_func_vf_resc_cfg()
581 vf_vnics = (vf_vnics - pf->max_vfs + num_vfs) / num_vfs; in bnxt_hwrm_func_vf_resc_cfg()
583 vf_vnics /= num_vfs; in bnxt_hwrm_func_vf_resc_cfg()
589 vf_vnics = min_t(u16, vf_vnics, vf_rx_rings); in bnxt_hwrm_func_vf_resc_cfg()
594 req->min_vnics = cpu_to_le16(vf_vnics); in bnxt_hwrm_func_vf_resc_cfg()
603 req->max_vnics = cpu_to_le16(vf_vnics); in bnxt_hwrm_func_vf_resc_cfg()
649 u16 vf_tx_rings, vf_rx_rings, vf_cp_rings, vf_stat_ctx, vf_vnics; in bnxt_hwrm_func_cfg() local
673 vf_vnics = (hw_resc->max_vnics - bp->nr_vnics) / num_vfs; in bnxt_hwrm_func_cfg()
674 vf_vnics = min_t(u16, vf_vnics, vf_rx_rings); in bnxt_hwrm_func_cfg()
698 req->num_vnics = cpu_to_le16(vf_vnics); in bnxt_hwrm_func_cfg()
726 hw_resc->max_vnics -= vf_vnics * num_vfs; in bnxt_hwrm_func_cfg()