Lines Matching refs:hp_elog
333 int handle_dlpar_errorlog(struct pseries_hp_errorlog *hp_elog) in handle_dlpar_errorlog() argument
338 switch (hp_elog->id_type) { in handle_dlpar_errorlog()
340 hp_elog->_drc_u.drc_count = in handle_dlpar_errorlog()
341 be32_to_cpu(hp_elog->_drc_u.drc_count); in handle_dlpar_errorlog()
344 hp_elog->_drc_u.drc_index = in handle_dlpar_errorlog()
345 be32_to_cpu(hp_elog->_drc_u.drc_index); in handle_dlpar_errorlog()
348 hp_elog->_drc_u.ic.count = in handle_dlpar_errorlog()
349 be32_to_cpu(hp_elog->_drc_u.ic.count); in handle_dlpar_errorlog()
350 hp_elog->_drc_u.ic.index = in handle_dlpar_errorlog()
351 be32_to_cpu(hp_elog->_drc_u.ic.index); in handle_dlpar_errorlog()
354 switch (hp_elog->resource) { in handle_dlpar_errorlog()
356 rc = dlpar_memory(hp_elog); in handle_dlpar_errorlog()
359 rc = dlpar_cpu(hp_elog); in handle_dlpar_errorlog()
362 rc = dlpar_hp_pmem(hp_elog); in handle_dlpar_errorlog()
367 hp_elog->resource); in handle_dlpar_errorlog()
404 static int dlpar_parse_resource(char **cmd, struct pseries_hp_errorlog *hp_elog) in dlpar_parse_resource() argument
413 hp_elog->resource = PSERIES_HP_ELOG_RESOURCE_MEM; in dlpar_parse_resource()
415 hp_elog->resource = PSERIES_HP_ELOG_RESOURCE_CPU; in dlpar_parse_resource()
424 static int dlpar_parse_action(char **cmd, struct pseries_hp_errorlog *hp_elog) in dlpar_parse_action() argument
433 hp_elog->action = PSERIES_HP_ELOG_ACTION_ADD; in dlpar_parse_action()
435 hp_elog->action = PSERIES_HP_ELOG_ACTION_REMOVE; in dlpar_parse_action()
444 static int dlpar_parse_id_type(char **cmd, struct pseries_hp_errorlog *hp_elog) in dlpar_parse_id_type() argument
454 hp_elog->id_type = PSERIES_HP_ELOG_ID_DRC_IC; in dlpar_parse_id_type()
477 hp_elog->_drc_u.ic.count = cpu_to_be32(count); in dlpar_parse_id_type()
478 hp_elog->_drc_u.ic.index = cpu_to_be32(index); in dlpar_parse_id_type()
480 hp_elog->id_type = PSERIES_HP_ELOG_ID_DRC_INDEX; in dlpar_parse_id_type()
492 hp_elog->_drc_u.drc_index = cpu_to_be32(index); in dlpar_parse_id_type()
494 hp_elog->id_type = PSERIES_HP_ELOG_ID_DRC_COUNT; in dlpar_parse_id_type()
506 hp_elog->_drc_u.drc_count = cpu_to_be32(count); in dlpar_parse_id_type()
518 struct pseries_hp_errorlog hp_elog; in dlpar_store() local
534 rc = dlpar_parse_resource(&args, &hp_elog); in dlpar_store()
538 rc = dlpar_parse_action(&args, &hp_elog); in dlpar_store()
542 rc = dlpar_parse_id_type(&args, &hp_elog); in dlpar_store()
546 rc = handle_dlpar_errorlog(&hp_elog); in dlpar_store()