Lines Matching defs:path_struct
95 static void display_fc_disk(struct path_struct *, char *, gfc_map_t *,
117 static int lun_display(Path_struct *path_struct, L_inquiry inq_struct,
119 static int non_encl_fc_disk_display(Path_struct *path_struct,
271 Path_struct *path_struct;
277 &path_struct, Options & PVERBOSE)) != 0) {
289 slot = path_struct->slot;
290 f_r = path_struct->f_flag;
293 &path_struct, Options & PVERBOSE)) != 0) {
309 path_struct->p_physical_path,
365 if (strcasecmp(wwn_list_ptr->port_wwn_s, path_struct->argv) ==
371 path_struct->argv) == 0) {
413 path_struct->argv) != 0) {
420 path_struct->argv) != 0) {
468 Path_struct *path_struct = NULL;
474 &path_struct, Options & PVERBOSE)) != 0) {
486 slot = path_struct->slot;
487 f_r = path_struct->f_flag;
490 &path_phys, &path_struct,
506 path_struct->p_physical_path,
530 if (path_struct != NULL) {
531 (void) free(path_struct);
551 Path_struct *path_struct;
561 &path_struct, Options & PVERBOSE)) != 0) {
577 slot = path_struct->slot;
578 f_r = path_struct->f_flag;
580 &path_struct, Options & PVERBOSE))
599 path_struct->p_physical_path,
658 if ((err = lun_display(path_struct,
704 ((path_struct->slot_valid == 1) ||
716 display_fc_disk(path_struct, ses_path, &map, inq,
748 } else if (non_encl_fc_disk_display(path_struct,
779 (void) free(path_struct);
798 Path_struct *path_struct;
802 &path_struct, Options & PVERBOSE)) != 0) {
809 if (path_struct->ib_path_flag) {
810 path_phys = path_struct->p_physical_path;
827 if (path_struct->ib_path_flag) {
833 path_struct, off_flag, Options & PVERBOSE,
840 path_struct->p_physical_path,
841 path_struct->f_flag, path_struct->slot,
875 path_struct, off_flag, Options & PVERBOSE,
900 Path_struct *path_struct;
903 &path_struct, Options & PVERBOSE)) != 0) {
910 if (path_struct->ib_path_flag) {
911 path_phys = path_struct->p_physical_path;
925 if (path_struct->ib_path_flag) {
937 if (err = l_dev_bypass_enable(path_struct,
975 if (err = l_dev_bypass_enable(path_struct,
998 Path_struct *path_struct;
1005 &path_struct, Options & PVERBOSE)) != 0) {
1054 Path_struct *path_struct;
1059 &path_struct, Options & PVERBOSE)) != 0) {
1695 Path_struct *path_struct;
1710 &path_struct, Options & PVERBOSE)) != 0) {
1862 Path_struct *path_struct;
1895 &path_struct, Options & PVERBOSE)) != 0) {
2055 Path_struct *path_struct;
2062 &path_struct, Options & PVERBOSE)) != 0) {
2064 if (path_struct->ib_path_flag) {
2065 path_phys = path_struct->p_physical_path;
2080 if (!path_struct->ib_path_flag) {
2107 if (err = l_led(path_struct, led_action, &status,
2123 if (!path_struct->slot_valid) {
2129 if (path_struct->f_flag) {
2133 path_struct->slot);
2138 path_struct->slot +
2143 (path_struct->f_flag) ?
2148 path_struct->slot);
2153 if (!path_struct->slot_valid) {
2159 if (path_struct->f_flag) {
2163 path_struct->slot);
2168 path_struct->slot + (MAX_DRIVES_DAK/2));
2172 (path_struct->f_flag) ?
2177 path_struct->slot);
2181 if (!path_struct->slot_valid) {
2187 if (path_struct->f_flag) {
2191 path_struct->slot);
2196 path_struct->slot + MAX_DRIVES_DAK/2);
2200 (path_struct->f_flag) ?
2205 path_struct->slot);
2235 Path_struct *path_struct;
2249 &path_struct, Options & PVERBOSE)) != 0) {
2921 Path_struct *path_struct;
2934 &path_struct, Options & PVERBOSE)) != 0) {
2961 path_struct->argv) != NULL) {
2976 path_struct->argv) != NULL) {
3853 display_fc_disk(struct path_struct *path_struct, char *ses_path,
3876 if (strcmp(path_phys, path_struct->p_physical_path) == 0)
3879 (void) strcpy(path_phys, path_struct->p_physical_path);
3887 if (path_struct->slot_valid == 1) {
4004 path_struct->argv);
4008 path_struct->argv);
4012 path_struct->argv);
4023 if (path_struct->f_flag) {
4025 (l_state.drv_front[path_struct->slot].ib_status.bypass_a_en)) {
4032 (l_state.drv_rear[path_struct->slot].ib_status.bypass_a_en)) {
4046 if (path_struct->f_flag) {
4048 (l_state.drv_front[path_struct->slot].ib_status.bypass_b_en)) {
4055 (l_state.drv_rear[path_struct->slot].ib_status.bypass_b_en)) {
4079 (void) display_disk_info(inq, l_disk_state, path_struct, pg_hdr,
4095 non_encl_fc_disk_display(Path_struct *path_struct,
4113 (void) strcpy(phys_path, path_struct->p_physical_path);
4128 path_struct->argv) == 0) {
4133 path_struct->argv) == 0) {
4146 path_struct->argv) != 0) {
4159 path_struct->argv) != 0) {
4210 path_struct->argv);
4214 path_struct->argv);
4218 path_struct->argv);
4336 (void) display_disk_info(local_inq, l_disk_state, path_struct,
4360 Path_struct *path_struct, struct mode_page *pg_hdr,
4376 err = g_get_serial_number(path_struct->p_physical_path,
4380 print_errString(err, path_struct->p_physical_path);
4473 if (path_struct->slot_valid) {
4489 if (path_struct->f_flag) {
4492 path_struct->slot, name_buf);
4496 path_struct->slot + (MAX_DRIVES_DAK/2),
4500 (void) fprintf(stdout, path_struct->f_flag ?
4505 path_struct->slot, name_buf);
4533 if (path_struct->slot_valid) {
4543 adm_display_verbose_disk(path_struct->p_physical_path, options);
4546 adm_display_verbose_disk(path_struct->p_physical_path, options);
5387 Path_struct *path_struct;
5392 &path_struct, Options & PVERBOSE)) != 0) {
5430 Path_struct *path_struct;
5435 &path_struct, Options & PVERBOSE)) != 0) {
5500 Path_struct *path_struct = NULL;
5504 &path_struct, Options & PVERBOSE)) != 0) {
5554 free(path_struct);
5664 Path_struct *path_struct = NULL;
5668 &path_struct, Options & PVERBOSE)) != 0) {
5698 free(path_struct);
5706 free(path_struct);
5738 free(path_struct);
5854 lun_display(Path_struct *path_struct, L_inquiry inq_struct, int verbose)
5873 strcpy(phys_path, path_struct->p_physical_path);
5882 if (strstr(path_struct->argv, "/") != NULL) {
5899 path_struct->argv) == 0) {
5904 path_struct->argv) == 0) {
5917 path_struct->argv) != 0) {
5927 path_struct->argv) != 0) {
6051 path_struct->argv);
6055 path_struct->argv);
6059 path_struct->argv);
6063 (void) display_lun_info(l_disk_state, path_struct, pg_hdr,
6087 display_lun_info(L_disk_state l_disk_state, Path_struct *path_struct,
6194 path_struct->argv);
6210 if ((strcmp(mlist->dev_path, path_struct->p_physical_path))
6224 if ((strcmp(mlist->dev_path, path_struct->p_physical_path))