Lines Matching refs:ctl

157 	evchan_ctl_t *ctl;  in sysevent_publish()  local
159 ctl = ddi_get_soft_state(evchan_ctlp, getminor(dev)); in sysevent_publish()
160 if (ctl == NULL || ctl->chp == NULL) in sysevent_publish()
193 return (evch_usrpostevent(ctl->chp, ev, uargs.flags)); in sysevent_publish()
207 evchan_ctl_t *ctl; in sysevent_chan_open() local
211 ctl = ddi_get_soft_state(evchan_ctlp, getminor(dev)); in sysevent_chan_open()
212 if (ctl == NULL) { in sysevent_chan_open()
239 ctl->chp = evch_usrchanopen((const char *)chan_name, in sysevent_chan_open()
256 evchan_ctl_t *ctl; in sysevent_chan_control() local
259 ctl = ddi_get_soft_state(evchan_ctlp, getminor(dev)); in sysevent_chan_control()
260 if (ctl == NULL || ctl->chp == NULL) in sysevent_chan_control()
269 rc = evch_usrcontrol_get(ctl->chp, uargs.cmd, &uargs.value); in sysevent_chan_control()
278 rc = evch_usrcontrol_set(ctl->chp, uargs.cmd, uargs.value); in sysevent_chan_control()
293 evchan_ctl_t *ctl; in sysevent_subscribe() local
296 ctl = ddi_get_soft_state(evchan_ctlp, getminor(dev)); in sysevent_subscribe()
297 if (ctl == NULL || ctl->chp == NULL) in sysevent_subscribe()
338 rc = evch_usrsubscribe(ctl->chp, sid, class_info, in sysevent_subscribe()
353 evchan_ctl_t *ctl; in sysevent_unsubscribe() local
358 ctl = ddi_get_soft_state(evchan_ctlp, getminor(dev)); in sysevent_unsubscribe()
359 if (ctl == NULL || ctl->chp == NULL) in sysevent_unsubscribe()
367 evch_usrunsubscribe(ctl->chp, NULL, 0); in sysevent_unsubscribe()
379 evch_usrunsubscribe(ctl->chp, sid, 0); in sysevent_unsubscribe()
479 evchan_ctl_t *ctl; in sysevent_setpropnvl() local
483 ctl = ddi_get_soft_state(evchan_ctlp, getminor(dev)); in sysevent_setpropnvl()
484 if (ctl == NULL || ctl->chp == NULL) in sysevent_setpropnvl()
514 evch_usrsetpropnvl(ctl->chp, nvl); in sysevent_setpropnvl()
524 evchan_ctl_t *ctl; in sysevent_getpropnvl() local
529 ctl = ddi_get_soft_state(evchan_ctlp, getminor(dev)); in sysevent_getpropnvl()
531 if (ctl == NULL || ctl->chp == NULL) in sysevent_getpropnvl()
537 if ((rc = evch_usrgetpropnvl(ctl->chp, &nvl, &gen)) != 0) in sysevent_getpropnvl()
658 evchan_ctl_t *ctl; in sysevent_close() local
663 ctl = ddi_get_soft_state(evchan_ctlp, minor); in sysevent_close()
664 if (ctl == NULL) { in sysevent_close()
668 if (ctl->chp) { in sysevent_close()
670 evch_usrunsubscribe(ctl->chp, NULL, EVCH_SUB_KEEP); in sysevent_close()
671 evch_usrchanclose(ctl->chp); in sysevent_close()