![]() |
coreboot
coreboot is an Open Source project aimed at replacing the proprietary BIOS found in most computers.
|
Go to the source code of this file.
Data Structures | |
struct | update_region_file_entry |
struct | region_file |
Functions | |
int | region_file_init (struct region_file *f, const struct region_device *p) |
int | region_file_data (const struct region_file *f, struct region_device *rdev) |
int | region_file_update_data_arr (struct region_file *f, const struct update_region_file_entry *entries, size_t num_entries) |
int | region_file_update_data (struct region_file *f, const void *buf, size_t size) |
int region_file_data | ( | const struct region_file * | f, |
struct region_device * | rdev | ||
) |
Definition at line 243 of file region_file.c.
References block_to_bytes(), offset, rdev, region_file::rdev, rdev_chain(), region_file_data_begin(), region_file_data_end(), RF_ONLY_METADATA, and region_file::slot.
Referenced by mrc_cache_get_latest_slot_info().
int region_file_init | ( | struct region_file * | f, |
const struct region_device * | p | ||
) |
Definition at line 186 of file region_file.c.
References BIOS_ERR, block_offset_unallocated(), block_to_bytes(), fill_data_boundaries(), find_latest_mb(), find_latest_slot(), mb, memset(), region_file::metadata, printk, region_file::rdev, rdev_chain(), rdev_chain_full(), rdev_readat(), RF_EMPTY, RF_FATAL, RF_NEED_TO_EMPTY, and region_file::slot.
Referenced by invalidate_normal_cache(), and mrc_cache_get_latest_slot_info().
int region_file_update_data | ( | struct region_file * | f, |
const void * | buf, | ||
size_t | size | ||
) |
Definition at line 473 of file region_file.c.
References buf, region_file_update_data_arr(), and update_region_file_entry::size.
Referenced by invalidate_normal_cache().
int region_file_update_data_arr | ( | struct region_file * | f, |
const struct update_region_file_entry * | entries, | ||
size_t | num_entries | ||
) |
Definition at line 429 of file region_file.c.
References ALIGN_UP, metadata_block::blocks, bytes_to_block(), handle_empty(), handle_need_to_empty(), handle_update(), REGF_BLOCK_GRANULARITY, RF_EMPTY, RF_FATAL, RF_NEED_TO_EMPTY, RF_ONLY_METADATA, and region_file::slot.
Referenced by region_file_update_data(), and update_mrc_cache_by_type().