/titanic_41/usr/src/cmd/fm/modules/common/disk-monitor/ |
H A D | schg_mgr.c | 49 static void dm_state_change_nolock(diskmon_t *diskp, hotplug_state_t newstate); 56 diskmon_t *diskp; member 61 new_statechange(diskmon_t *diskp, hotplug_state_t state) in new_statechange() argument 70 dscp->diskp = diskp; in new_statechange() 83 add_to_statechange_queue(diskmon_t *diskp, hotplug_state_t newstate) in add_to_statechange_queue() argument 85 queue_add(g_schg_queue, new_statechange(diskp, newstate)); in add_to_statechange_queue() 109 dm_fault_indicator_set(diskmon_t *diskp, ind_state_t istate) in dm_fault_indicator_set() argument 113 dm_assert(pthread_mutex_lock(&diskp->fault_indicator_mutex) == 0); in dm_fault_indicator_set() 119 diskp->fault_indicator_state == istate) { in dm_fault_indicator_set() 120 dm_assert(pthread_mutex_unlock(&diskp->fault_indicator_mutex) in dm_fault_indicator_set() [all …]
|
H A D | disk_monitor.c | 144 dm_fault_execute_actions(fmd_hdl_t *hdl, diskmon_t *diskp, nvlist_t *nvl) in dm_fault_execute_actions() argument 161 dm_fault_indicator_set(diskp, INDICATOR_ON); in dm_fault_execute_actions() 164 (action_string = dm_prop_lookup(diskp->props, action_prop)) in dm_fault_execute_actions() 180 diskmon_t *diskp; in diskmon_agent_repair() local 199 if ((diskp = dm_fmri_to_diskmon(hdl, fmri)) == NULL) in diskmon_agent_repair() 203 diskp->location); in diskmon_agent_repair() 205 dm_fault_indicator_set(diskp, INDICATOR_OFF); in diskmon_agent_repair() 207 dm_state_change(diskp, HPS_REPAIRED); in diskmon_agent_repair() 221 diskmon_t *diskp; in diskmon_agent_suspect() local 239 if ((diskp = dm_fmri_to_diskmon(hdl, fmri)) == NULL) in diskmon_agent_suspect() [all …]
|
H A D | topo_gather.c | 104 diskmon_t *diskp; in dm_fmri_to_diskmon() local 123 diskp = dm_fmristring_to_diskmon(buf); in dm_fmri_to_diskmon() 128 return (diskp); in dm_fmri_to_diskmon() 240 diskmon_t *diskp; in topo_add_disk() local 258 diskp = (diskmon_t *)(uintptr_t)ptr; in topo_add_disk() 261 if (target_diskp != NULL && diskp != target_diskp) { in topo_add_disk() 268 if (diskp->location) in topo_add_disk() 269 dstrfree(diskp->location); in topo_add_disk() 271 diskp->location = dstrdup(label); in topo_add_disk() 274 diskp->location = dstrdup("unknown location"); in topo_add_disk() [all …]
|
H A D | schg_mgr.h | 47 extern void dm_state_change(diskmon_t *diskp, hotplug_state_t newstate); 48 extern void dm_fault_indicator_set(diskmon_t *diskp, ind_state_t istate);
|
H A D | hotplug_mgr.c | 183 disk_ap_state_to_hotplug_state(diskmon_t *diskp) in disk_ap_state_to_hotplug_state() argument 188 char *app = (char *)dm_prop_lookup(diskp->app_props, in disk_ap_state_to_hotplug_state() 277 disk_sysev_to_state(diskmon_t *diskp, sysevent_t *evp) in disk_sysev_to_state() argument 339 state = disk_ap_state_to_hotplug_state(diskp); in disk_sysev_to_state() 596 diskmon_t *diskp; in dm_process_sysevent() local 618 if ((diskp = match_sysevent_to_disk(config_data->disk_list, dupev)) in dm_process_sysevent() 621 dm_state_change(diskp, disk_sysev_to_state(diskp, dupev)); in dm_process_sysevent()
|
H A D | hotplug_mgr.h | 46 extern hotplug_state_t disk_ap_state_to_hotplug_state(diskmon_t *diskp);
|
H A D | topo_gather.h | 56 int update_configuration_from_topo(fmd_hdl_t *, diskmon_t *diskp);
|
/titanic_41/usr/src/cmd/picl/plugins/sun4u/chicago/envd/ |
H A D | piclenvd.c | 109 static int scsi_log_sense(env_disk_t *diskp, uchar_t page_code, 111 static int scsi_mode_select(env_disk_t *diskp, uchar_t page_code, 501 env_disk_t *diskp; in disk_lookup() local 503 for (i = 0; (diskp = envd_disks[i]) != NULL; i++) { in disk_lookup() 504 if (strncmp(diskp->name, name, strlen(name)) == 0) in disk_lookup() 505 return (diskp); in disk_lookup() 559 disk_temperature(env_disk_t *diskp, tempr_t *temp) in disk_temperature() argument 563 if (diskp == NULL) in disk_temperature() 566 *temp = diskp->current_temp; in disk_temperature() 734 env_disk_t *diskp; in envd_setup_disks() local [all …]
|
H A D | piclenvsetup.c | 141 env_disk_t *diskp; /* disk information */ member 215 if (disk_temperature(dnodep->diskp, &temp) < 0) in get_disk_temp() 517 env_disk_t *diskp; in add_disk_nodes_and_props() local 537 diskp = dnodep->diskp; in add_disk_nodes_and_props() 538 if (diskp == NULL) in add_disk_nodes_and_props() 540 if (diskp->present == B_FALSE) in add_disk_nodes_and_props() 561 devfs_path = diskp->devfs_path; in add_disk_nodes_and_props() 589 sizeof (diskp->low_shutdown), in add_disk_nodes_and_props() 590 (void *)&(diskp->low_shutdown), &proph); in add_disk_nodes_and_props() 594 sizeof (diskp->low_warning), in add_disk_nodes_and_props() [all …]
|
H A D | envd.h | 357 #define DISK_TEMP_IN_WARNING_RANGE(val, diskp) \ argument 358 ((val) > (diskp)->high_warning || \ 359 (val) < (char)((diskp)->low_warning)) 361 #define DISK_TEMP_IN_SHUTDOWN_RANGE(val, diskp) \ argument 362 ((val) > (diskp)->high_shutdown || \ 363 (val) < (char)((diskp)->low_shutdown))
|
/titanic_41/usr/src/cmd/format/ |
H A D | menu_developer.c | 81 struct disk_info *diskp; in dv_disk() local 83 diskp = disk_list; in dv_disk() 84 while (diskp != NULL) { in dv_disk() 86 (void) printf("\ndisk_name %s ", diskp->disk_name); in dv_disk() 87 (void) printf("disk_path %s\n", diskp->disk_path); in dv_disk() 89 diskp->disk_ctlr->ctlr_cname); in dv_disk() 91 diskp->disk_ctlr->ctlr_dname); in dv_disk() 93 diskp->disk_ctlr->ctlr_ctype->ctype_name); in dv_disk() 95 diskp->disk_ctlr->ctlr_ctype->ctype_ctype); in dv_disk() 96 (void) printf("devfsname = %s\n", diskp->devfs_name); in dv_disk() [all …]
|
/titanic_41/usr/src/lib/libdiskmgt/common/ |
H A D | findevs.c | 87 static int add_disk2controller(disk_t *diskp, 102 static alias_t *find_alias(disk_t *diskp, char *kernel_name); 119 char *kernel_name, disk_t **diskp); 125 static int new_alias(disk_t *diskp, char *kernel_path, 128 static path_t *new_path(controller_t *cp, disk_t *diskp, 450 disk_t *diskp; in add_devpath() local 460 diskp = NULL; in add_devpath() 465 (void) have_disk(args, devidstr, kernel_name, &diskp); in add_devpath() 473 if (diskp != NULL) { in add_devpath() 477 if (diskp->drv_type != DM_DT_FLOPPY) { in add_devpath() [all …]
|
H A D | drive.c | 335 static descriptor_t **get_assoc_alias(disk_t *diskp, int *errp); 338 static int get_attrs(disk_t *diskp, int fd, char *opath, 515 disk_t *diskp; in drive_get_stats() local 518 diskp = dp->p.disk; in drive_get_stats() 531 ap = diskp->aliases; in drive_get_stats() 576 if ((fd = drive_open_disk(diskp, NULL, 0)) >= 0) { in drive_get_stats() 629 drive_open_disk(disk_t *diskp, char *opath, int len) in drive_open_disk() argument 634 if (diskp->aliases != NULL && diskp->aliases->devpaths != NULL) { in drive_open_disk() 636 (void) strlcpy(opath, diskp->aliases->devpaths->devpath, len); in drive_open_disk() 638 return (open(diskp->aliases->devpaths->devpath, O_RDONLY|O_NDELAY)); in drive_open_disk() [all …]
|
H A D | slice.c | 217 disk_t *diskp; in slice_get_stats() local 219 diskp = dp->p.disk; in slice_get_stats() 220 if (diskp->aliases != NULL && diskp->aliases->cluster) { in slice_get_stats() 242 for (sp = diskp->aliases->orig_paths; sp != NULL; in slice_get_stats() 406 disk_t *diskp; in get_attrs() local 525 diskp = dp->p.disk; in get_attrs() 526 if (diskp->aliases != NULL && diskp->aliases->cluster) { in get_attrs() 529 for (sp = diskp->aliases->orig_paths; sp != NULL; sp = sp->next) { in get_attrs() 813 match_fixed_name(disk_t *diskp, char *name, int *errp) in match_fixed_name() argument 824 ap = diskp->aliases; in match_fixed_name() [all …]
|
H A D | alias.c | 41 static int get_status(disk_t *diskp, int fd, nvlist_t *attrs); 198 get_status(disk_t *diskp, int fd, nvlist_t *attrs) in get_status() argument 212 if (diskp->removable) { in get_status()
|
H A D | partition.c | 65 static int open_disk(disk_t *diskp, char *opath, int len); 789 open_disk(disk_t *diskp, char *opath, int len) in open_disk() argument 794 if (diskp->aliases != NULL && diskp->aliases->devpaths != NULL) { in open_disk() 797 (void) strlcpy(opath, diskp->aliases->devpaths->devpath, len); in open_disk() 799 return (open(diskp->aliases->devpaths->devpath, O_RDONLY|O_NDELAY)); in open_disk() 805 (void) strlcpy(part_dev, diskp->aliases->devpaths->devpath, in open_disk()
|
H A D | disks_private.h | 185 int drive_open_disk(disk_t *diskp, char *opath, int len);
|
/titanic_41/usr/src/cmd/picl/plugins/sun4u/enchilada/envd/ |
H A D | piclenvd.c | 806 env_disk_t *diskp; in disk_lookup() local 808 for (i = 0; (diskp = envd_disks[i]) != NULL; i++) { in disk_lookup() 809 if (strncmp(diskp->name, name, strlen(name)) == 0) in disk_lookup() 810 return (diskp); in disk_lookup() 852 disk_temperature(env_disk_t *diskp, tempr_t *temp) in disk_temperature() argument 856 if (diskp == NULL) in disk_temperature() 859 *temp = diskp->current_temp; in disk_temperature() 1107 env_disk_t *diskp; in envd_setup_disks() local 1157 for (i = 0; (diskp = envd_disks[i]) != NULL; i++) { in envd_setup_disks() 1159 if (ptree_get_node_by_path(diskp->nodepath, in envd_setup_disks() [all …]
|
H A D | piclenvsetup.c | 153 env_disk_t *diskp; /* disk information */ member 225 if (disk_temperature(dnodep->diskp, &temp) < 0) in get_disk_temp() 522 env_disk_t *diskp; in add_disk_nodes_and_props() local 538 diskp = dnodep->diskp; in add_disk_nodes_and_props() 539 if (diskp->present == B_FALSE) in add_disk_nodes_and_props() 560 devfs_path = diskp->devfs_path; in add_disk_nodes_and_props() 588 sizeof (diskp->low_shutdown), in add_disk_nodes_and_props() 589 (void *)&(diskp->low_shutdown), &proph); in add_disk_nodes_and_props() 593 sizeof (diskp->low_warning), in add_disk_nodes_and_props() 594 (void *)&(diskp->low_warning), &proph); in add_disk_nodes_and_props() [all …]
|
H A D | envd.h | 284 #define DISK_TEMP_IN_WARNING_RANGE(val, diskp) \ argument 285 ((val) > (diskp)->high_warning || \ 286 (val) < (char)((diskp)->low_warning)) 288 #define DISK_TEMP_IN_SHUTDOWN_RANGE(val, diskp) \ argument 289 ((val) > (diskp)->high_shutdown || \ 290 (val) < (char)((diskp)->low_shutdown))
|
/titanic_41/usr/src/cmd/lvm/metassist/layout/ |
H A D | layout_device_util.h | 52 extern int disk_get_by_name(char *name, dm_descriptor_t *diskp); 59 dm_descriptor_t *diskp); 80 dm_descriptor_t diskp, uint32_t *index); 103 extern int slice_get_disk(dm_descriptor_t slice, dm_descriptor_t *diskp);
|
H A D | layout_device_util.c | 131 dm_descriptor_t *diskp); 2579 dm_descriptor_t *diskp) in virtual_slice_get_disk() argument 2589 *diskp = (dm_descriptor_t)disk; in virtual_slice_get_disk() 2621 dm_descriptor_t *diskp) in slice_get_disk() argument 2628 *diskp = 0; in slice_get_disk() 2631 return (virtual_slice_get_disk(slice, diskp)); in slice_get_disk() 2649 for (i = 0; (media[i] != NULL) && (*diskp == NULL); i++) { in slice_get_disk() 2656 *diskp = disks[0]; in slice_get_disk() 2665 if (*diskp == 0) { in slice_get_disk()
|
H A D | layout_mirror.c | 2208 dm_descriptor_t diskp = (uintptr_t)iter->obj; in remove_used_disks() local 2211 error = volume_shares_disk(diskp, volume, &shares); in remove_used_disks() 2214 if ((item = dlist_new_item((void*)(uintptr_t)diskp)) == NULL) { in remove_used_disks()
|
/titanic_41/usr/src/cmd/picl/plugins/sun4u/lw8/frutree/ |
H A D | piclfrutree.c | 3849 update_disk_node(struct lw8_disk *diskp) in update_disk_node() argument 3857 char *fruname = diskp->d_fruname; in update_disk_node() 3864 err = ptree_get_node_by_path(diskp->d_plat_path, &devhdl); in update_disk_node()
|