Lines Matching defs:instance

820 	 * need to detach every instance of the driver
909 * man_attach - allocate resources and attach an instance of the MAN driver
922 man_t *manp; /* per instance data */
926 int instance;
939 instance = ddi_get_instance(dip);
942 * we assume that instance is always equal to zero.
943 * and there will always only be one instance.
945 * the path assumes that the instance number is zero.
949 ASSERT(instance == 0);
955 if ((ddi_soft_state_zalloc(man_softstate, instance) != DDI_SUCCESS) ||
956 ((manp = ddi_get_soft_state(man_softstate, instance)) == NULL)) {
964 manp->man_meta_ppa = instance;
1008 cmn_err(CE_WARN, "man_attach: failed for instance %d",
1017 cmn_err(CE_WARN, "man_attach: failed for instance %d",
1023 * Allocate meta kstat_t for this instance of the driver.
1057 ddi_soft_state_free(man_softstate, instance);
1084 * man_detach - detach an instance of a driver
1095 register man_t *manp; /* per instance data */
1096 int instance;
1110 instance = ddi_get_instance(dip);
1114 manp = (man_t *)ddi_get_soft_state(man_softstate, instance);
1119 " for instance = %d, dip = 0x%p!\n", instance,
1128 instance, manp->man_refcnt);
1139 ddi_soft_state_free(man_softstate, instance);
1155 * minor of 0 to instance 0.
1568 register man_t *manp; /* per instance data */
2140 * Set instance linkcheck timer value.
2393 man_t *manp; /* per instance data */
2604 man_t *manp; /* per instance data */
2617 * Attach us to MAN PPA (device instance).
3197 man_t *manp; /* per instance data */
4025 * Autoswitching is disabled for instance 0
4061 * driver instances need checking, for SC only instance 1 needs it.
6250 * Update man instance pathgroup info. Exclusive inner perimeter assures
6358 * Already assigned to some other man instance
7514 man_t *manp; /* per instance data */
7585 * Sum destination kstats for all active paths for a given instance of the
7599 * Sync mp_last_knp for each path associated with the MAN instance.
7623 * Sum device kstats for all active paths for a given instance of the
7661 int instance;
7666 instance = mp->mp_device.mdev_ppa;
7667 (void) sprintf(buf, "%s%d", ddi_major_to_name(major), instance);
7669 dev_ksp = kstat_hold_byname(ddi_major_to_name(major), instance, buf,
7682 buf, major, instance));