Lines Matching refs:inst
113 #define getsoftc(inst) ((struct epic_softc *)ddi_get_soft_state(statep, \ argument
114 (inst)))
171 int inst; in epic_getinfo() local
175 inst = (getminor((dev_t)arg)); in epic_getinfo()
179 if ((softc = getsoftc(inst)) == NULL) { in epic_getinfo()
187 *result = (void *)(uintptr_t)inst; in epic_getinfo()
200 int inst; in epic_attach() local
209 inst = ddi_get_instance(dip); in epic_attach()
210 (void) sprintf(name, "env-monitor%d", inst); in epic_attach()
211 minor = inst; in epic_attach()
216 inst); in epic_attach()
221 if (ddi_soft_state_zalloc(statep, inst) != DDI_SUCCESS) { in epic_attach()
223 "for inst %d\n", inst); in epic_attach()
228 if ((softc = getsoftc(inst)) == NULL) { in epic_attach()
263 ddi_soft_state_free(statep, inst); in epic_attach()
273 int inst; in epic_detach() local
278 inst = ddi_get_instance(dip); in epic_detach()
279 if ((softc = getsoftc(inst)) == NULL) in epic_detach()
287 ddi_soft_state_free(statep, inst); in epic_detach()
307 int inst = getminor(*devp); in epic_open()
309 return (getsoftc(inst) == NULL ? ENXIO : 0); in epic_open()
320 int inst = getminor(dev); in epic_close()
322 return (getsoftc(inst) == NULL ? ENXIO : 0); in epic_close()
332 int inst; in epic_ioctl()
336 inst = getminor(dev); in epic_ioctl()
337 if ((softc = getsoftc(inst)) == NULL) in epic_ioctl()