Lines Matching refs:inst
150 int inst = getminor((dev_t)arg); in tod_getinfo() local
157 if ((softc = getsoftc(inst)) == NULL) { in tod_getinfo()
166 *result = (void *)(uintptr_t)inst; in tod_getinfo()
180 int inst; in tod_attach() local
187 inst = ddi_get_instance(dip); in tod_attach()
193 (void) sprintf(name, "tod%d", inst); in tod_attach()
194 if (ddi_create_minor_node(dip, name, S_IFCHR, inst, in tod_attach()
201 if (ddi_soft_state_zalloc(statep, inst) != DDI_SUCCESS) in tod_attach()
204 softc = getsoftc(inst); in tod_attach()
212 inst = ddi_get_instance(dip); in tod_attach()
213 softc = getsoftc(inst); in tod_attach()
226 ddi_soft_state_free(statep, inst); in tod_attach()
236 int inst; in tod_detach() local
242 inst = ddi_get_instance(dip); in tod_detach()
243 if ((softc = getsoftc(inst)) == NULL) in tod_detach()
249 ddi_soft_state_free(statep, inst); in tod_detach()
254 inst = ddi_get_instance(dip); in tod_detach()
255 softc = getsoftc(inst); in tod_detach()
271 int inst = getminor(*devp); in tod_open() local
273 return (getsoftc(inst) == NULL ? ENXIO : 0); in tod_open()
281 int inst = getminor(dev); in tod_close() local
283 return (getsoftc(inst) == NULL ? ENXIO : 0); in tod_close()
291 int inst = getminor(dev); in tod_ioctl() local
295 if ((softc = getsoftc(inst)) == NULL) in tod_ioctl()