Home
last modified time | relevance | path

Searched refs:svl (Results 1 – 7 of 7) sorted by relevance

/titanic_41/usr/src/cmd/avs/sdbc/
H A Dsdbc_ioctl.c73 sv_list_t svl; in sv_list() local
81 bzero(&svl, sizeof (svl)); in sv_list()
84 svl.svl_names = &svn[0]; in sv_list()
85 svl.svl_error = spcs_s_ucreate(); in sv_list()
87 if (ioctl(fd, SVIOC_LIST, &svl) < 0) in sv_list()
90 svn_system = calloc(svl.svl_maxdevs, sizeof (*svn)); in sv_list()
95 svl.svl_count = svl.svl_maxdevs; in sv_list()
96 svl.svl_names = svn_system; in sv_list()
98 (void) ioctl(fd, SVIOC_LIST, &svl); in sv_list()
101 spcs_s_ufree(&svl.svl_error); in sv_list()
/titanic_41/usr/src/cmd/avs/sv/
H A Dsvboot.c145 sv_list_t svl; in sv_get_maxdevs() local
156 bzero(&svl, sizeof (svl)); in sv_get_maxdevs()
159 svl.svl_names = &svn[0]; in sv_get_maxdevs()
160 svl.svl_error = spcs_s_ucreate(); in sv_get_maxdevs()
162 if (ioctl(fd, SVIOC_LIST, &svl) < 0) in sv_get_maxdevs()
163 error(&svl.svl_error, gettext("unable to get max devs")); in sv_get_maxdevs()
165 spcs_s_ufree(&svl.svl_error); in sv_get_maxdevs()
166 sv_max_devices = svl.svl_maxdevs; in sv_get_maxdevs()
H A Dsvadm.c225 sv_list_t svl; in sv_get_maxdevs() local
236 bzero(&svl, sizeof (svl)); in sv_get_maxdevs()
239 svl.svl_names = &svn[0]; in sv_get_maxdevs()
240 svl.svl_error = spcs_s_ucreate(); in sv_get_maxdevs()
242 if (ioctl(fd, SVIOC_LIST, &svl) < 0) { in sv_get_maxdevs()
244 error(&svl.svl_error, gettext("unable to get max devs")); in sv_get_maxdevs()
247 spcs_s_ufree(&svl.svl_error); in sv_get_maxdevs()
248 sv_max_devices = svl.svl_maxdevs; in sv_get_maxdevs()
/titanic_41/usr/src/uts/common/io/scsi/adapters/scsi_vhci/
H A Dmpapi_impl.c1539 scsi_vhci_lun_t *svl; in vhci_set_tpg_access_state() local
1587 svl = ((mpapi_lu_data_t *)(lu_list->item->idata))->resp; in vhci_set_tpg_access_state()
1588 if (!SCSI_FAILOVER_IS_TPGS(svl->svl_fops)) { in vhci_set_tpg_access_state()
1590 VHCI_HOLD_LUN(svl, VH_SLEEP, held); in vhci_set_tpg_access_state()
1595 retval = mdi_failover(vhci->vhci_dip, svl->svl_dip, in vhci_set_tpg_access_state()
1600 VHCI_RELEASE_LUN(svl); in vhci_set_tpg_access_state()
1611 VHCI_RELEASE_LUN(svl); in vhci_set_tpg_access_state()
1617 retval = mdi_select_path(svl->svl_dip, NULL, in vhci_set_tpg_access_state()
1656 VHCI_HOLD_LUN(svl, VH_NOSLEEP, held); in vhci_set_tpg_access_state()
1660 vhci_update_pathstates((void *)svl); in vhci_set_tpg_access_state()
[all …]
H A Dscsi_vhci.c7296 struct scsi_vhci_lun *svl; in vhci_lun_lookup_alloc() local
7298 if (svl = vhci_lun_lookup(tgt_dip)) { in vhci_lun_lookup_alloc()
7299 return (svl); in vhci_lun_lookup_alloc()
7302 svl = kmem_zalloc(sizeof (*svl), KM_SLEEP); in vhci_lun_lookup_alloc()
7303 svl->svl_lun_wwn = kmem_zalloc(strlen(guid)+1, KM_SLEEP); in vhci_lun_lookup_alloc()
7304 (void) strcpy(svl->svl_lun_wwn, guid); in vhci_lun_lookup_alloc()
7305 mutex_init(&svl->svl_mutex, NULL, MUTEX_DRIVER, NULL); in vhci_lun_lookup_alloc()
7306 cv_init(&svl->svl_cv, NULL, CV_DRIVER, NULL); in vhci_lun_lookup_alloc()
7307 sema_init(&svl->svl_pgr_sema, 1, NULL, SEMA_DRIVER, NULL); in vhci_lun_lookup_alloc()
7308 svl->svl_waiting_for_activepath = 1; in vhci_lun_lookup_alloc()
[all …]
/titanic_41/usr/src/uts/common/sys/scsi/adapters/
H A Dscsi_vhci.h643 #define SCSI_FAILOVER_IS_ASYM(svl) \ argument
644 ((svl) ? ((svl)->svl_fo_support != SCSI_NO_FAILOVER) : 0)
/titanic_41/usr/src/uts/common/avs/ns/sv/
H A Dsv.c1736 sv_list_t svl; /* Initial structure for SVIOC_LIST */ in svioctl() local
1921 if (ddi_copyin((void *)arg, &svl, in svioctl()
1922 sizeof (svl), mode) < 0) { in svioctl()
1927 ustatus = svl.svl_error; in svioctl()
1928 size = svl.svl_count; in svioctl()
1929 usvn = svl.svl_names; in svioctl()
1977 svl.svl_timestamp = sv_config_time; in svioctl()
1978 svl.svl_maxdevs = sv_max_devices; in svioctl()
1981 if (ddi_copyout(&svl, (void *)arg, in svioctl()
1982 sizeof (svl), mode) < 0) { in svioctl()