Lines Matching defs:instance

96 ssm_make_nodes(dev_info_t *dip, int instance, int ssm_nodeid);
318 int instance;
322 instance = (getminor(dev) >> SSM_INSTANCE_SHIFT);
323 *result = (void *)(uintptr_t)instance;
336 int instance;
353 instance = ddi_get_instance(devi);
355 if (ddi_soft_state_zalloc(ssm_softstates, instance) != DDI_SUCCESS)
358 softsp = ddi_get_soft_state(ssm_softstates, instance);
366 instance, (void *)devi, (void *)softsp));
371 instance, "nodeid");
372 ddi_soft_state_free(ssm_softstates, instance);
382 if (ddi_create_minor_node(devi, "debug", S_IFCHR, instance,
384 ddi_soft_state_free(ssm_softstates, instance);
389 if (ssm_make_nodes(devi, instance, softsp->ssm_nodeid)) {
391 ddi_driver_name(devi), instance);
393 ddi_soft_state_free(ssm_softstates, instance);
426 ASSERT(sp->inst != instance);
439 sp->inst = instance;
457 int instance, rv;
463 instance = ddi_get_instance(devi);
464 softsp = ddi_get_soft_state(ssm_softstates, instance);
468 "ssm_open bad instance number %d", instance);
472 instance = ddi_get_instance(devi);
486 sbdp_info.instance = instance;
488 rv = (*sbd_teardown_instance)(instance, (caddr_t)&sbdp_info);
496 ddi_soft_state_free(ssm_softstates, instance);
503 if (sp->inst == instance)
675 ssm_make_nodes(dev_info_t *dip, int instance, int ssm_nodeid)
687 minor_num = (instance << SSM_INSTANCE_SHIFT) | bd;
695 instance, filename, minor_num);
709 minor_t board, instance;
714 instance = (getminor(*devi) >> SSM_INSTANCE_SHIFT);
716 softsp = ddi_get_soft_state(ssm_softstates, instance);
718 cmn_err(CE_WARN, "ssm_open bad instance number %d", instance);
729 if (instance == 0 && ssm_loaded_sbd == FALSE) {
758 sbdp_info.instance = instance;
761 rv = (*sbd_setup_instance)(instance, softsp->top_node,
782 minor_t board, instance;
784 instance = (getminor(dev) >> SSM_INSTANCE_SHIFT);
786 softsp = ddi_get_soft_state(ssm_softstates, instance);
806 int instance, rv = 0;
809 instance = (getminor(dev) >> SSM_INSTANCE_SHIFT);
810 softsp = ddi_get_soft_state(ssm_softstates, instance);
851 sbdp_info.instance = instance;
853 rv = (*sbd_teardown_instance)(instance, (caddr_t)&sbdp_info);
930 * we have the instance, and the board, construct the attch pnt