Lines Matching refs:state
109 ds_pri_flags_t state;
329 cmn_err(CE_WARN, "%s@%d: Unable to allocate state",
349 sp->state = DS_PRI_NO_SERVICE;
458 if (!(sp->state & DS_PRI_HAS_PRI)) {
459 while (!(sp->state & DS_PRI_HAS_SERVICE)) {
470 DS_PRI_DBG("ds_pri_open: state = 0x%x\n", sp->state);
493 if (!(sp->state & DS_PRI_HAS_SERVICE)) {
503 sp->state &= ~DS_PRI_REQUESTED;
531 DS_PRI_DBG("ds_pri_read: state = 0x%x\n", sp->state);
534 if (!(sp->state & DS_PRI_HAS_PRI)) {
542 while (!(sp->state & DS_PRI_HAS_PRI)) {
543 DS_PRI_DBG("ds_pri_read: state = 0x%x\n", sp->state);
616 if (sp->state & DS_PRI_HAS_PRI) {
621 if (!(sp->state & DS_PRI_HAS_SERVICE)) {
655 while ((sp->state & DS_PRI_HAS_PRI) == 0 ||
657 if ((sp->state & DS_PRI_HAS_PRI) == 0)
684 if (!(sp->state & DS_PRI_HAS_SERVICE))
686 if (sp->state & DS_PRI_REQUESTED)
690 if (sp->state & DS_PRI_HAS_PRI) {
698 sp->state &= ~DS_PRI_HAS_PRI;
713 * from the DS framework and we handle the state change
718 sp->state |= DS_PRI_REQUESTED;
740 /* When the domain service comes up automatically update the state */
746 ASSERT(!(sp->state & DS_PRI_HAS_SERVICE));
747 sp->state |= DS_PRI_HAS_SERVICE;
781 * it comes online. We mark the state to indicate no
786 sp->state &= ~DS_PRI_HAS_SERVICE;
817 ASSERT(sp->state & DS_PRI_HAS_SERVICE);
836 if (!(sp->state & DS_PRI_REQUESTED)) {
842 ASSERT(!(sp->state & DS_PRI_HAS_PRI));
862 sp->state &= ~DS_PRI_REQUESTED;
863 sp->state |= DS_PRI_HAS_PRI;
931 sp->state |= DS_PRI_HAS_PRI;