coreboot
coreboot is an Open Source project aimed at replacing the proprietary BIOS found in most computers.
vpd_decode.c File Reference
#include "vpd_decode.h"
Include dependency graph for vpd_decode.c:

Go to the source code of this file.

Functions

static int vpd_decode_len (const u32 max_len, const u8 *in, u32 *length, u32 *decoded_len)
 
static int vpd_decode_entry (const u32 max_len, const u8 *input_buf, u32 *consumed, const u8 **entry, u32 *entry_len)
 
int vpd_decode_string (const u32 max_len, const u8 *input_buf, u32 *consumed, vpd_decode_callback callback, void *callback_arg)
 

Function Documentation

◆ vpd_decode_entry()

static int vpd_decode_entry ( const u32  max_len,
const u8 input_buf,
u32 consumed,
const u8 **  entry,
u32 entry_len 
)
static

Definition at line 33 of file vpd_decode.c.

References VPD_DECODE_FAIL, vpd_decode_len(), and VPD_DECODE_OK.

Referenced by vpd_decode_string().

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

◆ vpd_decode_len()

static int vpd_decode_len ( const u32  max_len,
const u8 in,
u32 length,
u32 decoded_len 
)
static

Definition at line 9 of file vpd_decode.c.

References length, VPD_DECODE_FAIL, and VPD_DECODE_OK.

Referenced by vpd_decode_entry().

Here is the caller graph for this function:

◆ vpd_decode_string()

int vpd_decode_string ( const u32  max_len,
const u8 input_buf,
u32 consumed,
vpd_decode_callback  callback,
void callback_arg 
)

Definition at line 56 of file vpd_decode.c.

References type, value, vpd_decode_entry(), VPD_DECODE_FAIL, VPD_DECODE_OK, VPD_TYPE_INFO, and VPD_TYPE_STRING.

Referenced by vpd_find_in().

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