Lines Matching defs:instance
132 static int arcmsr_do_ddi_attach(dev_info_t *dev_info, int instance);
357 int instance;
361 instance = ddi_get_instance(dev_info);
362 acb = ddi_get_soft_state(arcmsr_soft_state, instance);
392 arcmsr_warn(acb, "Unable to detach instance cleanly "
402 ddi_soft_state_free(arcmsr_soft_state, instance);
476 int instance = MINOR2INST(getminor(dev));
478 if (instance < 0)
484 acb = ddi_get_soft_state(arcmsr_soft_state, instance);
744 * Description: Called when initializing a target device instance. If
759 * By returning DDI_FAILURE, the instance of the target driver for that
2527 int i, id, lun, instance;
2529 instance = ddi_get_instance(acb->dev_info);
2706 arcmsr_warn(acb, "ddi_dma_mem_alloc failed", instance);
2761 arcmsr_warn(acb, "arcmsr_iop_confirm error", instance);
2780 arcmsr_do_ddi_attach(dev_info_t *dev_info, int instance)
2793 * The driver should allocate the per-device-instance
2797 if (ddi_soft_state_zalloc(arcmsr_soft_state, instance) != DDI_SUCCESS) {
2802 acb = ddi_get_soft_state(arcmsr_soft_state, instance);
2938 * The driver should attach this instance of the device, and
2990 ddi_soft_state_free(arcmsr_soft_state, instance);
3150 int i, instance, timeout_count = 0;
3172 instance = ddi_get_instance(acb->dev_info);
3199 instance, id, lun, *cdb, (void *)ccb);