Lines Matching defs:instance
590 int instance;
595 instance = ddi_get_instance(dip);
602 if (!(pp = ddi_get_soft_state(ecppsoft_statep, instance))) {
631 if (ddi_soft_state_zalloc(ecppsoft_statep, instance) != 0) {
636 pp = ddi_get_soft_state(ecppsoft_statep, instance);
691 (void) sprintf(name, "ecpp%d", instance);
693 if (ddi_create_minor_node(dip, name, S_IFCHR, instance,
744 ddi_soft_state_free(ecppsoft_statep, instance);
754 int instance;
757 instance = ddi_get_instance(dip);
764 if (!(pp = ddi_get_soft_state(ecppsoft_statep, instance))) {
797 pp = ddi_get_soft_state(ecppsoft_statep, instance);
828 ddi_soft_state_free(ecppsoft_statep, instance);
989 int instance, ret;
991 instance = getminor(dev);
995 pp = ddi_get_soft_state(ecppsoft_statep, instance);
1005 *result = (void *)(uintptr_t)instance;
1022 int instance;
1026 instance = getminor(*dev);
1028 if (instance < 0) {
1032 pp = (struct ecppunit *)ddi_get_soft_state(ecppsoft_statep, instance);
1059 pp->instance = instance;
6255 (void) sprintf(buf, "ecppc%d", pp->instance);
6256 pp->intrstats = kstat_create("ecpp", pp->instance, buf, "controller",
6269 pp->ksp = kstat_create("ecpp", pp->instance, NULL, "misc",