Lines Matching refs:dsp
135 dlpistub_t *dsp; in ds_open() local
154 dsp = kmem_zalloc(sizeof (dlpistub_t), KM_SLEEP); in ds_open()
155 dsp->ds_type = type; in ds_open()
156 dsp->ds_minor = (minor_t)id_alloc(ds_minors); in ds_open()
157 dsp->ds_state = DL_UNATTACHED; in ds_open()
158 *devp = makedevice(getmajor(*devp), dsp->ds_minor); in ds_open()
159 q->q_ptr = WR(q)->q_ptr = dsp; in ds_open()
169 dlpistub_t *dsp = q->q_ptr; in ds_close() local
174 id_free(ds_minors, dsp->ds_minor); in ds_close()
175 kmem_free(dsp, sizeof (dlpistub_t)); in ds_close()
199 dlpistub_t *dsp = q->q_ptr; in ds_wput() local
217 if (dsp->ds_state != DL_UNATTACHED) in ds_wput()
220 dsp->ds_state = DL_UNBOUND; in ds_wput()
228 if (dsp->ds_state != DL_UNBOUND) in ds_wput()
231 dsp->ds_state = DL_IDLE; in ds_wput()
244 dlip->dl_mac_type = dsp->ds_type; in ds_wput()
245 dlip->dl_current_state = dsp->ds_state; in ds_wput()
261 if (dsp->ds_state != DL_IDLE) in ds_wput()
264 dsp->ds_state = DL_UNBOUND; in ds_wput()
272 if (dsp->ds_state != DL_UNBOUND) in ds_wput()
275 dsp->ds_state = DL_UNATTACHED; in ds_wput()
280 DTRACE_PROBE2(dlpistub__data, dlpistub_t *, dsp, in ds_wput()