/illumos-gate/usr/src/uts/sun4u/montecarlo/io/ |
H A D | pcf8574_nct.c | 72 mutex_enter(&unitp->umutex); \ 73 while (unitp->pcf8574_flags == PCF8574_BUSY) { \ 74 if (cv_wait_sig(&unitp->pcf8574_cv, \ 75 &unitp->umutex) <= 0) { \ 76 mutex_exit(&unitp->umutex); \ 80 unitp->pcf8574_flags = PCF8574_BUSY; \ 81 mutex_exit(&unitp->umutex); \ 86 mutex_enter(&unitp->umutex); \ 87 unitp->pcf8574_flags = 0; \ 88 cv_signal(&unitp 218 struct pcf8574_unit *unitp; local 263 struct pcf8574_unit *unitp; local 304 struct pcf8574_unit *unitp; local 355 struct pcf8574_unit *unitp = local 370 struct pcf8574_unit *unitp; local 449 register struct pcf8574_unit *unitp; local 670 struct pcf8574_unit *unitp = local 703 struct pcf8574_unit *unitp; local 734 struct pcf8574_unit *unitp = (struct pcf8574_unit *)(void *)arg; local 874 call_copyin(caddr_t arg, struct pcf8574_unit *unitp, int mode) argument 916 call_copyout(caddr_t arg, struct pcf8574_unit *unitp, int mode) argument 978 struct pcf8574_unit *unitp; local 1196 pcf8574_add_kstat(struct pcf8574_unit *unitp, scsb_fru_status_t dev_presence) argument 1325 pcf8574_read_chip(struct pcf8574_unit *unitp, uint16_t size) argument 1363 pcf8574_write_chip(struct pcf8574_unit *unitp, uint16_t size, uint8_t bitpattern) argument 1425 struct pcf8574_unit *unitp; local 1556 pcf8574_delete_kstat(struct pcf8574_unit *unitp) argument 1597 pcf8574_read_props(struct pcf8574_unit *unitp) argument 1726 struct pcf8574_unit *unitp = (struct pcf8574_unit *)softstate; local 1790 pcf8574_init_chip(struct pcf8574_unit *unitp, int intron) argument [all...] |
H A D | pcf8591_nct.c | 141 static int pcf8591_read_props(struct pcf8591_unit *unitp); 213 struct pcf8591_unit *unitp; local 223 unitp = (struct pcf8591_unit *) 226 if (unitp == NULL) { 234 mutex_enter(&unitp->umutex); 237 if (unitp->pcf8591_oflag[channel] != 0) { 240 unitp->pcf8591_oflag[channel] = FEXCL; 243 if (unitp->pcf8591_oflag[channel] == FEXCL) { 246 unitp->pcf8591_oflag[channel] = FOPEN; 250 mutex_exit(&unitp 259 struct pcf8591_unit *unitp; local 294 struct pcf8591_unit *unitp; local 401 call_copyin(caddr_t arg, struct pcf8591_unit *unitp, int mode) argument 443 call_copyout(caddr_t arg, struct pcf8591_unit *unitp, int mode) argument 519 struct pcf8591_unit *unitp; local 662 register struct pcf8591_unit *unitp; local 723 struct pcf8591_unit *unitp = (struct pcf8591_unit *) local 753 struct pcf8591_unit *unitp = (struct pcf8591_unit *) local 770 register struct pcf8591_unit *unitp; local 938 pcf8591_add_kstats(struct pcf8591_unit *unitp) argument 965 pcf8591_delete_kstats(struct pcf8591_unit *unitp) argument 973 struct pcf8591_unit *unitp; local 1042 pcf8591_read_chip(struct pcf8591_unit *unitp, uint8_t channel, int size) argument 1074 pcf8591_read_props(struct pcf8591_unit *unitp) argument [all...] |
/illumos-gate/usr/src/uts/sun4u/javelin/io/ |
H A D | envctrltwo.c | 274 register struct envctrlunit *unitp; local 294 if (!(unitp = ddi_get_soft_state(envctrlsoft_statep, instance))) 296 mutex_enter(&unitp->umutex); 297 if (!unitp->suspended) { 298 mutex_exit(&unitp->umutex); 301 unitp->suspended = 0; 302 unitp->initting = B_TRUE; 303 envctrl_init_bus(unitp); 304 unitp->initting = B_FALSE; 306 envctrl_ps_probe(unitp); 612 register struct envctrlunit *unitp; local 687 struct envctrlunit *unitp; local 725 struct envctrlunit *unitp; local 760 struct envctrlunit *unitp; local 788 struct envctrlunit *unitp; local 1148 struct envctrlunit *unitp = (struct envctrlunit *)(void *)arg; local 1164 struct envctrlunit *unitp = (struct envctrlunit *)(void *)arg; local 1315 envctrl_read_chip(struct envctrlunit *unitp, int type, int chip_num, int port, uint8_t *data, int num) argument 1359 envctrl_write_chip(struct envctrlunit *unitp, int type, int chip_num, int port, uint8_t *data, int num) argument 1411 envctrl_get_cpu_temp(struct envctrlunit *unitp, int cpunum) argument 1442 struct envctrlunit *unitp = (struct envctrlunit *)arg; local 1513 struct envctrlunit *unitp = (struct envctrlunit *)arg; local 1581 envctrl_check_sys_temperatures(struct envctrlunit *unitp) argument 1694 envctrl_check_tempr_levels(struct envctrlunit *unitp, int chip_num, uint8_t *data, int count) argument 1812 envctrl_update_fanspeed(struct envctrlunit *unitp) argument 1835 envctrl_fan_fail_service(struct envctrlunit *unitp) argument 1968 envctrl_PS_intr_service(struct envctrlunit *unitp) argument 1989 envctrl_init_bus(struct envctrlunit *unitp) argument 2005 envctrl_reset_dflop(struct envctrlunit *unitp) argument 2031 envctrl_enable_devintrs(struct envctrlunit *unitp) argument 2056 envctrl_intr_latch_clr(struct envctrlunit *unitp) argument 2082 envctrl_ps_probe(struct envctrlunit *unitp) argument 2229 struct envctrlunit *unitp; local 2268 envctrl_get_fpm_status(struct envctrlunit *unitp, uint8_t *val) argument 2294 envctrl_set_fsp(struct envctrlunit *unitp, uint8_t *val) argument 2358 envctrl_get_dskled(struct envctrlunit *unitp, struct envctrl_chip *chip) argument 2381 envctrl_set_dskled(struct envctrlunit *unitp, struct envctrl_chip *chip) argument 2502 envctrl_set_fanspeed(struct envctrlunit *unitp, struct envctrl_chip *fanspeed) argument 2547 envctrl_add_kstats(struct envctrlunit *unitp) argument 2623 struct envctrlunit *unitp; local 2651 struct envctrlunit *unitp; local 2675 struct envctrlunit *unitp; local 2704 struct envctrlunit *unitp; local 2728 struct envctrlunit *unitp; local 2750 envctrl_init_encl_kstats(struct envctrlunit *unitp) argument 2769 envctrl_check_disk_kstats(struct envctrlunit *unitp) argument 2795 envctrl_update_disk_kstats(struct envctrlunit *unitp, uint8_t diskpr, uint8_t diskfl) argument 2816 envctrl_probe_cpus(struct envctrlunit *unitp) argument 2837 ddi_walk_devs(ddi_root_node(), envctrl_match_cpu, unitp); local 2847 struct envctrlunit *unitp = (struct envctrlunit *)arg; local 2881 envctrl_isother_fault_led(struct envctrlunit *unitp, uint8_t fspval, uint8_t thisled) argument 2904 struct envctrlunit *unitp = (struct envctrlunit *)arg; local [all...] |
/illumos-gate/usr/src/uts/sun4u/io/i2c/clients/ |
H A D | max1617.c | 170 struct max1617_unit *unitp; local 184 unitp = ddi_get_soft_state(max1617_soft_statep, instance); 186 (void) snprintf(unitp->max1617_name, sizeof (unitp->max1617_name), 196 " name '%s'", unitp->max1617_name, minor_name); 209 unitp->max1617_name, minor_name); 216 if (i2c_client_register(dip, &unitp->max1617_hdl) != I2C_SUCCESS) { 223 mutex_init(&unitp->max1617_mutex, NULL, MUTEX_DRIVER, NULL); 224 cv_init(&unitp->max1617_cv, NULL, CV_DRIVER, NULL); 235 struct max1617_unit *unitp; local 324 struct max1617_unit *unitp; local 352 struct max1617_unit *unitp; local 528 set_temp_limit(struct max1617_unit *unitp, uchar_t device_reg, caddr_t arg, int mode) argument 561 get_temp_limit(struct max1617_unit *unitp, uchar_t reg, caddr_t arg, int mode) argument [all...] |
H A D | tda8444.c | 163 struct tda8444_unit *unitp; local 167 unitp = (struct tda8444_unit *) 170 if (unitp == NULL) { 176 unitp->tda8444_transfer->i2c_wbuf[0] = TDA8444_REGBASE | 178 unitp->tda8444_transfer->i2c_wbuf[1] = 179 unitp->tda8444_output[channel]; 181 channel, unitp->tda8444_output[channel])); 182 if (i2c_transfer(unitp->tda8444_hdl, 183 unitp->tda8444_transfer) != I2C_SUCCESS) { 188 mutex_enter(&unitp 199 struct tda8444_unit *unitp; local 287 struct tda8444_unit *unitp; local 306 struct tda8444_unit *unitp; local 441 struct tda8444_unit *unitp; local [all...] |
H A D | ltc1427.c | 148 struct ltc1427_unit *unitp; 158 unitp = (struct ltc1427_unit *) 161 if (unitp == NULL) { 169 mutex_enter(&unitp->ltc1427_mutex); 172 if (unitp->ltc1427_oflag != 0) { 175 unitp->ltc1427_oflag = FEXCL; 178 if (unitp->ltc1427_oflag == FEXCL) { 181 unitp->ltc1427_oflag = FOPEN; 185 mutex_exit(&unitp->ltc1427_mutex); 195 struct ltc1427_unit *unitp; 338 struct ltc1427_unit *unitp; local 400 struct ltc1427_unit *unitp; local [all...] |
H A D | seeprom.c | 149 struct seepromunit *unitp; local 162 unitp = ddi_get_soft_state(seepromsoft_statep, instance); 164 unitp->seeprom_dip = dip; 166 (void) snprintf(unitp->seeprom_name, sizeof (unitp->seeprom_name), 172 unitp->seeprom_name, ddi_node_name(dip)); 178 if (i2c_client_register(dip, &unitp->seeprom_hdl) != I2C_SUCCESS) { 187 unitp->seeprom_addrsize = AT34C02_ADDRSIZE; 188 unitp->seeprom_memsize = AT34C02_MEMSIZE; 189 unitp 259 struct seepromunit *unitp; local 379 struct seepromunit *unitp; local [all...] |
H A D | pcf8574.c | 148 struct pcf8574_unit *unitp; 160 unitp = (struct pcf8574_unit *) 163 if (unitp == NULL) { 171 mutex_enter(&unitp->pcf8574_mutex); 174 if (unitp->pcf8574_oflag != 0) { 177 unitp->pcf8574_oflag = FEXCL; 180 if (unitp->pcf8574_oflag == FEXCL) { 183 unitp->pcf8574_oflag = FOPEN; 187 mutex_exit(&unitp->pcf8574_mutex); 197 struct pcf8574_unit *unitp; 221 pcf8574_get(struct pcf8574_unit *unitp, uchar_t *byte) argument 254 pcf8574_set(struct pcf8574_unit *unitp, uchar_t byte) argument 488 struct pcf8574_unit *unitp; local 551 struct pcf8574_unit *unitp; local [all...] |
H A D | lm75.c | 148 struct lm75_unit *unitp; 158 unitp = (struct lm75_unit *) 161 if (unitp == NULL) { 169 mutex_enter(&unitp->lm75_mutex); 172 if (unitp->lm75_oflag != 0) { 175 unitp->lm75_oflag = FEXCL; 178 if (unitp->lm75_oflag == FEXCL) { 181 unitp->lm75_oflag = FOPEN; 185 mutex_exit(&unitp->lm75_mutex); 195 struct lm75_unit *unitp; 220 lm75_get16(intptr_t arg, int reg, struct lm75_unit *unitp, int mode) argument 275 lm75_set16(intptr_t arg, int reg, struct lm75_unit *unitp, int mode) argument 465 struct lm75_unit *unitp; local 526 struct lm75_unit *unitp; local [all...] |
H A D | pic16f819.c | 146 pic16f819_get(struct pic16f819_unit *unitp, int reg, uchar_t *byte, int flags) argument 151 (void) i2c_transfer_alloc(unitp->pic16f819_hdl, &i2c_tran_pointer, 159 err = i2c_transfer(unitp->pic16f819_hdl, i2c_tran_pointer); 162 unitp->pic16f819_name, reg)); 167 i2c_transfer_free(unitp->pic16f819_hdl, i2c_tran_pointer); 172 pic16f819_set(struct pic16f819_unit *unitp, int reg, uchar_t byte) argument 177 (void) i2c_transfer_alloc(unitp->pic16f819_hdl, &i2c_tran_pointer, 181 "i2c_tran_pointer not allocated", unitp->pic16f819_name)); 189 unitp->pic16f819_name, reg, byte)); 191 err = i2c_transfer(unitp 369 struct pic16f819_unit *unitp; local 433 struct pic16f819_unit *unitp; local [all...] |
H A D | ssc100.c | 153 struct ssc100_unit *unitp; 163 unitp = (struct ssc100_unit *) 166 if (unitp == NULL) { 174 mutex_enter(&unitp->ssc100_mutex); 177 if (unitp->ssc100_oflag != 0) { 180 unitp->ssc100_oflag = FEXCL; 183 if (unitp->ssc100_oflag == FEXCL) { 186 unitp->ssc100_oflag = FOPEN; 190 mutex_exit(&unitp->ssc100_mutex); 200 struct ssc100_unit *unitp; 224 ssc100_common(struct ssc100_unit *unitp, uchar_t *byte, uchar_t input, int8_t flag) argument 257 ssc100_get_reg(struct ssc100_unit *unitp, uchar_t *byte, uchar_t reg) argument 270 ssc100_get(struct ssc100_unit *unitp, uchar_t *byte) argument 283 ssc100_set(struct ssc100_unit *unitp, uchar_t byte) argument 509 struct ssc100_unit *unitp; local 581 struct ssc100_unit *unitp; local 619 struct ssc100_unit *unitp; local [all...] |
H A D | adm1026.c | 81 static int adm1026_get8(adm1026_unit_t *unitp, uint8_t reg, uint8_t *val); 82 static int adm1026_put8(adm1026_unit_t *unitp, uint8_t reg, uint8_t val); 184 adm1026_unit_t *unitp; 196 unitp = (struct adm1026_unit *) 199 if (unitp == NULL) { 207 mutex_enter(&unitp->adm1026_mutex); 210 if (unitp->adm1026_oflag != 0) { 213 unitp->adm1026_oflag = FEXCL; 216 if (unitp->adm1026_oflag == FEXCL) { 219 unitp 291 adm1026_unit_t *unitp; local 358 adm1026_unit_t *unitp; local 382 adm1026_get8(adm1026_unit_t *unitp, uint8_t reg, uint8_t *val) argument 409 adm1026_put8(adm1026_unit_t *unitp, uint8_t reg, uint8_t val) argument 440 adm1026_send8(adm1026_unit_t *unitp, uint8_t reg, uint8_t reg_val, uint8_t reg_mask) argument 460 adm1026_set_output(adm1026_unit_t *unitp, uint32_t val, uint32_t mask) argument 482 adm1026_get_output(adm1026_unit_t *unitp, uint32_t mask, uint32_t *val) argument 517 adm1026_set_config(adm1026_unit_t *unitp, int cmd, uint32_t val, uint32_t mask) argument 562 adm1026_get_config(adm1026_unit_t *unitp, int cmd, uint32_t mask, uint32_t *val) argument [all...] |
H A D | pcf8591.c | 152 struct pcf8591_unit *unitp; 162 unitp = (struct pcf8591_unit *) 165 if (unitp == NULL) { 173 mutex_enter(&unitp->pcf8591_mutex); 176 if (unitp->pcf8591_oflag != 0) { 179 unitp->pcf8591_oflag = FEXCL; 182 if (unitp->pcf8591_oflag == FEXCL) { 185 unitp->pcf8591_oflag = FOPEN; 189 mutex_exit(&unitp->pcf8591_mutex); 199 struct pcf8591_unit *unitp; 456 struct pcf8591_unit *unitp; local 528 struct pcf8591_unit *unitp; local [all...] |
H A D | ssc050.c | 182 struct ssc050_unit *unitp; 192 unitp = (struct ssc050_unit *) 195 if (unitp == NULL) { 203 mutex_enter(&unitp->mutex); 206 if (unitp->oflag != 0) { 209 unitp->oflag = FEXCL; 212 if (unitp->oflag == FEXCL) { 215 unitp->oflag = FOPEN; 219 mutex_exit(&unitp->mutex); 229 struct ssc050_unit *unitp; 254 ssc050_get(struct ssc050_unit *unitp, int reg, uchar_t *byte, int flags) argument 280 ssc050_set(struct ssc050_unit *unitp, int reg, uchar_t byte) argument 626 struct ssc050_unit *unitp; local 672 struct ssc050_unit *unitp; local 689 struct ssc050_unit *unitp; local [all...] |
/illumos-gate/usr/src/uts/sun4u/io/ppm/ |
H A D | jbusppm.c | 192 jbppm_unit *unitp; local 216 if ((unitp = ddi_get_soft_state(jbppm_statep, instance)) == NULL) { 231 unitp->dip = dip; 237 rv = ddi_regs_map_setup(dip, 0, (caddr_t *)&unitp->devid_csr, 0, 8, 238 &attr, &unitp->devid_hndl); 242 rv = ddi_regs_map_setup(dip, 1, (caddr_t *)&unitp->estar_csr, 0, 16, 243 &attr, &unitp->estar_hndl); 246 unitp->j_chng_csr = (uint64_t *)((caddr_t)unitp->estar_csr + 249 data64 = ddi_get64(unitp 286 jbppm_unit *unitp; local 335 jbppm_unit *unitp; local 363 jbppm_unit *unitp; local 387 jbppm_unit *unitp; local 426 static jbppm_unit *unitp; local 466 static jbppm_unit *unitp; local [all...] |
/illumos-gate/usr/src/uts/sun4u/littleneck/io/ |
H A D | pcf8574_lneck.c | 160 struct pcf8574_unit *unitp; 172 unitp = (struct pcf8574_unit *) 175 if (unitp == NULL) { 183 mutex_enter(&unitp->pcf8574_mutex); 186 if (unitp->pcf8574_oflag != 0) { 189 unitp->pcf8574_oflag = FEXCL; 192 if (unitp->pcf8574_oflag == FEXCL) { 195 unitp->pcf8574_oflag = FOPEN; 199 mutex_exit(&unitp->pcf8574_mutex); 208 struct pcf8574_unit *unitp; 232 pcf8574_get(struct pcf8574_unit *unitp, uchar_t *byte) argument 266 pcf8574_set(struct pcf8574_unit *unitp, uchar_t byte) argument 500 struct pcf8574_unit *unitp; local 586 struct pcf8574_unit *unitp; local 616 struct pcf8574_unit *unitp = (struct pcf8574_unit *)arg; local [all...] |
/illumos-gate/usr/src/uts/sun4u/grover/io/ |
H A D | grfans.c | 162 struct grfans_unit *unitp; local 181 unitp = ddi_get_soft_state(grfans_soft_statep, instance); 182 if (unitp == NULL) 198 (caddr_t *)&unitp->cpufan_reg, 199 3, 1, &attr, &unitp->cpufan_rhandle) != DDI_SUCCESS) { 207 (caddr_t *)&unitp->sysfan_reg, 208 0, 1, &attr, &unitp->sysfan_rhandle) != DDI_SUCCESS) { 211 ddi_regs_map_free(&unitp->cpufan_rhandle); 221 ddi_regs_map_free(&unitp->cpufan_rhandle); 222 ddi_regs_map_free(&unitp 265 struct grfans_unit *unitp; local 301 struct grfans_unit *unitp; local 355 struct grfans_unit *unitp; local 390 struct grfans_unit *unitp; local [all...] |
/illumos-gate/usr/src/uts/sun4u/tazmo/io/ |
H A D | envctrl.c | 417 struct envctrlunit *unitp; local 438 if (!(unitp = ddi_get_soft_state(envctrlsoft_statep, instance))) 440 mutex_enter(&unitp->umutex); 441 if (!unitp->suspended) { 442 mutex_exit(&unitp->umutex); 445 unitp->suspended = 0; 446 mutex_exit(&unitp->umutex); 447 unitp->initting = B_TRUE; 448 envctrl_init_bus(unitp); 449 unitp 750 struct envctrlunit *unitp; local 819 struct envctrlunit *unitp; local 851 struct envctrlunit *unitp; local 897 struct envctrlunit *unitp; local 921 struct envctrlunit *unitp; local 1296 struct envctrlunit *unitp = (struct envctrlunit *)(void *)arg; local 1312 struct envctrlunit *unitp = (struct envctrlunit *)(void *)arg; local 1448 envctrl_init_bus(struct envctrlunit *unitp) argument 1523 envctrl_xmit(struct envctrlunit *unitp, caddr_t *data, int chip_type) argument 1643 envctrl_recv(struct envctrlunit *unitp, caddr_t *data, int chip_type) argument 1736 envctrl_get_ps_temp(struct envctrlunit *unitp, uint8_t psaddr) argument 1796 envctrl_get_cpu_temp(struct envctrlunit *unitp, int cpunum) argument 1849 envctrl_get_lm75_temp(struct envctrlunit *unitp) argument 1901 struct envctrlunit *unitp = (struct envctrlunit *)arg; local 1939 struct envctrlunit *unitp = (struct envctrlunit *)arg; local 1972 envctrl_get_sys_temperatures(struct envctrlunit *unitp, uint8_t *diag_tempr) argument 2206 envctrl_fan_fail_service(struct envctrlunit *unitp) argument 2385 envctrl_PS_intr_service(struct envctrlunit *unitp, uint8_t psaddr) argument 2428 envctrl_reset_dflop(struct envctrlunit *unitp) argument 2453 envctrl_add_encl_kstats(struct envctrlunit *unitp, int type, int instance, uint8_t val) argument 2475 envctrl_enable_devintrs(struct envctrlunit *unitp) argument 2505 envctrl_stop_clock(struct envctrlunit *unitp) argument 2531 envctrl_reset_watchdog(struct envctrlunit *unitp, uint8_t *wdval) argument 2633 envctrl_ps_probe(struct envctrlunit *unitp) argument 2809 struct envctrlunit *unitp; local 2855 envctrl_get_fpm_status(struct envctrlunit *unitp) argument 2893 envctrl_set_fsp(struct envctrlunit *unitp, uint8_t *val) argument 2914 envctrl_get_dskled(struct envctrlunit *unitp, struct envctrl_pcf8574_chip *chip) argument 2934 envctrl_set_dskled(struct envctrlunit *unitp, struct envctrl_pcf8574_chip *chip) argument 3037 envctrl_add_kstats(struct envctrlunit *unitp) argument 3087 struct envctrlunit *unitp; local 3112 struct envctrlunit *unitp; local 3134 struct envctrlunit *unitp; local 3162 envctrl_init_fan_kstats(struct envctrlunit *unitp) argument 3184 envctrl_init_encl_kstats(struct envctrlunit *unitp) argument 3253 envctrl_mod_encl_kstats(struct envctrlunit *unitp, int type, int instance, uint8_t val) argument 3272 envctrl_probe_cpus(struct envctrlunit *unitp) argument 3293 ddi_walk_devs(ddi_root_node(), envctrl_match_cpu, unitp); local 3303 struct envctrlunit *unitp = (struct envctrlunit *)arg; local 3335 envctrl_isother_fault_led(struct envctrlunit *unitp, uint8_t fspval, uint8_t thisled) argument 3358 struct envctrlunit *unitp = (struct envctrlunit *)arg; local [all...] |
/illumos-gate/usr/src/uts/intel/io/ |
H A D | iommulib.c | 346 iommulib_unit_t *unitp; local 439 unitp = kmem_zalloc(sizeof (iommulib_unit_t), KM_SLEEP); 445 kmem_free(unitp, sizeof (iommulib_unit_t)); 453 mutex_init(&unitp->ilu_lock, NULL, MUTEX_DEFAULT, NULL); 455 mutex_enter(&unitp->ilu_lock); 456 unitp->ilu_unitid = ++iommulib_unit_ids; 457 unitp->ilu_ref = 0; 459 unitp->ilu_dip = dip; 460 unitp->ilu_ops = ops; 461 unitp 497 iommulib_unit_t *unitp = (iommulib_unit_t *)handle; local 549 iommulib_unit_t *unitp; local 603 iommulib_unit_t *unitp; local 646 iommulib_unit_t *unitp = (iommulib_unit_t *)handle; local 661 iommulib_unit_t *unitp = (iommulib_unit_t *)handle; local 678 iommulib_unit_t *unitp = (iommulib_unit_t *)handle; local 692 iommulib_unit_t *unitp = (iommulib_unit_t *)handle; local 707 iommulib_unit_t *unitp = (iommulib_unit_t *)handle; local 722 iommulib_unit_t *unitp = (iommulib_unit_t *)handle; local 737 iommulib_unit_t *unitp = (iommulib_unit_t *)handle; local 748 iommulib_unit_t *unitp = (iommulib_unit_t *)handle; local 893 iommulib_unit_t *unitp; local 914 iommulib_unit_t *unitp; local 933 iommulib_unit_t *unitp; local 952 iommulib_unit_t *unitp; local [all...] |
/illumos-gate/usr/src/uts/sun4u/excalibur/io/ |
H A D | xcalppm.c | 226 xcppm_unit_t *unitp; local 230 unitp = ddi_get_soft_state(ppm_statep, ppm_inst); 240 &unitp->hndls.bbc_estar_ctrl); 242 unitp->regs.bbc_estar_ctrl = (uint16_t *)(base_addr + 244 unitp->regs.bbc_assert_change = (uint32_t *)(base_addr + 246 unitp->regs.bbc_pll_settle = (uint32_t *)(base_addr + 250 (caddr_t *)&unitp->regs.rio_mode_auxio, 251 0, 0, &attr_le, &unitp->hndls.rio_mode_auxio); 254 0, 0, &attr_le, &unitp->hndls.gpio_bank_select); 256 unitp 305 xcppm_unit_t *unitp; local 387 xcppm_unit_t *unitp; local 409 xcppm_unit_t *unitp; local 439 xcppm_unit_t *unitp; local 460 xcppm_unit_t *unitp; local 600 xcppm_unit_t *unitp; local 738 xcppm_rio_mode(xcppm_unit_t *unitp, int mode) argument 774 xcppm_unit_t *unitp; local 1425 xcppm_unit_t *unitp; local [all...] |
/illumos-gate/usr/src/uts/i86pc/io/ppm/ |
H A D | acpippm.c | 198 appm_unit *unitp; local 221 if ((unitp = ddi_get_soft_state(appm_statep, instance)) == NULL) { 238 unitp->dip = dip; 247 unitp->lyropen = 0; 286 appm_unit *unitp; local 292 unitp = ddi_get_soft_state(appm_statep, instance); 293 if (unitp == NULL) { 296 *result = (void *) unitp->dip; 335 appm_unit *unitp; local 341 if ((unitp 363 appm_unit *unitp; local [all...] |
/illumos-gate/usr/src/uts/sun4u/daktari/io/ |
H A D | hpc3130_dak.c | 271 hpc3130_unit_t *unitp; 281 unitp = (hpc3130_unit_t *) 284 if (unitp == NULL) { 288 mutex_enter(&unitp->hpc3130_mutex); 291 if (unitp->hpc3130_oflag != 0) { 294 unitp->hpc3130_oflag = FEXCL; 297 if (unitp->hpc3130_oflag == FEXCL) { 300 unitp->hpc3130_oflag = FOPEN; 304 mutex_exit(&unitp->hpc3130_mutex); 313 hpc3130_unit_t *unitp; 334 hpc3130_get(intptr_t arg, int reg, hpc3130_unit_t *unitp, int mode) argument 377 hpc3130_set(intptr_t arg, int reg, hpc3130_unit_t *unitp, int mode) argument 1067 hpc3130_set_led(hpc3130_unit_t *unitp, int slot, int led, uint8_t value) argument [all...] |
/illumos-gate/usr/src/uts/sun/io/ttymux/ |
H A D | ttymux_impl.h | 132 #define BLOCKING(unitp, proto, flag) \ 135 unitp->sm_lqs && \ 136 (unitp->sm_flags & SM_CARON) == 0)
|
/illumos-gate/usr/src/uts/common/io/ppm/ |
H A D | ppm.c | 249 struct ppm_unit *unitp; local 259 if (unitp = ddi_get_soft_state(ppm_statep, (dev_t)arg)) { 260 *resultp = unitp->dip; 285 ppm_unit_t *unitp; local 299 unitp = ddi_get_soft_state(ppm_statep, ppm_inst); 300 mutex_enter(&unitp->lock); 301 unitp->states &= ~PPM_STATE_SUSPENDED; 302 mutex_exit(&unitp->lock); 321 unitp = ddi_get_soft_state(ppm_statep, ppm_inst); 330 unitp 390 ppm_unit_t *unitp; local 463 struct ppm_unit *unitp; local 760 ppm_unit_t *unitp; local 2492 ppm_unit_t *unitp; local 2552 ppm_unit_t *unitp; local 2764 ppm_unit_t *unitp = ddi_get_soft_state(ppm_statep, ppm_inst); local [all...] |
/illumos-gate/usr/src/uts/i86pc/io/ |
H A D | ppm_plat.c | 123 ppm_unit_t *unitp; local 130 unitp = ddi_get_soft_state(ppm_statep, ppm_inst); 131 ASSERT(unitp);
|