/titanic_41/usr/src/uts/common/io/fibre-channel/fca/oce/ |
H A D | oce_intr.c | 46 int navail = 0; in oce_setup_intr() local 80 ret = ddi_intr_get_navail(dev->dip, dev->intr_type, &navail); in oce_setup_intr() 81 if (ret != DDI_SUCCESS || navail < min) { in oce_setup_intr() 84 navail); in oce_setup_intr() 88 if (navail < min) { in oce_setup_intr() 93 if (navail < nreqd) { in oce_setup_intr() 94 nreqd = navail; in oce_setup_intr()
|
/titanic_41/usr/src/cmd/od/ |
H A D | od.c | 84 int navail; /* total bytes avail */ member 240 avail = buf->navail; in do_char() 355 while ((input != NULL) && (b->navail < (2 * blocksize))) { in refill() 392 b->navail += n; in refill() 856 buffer.navail = 0; in main() 860 for (refill(&buffer); buffer.navail > 0; refill(&buffer)) { in main() 869 if ((!first) && (buffer.navail >= blocksize) && (!doall)) { in main() 885 buffer.navail -= blocksize; in main() 895 mx = (buffer.navail > blocksize) ? blocksize : buffer.navail; in main() 915 buffer.navail -= mx; in main()
|
/titanic_41/usr/src/uts/i86pc/io/pcplusmp/ |
H A D | apic_introp.c | 157 int lowest, highest, i, navail, count; in apic_navail_vector() local 164 navail = count = 0; in apic_navail_vector() 179 if (count > navail) in apic_navail_vector() 180 navail = count; in apic_navail_vector() 182 return (navail); in apic_navail_vector() 194 int lowest, highest, i, navail, start, msibits; in apic_find_multi_vectors() local 201 navail = 0; in apic_find_multi_vectors() 215 navail = 0; in apic_find_multi_vectors() 228 navail++; in apic_find_multi_vectors() 229 if (navail >= count) in apic_find_multi_vectors()
|
/titanic_41/usr/src/uts/common/io/scsi/adapters/smrt/ |
H A D | smrt_interrupts.c | 122 int navail = 0; in smrt_interrupts_alloc() local 135 if (ddi_intr_get_navail(dip, type, &navail) != DDI_SUCCESS) { in smrt_interrupts_alloc() 140 if (navail < 1) { in smrt_interrupts_alloc()
|
/titanic_41/usr/src/uts/common/io/hxge/ |
H A D | hxge_main.c | 3789 int nintrs, navail; in hxge_add_intrs_adv_type() local 3809 ddi_status = ddi_intr_get_navail(dip, int_type, &navail); in hxge_add_intrs_adv_type() 3810 if ((ddi_status != DDI_SUCCESS) || (navail == 0)) { in hxge_add_intrs_adv_type() 3813 "nintrs: %d", ddi_status, navail)); in hxge_add_intrs_adv_type() 3819 int_type, nintrs, navail)); in hxge_add_intrs_adv_type() 3824 if (nrequest < navail) { in hxge_add_intrs_adv_type() 3825 navail = nrequest; in hxge_add_intrs_adv_type() 3829 nintrs, navail, nrequest)); in hxge_add_intrs_adv_type() 3833 if (int_type == DDI_INTR_TYPE_MSI && !ISP2(navail)) { in hxge_add_intrs_adv_type() 3835 if ((navail & 16) == 16) { in hxge_add_intrs_adv_type() [all …]
|
/titanic_41/usr/src/uts/common/io/nxge/ |
H A D | nxge_intr.c | 526 int nintrs, navail, nactual; in nxge_hio_intr_init() local 590 ddi_status = ddi_intr_get_navail(nxge->dip, intr_type, &navail); in nxge_hio_intr_init() 595 "DDI_INTR_NOTFOUND", navail)); in nxge_hio_intr_init() 600 "nxge_hio_intr_init: number of available interrupts: %d", navail)); in nxge_hio_intr_init() 614 interrupts->intr_size = navail * sizeof (ddi_intr_handle_t); in nxge_hio_intr_init() 626 inum, navail, &nactual, behavior); in nxge_hio_intr_init()
|
H A D | nxge_main.c | 6061 int nintrs, navail, nrequest; in nxge_add_intrs_adv_type() local 6080 ddi_status = ddi_intr_get_navail(dip, int_type, &navail); in nxge_add_intrs_adv_type() 6081 if ((ddi_status != DDI_SUCCESS) || (navail == 0)) { in nxge_add_intrs_adv_type() 6084 "nintrs: %d", ddi_status, navail)); in nxge_add_intrs_adv_type() 6090 nintrs, navail)); in nxge_add_intrs_adv_type() 6095 if (nrequest < navail) { in nxge_add_intrs_adv_type() 6096 navail = nrequest; in nxge_add_intrs_adv_type() 6100 nintrs, navail, nrequest)); in nxge_add_intrs_adv_type() 6104 if (int_type == DDI_INTR_TYPE_MSI && !ISP2(navail)) { in nxge_add_intrs_adv_type() 6106 if ((navail & 16) == 16) { in nxge_add_intrs_adv_type() [all …]
|
/titanic_41/usr/src/uts/common/os/ |
H A D | ddi_intr_impl.c | 238 uint_t navail; in i_ddi_intr_get_current_navail() local 250 navail = req_p->ireq_navail; in i_ddi_intr_get_current_navail() 252 return (navail); in i_ddi_intr_get_current_navail()
|
H A D | ddi_intr.c | 156 uint_t pri, navail, curr_nintrs = 0; in ddi_intr_alloc() local 249 navail = i_ddi_intr_get_current_navail(dip, type); in ddi_intr_alloc() 252 if (curr_nintrs == navail) { in ddi_intr_alloc() 254 "already allocated\n", navail)); in ddi_intr_alloc() 257 if ((count + curr_nintrs) > navail) { in ddi_intr_alloc() 260 navail - curr_nintrs)); in ddi_intr_alloc() 271 count = navail - curr_nintrs; in ddi_intr_alloc()
|
/titanic_41/usr/src/uts/common/sys/ |
H A D | pci_intr_lib.h | 51 extern int pci_msi_set_nintrs(dev_info_t *rdip, int type, int navail);
|
/titanic_41/usr/src/uts/common/io/ |
H A D | pci_intr_lib.c | 710 pci_msi_set_nintrs(dev_info_t *rdip, int type, int navail) in pci_msi_set_nintrs() argument 716 "navail = 0x%x\n", (void *)rdip, navail)); in pci_msi_set_nintrs() 719 if (((type == DDI_INTR_TYPE_MSI) && (navail > PCI_MSI_MAX_INTRS)) || in pci_msi_set_nintrs() 720 ((type == DDI_INTR_TYPE_MSIX) && (navail > PCI_MSIX_MAX_INTRS))) in pci_msi_set_nintrs() 728 msi_ctrl |= ((highbit(navail) -1) << PCI_MSI_MME_SHIFT); in pci_msi_set_nintrs()
|
/titanic_41/usr/src/uts/i86xpv/io/psm/ |
H A D | xpv_psm.c | 985 int lowest, highest, i, navail, count; in apic_navail_vector() local 992 navail = count = 0; in apic_navail_vector() 1002 if (count > navail) in apic_navail_vector() 1003 navail = count; in apic_navail_vector() 1005 return (navail); in apic_navail_vector()
|
/titanic_41/usr/src/uts/common/io/cxgbe/t4nex/ |
H A D | t4_nexus.c | 1646 int rc, itype, itypes, navail, nc, nrxq10g, nrxq1g, n; in cfg_itype_and_nqueues() local 1677 navail = 0; in cfg_itype_and_nqueues() 1678 rc = ddi_intr_get_navail(sc->dip, itype, &navail); in cfg_itype_and_nqueues() 1679 if (rc != DDI_SUCCESS || navail == 0) { in cfg_itype_and_nqueues() 1693 if (navail == 0) in cfg_itype_and_nqueues() 1705 if (iaq->nirq <= navail && in cfg_itype_and_nqueues() 1719 if (iaq->nirq <= navail && in cfg_itype_and_nqueues() 1733 if (iaq->nirq <= navail) { in cfg_itype_and_nqueues() 1734 int leftover = navail - iaq->nirq; in cfg_itype_and_nqueues()
|
/titanic_41/usr/src/uts/i86pc/io/apix/ |
H A D | apix_utils.c | 224 int i, msibits, start = 0, navail = 0; in apix_alloc_nvectors_oncpu() local 250 for (navail = 0, start = i; i <= APIX_AVINTR_MAX; i++) { in apix_alloc_nvectors_oncpu() 255 if (++navail == count) in apix_alloc_nvectors_oncpu()
|
/titanic_41/usr/src/uts/common/io/nvme/ |
H A D | nvme.c | 2700 int nintrs, navail, count; in nvme_setup_interrupts() local 2729 ret = ddi_intr_get_navail(nvme->n_dip, intr_type, &navail); in nvme_setup_interrupts() 2737 if (navail > nqpairs) in nvme_setup_interrupts() 2738 navail = nqpairs; in nvme_setup_interrupts() 2740 nvme->n_inth_sz = sizeof (ddi_intr_handle_t) * navail; in nvme_setup_interrupts() 2743 ret = ddi_intr_alloc(nvme->n_dip, nvme->n_inth, intr_type, 0, navail, in nvme_setup_interrupts()
|