Lines Matching refs:nvecs
573 static void rvu_check_min_msix_vec(struct rvu *rvu, int nvecs, int pf, int vf) in rvu_check_min_msix_vec() argument
580 if (!nvecs) { in rvu_check_min_msix_vec()
583 pf, vf - 1, nvecs); in rvu_check_min_msix_vec()
593 if (!(nvecs < min_vecs)) in rvu_check_min_msix_vec()
597 pf, nvecs, min_vecs); in rvu_check_min_msix_vec()
604 int nvecs, offset, max_msix; in rvu_setup_msix_resources() local
645 nvecs = (cfg >> 12) & 0xFF; in rvu_setup_msix_resources()
647 offset = rvu_alloc_rsrc_contig(&pfvf->msix, nvecs); in rvu_setup_msix_resources()
677 nvecs = (cfg >> 12) & 0xFF; in rvu_setup_msix_resources()
679 offset = rvu_alloc_rsrc_contig(&pfvf->msix, nvecs); in rvu_setup_msix_resources()
1705 u16 nvecs, vec, offset; in rvu_set_msix_offset() local
1710 nvecs = (cfg >> 12) & 0xFF; in rvu_set_msix_offset()
1713 if (!rvu_rsrc_check_contig(&pfvf->msix, nvecs)) in rvu_set_msix_offset()
1716 offset = rvu_alloc_rsrc_contig(&pfvf->msix, nvecs); in rvu_set_msix_offset()
1723 for (vec = 0; vec < nvecs; vec++) in rvu_set_msix_offset()
1730 u16 nvecs, vec, offset; in rvu_clear_msix_offset() local
1735 nvecs = (cfg >> 12) & 0xFF; in rvu_clear_msix_offset()
1744 for (vec = 0; vec < nvecs; vec++) in rvu_clear_msix_offset()
1748 rvu_free_rsrc_contig(&pfvf->msix, nvecs, offset); in rvu_clear_msix_offset()