Lines Matching refs:hp_elog
540 static int handle_dlpar_errorlog(struct pseries_hp_errorlog *hp_elog) in handle_dlpar_errorlog() argument
545 switch (hp_elog->id_type) { in handle_dlpar_errorlog()
547 hp_elog->_drc_u.drc_count = in handle_dlpar_errorlog()
548 be32_to_cpu(hp_elog->_drc_u.drc_count); in handle_dlpar_errorlog()
551 hp_elog->_drc_u.drc_index = in handle_dlpar_errorlog()
552 be32_to_cpu(hp_elog->_drc_u.drc_index); in handle_dlpar_errorlog()
555 switch (hp_elog->resource) { in handle_dlpar_errorlog()
557 rc = dlpar_memory(hp_elog); in handle_dlpar_errorlog()
561 hp_elog->resource); in handle_dlpar_errorlog()
571 struct pseries_hp_errorlog *hp_elog; in dlpar_store() local
575 hp_elog = kzalloc(sizeof(*hp_elog), GFP_KERNEL); in dlpar_store()
576 if (!hp_elog) { in dlpar_store()
586 hp_elog->resource = PSERIES_HP_ELOG_RESOURCE_MEM; in dlpar_store()
595 hp_elog->action = PSERIES_HP_ELOG_ACTION_ADD; in dlpar_store()
598 hp_elog->action = PSERIES_HP_ELOG_ACTION_REMOVE; in dlpar_store()
609 hp_elog->id_type = PSERIES_HP_ELOG_ID_DRC_INDEX; in dlpar_store()
617 hp_elog->_drc_u.drc_index = cpu_to_be32(index); in dlpar_store()
621 hp_elog->id_type = PSERIES_HP_ELOG_ID_DRC_COUNT; in dlpar_store()
629 hp_elog->_drc_u.drc_count = cpu_to_be32(count); in dlpar_store()
636 rc = handle_dlpar_errorlog(hp_elog); in dlpar_store()
639 kfree(hp_elog); in dlpar_store()