Lines Matching defs:instance

1270 static void sd_create_errstats(struct sd_lun *un, int instance);
2321 * chain to be used with the instance. This allows different instances to use
2549 * Output may also be restricted to messages for a single instance by
2716 * DDI_PROBE_PARTIAL: If the instance is not present now,
2726 int instance = ddi_get_instance(devi);
2745 if (ddi_get_soft_state(sd_state, instance) != NULL) {
2818 * the scsi_device structure or the instance number
2836 int instance;
2842 instance = SDUNIT(dev);
2843 if ((un = ddi_get_soft_state(sd_state, instance)) == NULL) {
2851 instance = SDUNIT(dev);
2852 *result = (void *)(uintptr_t)instance;
3024 /* Find the cache for this scsi bus instance */
6549 /* Abort if the instance is detaching */
6623 int instance;
6638 instance = ddi_get_instance(devi);
6640 if (((un = ddi_get_soft_state(sd_state, instance)) == NULL) ||
7158 * Arguments: un: softstate structure for the instance
7205 int instance;
7251 * on a target. Setting it per lun instance actually sets the
7268 * (via scsi_unprobe()) until the instance is detached.
7299 instance = ddi_get_instance(devp->sd_dev);
7301 if (ddi_soft_state_zalloc(sd_state, instance) != DDI_SUCCESS) {
7314 if ((un = ddi_get_soft_state(sd_state, instance)) == NULL) {
7315 panic("sd_unit_attach: NULL soft state on instance:0x%x",
7316 instance);
7336 "%s_unit_attach: un:0x%p instance:%d\n",
7337 ddi_driver_name(devi), un, instance);
7623 * instance.
7693 * Set up the per-instance info needed to determine the correct
7737 un->un_stats = kstat_create(sd_label, instance,
7746 sd_create_errstats(un, instance);
8172 * per instance variable is preferable to match the capabilities of
8382 * After successfully attaching an instance, we record the information
8536 * ddi_soft_state_free(sd_state, instance) is the right way to
8542 ddi_soft_state_free(sd_state, instance);
8573 int instance = ddi_get_instance(devi);
8580 * - Unable to get the sd_lun struct for the instance
8581 * - A layered driver has an outstanding open on the instance
8582 * - Another thread is already detaching this instance
8597 * Mark this instance as currently in a detach, to inhibit any
8850 * Setting this per lun instance actually sets the capability of this
9004 ddi_soft_state_free(sd_state, instance);
9013 * After successfully detaching an instance, we update the information
9056 * instance - driver instance
9062 sd_create_errstats(struct sd_lun *un, int instance)
9078 "%s%d,err", sd_label, instance);
9080 un->un_errstats = kstat_create(kstatmodule_err, instance, kstatname,
9237 int instance;
9244 instance = ddi_get_instance(SD_DEVINFO(un));
9258 "%s%d,%s", sd_label, instance,
9262 instance, kstatname, "partition", KSTAT_TYPE_IO,
10114 int instance;
10126 instance = SDUNIT(dev);
10130 * Fail the open if there is no softstate for the instance, or
10131 * if another thread somewhere is trying to detach the instance.
10133 if (((un = ddi_get_soft_state(sd_state, instance)) == NULL) ||
10152 * trying to detach the instance, which can happen when we are
10155 * interface that allows specfs to know that an instance is in
10870 int instance;
10872 instance = SDUNIT(bp->b_edev);
10874 un = ddi_get_soft_state(sd_state, instance);
14629 * instance. If sorting is enabled, then the buf is added
15419 * this should not occur whenever the instance is in the active
16325 * Description: Indicate that the request sense bp for this instance is
16528 * mark this instance as ARQ enabled.
16546 * Just mark ARQ as enabled for this instance.
16555 * instance.
16571 * Description: Cleanup for the pre-instance RQS command.
16774 * soft state instance.
16993 /* Next see if this is the REQUEST SENSE pkt for the instance */
23524 * Override the physical blocksize if the instance already
25760 int instance;
25780 instance = SDUNIT(dev);
25781 if (((un = ddi_get_soft_state(sd_state, instance)) == NULL) ||
29775 * Arguments: un - pointer to the soft state struct for the instance.
30029 * and a human readable identifier indicating the SD instance
30032 * Arguments: un - pointer to the soft state struct for the instance.