/illumos-gate/usr/src/uts/sun4u/javelin/io/ |
H A D | envctrltwo.c | 2244 ASSERT(unitp); in envctrl_abort_seq_handler() 2562 unitp->enclksp->ks_private = (void *)unitp; in envctrl_add_kstats() 2576 unitp->fanksp->ks_private = (void *)unitp; in envctrl_add_kstats() 2589 unitp->psksp->ks_private = (void *)unitp; in envctrl_add_kstats() 2602 unitp->tempksp->ks_private = (void *)unitp; in envctrl_add_kstats() 2615 unitp->diskksp->ks_private = (void *)unitp; in envctrl_add_kstats() 2640 unitp->psksp->ks_ndata = unitp->num_ps_present; in envctrl_ps_kstat_update() 2664 unitp->fanksp->ks_ndata = unitp->num_fans_present; in envctrl_fanstat_kstat_update() 2691 unitp->enclksp->ks_ndata = unitp->num_encl_present; in envctrl_encl_kstat_update() 2717 unitp->tempksp->ks_ndata = unitp->num_temps_present; in envctrl_temp_kstat_update() [all …]
|
/illumos-gate/usr/src/uts/sun4u/tazmo/io/ |
H A D | envctrl.c | 540 unitp->num_ps_present = unitp->num_encl_present = 0; in envctrl_attach() 1463 ddi_put8(unitp->ctlr_handle, &unitp->bus_ctl_regs->s1, in envctrl_init_bus() 1465 (void) ddi_put8(unitp->ctlr_handle, &unitp->bus_ctl_regs->s0, in envctrl_init_bus() 2824 ASSERT(unitp); in envctrl_abort_seq_handler() 3052 unitp->enclksp->ks_private = (void *)unitp; in envctrl_add_kstats() 3066 unitp->fanksp->ks_private = (void *)unitp; in envctrl_add_kstats() 3079 unitp->psksp->ks_private = (void *)unitp; in envctrl_add_kstats() 3103 unitp->psksp->ks_ndata = unitp->num_ps_present; in envctrl_ps_kstat_update() 3104 bcopy(&unitp->ps_kstats, kstatp, sizeof (unitp->ps_kstats)); in envctrl_ps_kstat_update() 3124 unitp->fanksp->ks_ndata = unitp->num_fans_present; in envctrl_fanstat_kstat_update() [all …]
|
/illumos-gate/usr/src/uts/sun4u/io/i2c/clients/ |
H A D | tda8444.c | 170 if (unitp == NULL) { in tda8444_do_resume() 189 unitp->tda8444_flags = 0; in tda8444_do_resume() 216 if (unitp == NULL) { in tda8444_do_attach() 220 (void) snprintf(unitp->tda8444_name, sizeof (unitp->tda8444_name), in tda8444_do_attach() 242 if (i2c_transfer_alloc(unitp->tda8444_hdl, &unitp->tda8444_transfer, in tda8444_do_attach() 257 i2c_transfer_free(unitp->tda8444_hdl, unitp->tda8444_transfer); in tda8444_do_attach() 293 i2c_transfer_free(unitp->tda8444_hdl, unitp->tda8444_transfer); in tda8444_do_detach() 363 if (unitp == NULL) { in tda8444_open() 410 if (unitp == NULL) { in tda8444_close() 460 if (unitp == NULL) { in tda8444_io() [all …]
|
H A D | seeprom.c | 149 struct seepromunit *unitp; in seeprom_do_attach() local 164 unitp->seeprom_dip = dip; in seeprom_do_attach() 166 (void) snprintf(unitp->seeprom_name, sizeof (unitp->seeprom_name), in seeprom_do_attach() 203 (caddr_t)&unitp->seeprom_memsize, sizeof (unitp->seeprom_memsize)); in seeprom_do_attach() 233 struct seepromunit *unitp; in seeprom_info() local 239 if (unitp == NULL) { in seeprom_info() 259 struct seepromunit *unitp; in seeprom_do_detach() local 310 if (unitp == NULL) { in seeprom_open() 348 if (unitp == NULL) { in seeprom_close() 355 unitp->seeprom_oflag = 0; in seeprom_close() [all …]
|
H A D | max1617.c | 170 struct max1617_unit *unitp; in max1617_do_attach() local 186 (void) snprintf(unitp->max1617_name, sizeof (unitp->max1617_name), in max1617_do_attach() 235 struct max1617_unit *unitp; in max1617_do_resume() local 297 unitp->max1617_flags = 0; in max1617_do_resume() 331 if (unitp == NULL) { in max1617_do_detach() 368 cv_wait(&unitp->max1617_cv, &unitp->max1617_mutex); in max1617_do_suspend() 422 unitp->max1617_flags = 0; in max1617_do_suspend() 465 if (unitp == NULL) { in max1617_open() 513 if (unitp == NULL) { in max1617_close() 520 unitp->max1617_oflag = 0; in max1617_close() [all …]
|
H A D | ssc100.c | 153 struct ssc100_unit *unitp; in ssc100_open() local 166 if (unitp == NULL) { in ssc100_open() 200 struct ssc100_unit *unitp; in ssc100_close() local 211 if (unitp == NULL) { in ssc100_close() 217 unitp->ssc100_oflag = 0; in ssc100_close() 235 unitp->ssc100_name)); in ssc100_common() 319 if (unitp == NULL) { in ssc100_ioctl() 522 if (unitp == NULL) { in ssc100_do_attach() 528 (void) snprintf(unitp->ssc100_name, sizeof (unitp->ssc100_name), in ssc100_do_attach() 548 (caddr_t)&unitp->ssc100_size, sizeof (unitp->ssc100_size)); in ssc100_do_attach() [all …]
|
H A D | pcf8574.c | 148 struct pcf8574_unit *unitp; in pcf8574_open() local 163 if (unitp == NULL) { in pcf8574_open() 197 struct pcf8574_unit *unitp; in pcf8574_close() local 208 if (unitp == NULL) { in pcf8574_close() 214 unitp->pcf8574_oflag = 0; in pcf8574_close() 233 unitp->pcf8574_name)); in pcf8574_get() 241 unitp->pcf8574_name)); in pcf8574_get() 309 if (unitp == NULL) { in pcf8574_ioctl() 503 if (unitp == NULL) { in pcf8574_do_attach() 509 (void) snprintf(unitp->pcf8574_name, sizeof (unitp->pcf8574_name), in pcf8574_do_attach() [all …]
|
H A D | lm75.c | 148 struct lm75_unit *unitp; in lm75_open() local 161 if (unitp == NULL) { in lm75_open() 195 struct lm75_unit *unitp; in lm75_close() local 207 if (unitp == NULL) { in lm75_close() 213 unitp->lm75_oflag = 0; in lm75_close() 320 struct lm75_unit *unitp; in lm75_ioctl() local 336 if (unitp == NULL) { in lm75_ioctl() 462 struct lm75_unit *unitp; in lm75_do_attach() local 475 if (unitp == NULL) { in lm75_do_attach() 480 (void) snprintf(unitp->lm75_name, sizeof (unitp->lm75_name), in lm75_do_attach() [all …]
|
H A D | ltc1427.c | 148 struct ltc1427_unit *unitp; in ltc1427_open() local 161 if (unitp == NULL) { in ltc1427_open() 195 struct ltc1427_unit *unitp; in ltc1427_close() local 207 if (unitp == NULL) { in ltc1427_close() 213 unitp->ltc1427_oflag = 0; in ltc1427_close() 225 struct ltc1427_unit *unitp; in ltc1427_ioctl() local 338 struct ltc1427_unit *unitp; in ltc1427_do_attach() local 351 if (unitp == NULL) { in ltc1427_do_attach() 357 (void) snprintf(unitp->ltc1427_name, sizeof (unitp->ltc1427_name), in ltc1427_do_attach() 400 struct ltc1427_unit *unitp; in ltc1427_do_detach() local [all …]
|
H A D | pic16f819.c | 205 struct pic16f819_unit *unitp; in pic16f819_open() local 218 if (unitp == NULL) { in pic16f819_open() 252 struct pic16f819_unit *unitp; in pic16f819_close() local 264 if (unitp == NULL) { in pic16f819_close() 270 unitp->pic16f819_oflag = 0; in pic16f819_close() 282 struct pic16f819_unit *unitp; in pic16f819_ioctl() local 369 struct pic16f819_unit *unitp; in pic16f819_do_attach() local 382 if (unitp == NULL) { in pic16f819_do_attach() 388 (void) snprintf(unitp->pic16f819_name, sizeof (unitp->pic16f819_name), in pic16f819_do_attach() 402 unitp->pic16f819_name); in pic16f819_do_attach() [all …]
|
H A D | pcf8591.c | 152 struct pcf8591_unit *unitp; in pcf8591_open() local 165 if (unitp == NULL) { in pcf8591_open() 199 struct pcf8591_unit *unitp; in pcf8591_close() local 211 if (unitp == NULL) { in pcf8591_close() 217 unitp->pcf8591_oflag = 0; in pcf8591_close() 229 struct pcf8591_unit *unitp; in pcf8591_ioctl() local 248 if (unitp == NULL) { in pcf8591_ioctl() 265 unitp->pcf8591_name)); in pcf8591_ioctl() 472 if (unitp == NULL) { in pcf8591_do_attach() 478 (void) snprintf(unitp->pcf8591_name, sizeof (unitp->pcf8591_name), in pcf8591_do_attach() [all …]
|
H A D | ssc050.c | 195 if (unitp == NULL) { in ssc050_open() 206 if (unitp->oflag != 0) { in ssc050_open() 209 unitp->oflag = FEXCL; in ssc050_open() 215 unitp->oflag = FOPEN; in ssc050_open() 241 if (unitp == NULL) { in ssc050_close() 247 unitp->oflag = 0; in ssc050_close() 270 unitp->name, reg)); in ssc050_get() 335 if (unitp == NULL) { in ssc050_ioctl() 571 unitp->name, cmd)); in ssc050_ioctl() 640 (void) snprintf(unitp->name, sizeof (unitp->name), in ssc050_do_attach() [all …]
|
H A D | adm1026.c | 184 adm1026_unit_t *unitp; in adm1026_open() 199 if (unitp == NULL) { in adm1026_open() 233 adm1026_unit_t *unitp; in adm1026_close() 247 if (unitp == NULL) { in adm1026_close() 253 unitp->adm1026_oflag = 0; in adm1026_close() 291 adm1026_unit_t *unitp; in adm1026_do_attach() local 307 if (unitp == NULL) { in adm1026_do_attach() 358 adm1026_unit_t *unitp; in adm1026_do_detach() local 365 if (unitp == NULL) { in adm1026_do_detach() 600 adm1026_unit_t *unitp; in adm1026_ioctl() [all …]
|
/illumos-gate/usr/src/uts/sun4u/littleneck/io/ |
H A D | pcf8574_lneck.c | 160 struct pcf8574_unit *unitp; in pcf8574_open() local 175 if (unitp == NULL) { in pcf8574_open() 208 struct pcf8574_unit *unitp; in pcf8574_close() local 219 if (unitp == NULL) { in pcf8574_close() 225 unitp->pcf8574_oflag = 0; in pcf8574_close() 252 unitp->pcf8574_name)); in pcf8574_get() 276 unitp->pcf8574_name)); in pcf8574_set() 319 if (unitp == NULL) { in pcf8574_ioctl() 515 if (unitp == NULL) { in pcf8574_do_attach() 521 (void) snprintf(unitp->pcf8574_name, sizeof (unitp->pcf8574_name), in pcf8574_do_attach() [all …]
|
/illumos-gate/usr/src/uts/sun4u/io/ppm/ |
H A D | jbusppm.c | 231 unitp->dip = dip; in jbppm_attach() 246 unitp->j_chng_csr = (uint64_t *)((caddr_t)unitp->estar_csr + in jbppm_attach() 365 if ((unitp = in jbppm_close() 392 if ((unitp = in jbppm_ioctl() 429 ASSERT(unitp); in jbppm_next_speed() 432 data64 = ddi_get64(unitp->estar_hndl, unitp->estar_csr); in jbppm_next_speed() 437 data64 = ddi_get64(unitp->estar_hndl, unitp->estar_csr); in jbppm_next_speed() 469 ASSERT(unitp && unitp->is_master); in jbppm_start_next() 475 data64 = ddi_get64(unitp->estar_hndl, unitp->j_chng_csr); in jbppm_start_next() 489 data64 = ddi_get64(unitp->estar_hndl, unitp->j_chng_csr); in jbppm_start_next() [all …]
|
/illumos-gate/usr/src/uts/intel/io/ |
H A D | iommulib.c | 465 unitp->ilu_next->ilu_prev = unitp; in iommulib_iommu_register() 498 ASSERT(unitp); in iommulib_iommu_unregister() 523 unitp->ilu_prev->ilu_next = unitp->ilu_next; in iommulib_iommu_unregister() 524 unitp->ilu_next->ilu_prev = unitp->ilu_prev; in iommulib_iommu_unregister() 568 for (unitp = iommulib_list; unitp; unitp = unitp->ilu_next) { in iommulib_nex_open() 646 ASSERT(unitp); in iommulib_nexdma_allochdl() 661 ASSERT(unitp); in iommulib_nexdma_freehdl() 678 ASSERT(unitp); in iommulib_nexdma_bindhdl() 692 ASSERT(unitp); in iommulib_nexdma_unbindhdl() 707 ASSERT(unitp); in iommulib_nexdma_sync() [all …]
|
/illumos-gate/usr/src/uts/sun4u/grover/io/ |
H A D | grfans.c | 162 struct grfans_unit *unitp; in grfans_do_attach() local 182 if (unitp == NULL) in grfans_do_attach() 265 struct grfans_unit *unitp; in grfans_do_detach() local 301 struct grfans_unit *unitp; in grfans_open() local 320 if (unitp == NULL) { in grfans_open() 346 mutex_exit(&unitp->mutex); in grfans_open() 355 struct grfans_unit *unitp; in grfans_close() local 363 if (unitp == NULL) in grfans_close() 368 unitp->oflag[channel] = 0; in grfans_close() 405 if (unitp == NULL) in grfans_io() [all …]
|
/illumos-gate/usr/src/uts/sun4u/excalibur/io/ |
H A D | xcalppm.c | 230 xcppm_unit_t *unitp; in xcppm_map_all_regs() local 309 xcppm_unit_t *unitp; in xcppm_attach() local 343 unitp->dip = dip; in xcppm_attach() 391 xcppm_unit_t *unitp; in xcppm_set_led() local 413 xcppm_unit_t *unitp; in xcppm_blink_led() local 443 xcppm_unit_t *unitp; in xcppm_freeze_led() local 451 unitp->led_tid = 0; in xcppm_freeze_led() 464 xcppm_unit_t *unitp; in xcppm_detach() local 604 xcppm_unit_t *unitp; in xcppm_gpio_port2() local 778 xcppm_unit_t *unitp; in xcppm_change_cpu_power() local [all …]
|
/illumos-gate/usr/src/uts/sun4u/daktari/io/ |
H A D | hpc3130_dak.c | 284 if (unitp == NULL) { in hpc3130_open() 321 if (unitp == NULL) { in hpc3130_close() 430 if (unitp == NULL) { in hpc3130_ioctl() 474 unitp, mode); in hpc3130_ioctl() 479 unitp, mode); in hpc3130_ioctl() 484 unitp, mode); in hpc3130_ioctl() 489 unitp, mode); in hpc3130_ioctl() 494 unitp, mode); in hpc3130_ioctl() 499 unitp, mode); in hpc3130_ioctl() 504 unitp, mode); in hpc3130_ioctl() [all …]
|
/illumos-gate/usr/src/uts/i86pc/io/ppm/ |
H A D | acpippm.c | 198 appm_unit *unitp; in appm_attach() local 238 unitp->dip = dip; in appm_attach() 247 unitp->lyropen = 0; in appm_attach() 286 appm_unit *unitp; in appm_getinfo() local 293 if (unitp == NULL) { in appm_getinfo() 335 appm_unit *unitp; in appm_open() local 348 if (unitp->lyropen != 0) { in appm_open() 352 unitp->lyropen++; in appm_open() 363 appm_unit *unitp; in appm_close() local 365 if ((unitp = in appm_close() [all …]
|
/illumos-gate/usr/src/uts/common/io/ppm/ |
H A D | ppm.c | 249 struct ppm_unit *unitp; in ppm_getinfo() local 260 *resultp = unitp->dip; in ppm_getinfo() 285 ppm_unit_t *unitp; in ppm_attach() local 330 unitp->dip = dip; in ppm_attach() 390 ppm_unit_t *unitp; in ppm_detach() local 463 struct ppm_unit *unitp; in ppm_ioctl() local 760 ppm_unit_t *unitp; in ppm_ctlops() local 2502 ppm_unit_t *unitp; in ppm_manage_led() local 2529 tid = unitp->led_tid; in ppm_manage_led() 2530 unitp->led_tid = 0; in ppm_manage_led() [all …]
|
/illumos-gate/usr/src/uts/i86pc/io/ |
H A D | ppm_plat.c | 123 ppm_unit_t *unitp; in ppm_change_cpu_power() local 130 unitp = ddi_get_soft_state(ppm_statep, ppm_inst); in ppm_change_cpu_power() 131 ASSERT(unitp); in ppm_change_cpu_power()
|
/illumos-gate/usr/src/uts/sun4u/io/ |
H A D | ppm_plat.c | 207 ppm_unit_t *unitp; in ppm_change_cpu_power() local 216 unitp = ddi_get_soft_state(ppm_statep, ppm_inst); in ppm_change_cpu_power() 217 ASSERT(unitp); in ppm_change_cpu_power()
|
/illumos-gate/usr/src/uts/sun4u/sys/ |
H A D | envctrl_ue450.h | 54 #define S1 &unitp->bus_ctl_regs->s1 55 #define S0 &unitp->bus_ctl_regs->s0
|
H A D | envctrl.h | 57 #define S1 &unitp->bus_ctl_regs->s1 58 #define S0 &unitp->bus_ctl_regs->s0
|