Lines Matching refs:vf_rx_rings
528 u16 vf_tx_rings, vf_rx_rings, vf_cp_rings; in bnxt_hwrm_func_vf_resc_cfg() local
548 vf_rx_rings = hw_resc->max_rx_rings - bp->rx_nr_rings * 2; in bnxt_hwrm_func_vf_resc_cfg()
550 vf_rx_rings = hw_resc->max_rx_rings - bp->rx_nr_rings; in bnxt_hwrm_func_vf_resc_cfg()
553 vf_vnics = min_t(u16, vf_vnics, vf_rx_rings); in bnxt_hwrm_func_vf_resc_cfg()
574 vf_rx_rings /= num_vfs; in bnxt_hwrm_func_vf_resc_cfg()
582 req->min_rx_rings = cpu_to_le16(vf_rx_rings); in bnxt_hwrm_func_vf_resc_cfg()
591 req->max_rx_rings = cpu_to_le16(vf_rx_rings); in bnxt_hwrm_func_vf_resc_cfg()
639 u16 vf_tx_rings, vf_rx_rings, vf_cp_rings, vf_stat_ctx, vf_vnics; in bnxt_hwrm_func_cfg() local
656 vf_rx_rings = (hw_resc->max_rx_rings - bp->rx_nr_rings * 2) / in bnxt_hwrm_func_cfg()
659 vf_rx_rings = (hw_resc->max_rx_rings - bp->rx_nr_rings) / in bnxt_hwrm_func_cfg()
664 vf_vnics = min_t(u16, vf_vnics, vf_rx_rings); in bnxt_hwrm_func_cfg()
684 req->num_rx_rings = cpu_to_le16(vf_rx_rings); in bnxt_hwrm_func_cfg()
711 hw_resc->max_rx_rings -= vf_rx_rings * num_vfs; in bnxt_hwrm_func_cfg()