Lines Matching refs:path_phys
270 char *path_phys = NULL, *ptr; in adm_inquiry() local
276 if ((err = l_convert_name(argv[path_index], &path_phys, in adm_inquiry()
291 path_phys = NULL; in adm_inquiry()
292 if ((err = l_convert_name(inq_path, &path_phys, in adm_inquiry()
332 if (err = g_get_inquiry(path_phys, &inq)) { in adm_inquiry()
342 if (err = g_get_serial_number(path_phys, inq80.inq_serial, in adm_inquiry()
351 print_inq_data(argv[path_index], path_phys, inq, in adm_inquiry()
362 (void) strcpy(last_logical_path, path_phys); in adm_inquiry()
383 if (err = g_get_inquiry(path_phys, &inq)) { in adm_inquiry()
393 if (err = g_get_serial_number(path_phys, inq80.inq_serial, in adm_inquiry()
402 print_inq_data(argv[path_index], path_phys, inq, in adm_inquiry()
416 (void) strcpy(path_phys, in adm_inquiry()
427 (void) strcpy(path_phys, in adm_inquiry()
433 if (err = g_get_inquiry(path_phys, &inq)) { in adm_inquiry()
442 if (err = g_get_serial_number(path_phys, inq80.inq_serial, in adm_inquiry()
450 print_inq_data(argv[path_index], path_phys, inq, in adm_inquiry()
469 char *path_phys = NULL, *ptr; in adm_forcelip() local
473 if ((err = l_convert_name(argv[path_index], &path_phys, in adm_forcelip()
488 path_phys = NULL; in adm_forcelip()
490 &path_phys, &path_struct, in adm_forcelip()
523 if (err = g_force_lip(path_phys, Options & PVERBOSE)) { in adm_forcelip()
552 char *path_phys = NULL, *ptr; in adm_display_config() local
560 if ((err = l_convert_name(argv[path_index], &path_phys, in adm_display_config()
579 if ((err = l_convert_name(inq_path, &path_phys, in adm_display_config()
641 if ((opnerr = g_get_inquiry(path_phys, &inq)) != 0) { in adm_display_config()
660 (void) print_errString(err, path_phys); in adm_display_config()
672 adm_display_err(path_phys, in adm_display_config()
675 pho_display_config(path_phys); in adm_display_config()
688 adm_display_err(path_phys, in adm_display_config()
691 dpm_display_config(path_phys); in adm_display_config()
705 ((g_get_dev_map(path_phys, &map, in adm_display_config()
707 (l_get_ses_path(path_phys, ses_path, in adm_display_config()
713 adm_display_err(path_phys, in adm_display_config()
721 if (strcmp(argv[path_index], path_phys) != 0) { in adm_display_config()
725 (void) fprintf(stdout, "\n %s\n", path_phys); in adm_display_config()
746 adm_display_err(path_phys, in adm_display_config()
797 char *path_phys = NULL; in adm_power_off() local
801 if ((err = l_convert_name(argv[path_index], &path_phys, in adm_power_off()
810 path_phys = path_struct->p_physical_path; in adm_power_off()
832 if (err = l_dev_pwr_up_down(path_phys, in adm_power_off()
849 if (err = g_get_inquiry(path_phys, &inq)) { in adm_power_off()
860 if (get_enclStatus(path_phys, argv[path_index], in adm_power_off()
867 if (err = l_pho_pwr_up_down(argv[path_index], path_phys, in adm_power_off()
874 if (err = l_dev_pwr_up_down(path_phys, in adm_power_off()
899 char *path_phys = NULL; in adm_bypass_enable() local
902 if ((err = l_convert_name(argv[path_index], &path_phys, in adm_bypass_enable()
911 path_phys = path_struct->p_physical_path; in adm_bypass_enable()
947 if (err = g_get_inquiry(path_phys, &inq)) { in adm_bypass_enable()
962 if (err = l_bp_bypass_enable(path_phys, bypass_flag, in adm_bypass_enable()
996 char *path_phys = NULL; in adm_download() local
1004 if ((err = l_convert_name(argv[path_index], &path_phys, in adm_download()
1017 if (err = g_get_inquiry(path_phys, &inq)) { in adm_download()
1025 if (err = l_download(path_phys, in adm_download()
1053 char *path_phys = NULL; in display_link_status() local
1058 if ((err = l_convert_name(argv[path_index], &path_phys, in display_link_status()
1071 if (err = g_rdls(path_phys, &rls, Options & PVERBOSE)) { in display_link_status()
1393 pho_display_config(char *path_phys) in pho_display_config() argument
1401 if (err = l_get_status(path_phys, &l_state, in pho_display_config()
1403 (void) print_errString(err, path_phys); in pho_display_config()
1525 dpm_display_config(char *path_phys) in dpm_display_config() argument
1533 if (err = l_get_status(path_phys, &l_state, in dpm_display_config()
1535 (void) print_errString(err, path_phys); in dpm_display_config()
1694 char *path_phys = NULL; in up_password() local
1709 if ((err = l_convert_name(argv[path_index], &path_phys, in up_password()
1722 if (err = g_get_inquiry(path_phys, &inq)) { in up_password()
1805 if (l_new_password(path_phys, input)) { in up_password()
1806 (void) print_errString(err, path_phys); in up_password()
1819 char *path_phys = NULL; in adm_failover() local
1831 path_phys = g_get_physical_name(argv[path_index++]); in adm_failover()
1832 if ((path_phys == NULL) || in adm_failover()
1833 (strstr(path_phys, SCSI_VHCI) == NULL)) { in adm_failover()
1839 if (err = g_failover(path_phys, pathclass)) { in adm_failover()
1861 char wwn1[(WWN_SIZE*2)+1], name[1024], *path_phys = NULL; in up_encl_name() local
1894 if ((err = l_convert_name(argv[path_index], &path_phys, in up_encl_name()
1910 if (err = g_get_inquiry(path_phys, &inq)) { in up_encl_name()
1928 if (err = g_get_wwn(path_phys, port_wwn, node_wwn, &al_pa, in up_encl_name()
1961 if (rval = l_new_name(path_phys, name)) { in up_encl_name()
1962 (void) print_errString(rval, path_phys); in up_encl_name()
2054 char *path_phys = NULL; in adm_led() local
2061 if ((err = l_convert_name(argv[path_index], &path_phys, in adm_led()
2065 path_phys = path_struct->p_physical_path; in adm_led()
2081 if (err = g_get_inquiry(path_phys, &inq)) { in adm_led()
2096 if (err = g_get_dev_map(path_phys, &map, in adm_led()
2114 if (l_get_ses_path(path_phys, ses_path, &map, in adm_led()
2126 "device:\n %s\n"), path_phys); in adm_led()
2156 "device:\n %s\n"), path_phys); in adm_led()
2184 "device:\n %s\n"), path_phys); in adm_led()
2234 char *path_phys = NULL; in dump() local
2248 if ((err = l_convert_name(argv[path_index], &path_phys, in dump()
2261 if (err = g_get_inquiry(path_phys, &inq)) { in dump()
2269 if (err = l_get_envsen(path_phys, buf, MAX_REC_DIAG_LENGTH, in dump()
2397 display_sf_stats(char *path_phys, int dtype, struct sf_stats *sf_stats) in display_sf_stats() argument
2437 if (err = g_get_dev_map(path_phys, &map, (Options & PVERBOSE))) { in display_sf_stats()
2438 (void) print_errString(err, path_phys); in display_sf_stats()
2443 if (err = g_get_wwn(path_phys, port_wwn, node_wwn, &al_pa, in display_sf_stats()
2445 (void) print_errString(err, path_phys); in display_sf_stats()
2469 (void) print_errString(L_INVALID_LOOP_MAP, path_phys); in display_sf_stats()
2500 adm_display_err(char *path_phys, int dtype) in adm_display_err() argument
2525 if (strstr(path_phys, SCSI_VHCI)) { in adm_display_err()
2526 (void) strcpy(drvr_path, path_phys); in adm_display_err()
2558 (void) strcpy(drvr_path, path_phys); in adm_display_err()
2562 path_phys); in adm_display_err()
2575 (void) print_errString(err, path_phys); in adm_display_err()
2586 (void) print_errString(L_LSTAT_ERROR, path_phys); in adm_display_err()
2666 if (err = g_get_dev_map(path_phys, &map, in adm_display_err()
2668 (void) print_errString(err, path_phys); in adm_display_err()
2674 if (err = g_get_wwn(path_phys, port_wwn, in adm_display_err()
2678 path_phys); in adm_display_err()
2705 L_INVALID_LOOP_MAP, path_phys); in adm_display_err()
2731 (void) print_errString(L_LSTAT_ERROR, path_phys); in adm_display_err()
2769 (void) display_sf_stats(path_phys, dtype, &sf_stats); in adm_display_err()
2920 char *path_phys = NULL; in dump_map() local
2933 if ((err = l_convert_name(argv[path_index], &path_phys, in dump_map()
2947 if (strstr(path_phys, SCSI_VHCI) != NULL) { in dump_map()
2949 (void) strcpy(temp2path, path_phys); in dump_map()
2993 (void) strcpy(temp2path, path_phys); in dump_map()
3012 if (err = g_get_limited_map(path_phys, in dump_map()
3857 static char path_phys[MAXPATHLEN]; in display_fc_disk() local
3876 if (strcmp(path_phys, path_struct->p_physical_path) == 0) in display_fc_disk()
3879 (void) strcpy(path_phys, path_struct->p_physical_path); in display_fc_disk()
3889 if (err = g_get_dev_map(path_phys, map, (Options & PVERBOSE))) { in display_fc_disk()
3890 (void) print_errString(err, path_phys); in display_fc_disk()
3893 if (err = l_get_ses_path(path_phys, ses_path, map, in display_fc_disk()
3895 (void) print_errString(err, path_phys); in display_fc_disk()
3905 if (err = g_get_wwn(path_phys, port_wwn, node_wwn, in display_fc_disk()
3907 (void) print_errString(err, path_phys); in display_fc_disk()
3944 if (err = l_get_disk_status(path_phys, &l_disk_state, in display_fc_disk()
3946 (void) print_errString(err, path_phys); in display_fc_disk()
3964 if (err = l_get_disk_port_status(path_phys, in display_fc_disk()
3967 (void) print_errString(err, path_phys); in display_fc_disk()
3981 if (l_get_mode_pg(path_phys, &pg_buf, Options & PVERBOSE) == 0) { in display_fc_disk()
5386 char *path_phys = NULL; in adm_start() local
5391 if ((err = l_convert_name(*argv, &path_phys, in adm_start()
5406 if (err = g_start(path_phys)) { in adm_start()
5429 char *path_phys = NULL; in adm_stop() local
5434 if ((err = l_convert_name(*argv, &path_phys, in adm_stop()
5458 if (strstr(path_phys, SLSH_DRV_NAME_ST)) { in adm_stop()
5460 (void) print_errString(0, path_phys); in adm_stop()
5466 if (err = g_stop(path_phys, 1)) { in adm_stop()
5498 char *path_phys = NULL; in adm_port_offline_online() local
5503 if ((err = l_convert_name(*argv, &path_phys, in adm_port_offline_online()
5520 if ((err = g_get_nexus_path(path_phys, &nexus_path_ptr)) != 0) { in adm_port_offline_online()
5553 free(path_phys); in adm_port_offline_online()
5663 char *path_phys = NULL; in adm_port_loopback() local
5667 if ((err = l_convert_name(portpath, &path_phys, in adm_port_loopback()
5697 free(path_phys); in adm_port_loopback()
5703 if ((err = g_loopback_mode(path_phys, cmd)) != 0) { in adm_port_loopback()
5705 free(path_phys); in adm_port_loopback()
5737 free(path_phys); in adm_port_loopback()
6588 char *path_phys = NULL; in adm_reserve() local
6590 if ((path_phys = in adm_reserve()
6601 if ((err = g_reserve(path_phys)) != 0) { in adm_reserve()
6611 char *path_phys = NULL; in adm_release() local
6613 if ((path_phys = in adm_release()
6624 if ((err = g_release(path_phys)) != 0) { in adm_release()