Lines Matching defs:path_phys

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