Lines Matching defs:instance

344 	int		instance;
372 instance = ddi_get_instance(devi);
373 if (max_asy_instance < instance)
374 max_asy_instance = instance;
383 register int instance;
388 instance = ddi_get_instance(devi); /* find out which unit */
390 asy = (struct asycom *)ddi_get_soft_state(su_asycom, instance);
391 async = (struct asyncline *)ddi_get_soft_state(su_asyncline, instance);
429 cmn_err(CE_NOTE, "su%d: ASY%s shutdown.", instance,
450 (void) sprintf(name, "%c", (instance+'a')); /* serial-port */
452 (void) sprintf(name, "%c,cu", (instance+'a')); /* serial-port:dailout */
466 ddi_soft_state_free(su_asycom, instance);
467 ddi_soft_state_free(su_asyncline, instance);
474 register int instance;
484 instance = ddi_get_instance(devi); /* find out which unit */
487 if (instance > max_asy_instance)
492 if (ddi_soft_state_zalloc(su_asycom, instance) != DDI_SUCCESS) {
494 instance);
500 asy = (struct asycom *)ddi_get_soft_state(su_asycom, instance);
503 cmn_err(CE_WARN, "su%d: cannot get soft state", instance);
637 asy->asy_unit = instance;
642 "Get iblock_cookie failed-Device interrupt%x\n", instance);
649 instance);
680 if (ddi_soft_state_zalloc(su_asyncline, instance) != DDI_SUCCESS) {
681 cmn_err(CE_CONT, "su%d: cannot allocate soft state", instance);
686 async = (struct asyncline *)ddi_get_soft_state(su_asyncline, instance);
693 if ((asy->sukstat = kstat_create("su", instance, "serialstat",
733 instance, DDI_NT_SERIAL_LOMCON, NULL) == DDI_FAILURE) {
772 S_IFCHR, instance) == DDI_FAILURE) {
785 instance) == DDI_FAILURE) {
796 (void) sprintf(name, "%c", (instance+'a'));
797 if (ddi_create_minor_node(devi, name, S_IFCHR, instance,
803 (void) sprintf(name, "%c,cu", (instance+'a'));
804 if (ddi_create_minor_node(devi, name, S_IFCHR, instance|OUTLINE,
820 "port-%c-ignore-cd", (instance+ 'a'));
848 (void) sprintf(name, "%c", (instance+'a'));
855 ddi_soft_state_free(su_asyncline, instance);
872 ddi_soft_state_free(su_asycom, instance);
883 register int instance, error;
886 if ((instance = UNIT(dev)) > max_asy_instance)
892 instance);
901 *result = (void *)(uintptr_t)instance;
1280 * so this instance of leaveq() needs to be called before we call