Searched refs:hp_elog (Results 1 – 6 of 6) sorted by relevance
333 int handle_dlpar_errorlog(struct pseries_hp_errorlog *hp_elog) in handle_dlpar_errorlog() argument337 switch (hp_elog->resource) { in handle_dlpar_errorlog()339 rc = dlpar_memory(hp_elog); in handle_dlpar_errorlog()342 rc = dlpar_cpu(hp_elog); in handle_dlpar_errorlog()345 rc = dlpar_hp_pmem(hp_elog); in handle_dlpar_errorlog()350 hp_elog->resource); in handle_dlpar_errorlog()387 static int dlpar_parse_resource(char **cmd, struct pseries_hp_errorlog *hp_elog) in dlpar_parse_resource() argument396 hp_elog->resource = PSERIES_HP_ELOG_RESOURCE_MEM; in dlpar_parse_resource()398 hp_elog->resource = PSERIES_HP_ELOG_RESOURCE_CPU; in dlpar_parse_resource()407 static int dlpar_parse_action(char **cmd, struct pseries_hp_errorlog *hp_elog) in dlpar_parse_action() argument[all …]
105 int dlpar_hp_pmem(struct pseries_hp_errorlog *hp_elog) in dlpar_hp_pmem() argument118 if (hp_elog->id_type != PSERIES_HP_ELOG_ID_DRC_INDEX) { in dlpar_hp_pmem()120 hp_elog->id_type); in dlpar_hp_pmem()124 drc_index = be32_to_cpu(hp_elog->_drc_u.drc_index); in dlpar_hp_pmem()128 if (hp_elog->action == PSERIES_HP_ELOG_ACTION_ADD) { in dlpar_hp_pmem()130 } else if (hp_elog->action == PSERIES_HP_ELOG_ACTION_REMOVE) { in dlpar_hp_pmem()133 pr_err("Unsupported hotplug action (%d)\n", hp_elog->action); in dlpar_hp_pmem()
62 int dlpar_memory(struct pseries_hp_errorlog *hp_elog);63 int dlpar_hp_pmem(struct pseries_hp_errorlog *hp_elog);65 static inline int dlpar_memory(struct pseries_hp_errorlog *hp_elog) in dlpar_memory() argument69 static inline int dlpar_hp_pmem(struct pseries_hp_errorlog *hp_elog) in dlpar_hp_pmem() argument76 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
803 int dlpar_memory(struct pseries_hp_errorlog *hp_elog) in dlpar_memory() argument810 switch (hp_elog->action) { in dlpar_memory()812 switch (hp_elog->id_type) { in dlpar_memory()814 count = be32_to_cpu(hp_elog->_drc_u.drc_count); in dlpar_memory()818 drc_index = be32_to_cpu(hp_elog->_drc_u.drc_index); in dlpar_memory()822 count = be32_to_cpu(hp_elog->_drc_u.ic.count); in dlpar_memory()823 drc_index = be32_to_cpu(hp_elog->_drc_u.ic.index); in dlpar_memory()833 switch (hp_elog->id_type) { in dlpar_memory()835 count = be32_to_cpu(hp_elog->_drc_u.drc_count); in dlpar_memory()839 drc_index = be32_to_cpu(hp_elog->_drc_u.drc_index); in dlpar_memory()[all …]
295 struct pseries_hp_errorlog *hp_elog; in ras_hotplug_interrupt() local306 hp_elog = (struct pseries_hp_errorlog *)pseries_log->data; in ras_hotplug_interrupt()312 if (hp_elog->resource == PSERIES_HP_ELOG_RESOURCE_MEM || in ras_hotplug_interrupt()313 hp_elog->resource == PSERIES_HP_ELOG_RESOURCE_CPU || in ras_hotplug_interrupt()314 hp_elog->resource == PSERIES_HP_ELOG_RESOURCE_PMEM) in ras_hotplug_interrupt()315 queue_hotplug_event(hp_elog); in ras_hotplug_interrupt()
755 int dlpar_cpu(struct pseries_hp_errorlog *hp_elog) in dlpar_cpu() argument760 drc_index = be32_to_cpu(hp_elog->_drc_u.drc_index); in dlpar_cpu()764 switch (hp_elog->action) { in dlpar_cpu()766 if (hp_elog->id_type == PSERIES_HP_ELOG_ID_DRC_INDEX) { in dlpar_cpu()780 if (hp_elog->id_type == PSERIES_HP_ELOG_ID_DRC_INDEX) in dlpar_cpu()786 pr_err("Invalid action (%d) specified\n", hp_elog->action); in dlpar_cpu()