Home
last modified time | relevance | path

Searched refs:nregs (Results 1 – 25 of 38) sorted by relevance

12

/titanic_41/usr/src/uts/common/io/scsi/adapters/smrt/
H A Dsmrt_device.c26 smrt_locate_bar(pci_regspec_t *regs, unsigned nregs, in smrt_locate_bar() argument
32 for (unsigned i = 0; i < nregs; i++) { in smrt_locate_bar()
45 smrt_locate_cfgtbl(smrt_t *smrt, pci_regspec_t *regs, unsigned nregs, in smrt_locate_cfgtbl() argument
74 for (unsigned i = 0; i < nregs; i++) { in smrt_locate_cfgtbl()
116 uint_t regslen, nregs; in smrt_map_device() local
128 nregs = regslen * sizeof (int) / sizeof (pci_regspec_t); in smrt_map_device()
130 if (smrt_locate_bar(regs, nregs, &smrt->smrt_i2o_bar) != in smrt_map_device()
148 if (smrt_locate_cfgtbl(smrt, regs, nregs, &smrt->smrt_ct_bar, in smrt_map_device()
/titanic_41/usr/src/lib/libdtrace/common/
H A Ddt_regset.c42 dt_regset_create(ulong_t nregs) in dt_regset_create() argument
44 ulong_t n = BT_BITOUL(nregs); in dt_regset_create()
51 drp->dr_size = nregs; in dt_regset_create()
/titanic_41/usr/src/uts/common/io/drm/
H A Ddrm_pci.c61 uint_t nregs = 0; in pci_get_info() local
64 DDI_PROP_DONTPASS, "reg", (int **)&regs_list, &nregs) in pci_get_info()
73 if (nregs > 0) { in pci_get_info()
78 if (nregs > 0) { in pci_get_info()
/titanic_41/usr/src/uts/sun4u/lw2plus/io/
H A Dlombus.c323 int nregs; member
1561 int nregs; in lombus_online() local
1564 if (ddi_dev_nregs(ssp->dip, &nregs) != DDI_SUCCESS) in lombus_online()
1565 nregs = 0; in lombus_online()
1567 switch (nregs) { in lombus_online()
1854 if (mp->map_obj.rnumber >= lcip->nregs) in lombus_map()
1880 uint_t nregs; in lombus_ctlops() local
1910 DDI_PROP_DONTPASS, "reg", &regs, &nregs); in lombus_ctlops()
1912 "prop status %d size %d", err, nregs); in lombus_ctlops()
1916 err = (nregs <= 0 || (nregs % LOMBUS_REGSPEC_SIZE) != 0); in lombus_ctlops()
[all …]
/titanic_41/usr/src/uts/common/io/
H A Dbscbus.c352 int nregs; member
1670 int nregs; in bscbus_online() local
1677 if (ddi_dev_nregs(ssp->dip, &nregs) != DDI_SUCCESS) in bscbus_online()
1678 nregs = 0; in bscbus_online()
1680 switch (nregs) { in bscbus_online()
2159 if (mp->map_obj.rnumber >= lcip->nregs) in bscbus_map()
2186 uint_t nregs; in bscbus_ctlops() local
2216 DDI_PROP_DONTPASS, "reg", &regs, &nregs); in bscbus_ctlops()
2220 err = (nregs <= 0 || (nregs % LOMBUS_REGSPEC_SIZE) != 0); in bscbus_ctlops()
2221 nregs /= LOMBUS_REGSPEC_SIZE; in bscbus_ctlops()
[all …]
H A Dpci_intr_lib.c785 uint_t rnumber, breg, nregs; in pci_msix_init() local
829 DDI_PROP_DONTPASS, "reg", (int **)&regs_list, &nregs)) in pci_msix_init()
839 for (i = 1, rnumber = 0; i < nregs/reg_size; i++) { in pci_msix_init()
888 for (i = 1, rnumber = 0; i < nregs/reg_size; i++) { in pci_msix_init()
/titanic_41/usr/src/uts/sparc/io/pciex/
H A Dpcieb_sparc.c481 int nregs; in pcieb_print_plx_seeprom_crc_data() local
493 if (ddi_dev_nregs(dip, &nregs) != DDI_SUCCESS) in pcieb_print_plx_seeprom_crc_data()
495 if (nregs < 2) /* check for CONF entry only, no BARs */ in pcieb_print_plx_seeprom_crc_data()
/titanic_41/usr/src/uts/sun4u/io/
H A Drmc_comm.c553 int nregs; in rmc_comm_online() local
556 if (ddi_dev_nregs(dip, &nregs) != DDI_SUCCESS) in rmc_comm_online()
557 nregs = 0; in rmc_comm_online()
558 switch (nregs) { in rmc_comm_online()
H A Dmc-us3i.c120 static int nregs; variable
815 nregs = len/sizeof (*mregi); in mc_get_memory_reg_info()
818 "reg_info %p\n", nregs, (void *) reg_info)); in mc_get_memory_reg_info()
823 for (i = 0; i < nregs; i++) { in mc_get_memory_reg_info()
1182 for (i = 0; i < nregs; i++) { in get_devgrp_size()
/titanic_41/usr/src/uts/common/io/audio/drv/audio810/
H A Daudio810.c1247 uint_t nregs = 0; in audio810_map_regs() local
1257 "reg", (int **)&regs_list, &nregs) != DDI_PROP_SUCCESS) { in audio810_map_regs()
1297 for (i = 1; i < nregs/I810_INTS_PER_REG_PROP; i++) { in audio810_map_regs()
1357 if (nregs > 0) { in audio810_map_regs()
/titanic_41/usr/src/uts/sun4u/grover/io/
H A Dgrfans.c165 int nregs; in grfans_do_attach() local
194 ddi_dev_nregs(dip, &nregs)); in grfans_do_attach()
/titanic_41/usr/src/uts/intel/io/drm/
H A Di915_drv.c795 int nregs; in i915_map_regs() local
798 if (ddi_dev_nregs(dip, &nregs)) { in i915_map_regs()
803 for (rnumber = 1; rnumber < nregs; rnumber++) { in i915_map_regs()
811 if (rnumber >= nregs) { in i915_map_regs()
/titanic_41/usr/src/uts/common/pcmcia/cis/
H A Dcis_handlers.c2043 cs->nregs = GET_BYTE(tp);
2044 cs->nfuncs = cs->nregs;
2046 if ((cs->nregs < MIN_LONGLINK_MFC_NREGS) ||
2047 (cs->nregs > CIS_MAX_FUNCTIONS)) {
2056 for (fn = 0; fn < cs->nregs; fn++) {
/titanic_41/usr/src/uts/sun4u/io/i2c/nexus/
H A Di2bsc.c680 int nregs; in i2bsc_setup_regs() local
686 if (ddi_dev_nregs(i2c->i2bsc_dip, &nregs) != DDI_SUCCESS) { in i2bsc_setup_regs()
690 if (nregs < 1) { in i2bsc_setup_regs()
H A Dpcf8584.c1046 int nregs; in pcf8584_setup_regs() local
1054 if (ddi_dev_nregs(dip, &nregs) != DDI_SUCCESS) { in pcf8584_setup_regs()
1081 if (nregs > 1) { in pcf8584_setup_regs()
/titanic_41/usr/src/uts/i86pc/os/
H A Dcmi.c933 cmi_hdl_msrinject(cmi_hdl_t hdl, cmi_mca_regs_t *regs, uint_t nregs, in cmi_hdl_msrinject() argument
943 rc = CMI_OPS(cmi)->cmi_msrinject(hdl, regs, nregs, force); in cmi_hdl_msrinject()
H A Dcmi_hw.c1780 cmi_hdl_msrinterpose(cmi_hdl_t ophdl, cmi_mca_regs_t *regs, uint_t nregs) in cmi_hdl_msrinterpose() argument
1790 for (i = 0; i < nregs; i++, regs++) in cmi_hdl_msrinterpose()
1799 cmi_hdl_msrforward(cmi_hdl_t ophdl, cmi_mca_regs_t *regs, uint_t nregs) in cmi_hdl_msrforward() argument
1805 for (i = 0; i < nregs; i++, regs++) in cmi_hdl_msrforward()
/titanic_41/usr/src/uts/common/io/cxgbe/common/
H A Dcommon.h314 unsigned int data_reg, u32 *vals, unsigned int nregs,
318 unsigned int nregs, unsigned int start_idx);
/titanic_41/usr/src/uts/sun4u/serengeti/io/
H A Dsbdp_mem.c893 int nbanks = 0, nregs = 0; in sbdp_prep_mc_idle_script() local
912 mc_idle_regs, &nregs) != 0 || in sbdp_prep_mc_idle_script()
914 mc_idle_regs, &nregs) != 0) { in sbdp_prep_mc_idle_script()
925 for (i = 0; i < nregs; i++) in sbdp_prep_mc_idle_script()
/titanic_41/usr/src/uts/common/io/tpm/
H A Dtpm.c1385 int idx, nregs; in tpm_attach() local
1454 ret = ddi_dev_nregs(tpm->dip, &nregs); in tpm_attach()
1465 for (idx = 0; idx < nregs; idx++) { in tpm_attach()
1475 if (idx == nregs) { in tpm_attach()
/titanic_41/usr/src/uts/i86pc/io/fipe/
H A Dfipe_pm.c537 int rc = 0, nregs; in fipe_ioat_alloc() local
576 if (ddi_dev_nregs(dip, &nregs) != DDI_SUCCESS || nregs < 2) { in fipe_ioat_alloc()
/titanic_41/usr/src/uts/common/dtrace/
H A Ddtrace.c8978 dtrace_difo_validate(dtrace_difo_t *dp, dtrace_vstate_t *vstate, uint_t nregs, in dtrace_difo_validate() argument
9019 if (r1 >= nregs) in dtrace_difo_validate()
9021 if (r2 >= nregs) in dtrace_difo_validate()
9023 if (rd >= nregs) in dtrace_difo_validate()
9031 if (r1 >= nregs) in dtrace_difo_validate()
9035 if (rd >= nregs) in dtrace_difo_validate()
9047 if (r1 >= nregs) in dtrace_difo_validate()
9051 if (rd >= nregs) in dtrace_difo_validate()
9066 if (r1 >= nregs) in dtrace_difo_validate()
9070 if (rd >= nregs) in dtrace_difo_validate()
[all …]
/titanic_41/usr/src/uts/common/io/hme/
H A Dhme.c951 unsigned nregs; in hme_mapebusrom() local
967 "reg", &regs, &nregs)) != DDI_PROP_SUCCESS) { in hme_mapebusrom()
971 if (nregs < 1) { in hme_mapebusrom()
1003 unsigned nregs; in hmeget_promebus() local
1016 "reg", &regs, &nregs)) != DDI_PROP_SUCCESS) { in hmeget_promebus()
1020 if (nregs < 5) { in hmeget_promebus()
/titanic_41/usr/src/uts/common/pcmcia/sys/
H A Dcis_handlers.h952 uint32_t nregs; /* number of config register sets */ member
/titanic_41/usr/src/uts/i86pc/cpu/generic_cpu/
H A Dgcpu_mca.c1990 gcpu_msrinject(cmi_hdl_t hdl, cmi_mca_regs_t *regs, uint_t nregs, in gcpu_msrinject() argument
1995 for (i = 0; i < nregs; i++) { in gcpu_msrinject()

12