/titanic_50/usr/src/lib/storage/liba5k/common/ |
H A D | lhot.c | 121 l_make_node(char *ses_path, int tid, char *dev_path, in l_make_node() argument 132 if ((ses_path == NULL) || (dev_path == NULL) || (map == NULL)) { in l_make_node() 145 *dev_path = '\0'; in l_make_node() 152 *dev_path = '\0'; in l_make_node() 173 (void) strcpy(dev_path, in l_make_node() 192 (void) strncpy(dev_path, ses_path, len); in l_make_node() 193 dev_path[len] = '\0'; in l_make_node() 194 (void) strcat(dev_path, ssd); in l_make_node() 221 *dev_path = '\0'; in l_make_node() 227 *dev_path = '\0'; in l_make_node() [all …]
|
H A D | mon.c | 803 char ses_path[MAXPATHLEN], dev_path[MAXPATHLEN]; in l_dev_pwr_up_down() local 863 (void) strcpy(dev_path, path_struct->p_physical_path); in l_dev_pwr_up_down() 934 dl->dev_path = dev_path; in l_dev_pwr_up_down() 935 if ((err = g_get_multipath(dev_path, in l_dev_pwr_up_down() 944 if ((devhdl = devctl_device_acquire(dl1->dev_path, in l_dev_pwr_up_down() 949 strerror(errno), dl1->dev_path); in l_dev_pwr_up_down() 998 char dev_path[MAXPATHLEN]; in l_pho_pwr_up_down() local 1056 (void) memset(dev_path, 0, MAXPATHLEN); in l_pho_pwr_up_down() 1057 (void) strcpy(dev_path, in l_pho_pwr_up_down() 1066 dl->dev_path = dev_path; in l_pho_pwr_up_down() [all …]
|
/titanic_50/usr/src/lib/libpcp/common/ |
H A D | pcp_utils.c | 77 get_vldc_svc_name(char *dev_path, char *service, char **match) in get_vldc_svc_name() argument 80 char *pathname = strdup(dev_path); in get_vldc_svc_name() 131 get_glvc_svc_name(char *dev_path, char *service, char **match) in get_glvc_svc_name() argument 134 char *pathname = strdup(dev_path); in get_glvc_svc_name() 228 char *dev_path = NULL; in svc_name_to_glvc_dev_path() local 236 return (dev_path); in svc_name_to_glvc_dev_path() 252 dev_path = malloc(strlen(glvc_path) + in svc_name_to_glvc_dev_path() 254 (void) strcpy(dev_path, DEVICES_DIR); in svc_name_to_glvc_dev_path() 255 (void) strcat(dev_path, glvc_path); in svc_name_to_glvc_dev_path() 264 if (dev_path != NULL) in svc_name_to_glvc_dev_path() [all …]
|
H A D | libpcp.c | 192 char *dev_path; in pcp_init() local 201 dev_path = platsvc_name_to_path(channel_name, &xport_type); in pcp_init() 206 if (NULL == dev_path) in pcp_init() 212 if ((channel_fd = open(dev_path, O_RDWR|O_EXCL)) < 0) { in pcp_init() 213 free(dev_path); in pcp_init() 217 free(dev_path); in pcp_init()
|
/titanic_50/usr/src/lib/storage/libg_fc/common/ |
H A D | hot.c | 356 if ((devhdl = devctl_device_acquire(dl->dev_path, in g_offline_drive() 361 strerror(errno), dl->dev_path); in g_offline_drive() 396 if ((devhdl = devctl_device_acquire(dl->dev_path, in g_online_drive() 460 if (strstr(dl->dev_path, SCSI_VHCI) == NULL) { in g_forcelip_all() 463 p = strstr(dl->dev_path, SLASH_SES); in g_forcelip_all() 465 p = strstr(dl->dev_path, SLSH_DRV_NAME_SSD); in g_forcelip_all() 467 p = strstr(dl->dev_path, in g_forcelip_all() 475 "invalid.\n Path: %s\n", dl->dev_path); in g_forcelip_all() 479 len = strlen(dl->dev_path) - strlen(p); in g_forcelip_all() 482 len = strlen(dl->dev_path); in g_forcelip_all() [all …]
|
H A D | mpath.c | 90 g_get_lun_str(char *dev_path, char lunstr[], int path_num) in g_get_lun_str() argument 103 if (strstr(dev_path, "/devices") == NULL) { in g_get_lun_str() 108 (void) strcpy(client_path, dev_path + DEV_PREFIX_LEN-1); in g_get_lun_str() 231 get_pathlist(char *dev_path, sv_iocdata_t *ioc, int *num_paths_to_copy) in get_pathlist() argument 244 if (strncmp(dev_path, SCSI_VHCI, in get_pathlist() 246 if ((physical_path = g_get_physical_name(dev_path)) == NULL) { in get_pathlist() 258 (void) strcpy(physical_path, dev_path); in get_pathlist() 397 g_get_pathlist(char *dev_path, struct mp_pathlist *pathlist_p) in g_get_pathlist() argument 416 if ((caller_ret = get_pathlist(dev_path, &ioc, &num_paths_to_copy)) in g_get_pathlist() 503 g_get_pathcount(char *dev_path) in g_get_pathcount() argument [all …]
|
/titanic_50/usr/src/uts/sparc/os/ |
H A D | bootdev.c | 214 char *dev_path, *prom_path; in i_devname_to_promname() local 232 dev_path = kmem_zalloc(MAXPATHLEN, KM_SLEEP); in i_devname_to_promname() 233 if (resolve_devfs_name(dev_name, dev_path) != 0 || in i_devname_to_promname() 234 strncmp(dev_path, "/devices/", 9) != 0) { in i_devname_to_promname() 235 kmem_free(dev_path, MAXPATHLEN); in i_devname_to_promname() 238 dev_name = dev_path + sizeof ("/devices") - 1; in i_devname_to_promname() 245 kmem_free(dev_path, MAXPATHLEN); in i_devname_to_promname() 257 kmem_free(dev_path, MAXPATHLEN); in i_devname_to_promname() 382 kmem_free(dev_path, MAXPATHLEN); in i_devname_to_promname()
|
/titanic_50/usr/src/cmd/luxadm/ |
H A D | hotplug.c | 487 char ses_path[MAXPATHLEN], dev_path[MAXPATHLEN]; in hotplug() local 690 *dev_path = NULL; in hotplug() 714 (void) strcpy(dev_path, path_phys); in hotplug() 715 if ((err = g_get_wwn(dev_path, port_wwn, in hotplug() 769 *dev_path = '\0'; in hotplug() 825 l_make_node(ses_path, tid, dev_path, &map, 0); in hotplug() 880 if ((err = g_get_multipath(dev_path, in hotplug() 1472 char *dev_path, device_name[MAXNAMELEN]; in h_pre_remove_dev() local 1476 dev_path = NULL; in h_pre_remove_dev() 1479 dev_path = hotplug_disk->dlhead->dev_path; in h_pre_remove_dev() [all …]
|
H A D | diag.c | 115 ml->dev_path) == 0) { in print_ssd_in_box() 148 ml->dev_path) == 0) { in print_ssd_in_box()
|
H A D | g_adm.c | 4222 (void) strcpy(phys_path, mlist->dev_path); in non_encl_fc_disk_display() 4233 if ((err = g_get_wwn(mlist->dev_path, port_wwn, node_wwn, in non_encl_fc_disk_display() 4235 (void) print_errString(err, mlist->dev_path); in non_encl_fc_disk_display() 4271 if ((strstr(mlist->dev_path, SCSI_VHCI) != NULL) && in non_encl_fc_disk_display() 4275 (void) strcpy(temppath, mlist->dev_path); in non_encl_fc_disk_display() 4520 if (strstr(mlist->dev_path, SCSI_VHCI) != NULL) { in display_disk_info() 4522 mlist->logical_path, mlist->dev_path); in display_disk_info() 4523 (void) adm_print_pathlist(mlist->dev_path); in display_disk_info() 4527 mlist->logical_path, mlist->dev_path); in display_disk_info() 5748 adm_print_pathlist(char *dev_path) in adm_print_pathlist() argument [all …]
|
/titanic_50/usr/src/lib/libdevinfo/ |
H A D | devfsinfo.c | 129 static int process_minor_name(char *dev_path, const char *default_root); 141 static int devfs_prom_to_dev_name(char *prom_path, char *dev_path); 142 static int devfs_dev_to_prom_names(char *dev_path, char *prom_path, size_t len); 984 process_minor_name(char *dev_path, const char *root) in process_minor_name() argument 996 (void) snprintf(path, sizeof (path), "%s%s%s", root, DEVICES, dev_path); in process_minor_name() 1012 if ((cp = strrchr(dev_path, '/')) != NULL) { in process_minor_name() 1014 (void) strcat(dev_path, ":"); in process_minor_name() 1015 (void) strcat(dev_path, default_minor_name); in process_minor_name() 1017 (void) strcat(dev_path, default_minor_name); in process_minor_name() 1023 case 0: (void) strcat(dev_path, "q"); in process_minor_name() [all …]
|
/titanic_50/usr/src/uts/common/os/ |
H A D | dacf_clnt.c | 74 char *dev_path, *dev_pathp, *drv_mname = NULL; in dacfc_match_create_minor() local 94 dev_path = kmem_alloc(MAXPATHLEN, KM_SLEEP); in dacfc_match_create_minor() 95 dev_pathp = ddi_pathname(dip, dev_path); in dacfc_match_create_minor() 129 kmem_free(dev_path, MAXPATHLEN); in dacfc_match_create_minor() 201 kmem_free(dev_path, MAXPATHLEN); in dacfc_match_create_minor()
|
/titanic_50/usr/src/lib/fm/topo/modules/sun4v/sun4vpi/ |
H A D | pi_subr.c | 162 char *dev_path[MAX_DIPATH_DEPTH] = { NULL }; in pi_get_dipath() local 188 dev_path[j] = (char *)topo_mod_alloc(mod, len); in pi_get_dipath() 189 rv = snprintf(dev_path[j], len, "/@%s", bus_addr[i]); in pi_get_dipath() 200 path = strcpy(path, dev_path[0]); in pi_get_dipath() 203 path = strncat(path, dev_path[i], strlen(dev_path[i]) + 1); in pi_get_dipath() 210 if (dev_path[i] != NULL) { in pi_get_dipath() 211 topo_mod_strfree(mod, dev_path[i]); in pi_get_dipath() 598 char *dev_path[MAX_PATH_DEPTH] = { NULL }; in pi_get_path() local 648 dev_path[i] = (char *)topo_mod_alloc(mod, len); in pi_get_path() 649 result = snprintf(dev_path[i], len, "/pci@%s", dev_addr[i]); in pi_get_path() [all …]
|
/titanic_50/usr/src/cmd/picl/plugins/sun4v/mdesc/ |
H A D | disk_discovery.c | 52 char *cfgpath, *dev_path, *nac; in disk_discovery() local 83 &dev_path) != 0) { in disk_discovery() 99 (void *)dev_path, &proph); in disk_discovery() 110 cfgpath = device_format_disk_name(dev_path); in disk_discovery()
|
/titanic_50/usr/src/lib/udapl/udapl_tavor/tavor/ |
H A D | dapl_tavor_hca.c | 58 static DAT_RETURN dapli_process_tavor_node(char *dev_path, int *hca_idx, 174 dapli_process_tavor_node(char *dev_path, int *hca_idx, int try_blueflame) in dapli_process_tavor_node() argument 204 if (strcmp(dev_path, g_tavor_state[i].hca_path) == 0) { in dapli_process_tavor_node() 212 if (strlen("/devices") + strlen(dev_path) + strlen(":devctl") + 1 > in dapli_process_tavor_node() 216 dev_path); in dapli_process_tavor_node() 221 (void) dapl_os_strcat(path_buf, dev_path); in dapli_process_tavor_node() 223 (void) dapl_os_strcpy(g_tavor_state[idx].hca_path, dev_path); in dapli_process_tavor_node()
|
/titanic_50/usr/src/cmd/fm/modules/common/disk-monitor/ |
H A D | hotplug_mgr.c | 400 disk_split_device_path(const char *dev_path, char *device, int *target) in disk_split_device_path() argument 409 (void) strncpy(device, dev_path, MAXPATHLEN); in disk_split_device_path() 429 disk_match_by_device_path(diskmon_t *disklistp, const char *dev_path) in disk_match_by_device_path() argument 437 dm_assert(dev_path != NULL); in disk_match_by_device_path() 439 if (strncmp(dev_path, DEVICES_PREFIX, 8) == 0) in disk_match_by_device_path() 440 dev_path += 8; in disk_match_by_device_path() 443 disk_split_device_path(dev_path, (char *)&dev_device, &dev_target); in disk_match_by_device_path()
|
/titanic_50/usr/src/cmd/picl/plugins/sun4u/cherrystone/psvcpolicy/ |
H A D | psvcpolicy.c | 234 char dev_path[MAXPATHLEN]; in create_i2c_node() local 251 if (devctl_get_pathname(dev_hdl, dev_path, MAXPATHLEN) == NULL) in create_i2c_node() 256 dev_path); in create_i2c_node() 767 char dev_path[MAXPATHLEN]; in handle_ps_hotplug() local 824 snprintf(dev_path, sizeof (dev_path), in handle_ps_hotplug() 827 delete_i2c_node(dev_path); in handle_ps_hotplug() 829 snprintf(dev_path, sizeof (dev_path), in handle_ps_hotplug() 831 delete_i2c_node(dev_path); in handle_ps_hotplug() 1483 char *dev_path; in light_disk_ok2remove_leds() local 1504 dev_path = di_devfs_path(node); in light_disk_ok2remove_leds() [all …]
|
/titanic_50/usr/src/lib/cfgadm_plugins/usb/common/ |
H A D | cfga_usb.c | 739 char *dev_path = NULL; in set_configuration() local 767 dev_path = usb_get_devicepath(ap_id); in set_configuration() 768 if (dev_path == NULL) { in set_configuration() 777 serial_no : "", dev_path ? dev_path : "", driver ? driver : ""); in set_configuration() 783 if (strncmp(dev_path, "/devices/", 9) == 0) { in set_configuration() 784 tmp = dev_path + 8; in set_configuration() 786 tmp = dev_path; in set_configuration() 806 (void **)&dev_path, &size)) != CFGA_USB_OK) { in set_configuration() 812 if (dev_path) { in set_configuration() 813 free(dev_path); in set_configuration()
|
/titanic_50/usr/src/cmd/picl/plugins/sun4u/lw2plus/fcal_leds/ |
H A D | fcal_leds_thread.c | 379 char *dev_path = di_devfs_path(node); in walk_disks() local 381 if (dev_path == NULL) { in walk_disks() 385 if (memcmp(dev_path, ptr, len) != 0) { in walk_disks() 389 free(dev_path); in walk_disks() 392 free(dev_path); in walk_disks()
|
/titanic_50/usr/src/cmd/fm/modules/common/fabric-xlate/ |
H A D | fx_subr.c | 268 fab_hc2dev(fmd_hdl_t *hdl, const char *hc_path, char **dev_path) in fab_hc2dev() argument 279 *dev_path = fab_xpath_query(hdl, query); in fab_hc2dev() 283 return (*dev_path != NULL); in fab_hc2dev() 322 fab_hc2dev_nvl(fmd_hdl_t *hdl, nvlist_t *detector, char **dev_path) in fab_hc2dev_nvl() argument 330 (void) fab_hc2dev(hdl, hcl, dev_path); in fab_hc2dev_nvl() 334 return (*dev_path != NULL); in fab_hc2dev_nvl()
|
/titanic_50/usr/src/lib/cfgadm_plugins/scsi/common/ |
H A D | cfga_ctl.c | 721 char *dev_path, *dev_end; in quiesce_required() local 752 dev_path = apidp->path + strlen(DEVICES_DIR); in quiesce_required() 753 dev_end = strrchr(dev_path, ':'); in quiesce_required() 761 if (strcmp(child_path, dev_path) == 0) { in quiesce_required() 876 char *dev_path = NULL; in suspend_in_rcm() local 895 if ((dev_path = get_node_path(apidp->path)) == NULL) { in suspend_in_rcm() 901 if ((ret = get_hba_children(bus_path, dev_path, &suspend_list)) in suspend_in_rcm() 917 S_FREE(dev_path); in suspend_in_rcm()
|
/titanic_50/usr/src/cmd/mdb/common/modules/mpt_sas/ |
H A D | mpt_sas.c | 102 char dev_path[PATH_MAX]; in mdi_info_cb() local 122 *dev_path = NULL; in mdi_info_cb() 123 if (construct_path((uintptr_t)c.ct_dip, dev_path) != DCMD_OK) in mdi_info_cb() 124 strcpy(dev_path, "unknown"); in mdi_info_cb() 126 mdb_printf("LUN %d: %s\n", mdi_lun, dev_path); in mdi_info_cb()
|
/titanic_50/usr/src/cmd/hotplugd/ |
H A D | hotplugd_rcm.c | 62 char dev_path[MAXPATHLEN]; member 403 (void) snprintf(arg->dev_path, MAXPATHLEN, "/devices%s", arg->path); in resource_callback() 423 arg->rsrcs[arg->n_rsrcs] = strdup(arg->dev_path); in resource_callback()
|
/titanic_50/usr/src/uts/sun4u/io/pci/ |
H A D | pci_ecc.c | 664 char buf[FM_MAX_CLASS], dev_path[MAXPATHLEN], *ptr; in ecc_ereport_post() local 695 ddi_pathname(dip, dev_path); in ecc_ereport_post() 696 ptr = strrchr(dev_path, (int)','); in ecc_ereport_post() 701 fm_fmri_dev_set(detector, FM_DEV_SCHEME_VERSION, NULL, dev_path, in ecc_ereport_post()
|
/titanic_50/usr/src/lib/cfgadm_plugins/fp/common/ |
H A D | cfga_cs.c | 66 do_devctl_dev_create(apid_t *apidt, char *dev_path, int pathlen, in do_devctl_dev_create() argument 74 *dev_path = NULL; in do_devctl_dev_create() 124 devctl_get_pathname(dev_hdl, dev_path, pathlen); in do_devctl_dev_create() 681 char dev_path[MAXPATHLEN]; in dev_change_state() local 876 if ((ret = do_devctl_dev_create(apidt, dev_path, MAXPATHLEN, in dev_change_state() 993 (void) do_devctl_dev_create(apidt, dev_path, MAXPATHLEN, in dev_change_state() 1002 (void) do_devctl_dev_create(apidt, dev_path, MAXPATHLEN, in dev_change_state()
|