Searched refs:hp_elog (Results 1 – 7 of 7) sorted by relevance
333 int handle_dlpar_errorlog(struct pseries_hp_errorlog *hp_elog) in handle_dlpar_errorlog() argument338 switch (hp_elog->id_type) { in handle_dlpar_errorlog()340 hp_elog->_drc_u.drc_count = in handle_dlpar_errorlog()341 be32_to_cpu(hp_elog->_drc_u.drc_count); in handle_dlpar_errorlog()344 hp_elog->_drc_u.drc_index = in handle_dlpar_errorlog()345 be32_to_cpu(hp_elog->_drc_u.drc_index); in handle_dlpar_errorlog()348 hp_elog->_drc_u.ic.count = in handle_dlpar_errorlog()349 be32_to_cpu(hp_elog->_drc_u.ic.count); in handle_dlpar_errorlog()350 hp_elog->_drc_u.ic.index = in handle_dlpar_errorlog()351 be32_to_cpu(hp_elog->_drc_u.ic.index); in handle_dlpar_errorlog()[all …]
63 int dlpar_memory(struct pseries_hp_errorlog *hp_elog);64 int dlpar_hp_pmem(struct pseries_hp_errorlog *hp_elog);66 static inline int dlpar_memory(struct pseries_hp_errorlog *hp_elog) in dlpar_memory() argument70 static inline int dlpar_hp_pmem(struct pseries_hp_errorlog *hp_elog) in dlpar_hp_pmem() argument77 int dlpar_cpu(struct pseries_hp_errorlog *hp_elog);79 static inline int dlpar_cpu(struct pseries_hp_errorlog *hp_elog) in dlpar_cpu() argument
107 int dlpar_hp_pmem(struct pseries_hp_errorlog *hp_elog) in dlpar_hp_pmem() argument120 if (hp_elog->id_type != PSERIES_HP_ELOG_ID_DRC_INDEX) { in dlpar_hp_pmem()122 hp_elog->id_type); in dlpar_hp_pmem()126 drc_index = hp_elog->_drc_u.drc_index; in dlpar_hp_pmem()130 if (hp_elog->action == PSERIES_HP_ELOG_ACTION_ADD) { in dlpar_hp_pmem()132 } else if (hp_elog->action == PSERIES_HP_ELOG_ACTION_REMOVE) { in dlpar_hp_pmem()135 pr_err("Unsupported hotplug action (%d)\n", hp_elog->action); in dlpar_hp_pmem()
622 static inline int dlpar_memory_remove(struct pseries_hp_errorlog *hp_elog) in dlpar_memory_remove() argument874 int dlpar_memory(struct pseries_hp_errorlog *hp_elog) in dlpar_memory() argument881 switch (hp_elog->action) { in dlpar_memory()883 switch (hp_elog->id_type) { in dlpar_memory()885 count = hp_elog->_drc_u.drc_count; in dlpar_memory()889 drc_index = hp_elog->_drc_u.drc_index; in dlpar_memory()893 count = hp_elog->_drc_u.ic.count; in dlpar_memory()894 drc_index = hp_elog->_drc_u.ic.index; in dlpar_memory()904 switch (hp_elog->id_type) { in dlpar_memory()906 count = hp_elog->_drc_u.drc_count; in dlpar_memory()[all …]
249 struct pseries_hp_errorlog hp_elog; in prrn_update_node() local262 hp_elog.resource = PSERIES_HP_ELOG_RESOURCE_MEM; in prrn_update_node()263 hp_elog.action = PSERIES_HP_ELOG_ACTION_READD; in prrn_update_node()264 hp_elog.id_type = PSERIES_HP_ELOG_ID_DRC_INDEX; in prrn_update_node()265 hp_elog._drc_u.drc_index = phandle; in prrn_update_node()267 handle_dlpar_errorlog(&hp_elog); in prrn_update_node()
820 int dlpar_cpu(struct pseries_hp_errorlog *hp_elog) in dlpar_cpu() argument825 count = hp_elog->_drc_u.drc_count; in dlpar_cpu()826 drc_index = hp_elog->_drc_u.drc_index; in dlpar_cpu()830 switch (hp_elog->action) { in dlpar_cpu()832 if (hp_elog->id_type == PSERIES_HP_ELOG_ID_DRC_COUNT) in dlpar_cpu()834 else if (hp_elog->id_type == PSERIES_HP_ELOG_ID_DRC_INDEX) in dlpar_cpu()840 if (hp_elog->id_type == PSERIES_HP_ELOG_ID_DRC_COUNT) in dlpar_cpu()842 else if (hp_elog->id_type == PSERIES_HP_ELOG_ID_DRC_INDEX) in dlpar_cpu()848 pr_err("Invalid action (%d) specified\n", hp_elog->action); in dlpar_cpu()
288 struct pseries_hp_errorlog *hp_elog; in ras_hotplug_interrupt() local299 hp_elog = (struct pseries_hp_errorlog *)pseries_log->data; in ras_hotplug_interrupt()305 if (hp_elog->resource == PSERIES_HP_ELOG_RESOURCE_MEM || in ras_hotplug_interrupt()306 hp_elog->resource == PSERIES_HP_ELOG_RESOURCE_CPU || in ras_hotplug_interrupt()307 hp_elog->resource == PSERIES_HP_ELOG_RESOURCE_PMEM) in ras_hotplug_interrupt()308 queue_hotplug_event(hp_elog); in ras_hotplug_interrupt()