Lines Matching refs:nvecs
578 static void rvu_check_min_msix_vec(struct rvu *rvu, int nvecs, int pf, int vf) in rvu_check_min_msix_vec() argument
585 if (!nvecs) { in rvu_check_min_msix_vec()
588 pf, vf - 1, nvecs); in rvu_check_min_msix_vec()
598 if (!(nvecs < min_vecs)) in rvu_check_min_msix_vec()
602 pf, nvecs, min_vecs); in rvu_check_min_msix_vec()
609 int nvecs, offset, max_msix; in rvu_setup_msix_resources() local
650 nvecs = (cfg >> 12) & 0xFF; in rvu_setup_msix_resources()
652 offset = rvu_alloc_rsrc_contig(&pfvf->msix, nvecs); in rvu_setup_msix_resources()
682 nvecs = (cfg >> 12) & 0xFF; in rvu_setup_msix_resources()
684 offset = rvu_alloc_rsrc_contig(&pfvf->msix, nvecs); in rvu_setup_msix_resources()
1790 u16 nvecs, vec, offset; in rvu_set_msix_offset() local
1795 nvecs = (cfg >> 12) & 0xFF; in rvu_set_msix_offset()
1798 if (!rvu_rsrc_check_contig(&pfvf->msix, nvecs)) in rvu_set_msix_offset()
1801 offset = rvu_alloc_rsrc_contig(&pfvf->msix, nvecs); in rvu_set_msix_offset()
1808 for (vec = 0; vec < nvecs; vec++) in rvu_set_msix_offset()
1815 u16 nvecs, vec, offset; in rvu_clear_msix_offset() local
1820 nvecs = (cfg >> 12) & 0xFF; in rvu_clear_msix_offset()
1829 for (vec = 0; vec < nvecs; vec++) in rvu_clear_msix_offset()
1833 rvu_free_rsrc_contig(&pfvf->msix, nvecs, offset); in rvu_clear_msix_offset()