Lines Matching refs:hp_elog
520 static int handle_dlpar_errorlog(struct pseries_hp_errorlog *hp_elog) in handle_dlpar_errorlog() argument
525 switch (hp_elog->id_type) { in handle_dlpar_errorlog()
527 hp_elog->_drc_u.drc_count = in handle_dlpar_errorlog()
528 be32_to_cpu(hp_elog->_drc_u.drc_count); in handle_dlpar_errorlog()
531 hp_elog->_drc_u.drc_index = in handle_dlpar_errorlog()
532 be32_to_cpu(hp_elog->_drc_u.drc_index); in handle_dlpar_errorlog()
535 switch (hp_elog->resource) { in handle_dlpar_errorlog()
537 rc = dlpar_memory(hp_elog); in handle_dlpar_errorlog()
541 hp_elog->resource); in handle_dlpar_errorlog()
551 struct pseries_hp_errorlog *hp_elog; in dlpar_store() local
555 hp_elog = kzalloc(sizeof(*hp_elog), GFP_KERNEL); in dlpar_store()
556 if (!hp_elog) { in dlpar_store()
566 hp_elog->resource = PSERIES_HP_ELOG_RESOURCE_MEM; in dlpar_store()
575 hp_elog->action = PSERIES_HP_ELOG_ACTION_ADD; in dlpar_store()
578 hp_elog->action = PSERIES_HP_ELOG_ACTION_REMOVE; in dlpar_store()
589 hp_elog->id_type = PSERIES_HP_ELOG_ID_DRC_INDEX; in dlpar_store()
597 hp_elog->_drc_u.drc_index = cpu_to_be32(index); in dlpar_store()
601 hp_elog->id_type = PSERIES_HP_ELOG_ID_DRC_COUNT; in dlpar_store()
609 hp_elog->_drc_u.drc_count = cpu_to_be32(count); in dlpar_store()
616 rc = handle_dlpar_errorlog(hp_elog); in dlpar_store()
619 kfree(hp_elog); in dlpar_store()