Lines Matching refs:state
74 * The single mutex 'lock' protects all the SNMP/DS variables in the state
93 ds_snmp_flags_t state;
436 cmn_err(CE_WARN, "%s@%d: Unable to allocate state",
457 sp->state = DS_SNMP_READY;
582 if (sp->state != DS_SNMP_DATA_AVL && sp->state != DS_SNMP_DATA_ERR) {
588 while (sp->state != DS_SNMP_DATA_AVL &&
589 sp->state != DS_SNMP_DATA_ERR) {
603 if (sp->state == DS_SNMP_DATA_ERR) {
610 sp->state = DS_SNMP_READY;
632 sp->state = DS_SNMP_READY;
695 while (sp->state != DS_SNMP_READY) {
708 if (sp->state == DS_SNMP_DATA_ERR && sp->sc_reset == B_TRUE) {
725 * Set state to SNMP_REQUESTED, but don't wakeup anyone yet
727 sp->state = DS_SNMP_REQUESTED;
799 while (sp->state != DS_SNMP_DATA_AVL &&
800 sp->state != DS_SNMP_DATA_ERR) {
801 DS_SNMP_DBG("ds_snmp_ioctl: state=%d, sc_reset=%d, "
802 "waiting for data\n", sp->state, sp->sc_reset);
804 sp->state = DS_SNMP_READY;
809 DS_SNMP_DBG("ds_snmp_ioctl: state=%d, sc_reset=%d, "
810 "out of wait!\n", sp->state, sp->sc_reset);
818 if (sp->state == DS_SNMP_DATA_ERR) {
825 sp->state = DS_SNMP_READY;
857 sp->state = DS_SNMP_READY;
925 sp->state = DS_SNMP_DATA_ERR;
975 if (sp->state != DS_SNMP_REQUESTED) {
998 sp->state = DS_SNMP_DATA_ERR;
1004 sp->state = DS_SNMP_DATA_AVL;