Lines Matching refs:hp_elog

541 int handle_dlpar_errorlog(struct pseries_hp_errorlog *hp_elog)  in handle_dlpar_errorlog()  argument
545 switch (hp_elog->resource) { in handle_dlpar_errorlog()
547 rc = dlpar_memory(hp_elog); in handle_dlpar_errorlog()
550 rc = dlpar_cpu(hp_elog); in handle_dlpar_errorlog()
553 rc = dlpar_hp_pmem(hp_elog); in handle_dlpar_errorlog()
556 rc = dlpar_hp_dt(hp_elog); in handle_dlpar_errorlog()
561 hp_elog->resource); in handle_dlpar_errorlog()
598 static int dlpar_parse_resource(char **cmd, struct pseries_hp_errorlog *hp_elog) in dlpar_parse_resource() argument
607 hp_elog->resource = PSERIES_HP_ELOG_RESOURCE_MEM; in dlpar_parse_resource()
609 hp_elog->resource = PSERIES_HP_ELOG_RESOURCE_CPU; in dlpar_parse_resource()
611 hp_elog->resource = PSERIES_HP_ELOG_RESOURCE_DT; in dlpar_parse_resource()
620 static int dlpar_parse_action(char **cmd, struct pseries_hp_errorlog *hp_elog) in dlpar_parse_action() argument
629 hp_elog->action = PSERIES_HP_ELOG_ACTION_ADD; in dlpar_parse_action()
631 hp_elog->action = PSERIES_HP_ELOG_ACTION_REMOVE; in dlpar_parse_action()
640 static int dlpar_parse_id_type(char **cmd, struct pseries_hp_errorlog *hp_elog) in dlpar_parse_id_type() argument
650 hp_elog->id_type = PSERIES_HP_ELOG_ID_DRC_IC; in dlpar_parse_id_type()
673 hp_elog->_drc_u.ic.count = cpu_to_be32(count); in dlpar_parse_id_type()
674 hp_elog->_drc_u.ic.index = cpu_to_be32(index); in dlpar_parse_id_type()
676 hp_elog->id_type = PSERIES_HP_ELOG_ID_DRC_INDEX; in dlpar_parse_id_type()
688 hp_elog->_drc_u.drc_index = cpu_to_be32(index); in dlpar_parse_id_type()
690 hp_elog->id_type = PSERIES_HP_ELOG_ID_DRC_COUNT; in dlpar_parse_id_type()
702 hp_elog->_drc_u.drc_count = cpu_to_be32(count); in dlpar_parse_id_type()
714 struct pseries_hp_errorlog hp_elog; in dlpar_store() local
727 rc = dlpar_parse_resource(&args, &hp_elog); in dlpar_store()
731 rc = dlpar_parse_action(&args, &hp_elog); in dlpar_store()
735 rc = dlpar_parse_id_type(&args, &hp_elog); in dlpar_store()
739 rc = handle_dlpar_errorlog(&hp_elog); in dlpar_store()