Lines Matching refs:hp_elog

343 int handle_dlpar_errorlog(struct pseries_hp_errorlog *hp_elog)  in handle_dlpar_errorlog()  argument
348 switch (hp_elog->id_type) { in handle_dlpar_errorlog()
350 hp_elog->_drc_u.drc_count = in handle_dlpar_errorlog()
351 be32_to_cpu(hp_elog->_drc_u.drc_count); in handle_dlpar_errorlog()
354 hp_elog->_drc_u.drc_index = in handle_dlpar_errorlog()
355 be32_to_cpu(hp_elog->_drc_u.drc_index); in handle_dlpar_errorlog()
358 hp_elog->_drc_u.ic.count = in handle_dlpar_errorlog()
359 be32_to_cpu(hp_elog->_drc_u.ic.count); in handle_dlpar_errorlog()
360 hp_elog->_drc_u.ic.index = in handle_dlpar_errorlog()
361 be32_to_cpu(hp_elog->_drc_u.ic.index); in handle_dlpar_errorlog()
364 switch (hp_elog->resource) { in handle_dlpar_errorlog()
366 rc = dlpar_memory(hp_elog); in handle_dlpar_errorlog()
369 rc = dlpar_cpu(hp_elog); in handle_dlpar_errorlog()
372 rc = dlpar_hp_pmem(hp_elog); in handle_dlpar_errorlog()
377 hp_elog->resource); in handle_dlpar_errorlog()
414 static int dlpar_parse_resource(char **cmd, struct pseries_hp_errorlog *hp_elog) in dlpar_parse_resource() argument
423 hp_elog->resource = PSERIES_HP_ELOG_RESOURCE_MEM; in dlpar_parse_resource()
425 hp_elog->resource = PSERIES_HP_ELOG_RESOURCE_CPU; in dlpar_parse_resource()
434 static int dlpar_parse_action(char **cmd, struct pseries_hp_errorlog *hp_elog) in dlpar_parse_action() argument
443 hp_elog->action = PSERIES_HP_ELOG_ACTION_ADD; in dlpar_parse_action()
445 hp_elog->action = PSERIES_HP_ELOG_ACTION_REMOVE; in dlpar_parse_action()
454 static int dlpar_parse_id_type(char **cmd, struct pseries_hp_errorlog *hp_elog) in dlpar_parse_id_type() argument
464 hp_elog->id_type = PSERIES_HP_ELOG_ID_DRC_IC; in dlpar_parse_id_type()
487 hp_elog->_drc_u.ic.count = cpu_to_be32(count); in dlpar_parse_id_type()
488 hp_elog->_drc_u.ic.index = cpu_to_be32(index); in dlpar_parse_id_type()
490 hp_elog->id_type = PSERIES_HP_ELOG_ID_DRC_INDEX; in dlpar_parse_id_type()
502 hp_elog->_drc_u.drc_index = cpu_to_be32(index); in dlpar_parse_id_type()
504 hp_elog->id_type = PSERIES_HP_ELOG_ID_DRC_COUNT; in dlpar_parse_id_type()
516 hp_elog->_drc_u.drc_count = cpu_to_be32(count); in dlpar_parse_id_type()
528 struct pseries_hp_errorlog hp_elog; in dlpar_store() local
541 rc = dlpar_parse_resource(&args, &hp_elog); in dlpar_store()
545 rc = dlpar_parse_action(&args, &hp_elog); in dlpar_store()
549 rc = dlpar_parse_id_type(&args, &hp_elog); in dlpar_store()
553 rc = handle_dlpar_errorlog(&hp_elog); in dlpar_store()