112 static bool done =
false;
225 *size =
arg.value_len;
231 const void *string_address;
240 int copy_size =
MIN(size - 1, string_size);
270 }
else if (*
value ==
'0') {
void * memcpy(void *dest, const void *src, size_t n)
void * memset(void *dstpp, int c, size_t len)
#define assert(statement)
static int cbmem_possibly_online(void)
void * cbmem_add(u32 id, u64 size)
void * cbmem_find(u32 id)
#define ROMSTAGE_CBMEM_INIT_HOOK(init_fn_)
#define printk(level,...)
static int isdigit(int c)
static struct smmstore_params_info info
#define GOOGLE_VPD_2_0_OFFSET
static struct region_device rdev
int fmap_locate_area_as_rdev(const char *name, struct region_device *area)
void timestamp_add_now(enum timestamp_id id)
#define BIOS_CRIT
BIOS_CRIT - Recovery unlikely.
#define BIOS_ERR
BIOS_ERR - System in incomplete state.
#define BIOS_WARNING
BIOS_WARNING - Bad configuration.
u8 buffer[C2P_BUFFER_MAXSIZE]
int rdev_munmap(const struct region_device *rd, void *mapping)
static size_t region_device_sz(const struct region_device *rdev)
int rdev_chain_mem(struct region_device *child, const void *base, size_t size)
static void * rdev_mmap_full(const struct region_device *rd)
int rdev_chain(struct region_device *child, const struct region_device *parent, size_t offset, size_t size)
ssize_t rdev_readat(const struct region_device *rd, void *b, size_t offset, size_t size)
int memcmp(const void *s1, const void *s2, size_t n)
size_t strlen(const char *src)
long atol(const char *str)
char * vpd_gets(const char *key, char *buffer, int size, enum vpd_region region)
static struct region_device ro_vpd rw_vpd
static void init_vpd_rdevs(void)
static void cbmem_add_cros_vpd(int is_recovery)
static void init_vpd_rdev(const char *fmap_name, struct region_device *rdev)
const void * vpd_find(const char *key, int *size, enum vpd_region region)
static int init_vpd_rdevs_from_cbmem(void)
bool vpd_get_int(const char *const key, const enum vpd_region region, int *const val)
static int vpd_gets_callback(const uint8_t *key, uint32_t key_len, const uint8_t *value, uint32_t value_len, void *arg)
bool vpd_get_bool(const char *key, enum vpd_region region, uint8_t *val)
static void vpd_find_in(struct region_device *rdev, struct vpd_gets_arg *arg)
int vpd_decode_string(const u32 max_len, const u8 *input_buf, u32 *consumed, vpd_decode_callback callback, void *callback_arg)
@ VPD_TYPE_IMPLICIT_TERMINATOR