Searched refs:hp_elog (Results 1 – 6 of 6) sorted by relevance
332 static int handle_dlpar_errorlog(struct pseries_hp_errorlog *hp_elog) in handle_dlpar_errorlog() argument337 switch (hp_elog->id_type) { in handle_dlpar_errorlog()339 hp_elog->_drc_u.drc_count = in handle_dlpar_errorlog()340 be32_to_cpu(hp_elog->_drc_u.drc_count); in handle_dlpar_errorlog()343 hp_elog->_drc_u.drc_index = in handle_dlpar_errorlog()344 be32_to_cpu(hp_elog->_drc_u.drc_index); in handle_dlpar_errorlog()347 hp_elog->_drc_u.ic.count = in handle_dlpar_errorlog()348 be32_to_cpu(hp_elog->_drc_u.ic.count); in handle_dlpar_errorlog()349 hp_elog->_drc_u.ic.index = in handle_dlpar_errorlog()350 be32_to_cpu(hp_elog->_drc_u.ic.index); in handle_dlpar_errorlog()[all …]
245 struct pseries_hp_errorlog *hp_elog; in prrn_update_node() local258 hp_elog = kzalloc(sizeof(*hp_elog), GFP_KERNEL); in prrn_update_node()259 if(!hp_elog) in prrn_update_node()262 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 queue_hotplug_event(hp_elog, NULL, NULL); in prrn_update_node()269 kfree(hp_elog); in prrn_update_node()
65 int dlpar_memory(struct pseries_hp_errorlog *hp_elog);67 static inline int dlpar_memory(struct pseries_hp_errorlog *hp_elog) in dlpar_memory() argument74 int dlpar_cpu(struct pseries_hp_errorlog *hp_elog);76 static inline int dlpar_cpu(struct pseries_hp_errorlog *hp_elog) in dlpar_cpu() argument
656 static inline int dlpar_memory_remove(struct pseries_hp_errorlog *hp_elog) in dlpar_memory_remove() argument911 int dlpar_memory(struct pseries_hp_errorlog *hp_elog) in dlpar_memory() argument918 switch (hp_elog->action) { in dlpar_memory()920 if (hp_elog->id_type == PSERIES_HP_ELOG_ID_DRC_COUNT) { in dlpar_memory()921 count = hp_elog->_drc_u.drc_count; in dlpar_memory()923 } else if (hp_elog->id_type == PSERIES_HP_ELOG_ID_DRC_INDEX) { in dlpar_memory()924 drc_index = hp_elog->_drc_u.drc_index; in dlpar_memory()926 } else if (hp_elog->id_type == PSERIES_HP_ELOG_ID_DRC_IC) { in dlpar_memory()927 count = hp_elog->_drc_u.ic.count; in dlpar_memory()928 drc_index = hp_elog->_drc_u.ic.index; in dlpar_memory()[all …]
222 struct pseries_hp_errorlog *hp_elog; in ras_hotplug_interrupt() local233 hp_elog = (struct pseries_hp_errorlog *)pseries_log->data; in ras_hotplug_interrupt()239 if (hp_elog->resource == PSERIES_HP_ELOG_RESOURCE_MEM || in ras_hotplug_interrupt()240 hp_elog->resource == PSERIES_HP_ELOG_RESOURCE_CPU) in ras_hotplug_interrupt()241 queue_hotplug_event(hp_elog, NULL, NULL); in ras_hotplug_interrupt()
805 int dlpar_cpu(struct pseries_hp_errorlog *hp_elog) in dlpar_cpu() argument810 count = hp_elog->_drc_u.drc_count; in dlpar_cpu()811 drc_index = hp_elog->_drc_u.drc_index; in dlpar_cpu()815 switch (hp_elog->action) { in dlpar_cpu()817 if (hp_elog->id_type == PSERIES_HP_ELOG_ID_DRC_COUNT) in dlpar_cpu()819 else if (hp_elog->id_type == PSERIES_HP_ELOG_ID_DRC_INDEX) in dlpar_cpu()825 if (hp_elog->id_type == PSERIES_HP_ELOG_ID_DRC_COUNT) in dlpar_cpu()827 else if (hp_elog->id_type == PSERIES_HP_ELOG_ID_DRC_INDEX) in dlpar_cpu()833 pr_err("Invalid action (%d) specified\n", hp_elog->action); in dlpar_cpu()