Home
last modified time | relevance | path

Searched refs:nr_vecs (Results 1 – 3 of 3) sorted by relevance

/drivers/crypto/cavium/nitrox/
Dnitrox_isr.c293 int nr_vecs, vec, cpu; in nitrox_register_interrupts() local
308 nr_vecs = pci_msix_vec_count(pdev); in nitrox_register_interrupts()
309 if (nr_vecs < 0) { in nitrox_register_interrupts()
310 dev_err(DEV(ndev), "Error in getting vec count %d\n", nr_vecs); in nitrox_register_interrupts()
311 return nr_vecs; in nitrox_register_interrupts()
315 ret = pci_alloc_irq_vectors(pdev, nr_vecs, nr_vecs, PCI_IRQ_MSIX); in nitrox_register_interrupts()
317 dev_err(DEV(ndev), "msix vectors %d alloc failed\n", nr_vecs); in nitrox_register_interrupts()
320 ndev->num_vecs = nr_vecs; in nitrox_register_interrupts()
322 ndev->qvec = kcalloc(nr_vecs, sizeof(*qvec), GFP_KERNEL); in nitrox_register_interrupts()
329 for (i = PKT_RING_MSIX_BASE; i < (nr_vecs - 1); i += NR_RING_VECTORS) { in nitrox_register_interrupts()
/drivers/virt/nitro_enclaves/
Dne_pci_dev.c298 int nr_vecs = 0; in ne_setup_msix() local
301 nr_vecs = pci_msix_vec_count(pdev); in ne_setup_msix()
302 if (nr_vecs < 0) { in ne_setup_msix()
303 rc = nr_vecs; in ne_setup_msix()
310 rc = pci_alloc_irq_vectors(pdev, nr_vecs, nr_vecs, PCI_IRQ_MSIX); in ne_setup_msix()
/drivers/target/
Dtarget_core_pscsi.c829 static inline struct bio *pscsi_get_bio(int nr_vecs) in pscsi_get_bio() argument
836 bio = bio_kmalloc(GFP_KERNEL, nr_vecs); in pscsi_get_bio()
857 int nr_vecs = 0, rc; in pscsi_map_sg() local
885 nr_vecs = min_t(int, BIO_MAX_PAGES, nr_pages); in pscsi_map_sg()
886 nr_pages -= nr_vecs; in pscsi_map_sg()
890 bio = pscsi_get_bio(nr_vecs); in pscsi_map_sg()
899 (rw) ? "rw" : "r", nr_vecs); in pscsi_map_sg()
909 bio_segments(bio), nr_vecs); in pscsi_map_sg()