/illumos-gate/usr/src/cmd/boot/installboot/sparc/ |
H A D | installboot.c | 601 char *device_path = NULL; in handle_install() local 605 device_path = strdup(argv[1]); in handle_install() 607 if (!device_path || !bootblock) { in handle_install() 613 BOOT_DEBUG("device path: %s, bootblock file path: %s\n", device_path, in handle_install() 617 if (init_device(&install_data.device, device_path) != BC_SUCCESS) { in handle_install() 619 device_path); in handle_install() 644 device_path); in handle_install() 656 free(device_path); in handle_install() 679 char *device_path; in handle_getinfo() local 683 device_path = strdup(argv[0]); in handle_getinfo() [all …]
|
/illumos-gate/usr/src/cmd/mdb/common/modules/mr_sas/ |
H A D | mr_sas.c | 69 char device_path[PATH_MAX]; in display_targets() local 72 *device_path = 0; in display_targets() 73 if (construct_path((uintptr_t)m->dip, device_path) != DCMD_OK) { in display_targets() 74 strcpy(device_path, "couldn't determine device path"); in display_targets() 80 mdb_printf("%s\n", device_path); in display_targets()
|
/illumos-gate/usr/src/lib/sun_sas/common/ |
H A D | devtree_hba_disco.c | 167 (void) strlcpy(port_ptr->device_path, portDevpath, MAXPATHLEN + 1); in add_hba_port_info() 395 if ((strncmp(hba_ptr->device_path, hbaDevpath, in devtree_get_one_hba() 416 (void) strlcpy(new_hba->device_path, hbaDevpath, in devtree_get_one_hba() 417 sizeof (new_hba->device_path)); in devtree_get_one_hba() 422 "%s%s", DEVICES_DIR, new_hba->device_path); in devtree_get_one_hba() 461 "firmware-version", new_hba->device_path); in devtree_get_one_hba() 473 "hardware-version", new_hba->device_path); in devtree_get_one_hba() 485 "driver-version", new_hba->device_path); in devtree_get_one_hba() 513 new_hba->device_path); in devtree_get_one_hba() 527 new_hba->device_path); in devtree_get_one_hba()
|
H A D | Sun_sasGetPortType.c | 64 if (hba_ptr->device_path[0] != '\0') { in Sun_sasGetPortType() 67 "data.", hba_ptr->device_path); in Sun_sasGetPortType()
|
H A D | Sun_sasGetAdapterPortAttributes.c | 73 if (hba_ptr->device_path[0] != '\0') { in Sun_sasGetAdapterPortAttributes() 75 "%s contains no port data", hba_ptr->device_path); in Sun_sasGetAdapterPortAttributes()
|
H A D | Sun_sasRefreshAdapterConfiguration.c | 120 wa.devpath = hba_ptr->device_path; in Sun_sasRefreshAdapterConfiguration() 140 hba_ptr->device_path); in Sun_sasRefreshAdapterConfiguration()
|
H A D | Sun_sasGetDiscoveredPortAttributes.c | 78 if (hba_ptr->device_path[0] != '\0') { in Sun_sasGetDiscoveredPortAttributes() 80 " contains no port data", hba_ptr->device_path); in Sun_sasGetDiscoveredPortAttributes()
|
H A D | Sun_sasGetPortAttributesByWWN.c | 77 if (hba_ptr->device_path[0] != '\0') { in Sun_sasGetPortAttributesByWWN() 80 "no port data", hba_ptr->device_path); in Sun_sasGetPortAttributesByWWN()
|
H A D | verify.c | 49 (void) strlcpy(path, hba_ptr->device_path, sizeof (path)); in verifyAdapter()
|
H A D | sun_sas.c | 349 if (hba_ptr->device_path[0] != '\0') { in getFirstAdapterPortWWN() 352 "port data", hba_ptr->device_path); in getFirstAdapterPortWWN()
|
H A D | sun_sas.h | 129 char device_path[MAXPATHLEN]; member 158 char device_path[MAXPATHLEN]; member
|
/illumos-gate/usr/src/cmd/ibd_upgrade/ |
H A D | ibd_upgrade.sh | 44 hca_path="/dev/`dirname $device_path`" 45 bname=`basename $device_path` 126 | while read x1 x2 x3 x4 x5 x6 x7 x8 x9 x10 device_path
|
/illumos-gate/usr/src/uts/sun4u/sunfire/io/ |
H A D | sysctrl_quiesce.c | 219 static char device_path[MAXPATHLEN]; variable 245 (void) ddi_pathname(dip, device_path); in sysctrl_suspend_devices() 246 DEBUGP(errp(" suspending device %s\n", device_path)); in sysctrl_suspend_devices() 249 device_path)); in sysctrl_suspend_devices() 251 (void) strncpy(pkt->errbuf, device_path, in sysctrl_suspend_devices() 288 (void) ddi_pathname(dip, device_path); in sysctrl_resume_devices() 289 DEBUGP(errp(" resuming device %s\n", device_path)); in sysctrl_resume_devices() 298 device_path); in sysctrl_resume_devices()
|
/illumos-gate/usr/src/cmd/mdb/common/modules/genunix/ |
H A D | ndievents.c | 113 char device_path[MAXPATHLEN]; in ndi_callback_print() local 137 if (dip_to_pathname(&devi, device_path, sizeof (device_path)) in ndi_callback_print() 142 mdb_printf("\t\tCallback Registered By: %s\n", device_path); in ndi_callback_print()
|
/illumos-gate/usr/src/cmd/boot/installgrub/ |
H A D | installgrub.c | 284 char *device_path = NULL; in handle_install() local 289 device_path = strdup(argv[2]); in handle_install() 293 if (!stage1_path || !stage2_path || !device_path) { in handle_install() 300 stage1_path, stage2_path, device_path); in handle_install() 302 if (init_device(&install_data.device, device_path) != BC_SUCCESS) { in handle_install() 304 "information for %s\n"), device_path); in handle_install() 334 device_path); in handle_install() 353 free(device_path); in handle_install() 375 char *device_path; in handle_getinfo() local 379 device_path = strdup(argv[0]); in handle_getinfo() [all …]
|
/illumos-gate/usr/src/boot/i386/common/ |
H A D | edd.h | 72 uint64_t device_path[2]; member 79 struct edd_device_path_v3 device_path; member
|
/illumos-gate/usr/src/lib/libprtdiag_psr/sparc/ontario/common/ |
H A D | huron.c | 295 char device_path[MAXSTRLEN]; in huron_hw_rev_callback() local 357 (void) strcpy(device_path, path); in huron_hw_rev_callback() 363 if (strlen(device_path) > 45) in huron_hw_rev_callback() 364 log_printf("%45.44s+", device_path); in huron_hw_rev_callback() 366 log_printf("%46s", device_path); in huron_hw_rev_callback()
|
H A D | pelton.c | 293 char device_path[MAXSTRLEN]; in pelton_hw_rev_callback() local 367 (void) strcpy(device_path, path); in pelton_hw_rev_callback() 373 if (strlen(device_path) > 38) in pelton_hw_rev_callback() 374 log_printf("%38.37s+", device_path); in pelton_hw_rev_callback() 376 log_printf("%39s", device_path); in pelton_hw_rev_callback()
|
H A D | stpaul.c | 250 char device_path[MAXSTRLEN]; in stpaul_hw_rev_callback() local 342 (void) strlcpy(device_path, path, sizeof (device_path)); in stpaul_hw_rev_callback() 348 if (strlen(device_path) > 38) in stpaul_hw_rev_callback() 349 log_printf("%38.37s+", device_path); in stpaul_hw_rev_callback() 351 log_printf("%39s", device_path); in stpaul_hw_rev_callback()
|
H A D | ontario.c | 408 char device_path[MAXSTRLEN]; in ontario_hw_rev_callback() local 480 (void) strcpy(device_path, path); in ontario_hw_rev_callback() 486 if (strlen(device_path) > 38) in ontario_hw_rev_callback() 487 log_printf("%38.37s+", device_path); in ontario_hw_rev_callback() 489 log_printf("%39s", device_path); in ontario_hw_rev_callback()
|
/illumos-gate/usr/src/uts/sun4v/io/ |
H A D | vds.c | 453 char device_path[MAXPATHLEN + 1]; /* vdisk device */ member 4087 ", rebooting the system", vd->device_path); in vd_reset_access() 4090 panic(VD_RESET_ACCESS_FAILURE_MSG, vd->device_path); in vd_reset_access() 4093 cmn_err(CE_WARN, VD_RESET_ACCESS_FAILURE_MSG, vd->device_path); in vd_reset_access() 4466 PR0("Retry setting up disk (%s)", vd->device_path); in vd_process_attr_msg() 5510 PR0("'variant' property exists for %s", vd->device_path); in vd_is_atapi_device() 5518 PR0("'atapi' property exists for %s", vd->device_path); in vd_is_atapi_device() 5541 vd->device_path, status); in vd_setup_full_disk() 5665 char *device_path = vd->device_path; in vd_setup_partition_vtoc() local 5671 PRN("%s geometry claims 0 sectors per track", device_path); in vd_setup_partition_vtoc() [all …]
|
/illumos-gate/usr/src/lib/libprtdiag_psr/sparc/montoya/common/ |
H A D | montoya.c | 343 char device_path[MAXSTRLEN]; in montoya_hw_rev_callback() local 408 (void) strcpy(device_path, path); in montoya_hw_rev_callback() 414 if (strlen(device_path) > 38) in montoya_hw_rev_callback() 415 log_printf("%38.37s+", device_path); in montoya_hw_rev_callback() 417 log_printf("%39s", device_path); in montoya_hw_rev_callback()
|
/illumos-gate/usr/src/lib/libprtdiag_psr/sparc/monza/common/ |
H A D | monza.c | 380 char device_path[MAXSTRLEN]; in monza_hw_rev_callback() local 455 (void) strcpy(device_path, path); in monza_hw_rev_callback() 461 if (strlen(device_path) > 38) in monza_hw_rev_callback() 462 log_printf("%38.37s+", device_path); in monza_hw_rev_callback() 464 log_printf("%39s", device_path); in monza_hw_rev_callback()
|
/illumos-gate/usr/src/cmd/mdb/common/modules/mpt_sas/ |
H A D | mpt_sas.c | 661 char device_path[PATH_MAX]; in display_deviceinfo() local 663 *device_path = 0; in display_deviceinfo() 664 if (construct_path((uintptr_t)mp->m_dip, device_path) != DCMD_OK) { in display_deviceinfo() 665 strcpy(device_path, "couldn't determine device path"); in display_deviceinfo() 765 mdb_printf("%s\n", device_path); in display_deviceinfo()
|
/illumos-gate/usr/src/lib/libdevinfo/ |
H A D | devfsmap.c | 1977 devfs_walk_children_minors(const char *device_path, struct stat *st, in devfs_walk_children_minors() argument 1989 if ((dir = opendir(device_path)) == NULL) { in devfs_walk_children_minors() 2000 "%s/%s", device_path, dp->d_name); in devfs_walk_children_minors() 2038 devfs_walk_device_minors(const char *device_path, struct stat *st, in devfs_walk_device_minors() argument 2061 if (strlcpy(devpath, device_path, MAXPATHLEN) >= MAXPATHLEN) in devfs_walk_device_minors() 2122 devfs_walk_minor_nodes(const char *device_path, in devfs_walk_minor_nodes() argument 2129 rv = devfs_walk_device_minors(device_path, in devfs_walk_minor_nodes() 2132 rv = devfs_walk_children_minors(device_path, in devfs_walk_minor_nodes()
|