Lines Matching refs:hp_elog

342 int handle_dlpar_errorlog(struct pseries_hp_errorlog *hp_elog)  in handle_dlpar_errorlog()  argument
347 switch (hp_elog->id_type) { in handle_dlpar_errorlog()
349 hp_elog->_drc_u.drc_count = in handle_dlpar_errorlog()
350 be32_to_cpu(hp_elog->_drc_u.drc_count); in handle_dlpar_errorlog()
353 hp_elog->_drc_u.drc_index = in handle_dlpar_errorlog()
354 be32_to_cpu(hp_elog->_drc_u.drc_index); in handle_dlpar_errorlog()
357 hp_elog->_drc_u.ic.count = in handle_dlpar_errorlog()
358 be32_to_cpu(hp_elog->_drc_u.ic.count); in handle_dlpar_errorlog()
359 hp_elog->_drc_u.ic.index = in handle_dlpar_errorlog()
360 be32_to_cpu(hp_elog->_drc_u.ic.index); in handle_dlpar_errorlog()
363 switch (hp_elog->resource) { in handle_dlpar_errorlog()
365 rc = dlpar_memory(hp_elog); in handle_dlpar_errorlog()
368 rc = dlpar_cpu(hp_elog); in handle_dlpar_errorlog()
371 rc = dlpar_hp_pmem(hp_elog); in handle_dlpar_errorlog()
376 hp_elog->resource); in handle_dlpar_errorlog()
413 static int dlpar_parse_resource(char **cmd, struct pseries_hp_errorlog *hp_elog) in dlpar_parse_resource() argument
422 hp_elog->resource = PSERIES_HP_ELOG_RESOURCE_MEM; in dlpar_parse_resource()
424 hp_elog->resource = PSERIES_HP_ELOG_RESOURCE_CPU; in dlpar_parse_resource()
433 static int dlpar_parse_action(char **cmd, struct pseries_hp_errorlog *hp_elog) in dlpar_parse_action() argument
442 hp_elog->action = PSERIES_HP_ELOG_ACTION_ADD; in dlpar_parse_action()
444 hp_elog->action = PSERIES_HP_ELOG_ACTION_REMOVE; in dlpar_parse_action()
453 static int dlpar_parse_id_type(char **cmd, struct pseries_hp_errorlog *hp_elog) in dlpar_parse_id_type() argument
463 hp_elog->id_type = PSERIES_HP_ELOG_ID_DRC_IC; in dlpar_parse_id_type()
486 hp_elog->_drc_u.ic.count = cpu_to_be32(count); in dlpar_parse_id_type()
487 hp_elog->_drc_u.ic.index = cpu_to_be32(index); in dlpar_parse_id_type()
489 hp_elog->id_type = PSERIES_HP_ELOG_ID_DRC_INDEX; in dlpar_parse_id_type()
501 hp_elog->_drc_u.drc_index = cpu_to_be32(index); in dlpar_parse_id_type()
503 hp_elog->id_type = PSERIES_HP_ELOG_ID_DRC_COUNT; in dlpar_parse_id_type()
515 hp_elog->_drc_u.drc_count = cpu_to_be32(count); in dlpar_parse_id_type()
527 struct pseries_hp_errorlog hp_elog; in dlpar_store() local
540 rc = dlpar_parse_resource(&args, &hp_elog); in dlpar_store()
544 rc = dlpar_parse_action(&args, &hp_elog); in dlpar_store()
548 rc = dlpar_parse_id_type(&args, &hp_elog); in dlpar_store()
552 rc = handle_dlpar_errorlog(&hp_elog); in dlpar_store()