Lines Matching refs:instance

38  * during attach, and is instance number 0. lofiadm communicates with lofi
41 * are identified by lofi instance number, and the instance number is also used
49 * To support virtual disks, the instance number space is divided to two
50 * parts, upper part for instance number and lower part for minor number
83 * unmap and remove the lofi instance.
87 * last lofi_close will perform the unmapping and this lofi instance will be
95 * will perform unmap and this lofi instance will be removed.
98 * Once ls_cleanup is set for the instance, we do not allow lofi_open()
99 * calls to succeed and can have last lofi_close() to remove the instance.
366 int instance;
369 instance = ddi_get_instance(dip);
370 if (instance == 0) /* control node does not have disk */
373 lsp = ddi_get_soft_state(lofi_statep, instance);
444 int instance;
448 instance = ddi_get_instance(dip);
449 if (instance == 0) /* control device has no storage */
452 lsp = ddi_get_soft_state(lofi_statep, instance);
460 * When mapping is created, new lofi instance is created and
1788 int instance;
1790 instance = LOFI_MINOR2ID(getminor(dev));
1793 lsp = ddi_get_soft_state(lofi_statep, instance);
1799 *result = (void *) (intptr_t)instance;
1809 int instance = ddi_get_instance(lsp->ls_dip);
1825 S_IFBLK, LOFI_ID2MINOR(instance), DDI_PSEUDO, 0);
1828 LOFI_CHAR_NODE, S_IFCHR, LOFI_ID2MINOR(instance),
1877 int instance = ddi_get_instance(dip);
1885 error = ddi_soft_state_zalloc(lofi_statep, instance);
1890 lsp = ddi_get_soft_state(lofi_statep, instance);
1914 lsp->ls_kstat = kstat_create_zone(LOFI_DRIVER_NAME, instance,
1941 ddi_soft_state_free(lofi_statep, instance);
1949 int instance = ddi_get_instance(dip);
1956 * Instance 0 is control instance, attaching control instance
1959 if (instance == 0) {
1964 lsp = ddi_get_soft_state(lofi_statep, instance);
1995 int instance = ddi_get_instance(dip);
2001 * If the instance is not 0, release state.
2002 * The instance 0 is control device, we can not detach it
2005 if (instance != 0) {
2006 lsp = ddi_get_soft_state(lofi_statep, instance);
2008 ddi_soft_state_free(lofi_statep, instance);
2682 "instance", klip->li_id)) != DDI_PROP_SUCCESS)