Lines Matching refs:instance

570 	int instance;
576 instance = ddi_get_instance(dip);
581 sgen_log(NULL, SGEN_DIAG2, "sgen_do_attach: instance = %d, "
582 "device unit-address @%s", instance, ddi_get_name_addr(dip));
593 if (ddi_soft_state_zalloc(sgen_soft_state, instance) != DDI_SUCCESS) {
604 sg_state = ddi_get_soft_state(sgen_soft_state, instance);
627 "sgen_do_attach: sgen_soft_state=0x%p, instance=%d, "
629 sgen_soft_state, instance, ddi_get_name_addr(dip));
632 * For simplicity, the minor number == the instance number
635 instance, DDI_NT_SGEN, NULL) == DDI_FAILURE) {
641 ddi_soft_state_free(sgen_soft_state, instance);
725 ddi_soft_state_free(sgen_soft_state, instance);
729 sgen_create_errstats(sg_state, instance);
784 sgen_create_errstats(sgen_state_t *sg_state, int instance)
790 sgen_label, instance);
791 sg_state->sgen_kstats = kstat_create("sgenerr", instance,
832 int instance;
835 instance = ddi_get_instance(dip);
836 sg_state = ddi_get_soft_state(sgen_soft_state, instance);
845 instance, ddi_get_name_addr(dip));
867 int instance;
871 instance = ddi_get_instance(dip);
872 sg_state = ddi_get_soft_state(sgen_soft_state, instance);
918 ddi_soft_state_free(sgen_soft_state, instance);
935 int instance;
938 instance = ddi_get_instance(dip);
939 sg_state = ddi_get_soft_state(sgen_soft_state, instance);
970 int instance, error;
974 instance = getminor(dev);
975 if ((sg_state = ddi_get_soft_state(sgen_soft_state, instance))
983 instance = getminor(dev);
984 *result = (void *)(uintptr_t)instance;
1003 int instance;
1007 instance = ddi_get_instance(dip);
1008 sgen_log(NULL, SGEN_DIAG2, "in sgen_probe(): instance = %d, "
1009 "device unit-address @%s", instance, ddi_get_name_addr(dip));
1014 if (ddi_get_soft_state(sgen_soft_state, instance) != NULL)
1058 int instance;
1060 instance = getminor(dev);
1062 if ((sg_state = ddi_get_soft_state(sgen_soft_state, instance)) == NULL)
1065 sgen_log(sg_state, SGEN_DIAG2, "in sgen_open(): instance = %d",
1066 instance);
1108 int instance;
1110 instance = getminor(dev);
1112 if ((sg_state = ddi_get_soft_state(sgen_soft_state, instance)) == NULL)
1115 sgen_log(sg_state, SGEN_DIAG2, "in sgen_close(): instance = %d",
1116 instance);
1140 int instance;
1142 instance = getminor(dev);
1144 if ((sg_state = ddi_get_soft_state(sgen_soft_state, instance)) == NULL)
1147 sgen_log(sg_state, SGEN_DIAG2, "in sgen_ioctl(): instance = %d",
1148 instance);
1158 "driver instance %d was previously suspended", instance);
1208 int instance;
1212 instance = getminor(dev);
1214 sg_state = ddi_get_soft_state(sgen_soft_state, instance);
1217 sgen_log(sg_state, SGEN_DIAG2, "in sgen_uscsi_cmd(): instance = %d",
1218 instance);
1984 * for this instance (either via SGEN_IOC_DIAG or via