Lines Matching refs:v_remain
3961 static void ice_reduce_msix_usage(struct ice_pf *pf, int v_remain) in ice_reduce_msix_usage() argument
3966 pf->num_lan_msix = v_remain; in ice_reduce_msix_usage()
3973 if (v_remain < ICE_MIN_LAN_TXRX_MSIX + ICE_MIN_RDMA_MSIX) { in ice_reduce_msix_usage()
3979 } else if ((v_remain < ICE_MIN_LAN_TXRX_MSIX + v_rdma) || in ice_reduce_msix_usage()
3980 (v_remain - v_rdma < v_rdma)) { in ice_reduce_msix_usage()
3983 pf->num_lan_msix = v_remain - ICE_MIN_RDMA_MSIX; in ice_reduce_msix_usage()
3987 pf->num_rdma_msix = (v_remain - ICE_RDMA_NUM_AEQ_MSIX) / 2 + in ice_reduce_msix_usage()
3989 pf->num_lan_msix = v_remain - pf->num_rdma_msix; in ice_reduce_msix_usage()
4033 int v_remain; in ice_ena_msix_range() local
4043 v_remain = hw_num_msix - v_other; in ice_ena_msix_range()
4044 if (v_remain < ICE_MIN_LAN_TXRX_MSIX) { in ice_ena_msix_range()
4046 v_remain = ICE_MIN_LAN_TXRX_MSIX; in ice_ena_msix_range()
4049 ice_reduce_msix_usage(pf, v_remain); in ice_ena_msix_range()
4088 int v_remain = v_actual - v_other; in ice_ena_msix_range() local
4090 if (v_remain < ICE_MIN_LAN_TXRX_MSIX) in ice_ena_msix_range()
4091 v_remain = ICE_MIN_LAN_TXRX_MSIX; in ice_ena_msix_range()
4093 ice_reduce_msix_usage(pf, v_remain); in ice_ena_msix_range()