hp_elog 333 arch/powerpc/platforms/pseries/dlpar.c int handle_dlpar_errorlog(struct pseries_hp_errorlog *hp_elog) hp_elog 338 arch/powerpc/platforms/pseries/dlpar.c switch (hp_elog->id_type) { hp_elog 340 arch/powerpc/platforms/pseries/dlpar.c hp_elog->_drc_u.drc_count = hp_elog 341 arch/powerpc/platforms/pseries/dlpar.c be32_to_cpu(hp_elog->_drc_u.drc_count); hp_elog 344 arch/powerpc/platforms/pseries/dlpar.c hp_elog->_drc_u.drc_index = hp_elog 345 arch/powerpc/platforms/pseries/dlpar.c be32_to_cpu(hp_elog->_drc_u.drc_index); hp_elog 348 arch/powerpc/platforms/pseries/dlpar.c hp_elog->_drc_u.ic.count = hp_elog 349 arch/powerpc/platforms/pseries/dlpar.c be32_to_cpu(hp_elog->_drc_u.ic.count); hp_elog 350 arch/powerpc/platforms/pseries/dlpar.c hp_elog->_drc_u.ic.index = hp_elog 351 arch/powerpc/platforms/pseries/dlpar.c be32_to_cpu(hp_elog->_drc_u.ic.index); hp_elog 354 arch/powerpc/platforms/pseries/dlpar.c switch (hp_elog->resource) { hp_elog 356 arch/powerpc/platforms/pseries/dlpar.c rc = dlpar_memory(hp_elog); hp_elog 359 arch/powerpc/platforms/pseries/dlpar.c rc = dlpar_cpu(hp_elog); hp_elog 362 arch/powerpc/platforms/pseries/dlpar.c rc = dlpar_hp_pmem(hp_elog); hp_elog 367 arch/powerpc/platforms/pseries/dlpar.c hp_elog->resource); hp_elog 404 arch/powerpc/platforms/pseries/dlpar.c static int dlpar_parse_resource(char **cmd, struct pseries_hp_errorlog *hp_elog) hp_elog 413 arch/powerpc/platforms/pseries/dlpar.c hp_elog->resource = PSERIES_HP_ELOG_RESOURCE_MEM; hp_elog 415 arch/powerpc/platforms/pseries/dlpar.c hp_elog->resource = PSERIES_HP_ELOG_RESOURCE_CPU; hp_elog 424 arch/powerpc/platforms/pseries/dlpar.c static int dlpar_parse_action(char **cmd, struct pseries_hp_errorlog *hp_elog) hp_elog 433 arch/powerpc/platforms/pseries/dlpar.c hp_elog->action = PSERIES_HP_ELOG_ACTION_ADD; hp_elog 435 arch/powerpc/platforms/pseries/dlpar.c hp_elog->action = PSERIES_HP_ELOG_ACTION_REMOVE; hp_elog 444 arch/powerpc/platforms/pseries/dlpar.c static int dlpar_parse_id_type(char **cmd, struct pseries_hp_errorlog *hp_elog) hp_elog 454 arch/powerpc/platforms/pseries/dlpar.c hp_elog->id_type = PSERIES_HP_ELOG_ID_DRC_IC; hp_elog 477 arch/powerpc/platforms/pseries/dlpar.c hp_elog->_drc_u.ic.count = cpu_to_be32(count); hp_elog 478 arch/powerpc/platforms/pseries/dlpar.c hp_elog->_drc_u.ic.index = cpu_to_be32(index); hp_elog 480 arch/powerpc/platforms/pseries/dlpar.c hp_elog->id_type = PSERIES_HP_ELOG_ID_DRC_INDEX; hp_elog 492 arch/powerpc/platforms/pseries/dlpar.c hp_elog->_drc_u.drc_index = cpu_to_be32(index); hp_elog 494 arch/powerpc/platforms/pseries/dlpar.c hp_elog->id_type = PSERIES_HP_ELOG_ID_DRC_COUNT; hp_elog 506 arch/powerpc/platforms/pseries/dlpar.c hp_elog->_drc_u.drc_count = cpu_to_be32(count); hp_elog 518 arch/powerpc/platforms/pseries/dlpar.c struct pseries_hp_errorlog hp_elog; hp_elog 534 arch/powerpc/platforms/pseries/dlpar.c rc = dlpar_parse_resource(&args, &hp_elog); hp_elog 538 arch/powerpc/platforms/pseries/dlpar.c rc = dlpar_parse_action(&args, &hp_elog); hp_elog 542 arch/powerpc/platforms/pseries/dlpar.c rc = dlpar_parse_id_type(&args, &hp_elog); hp_elog 546 arch/powerpc/platforms/pseries/dlpar.c rc = handle_dlpar_errorlog(&hp_elog); hp_elog 820 arch/powerpc/platforms/pseries/hotplug-cpu.c int dlpar_cpu(struct pseries_hp_errorlog *hp_elog) hp_elog 825 arch/powerpc/platforms/pseries/hotplug-cpu.c count = hp_elog->_drc_u.drc_count; hp_elog 826 arch/powerpc/platforms/pseries/hotplug-cpu.c drc_index = hp_elog->_drc_u.drc_index; hp_elog 830 arch/powerpc/platforms/pseries/hotplug-cpu.c switch (hp_elog->action) { hp_elog 832 arch/powerpc/platforms/pseries/hotplug-cpu.c if (hp_elog->id_type == PSERIES_HP_ELOG_ID_DRC_COUNT) hp_elog 834 arch/powerpc/platforms/pseries/hotplug-cpu.c else if (hp_elog->id_type == PSERIES_HP_ELOG_ID_DRC_INDEX) hp_elog 840 arch/powerpc/platforms/pseries/hotplug-cpu.c if (hp_elog->id_type == PSERIES_HP_ELOG_ID_DRC_COUNT) hp_elog 842 arch/powerpc/platforms/pseries/hotplug-cpu.c else if (hp_elog->id_type == PSERIES_HP_ELOG_ID_DRC_INDEX) hp_elog 848 arch/powerpc/platforms/pseries/hotplug-cpu.c pr_err("Invalid action (%d) specified\n", hp_elog->action); hp_elog 624 arch/powerpc/platforms/pseries/hotplug-memory.c static inline int dlpar_memory_remove(struct pseries_hp_errorlog *hp_elog) hp_elog 876 arch/powerpc/platforms/pseries/hotplug-memory.c int dlpar_memory(struct pseries_hp_errorlog *hp_elog) hp_elog 883 arch/powerpc/platforms/pseries/hotplug-memory.c switch (hp_elog->action) { hp_elog 885 arch/powerpc/platforms/pseries/hotplug-memory.c switch (hp_elog->id_type) { hp_elog 887 arch/powerpc/platforms/pseries/hotplug-memory.c count = hp_elog->_drc_u.drc_count; hp_elog 891 arch/powerpc/platforms/pseries/hotplug-memory.c drc_index = hp_elog->_drc_u.drc_index; hp_elog 895 arch/powerpc/platforms/pseries/hotplug-memory.c count = hp_elog->_drc_u.ic.count; hp_elog 896 arch/powerpc/platforms/pseries/hotplug-memory.c drc_index = hp_elog->_drc_u.ic.index; hp_elog 906 arch/powerpc/platforms/pseries/hotplug-memory.c switch (hp_elog->id_type) { hp_elog 908 arch/powerpc/platforms/pseries/hotplug-memory.c count = hp_elog->_drc_u.drc_count; hp_elog 912 arch/powerpc/platforms/pseries/hotplug-memory.c drc_index = hp_elog->_drc_u.drc_index; hp_elog 916 arch/powerpc/platforms/pseries/hotplug-memory.c count = hp_elog->_drc_u.ic.count; hp_elog 917 arch/powerpc/platforms/pseries/hotplug-memory.c drc_index = hp_elog->_drc_u.ic.index; hp_elog 927 arch/powerpc/platforms/pseries/hotplug-memory.c drc_index = hp_elog->_drc_u.drc_index; hp_elog 931 arch/powerpc/platforms/pseries/hotplug-memory.c pr_err("Invalid action (%d) specified\n", hp_elog->action); hp_elog 249 arch/powerpc/platforms/pseries/mobility.c struct pseries_hp_errorlog hp_elog; hp_elog 262 arch/powerpc/platforms/pseries/mobility.c hp_elog.resource = PSERIES_HP_ELOG_RESOURCE_MEM; hp_elog 263 arch/powerpc/platforms/pseries/mobility.c hp_elog.action = PSERIES_HP_ELOG_ACTION_READD; hp_elog 264 arch/powerpc/platforms/pseries/mobility.c hp_elog.id_type = PSERIES_HP_ELOG_ID_DRC_INDEX; hp_elog 265 arch/powerpc/platforms/pseries/mobility.c hp_elog._drc_u.drc_index = phandle; hp_elog 267 arch/powerpc/platforms/pseries/mobility.c handle_dlpar_errorlog(&hp_elog); hp_elog 107 arch/powerpc/platforms/pseries/pmem.c int dlpar_hp_pmem(struct pseries_hp_errorlog *hp_elog) hp_elog 120 arch/powerpc/platforms/pseries/pmem.c if (hp_elog->id_type != PSERIES_HP_ELOG_ID_DRC_INDEX) { hp_elog 122 arch/powerpc/platforms/pseries/pmem.c hp_elog->id_type); hp_elog 126 arch/powerpc/platforms/pseries/pmem.c drc_index = hp_elog->_drc_u.drc_index; hp_elog 130 arch/powerpc/platforms/pseries/pmem.c if (hp_elog->action == PSERIES_HP_ELOG_ACTION_ADD) { hp_elog 132 arch/powerpc/platforms/pseries/pmem.c } else if (hp_elog->action == PSERIES_HP_ELOG_ACTION_REMOVE) { hp_elog 135 arch/powerpc/platforms/pseries/pmem.c pr_err("Unsupported hotplug action (%d)\n", hp_elog->action); hp_elog 63 arch/powerpc/platforms/pseries/pseries.h int dlpar_memory(struct pseries_hp_errorlog *hp_elog); hp_elog 64 arch/powerpc/platforms/pseries/pseries.h int dlpar_hp_pmem(struct pseries_hp_errorlog *hp_elog); hp_elog 66 arch/powerpc/platforms/pseries/pseries.h static inline int dlpar_memory(struct pseries_hp_errorlog *hp_elog) hp_elog 70 arch/powerpc/platforms/pseries/pseries.h static inline int dlpar_hp_pmem(struct pseries_hp_errorlog *hp_elog) hp_elog 77 arch/powerpc/platforms/pseries/pseries.h int dlpar_cpu(struct pseries_hp_errorlog *hp_elog); hp_elog 79 arch/powerpc/platforms/pseries/pseries.h static inline int dlpar_cpu(struct pseries_hp_errorlog *hp_elog) hp_elog 288 arch/powerpc/platforms/pseries/ras.c struct pseries_hp_errorlog *hp_elog; hp_elog 299 arch/powerpc/platforms/pseries/ras.c hp_elog = (struct pseries_hp_errorlog *)pseries_log->data; hp_elog 305 arch/powerpc/platforms/pseries/ras.c if (hp_elog->resource == PSERIES_HP_ELOG_RESOURCE_MEM || hp_elog 306 arch/powerpc/platforms/pseries/ras.c hp_elog->resource == PSERIES_HP_ELOG_RESOURCE_CPU || hp_elog 307 arch/powerpc/platforms/pseries/ras.c hp_elog->resource == PSERIES_HP_ELOG_RESOURCE_PMEM) hp_elog 308 arch/powerpc/platforms/pseries/ras.c queue_hotplug_event(hp_elog);