Lines Matching defs:un

212 #define	SBD_DEVICE_TRANSITION(sb, nt, un, st) \
215 _ostate = (int)((sb)->sb_dev[NIX(nt)][un].u_common.sbdev_state); \
219 sbd_ct_str[nt], (un), \
223 (void *)&(sb)->sb_dev[NIX(nt)][un].u_common.sbdev_time); \
224 (sb)->sb_dev[NIX(nt)][un].u_common.sbdev_state = (st); \
225 (sb)->sb_dev[NIX(nt)][un].u_common.sbdev_ostate = ostate_cvt(st); \
239 #define SBD_DEVICE_TRANSITION(sb, nt, un, st) \
241 (sb)->sb_dev[NIX(nt)][un].u_common.sbdev_state = (st); \
242 (sb)->sb_dev[NIX(nt)][un].u_common.sbdev_ostate = ostate_cvt(st); \
244 (void *)&(sb)->sb_dev[NIX(nt)][un].u_common.sbdev_time); \
252 #define SBD_DEVICE_STATE(sb, nt, un) \
253 ((sb)->sb_dev[NIX(nt)][un].u_common.sbdev_state)
397 #define SBD_GET_BOARD_MEMUNIT(sb, un) \
398 (&((sb)->sb_dev[NIX(SBD_COMP_MEM)][un]._mu))
399 #define SBD_GET_BOARD_CPUUNIT(sb, un) \
400 (&((sb)->sb_dev[NIX(SBD_COMP_CPU)][un]._cu))
401 #define SBD_GET_BOARD_IOUNIT(sb, un) \
402 (&((sb)->sb_dev[NIX(SBD_COMP_IO)][un]._iu))
438 #define SBD_DEV_IS_PRESENT(bp, nt, un) \
439 DEVSET_IN_SET((bp)->sb_dev_present, (nt), (un))
440 #define SBD_DEV_SET_PRESENT(bp, nt, un) \
441 DEVSET_ADD((bp)->sb_dev_present, (nt), (un))
442 #define SBD_DEV_CLR_PRESENT(bp, nt, un) \
443 DEVSET_DEL((bp)->sb_dev_present, (nt), (un))
447 #define SBD_DEV_IS_ATTACHED(bp, nt, un) \
448 DEVSET_IN_SET((bp)->sb_dev_attached, (nt), (un))
449 #define SBD_DEV_SET_ATTACHED(bp, nt, un) \
450 DEVSET_ADD((bp)->sb_dev_attached, (nt), (un))
451 #define SBD_DEV_CLR_ATTACHED(bp, nt, un) \
452 DEVSET_DEL((bp)->sb_dev_attached, (nt), (un))
456 #define SBD_DEV_IS_RELEASED(bp, nt, un) \
457 DEVSET_IN_SET((bp)->sb_dev_released, (nt), (un))
458 #define SBD_DEV_SET_RELEASED(bp, nt, un) \
459 DEVSET_ADD((bp)->sb_dev_released, (nt), (un))
460 #define SBD_DEV_CLR_RELEASED(bp, nt, un) \
461 DEVSET_DEL((bp)->sb_dev_released, (nt), (un))
465 #define SBD_DEV_IS_UNREFERENCED(bp, nt, un) \
466 DEVSET_IN_SET((bp)->sb_dev_unreferenced, (nt), (un))
467 #define SBD_DEV_SET_UNREFERENCED(bp, nt, un) \
468 DEVSET_ADD((bp)->sb_dev_unreferenced, (nt), (un))
469 #define SBD_DEV_CLR_UNREFERENCED(bp, nt, un) \
470 DEVSET_DEL((bp)->sb_dev_unreferenced, (nt), (un))