coreboot
coreboot is an Open Source project aimed at replacing the proprietary BIOS found in most computers.
region_file.h File Reference
#include <commonlib/region.h>
#include <stddef.h>
#include <stdint.h>
Include dependency graph for region_file.h:
This graph shows which files directly or indirectly include this file:

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)
 

Function Documentation

◆ region_file_data()

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().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ region_file_init()

int region_file_init ( struct region_file f,
const struct region_device p 
)

◆ region_file_update_data()

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().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ region_file_update_data_arr()

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().

Here is the call graph for this function:
Here is the caller graph for this function: