Lines Matching refs:instance
148 int instance; in grfans_info() local
152 instance = MINOR_TO_DEVINST(dev); in grfans_info()
153 *result = (void *)(uintptr_t)instance; in grfans_info()
163 int instance; in grfans_do_attach() local
168 instance = ddi_get_instance(dip); in grfans_do_attach()
170 if (ddi_soft_state_zalloc(grfans_soft_statep, instance) != 0) { in grfans_do_attach()
172 ddi_get_name(dip), instance); in grfans_do_attach()
178 printf("attached instance number %d\n", instance); in grfans_do_attach()
181 unitp = ddi_get_soft_state(grfans_soft_statep, instance); in grfans_do_attach()
186 instance); in grfans_do_attach()
202 ddi_soft_state_free(grfans_soft_statep, instance); in grfans_do_attach()
212 ddi_soft_state_free(grfans_soft_statep, instance); in grfans_do_attach()
217 DEVINST_TO_MINOR(instance) | CHANNEL_TO_MINOR(CPU_FAN_CHANNEL), in grfans_do_attach()
223 ddi_soft_state_free(grfans_soft_statep, instance); in grfans_do_attach()
230 DEVINST_TO_MINOR(instance) | CHANNEL_TO_MINOR(SYSTEM_FAN_CHANNEL), in grfans_do_attach()
236 ddi_soft_state_free(grfans_soft_statep, instance); in grfans_do_attach()
266 int instance; in grfans_do_detach() local
268 instance = ddi_get_instance(dip); in grfans_do_detach()
269 unitp = ddi_get_soft_state(grfans_soft_statep, instance); in grfans_do_detach()
277 ddi_soft_state_free(grfans_soft_statep, instance); in grfans_do_detach()
303 int instance = MINOR_TO_DEVINST(*devp); in grfans_open() local
312 if (instance < 0) { in grfans_open()
314 instance); in grfans_open()
319 unitp = ddi_get_soft_state(grfans_soft_statep, instance); in grfans_open()
322 instance); in grfans_open()
356 int instance = MINOR_TO_DEVINST(dev); in grfans_close() local
359 if (instance < 0) in grfans_close()
362 unitp = ddi_get_soft_state(grfans_soft_statep, instance); in grfans_close()
391 int instance = MINOR_TO_DEVINST(getminor(dev)); in grfans_io() local
397 if (instance < 0) in grfans_io()
403 unitp = ddi_get_soft_state(grfans_soft_statep, instance); in grfans_io()