/illumos-gate/usr/src/uts/sun4u/io/ |
H A D | sbd.c | 380 static int sbd_mem_status(sbd_handle_t *hp, sbd_devset_t devset, 1365 sbd_devset_t devset; in sbd_dev2devset() local 1370 devset = DEVSET(SBD_COMP_CPU, DEVSET_ANYUNIT); in sbd_dev2devset() 1371 devset |= DEVSET(SBD_COMP_MEM, DEVSET_ANYUNIT); in sbd_dev2devset() 1372 devset |= DEVSET(SBD_COMP_IO, DEVSET_ANYUNIT); in sbd_dev2devset() 1378 devset = 0; in sbd_dev2devset() 1388 devset = DEVSET(SBD_COMP_CMP, unit); in sbd_dev2devset() 1397 devset = 0; in sbd_dev2devset() 1399 devset = DEVSET(cid->c_type, 0); in sbd_dev2devset() 1401 f, devset); in sbd_dev2devset() [all …]
|
H A D | sbd_io.c | 180 sbd_io_status(sbd_handle_t *hp, sbd_devset_t devset, sbd_dev_stat_t *dsp) in sbd_io_status() argument 209 devset &= SBD_DEVS_PRESENT(sbp); in sbd_io_status() 217 if (DEVSET_IN_SET(devset, SBD_COMP_IO, i) == 0) in sbd_io_status() 297 sbd_io_cnt(sbd_handle_t *hp, sbd_devset_t devset) in sbd_io_cnt() argument 307 devset &= SBD_DEVS_PRESENT(sbp); in sbd_io_cnt() 312 if (DEVSET_IN_SET(devset, SBD_COMP_IO, i) == 0) in sbd_io_cnt()
|
H A D | sbd_cpu.c | 237 sbd_cpu_flags(sbd_handle_t *hp, sbd_devset_t devset, sbd_dev_stat_t *dsp) in sbd_cpu_flags() argument 266 devset &= SBD_DEVS_PRESENT(sbp); in sbd_cpu_flags() 281 if (DEVSET_IN_SET(devset, SBD_COMP_CMP, cmp) == 0) in sbd_cpu_flags()
|
/illumos-gate/usr/src/uts/i86pc/io/dr/ |
H A D | dr.c | 1050 dr_devset_t devset; in dr_pre_op() local 1056 devset = shp->h_devset; in dr_pre_op() 1060 devset = DEVSET_AND(devset, DR_DEVS_PRESENT(bp)); in dr_pre_op() 1061 hp->h_err = drmach_pre_op(cmd, bp->b_id, &hp->h_opts, &devset); in dr_pre_op() 1078 state_err = dr_check_transition(bp, &devset, transp, cmd); in dr_pre_op() 1087 f, (uint_t)devset); in dr_pre_op() 1101 shp->h_devset = devset; in dr_pre_op() 1373 dr_devset_t devset; in dr_disconnect() local 1383 devset = hp->h_devset & DR_DEVS_PRESENT(bp) & in dr_disconnect() 1386 if ((devset == 0) && DR_DEVS_PRESENT(bp)) { in dr_disconnect() [all …]
|
H A D | dr_cpu.c | 364 dr_devset_t devset; in dr_pre_release_cpu() local 369 devset = DR_DEVS_PRESENT(hp->h_bd); in dr_pre_release_cpu() 375 cix = dr_cpu_status(hp, devset, ds); in dr_pre_release_cpu() 705 dr_cpu_status(dr_handle_t *hp, dr_devset_t devset, sbd_dev_stat_t *dsp) in dr_cpu_status() argument 717 devset &= DR_DEVS_PRESENT(bp); in dr_cpu_status() 733 if ((devset & DEVSET(SBD_COMP_CMP, cmp)) == 0) { in dr_cpu_status()
|
H A D | dr_io.c | 295 dr_io_status(dr_handle_t *hp, dr_devset_t devset, sbd_dev_stat_t *dsp) in dr_io_status() argument 307 devset &= DR_DEVS_PRESENT(bp); in dr_io_status() 315 if (DEVSET_IN_SET(devset, SBD_COMP_IO, i) == 0) in dr_io_status()
|
H A D | dr_mem_acpi.c | 278 dr_mem_status(dr_handle_t *hp, dr_devset_t devset, sbd_dev_stat_t *dsp) in dr_mem_status() argument 288 devset &= DR_DEVS_PRESENT(bp); in dr_mem_status() 296 if (DEVSET_IN_SET(devset, SBD_COMP_MEM, m) == 0) in dr_mem_status()
|
/illumos-gate/usr/src/uts/sun4u/ngdr/io/ |
H A D | dr.c | 1053 dr_devset_t devset; in dr_pre_op() local 1059 devset = shp->h_devset; in dr_pre_op() 1080 state_err = dr_check_transition(bp, &devset, transp, cmd); in dr_pre_op() 1089 f, (uint_t)devset); in dr_pre_op() 1103 shp->h_devset = devset; in dr_pre_op() 1384 dr_devset_t devset; in dr_disconnect() local 1394 devset = hp->h_devset & DR_DEVS_PRESENT(bp) & in dr_disconnect() 1397 if ((devset == 0) && DR_DEVS_PRESENT(bp)) { in dr_disconnect() 1417 DR_DEVS_DISCONNECT(bp, devset); in dr_disconnect() 1419 ASSERT((DR_DEVS_ATTACHED(bp) & devset) == 0); in dr_disconnect() [all …]
|
H A D | dr_cpu.c | 420 dr_devset_t devset; in dr_pre_release_cpu() local 425 devset = DR_DEVS_PRESENT(hp->h_bd); in dr_pre_release_cpu() 431 cix = dr_cpu_status(hp, devset, ds); in dr_pre_release_cpu() 758 dr_cpu_status(dr_handle_t *hp, dr_devset_t devset, sbd_dev_stat_t *dsp) in dr_cpu_status() argument 770 devset &= DR_DEVS_PRESENT(bp); in dr_cpu_status() 785 if ((devset & DEVSET(SBD_COMP_CMP, cmp)) == 0) { in dr_cpu_status()
|
H A D | dr_io.c | 317 dr_io_status(dr_handle_t *hp, dr_devset_t devset, sbd_dev_stat_t *dsp) in dr_io_status() argument 329 devset &= DR_DEVS_PRESENT(bp); in dr_io_status() 337 if (DEVSET_IN_SET(devset, SBD_COMP_IO, i) == 0) in dr_io_status()
|
H A D | dr_mem.c | 711 dr_mem_status(dr_handle_t *hp, dr_devset_t devset, sbd_dev_stat_t *dsp) in dr_mem_status() argument 722 devset &= DR_DEVS_PRESENT(bp); in dr_mem_status() 730 if (DEVSET_IN_SET(devset, SBD_COMP_MEM, m) == 0) in dr_mem_status()
|
/illumos-gate/usr/src/uts/i86pc/sys/ |
H A D | dr.h | 155 #error please implement devset with bitmap to support more 64 devices 430 extern int dr_cpu_status(dr_handle_t *hp, dr_devset_t devset, 454 extern int dr_mem_status(dr_handle_t *hp, dr_devset_t devset, 475 extern int dr_io_status(dr_handle_t *hp, dr_devset_t devset,
|
/illumos-gate/usr/src/uts/sun4u/ngdr/sys/ |
H A D | dr.h | 399 extern int dr_cpu_status(dr_handle_t *hp, dr_devset_t devset, 423 extern int dr_mem_status(dr_handle_t *hp, dr_devset_t devset, 445 extern int dr_io_status(dr_handle_t *hp, dr_devset_t devset,
|
/illumos-gate/usr/src/uts/i86pc/io/acpi/drmach_acpi/ |
H A D | drmach_acpi.c | 1478 dr_devset_t devset = *devsetp; in drmach_pre_op() local 1483 DEVSET_DEL(devset, SBD_COMP_CPU, in drmach_pre_op() 1488 DEVSET_DEL(devset, SBD_COMP_CPU, i); in drmach_pre_op() 1493 DEVSET_DEL(devset, SBD_COMP_MEM, in drmach_pre_op() 1498 DEVSET_DEL(devset, SBD_COMP_MEM, i); in drmach_pre_op() 1503 DEVSET_DEL(devset, SBD_COMP_IO, DEVSET_ANYUNIT); in drmach_pre_op() 1508 DEVSET_DEL(devset, SBD_COMP_CPU, in drmach_pre_op() 1513 DEVSET_DEL(devset, SBD_COMP_CPU, i); in drmach_pre_op() 1518 DEVSET_DEL(devset, SBD_COMP_MEM, DEVSET_ANYUNIT); in drmach_pre_op() 1519 DEVSET_DEL(devset, SBD_COMP_IO, DEVSET_ANYUNIT); in drmach_pre_op() [all …]
|
/illumos-gate/usr/src/uts/sun4u/opl/io/ |
H A D | dr_mem.c | 694 dr_mem_status(dr_handle_t *hp, dr_devset_t devset, sbd_dev_stat_t *dsp) in dr_mem_status() argument 705 devset &= DR_DEVS_PRESENT(bp); in dr_mem_status() 713 if (DEVSET_IN_SET(devset, SBD_COMP_MEM, m) == 0) in dr_mem_status()
|
/illumos-gate/usr/src/uts/sun4u/sys/ |
H A D | sbdpriv.h | 679 extern int sbd_cpu_flags(sbd_handle_t *hp, sbd_devset_t devset,
|