/titanic_41/usr/src/cmd/hal/hald/solaris/ |
H A D | sysevent.c | 163 char *phys_path; in sysevent_dev_handler() local 181 if (nvlist_lookup_string(attr_list, DEVFS_PATHNAME, &phys_path) != 0) { in sysevent_dev_handler() 186 class, subclass, phys_path); in sysevent_dev_handler() 195 &phys_path) != 0) { in sysevent_dev_handler() 200 &phys_path) != 0) { in sysevent_dev_handler() 203 } else if (nvlist_lookup_string(attr_list, DEV_PHYS_PATH, &phys_path) in sysevent_dev_handler() 235 class, subclass, phys_path, dev_name, dev_hid, dev_uid, dev_index); in sysevent_dev_handler() 255 gchar phys_path[1024]; in sysevent_iochannel_data() local 269 class[0] = subclass[0] = phys_path[0] = dev_name[0] = in sysevent_iochannel_data() 272 phys_path, dev_name, dev_hid, dev_uid, &dev_index); in sysevent_iochannel_data() [all …]
|
/titanic_41/usr/src/lib/cfgadm_plugins/scsi/SUNW,SPARC-Enterprise/common/ |
H A D | opl_dev_led.c | 58 char *phys_path; in opl_get_scf_logical_disk() local 61 phys_path = strdup(apidp->path); in opl_get_scf_logical_disk() 62 if (phys_path == NULL) { in opl_get_scf_logical_disk() 67 if ((strptr = strstr(phys_path, ":")) != NULL) { in opl_get_scf_logical_disk() 70 "%s", (char *)(phys_path)); in opl_get_scf_logical_disk() 72 free(phys_path); in opl_get_scf_logical_disk() 77 free(phys_path); in opl_get_scf_logical_disk() 81 free(phys_path); in opl_get_scf_logical_disk()
|
/titanic_41/usr/src/cmd/luxadm/ |
H A D | qlgcupdate.c | 154 char phys_path[PATH_MAX]; in q_qlgc_update() local 266 (void) strncpy((char *)phys_path, &pcibus_list[i][0], in q_qlgc_update() 269 strtok((char *)phys_path, ":")) != NULL)) { in q_qlgc_update() 1057 char phys_path[PATH_MAX], *path; in emulex_update() local 1191 (void) strcpy(phys_path, "/devices"); in emulex_update() 1192 (void) strncat(phys_path, path, strlen(path)); in emulex_update() 1196 (char *)phys_path) != NULL)) { in emulex_update() 1199 phys_path); in emulex_update() 1205 (void) strncat(phys_path, ":", 1); in emulex_update() 1206 (void) strncat(phys_path, in emulex_update() [all …]
|
H A D | fchba.c | 654 char *phys_path = in fchba_non_encl_probe() local 658 if (phys_path != NULL) { in fchba_non_encl_probe() 661 fprintf(stdout, "\n %s\n", phys_path); in fchba_non_encl_probe() 662 free(phys_path); in fchba_non_encl_probe() 1342 char *phys_path = get_slash_devices_from_osDevName( in scsi_vhci_details() local 1355 if (phys_path == NULL || strstr(phys_path, VHCI_COMPONENT) == NULL) { in scsi_vhci_details() 1378 free(phys_path); in scsi_vhci_details() 1390 free(phys_path); in scsi_vhci_details() 1397 retval = get_scsi_vhci_pathinfo(phys_path, &ioc, &pathcnt); in scsi_vhci_details() 1438 free(phys_path); in scsi_vhci_details() [all …]
|
H A D | lux_util.c | 1185 char *tmp, *phys_path; in get_slash_devices_from_osDevName() local 1248 phys_path = (char *)calloc(1, in get_slash_devices_from_osDevName() 1250 if (phys_path != NULL) { in get_slash_devices_from_osDevName() 1251 (void) strncpy(phys_path, in get_slash_devices_from_osDevName() 1254 return (phys_path); in get_slash_devices_from_osDevName() 1307 phys_path = (char *)calloc(1, strlen(source) + 1); in get_slash_devices_from_osDevName() 1308 if (phys_path != NULL) { in get_slash_devices_from_osDevName() 1309 (void) strncpy(phys_path, source, in get_slash_devices_from_osDevName() 1312 return (phys_path); in get_slash_devices_from_osDevName()
|
H A D | g_adm.c | 121 static int get_enclStatus(char *phys_path, char *encl_name, int off_flag); 1974 get_enclStatus(char *phys_path, char *encl_name, int off_flag) in get_enclStatus() argument 1980 if ((err = l_get_status(phys_path, in get_enclStatus() 4099 char phys_path[MAXPATHLEN]; in non_encl_fc_disk_display() local 4113 (void) strcpy(phys_path, path_struct->p_physical_path); in non_encl_fc_disk_display() 4123 (void) strcpy(last_logical_path, phys_path); in non_encl_fc_disk_display() 4149 (void) strcpy(phys_path, wwn_list_ptr->physical_path); in non_encl_fc_disk_display() 4162 (void) strcpy(phys_path, wwn_list_ptr->physical_path); in non_encl_fc_disk_display() 4172 if ((err = g_get_multipath(phys_path, in non_encl_fc_disk_display() 4187 if (l_get_mode_pg(phys_path, &pg_buf, verbose) == 0) { in non_encl_fc_disk_display() [all …]
|
/titanic_41/usr/src/cmd/hal/addons/storage/ |
H A D | addon-storage.c | 89 char *phys_path, *path; in sysevent_dev_handler() local 107 if (nvlist_lookup_string (attr_list, DEV_PHYS_PATH, &phys_path) != 0) { in sysevent_dev_handler() 112 if (strncmp (phys_path, "/devices", sizeof ("/devices") - 1) == 0) in sysevent_dev_handler() 113 path = phys_path + sizeof ("/devices") - 1; in sysevent_dev_handler() 115 path = phys_path; in sysevent_dev_handler() 123 HAL_DEBUG (("sysevent_dev_handler %s %s", subclass, phys_path)); in sysevent_dev_handler()
|
/titanic_41/usr/src/cmd/devfsadm/ |
H A D | disk_link.c | 729 char phys_path[PATH_MAX]; in reserved_links_exist() local 754 (void) strlcpy(phys_path, minor_path, sizeof (phys_path)); in reserved_links_exist() 759 (void) di_devlink_cache_walk(dvlink_cache, DISK_LINK_RE, phys_path, in reserved_links_exist() 770 s = strrchr(phys_path, ':'); in reserved_links_exist() 773 modname, phys_path); in reserved_links_exist() 776 (void) snprintf(s+1, sizeof (phys_path) - (s + 1 - phys_path), in reserved_links_exist() 780 phys_path, DI_PRIMARY_LINK, &head, dvlink_cb); in reserved_links_exist() 785 modname, phys_path); in reserved_links_exist()
|
H A D | port_link.c | 370 portcmp(char *devfs_path, char *phys_path) in portcmp() argument 385 p2 = strrchr(phys_path, ':'); in portcmp() 395 rv = strcmp(devfs_path, phys_path); in portcmp() 416 check_compat_ports(di_node_t node, char *phys_path, char *minor) in check_compat_ports() argument 427 portcmp(devfs_path, phys_path) != 0) { in check_compat_ports() 436 portcmp(devfs_path, phys_path) != 0) { in check_compat_ports()
|
H A D | devfsadm.h | 227 char **devfsadm_lookup_dev_names(char *phys_path, char *re, int *lenp);
|
H A D | devfsadm.c | 7034 devfsadm_lookup_dev_names(char *phys_path, char *re, int *lenp) in devfsadm_lookup_dev_names() argument 7043 (void) di_devlink_cache_walk(devlink_cache, re, phys_path, in devfsadm_lookup_dev_names() 8002 lookup_dev_name(char *phys_path, char **dev_name) in lookup_dev_name() argument 8010 (void) di_devlink_cache_walk(devlink_cache, NULL, phys_path, in lookup_dev_name() 8134 char phys_path[MAXPATHLEN]; in lookup_network_dev_name() local 8141 (void) snprintf(phys_path, sizeof (phys_path), in lookup_network_dev_name() 8143 if (lookup_dev_name(phys_path, &dev_name) == -1 || in lookup_network_dev_name()
|
/titanic_41/usr/src/lib/libwanboot/common/ |
H A D | bootinfo_aux.c | 303 char *phys_path = di_devfs_path(node); in p2n_cb() local 305 if (strcmp(cbp->cb_path, phys_path) == 0) { in p2n_cb() 309 di_devfs_path_free(phys_path); in p2n_cb()
|
/titanic_41/usr/src/lib/storage/libg_fc/common/ |
H A D | hot.c | 109 char *phys_path; in g_dev_stop() local 126 if ((phys_path = g_get_physical_name(drv_path)) in g_dev_stop() 130 if ((err = g_get_multipath(phys_path, &ml, in g_dev_stop()
|
H A D | map.c | 256 insert_missing_pwwn(char *phys_path, struct wwn_list_struct **wwn_list_ptr) in insert_missing_pwwn() argument 268 if (g_get_pathlist(phys_path, &pathlist)) { in insert_missing_pwwn() 302 if (strncmp(phys_path, in insert_missing_pwwn() 304 strlen(phys_path)) == 0) { in insert_missing_pwwn() 386 get_scsi_vhci_port_wwn(char *phys_path, uchar_t *port_wwn) in get_scsi_vhci_port_wwn() argument 392 if (g_get_pathlist(phys_path, &pathlist)) { in get_scsi_vhci_port_wwn()
|
/titanic_41/usr/src/lib/libdevinfo/ |
H A D | devinfo.c | 88 di_init(const char *phys_path, uint_t flag) in di_init() argument 90 return (di_init_impl(phys_path, flag, NULL)); in di_init() 149 di_init_impl(const char *phys_path, uint_t flag, in di_init_impl() argument 166 if (strchr(phys_path, ':') || in di_init_impl() 167 (strncmp(phys_path, "/devices", 8) == 0) || in di_init_impl() 168 (strlen(phys_path) > MAXPATHLEN)) { in di_init_impl() 173 if (strlen(phys_path) == 0) in di_init_impl() 175 else if (*phys_path != '/') in di_init_impl() 177 "/%s", phys_path); in di_init_impl() 180 "%s", phys_path); in di_init_impl() [all …]
|
H A D | libdevinfo.h | 154 extern di_node_t di_init(const char *phys_path, uint_t flag); 401 extern di_node_t di_init_impl(const char *phys_path, uint_t flag,
|
/titanic_41/usr/src/cmd/boot/scripts/ |
H A D | update_grub.ksh | 81 fstyp -a "$dev" | grep 'path: ' | grep -v phys_path: |
|
/titanic_41/usr/src/lib/storage/liba5k/common/ |
H A D | mon.c | 1800 load_flds_if_enc_disk(char *phys_path, struct path_struct **path_struct) in load_flds_if_enc_disk() argument 1809 (phys_path == NULL) || (*phys_path == NULL)) { in load_flds_if_enc_disk() 1813 if ((strstr(phys_path, SLSH_DRV_NAME_SSD) == NULL) || in load_flds_if_enc_disk() 1814 (g_get_path_type(phys_path) == 0)) { in load_flds_if_enc_disk() 1833 if ((err = g_get_dev_map(phys_path, &map, verbose)) != 0) { in load_flds_if_enc_disk() 1837 if ((err = l_get_ses_path(phys_path, ses_path, &map, verbose)) != 0) { in load_flds_if_enc_disk() 1928 l_convert_name(char *name, char **phys_path, in l_convert_name() argument 1945 if ((name == NULL) || (phys_path == NULL) || in l_convert_name() 1959 *phys_path = NULL; in l_convert_name() 1989 *phys_path = result; in l_convert_name() [all …]
|
/titanic_41/usr/src/cmd/picl/plugins/sun4u/blade/fruaccess/ |
H A D | fru_access.c | 1007 char *phys_path; in call_devfsadm() local 1018 phys_path = di_devfs_path(f_node); in call_devfsadm() 1019 if ((prom_node = di_init(phys_path, DINFOMINOR)) in call_devfsadm()
|
/titanic_41/usr/src/cmd/picl/plugins/sun4u/lib/fruaccess/ |
H A D | fru_access.c | 1078 char *phys_path; in call_devfsadm() local 1089 phys_path = di_devfs_path(f_node); in call_devfsadm() 1090 if ((prom_node = di_init(phys_path, DINFOMINOR)) != in call_devfsadm()
|
/titanic_41/usr/src/uts/common/sys/ |
H A D | mdi_impldefs.h | 1083 char *phys_path; member
|
/titanic_41/usr/src/uts/common/os/ |
H A D | sunmdi.c | 8636 pp->phys_path = kmem_alloc(len, KM_SLEEP); in build_phclient_path_list() 8637 (void) snprintf(pp->phys_path, len, "%s/%s@%s", in build_phclient_path_list() 8663 kmem_free(pp->phys_path, strlen(pp->phys_path) + 1); in free_phclient_path_list() 8791 (void) bus_config_one_phci_child(pp->phys_path); in config_client_paths_sync() 8959 if (bus_config_one_phci_child(pp->phys_path) == MDI_SUCCESS) { in config_client_paths()
|