Lines Matching refs:instance
214 int instance; in pseudonex_attach() local
229 instance = ddi_get_instance(devi); in pseudonex_attach()
230 if (ddi_soft_state_zalloc(pseudonex_state, instance) != DDI_SUCCESS) in pseudonex_attach()
232 pnx_state = ddi_get_soft_state(pseudonex_state, instance); in pseudonex_attach()
238 if (ddi_create_minor_node(devi, "devctl", S_IFCHR, instance, in pseudonex_attach()
241 ddi_soft_state_free(pseudonex_state, instance); in pseudonex_attach()
252 int instance = ddi_get_instance(devi); in pseudonex_detach() local
262 ddi_soft_state_free(pseudonex_state, instance); in pseudonex_detach()
270 int instance; in pseudonex_open() local
275 instance = getminor(*devp); in pseudonex_open()
276 if (ddi_get_soft_state(pseudonex_state, instance) == NULL) in pseudonex_open()
286 int instance; in pseudonex_close() local
291 instance = getminor(dev); in pseudonex_close()
292 if (ddi_get_soft_state(pseudonex_state, instance) == NULL) in pseudonex_close()
303 int instance; in pseudonex_ioctl() local
306 instance = getminor(dev); in pseudonex_ioctl()
307 if ((pnx_state = ddi_get_soft_state(pseudonex_state, instance)) == NULL) in pseudonex_ioctl()
416 int instance = -1; in pseudonex_ctl() local
449 instance = ddi_prop_get_int(DDI_DEV_T_ANY, child, in pseudonex_ctl()
455 "auto-assign=%d)", instance, auto_assign)); in pseudonex_ctl()
457 if (instance != -1 && auto_assign != 0) { in pseudonex_ctl()
464 if (instance == -1 && auto_assign == 0) { in pseudonex_ctl()
467 instance = 0; in pseudonex_ctl()
476 if ((instance = pseudonex_auto_assign(child)) == -1) { in pseudonex_ctl()
483 childname, instance)); in pseudonex_ctl()
485 if (pseudonex_check_assignment(child, instance) == in pseudonex_ctl()
489 "ignored.", instance, childname)); in pseudonex_ctl()
494 childname, instance)); in pseudonex_ctl()
506 (void) snprintf(name, sizeof (name), "%d", instance); in pseudonex_ctl()
507 DEVI(child)->devi_instance = instance; in pseudonex_ctl()