Go to the source code of this file.
|
| static struct sof_tlv * | tlv_next (const struct sof_tlv *tlv) |
| | Allows to step through successive values in a sequence of TLV structures.
|
| |
| static void | tlv_value_uint32_set (struct sof_tlv *tlv, uint32_t type, uint32_t value) |
| | Fills the TLV Structure (version for 32-bit values).
|
| |
| static void | tlv_value_set (struct sof_tlv *tlv, uint32_t type, uint32_t length, void *value) |
| | Fills the TLV Structure (general purpose version).
|
| |
| static void | tlv_value_get (const void *data, uint32_t size, uint32_t type, void **value, uint32_t *length) |
| | Searches a sequence of TLV structures for values of the specified type.
|
| |
| static void * | tlv_value_ptr_get (struct sof_tlv *tlv, uint32_t type) |
| | Retrieves pointer to the TLV Structure value of the specified type.
|
| |
◆ tlv_next()
Allows to step through successive values in a sequence of TLV structures.
- Parameters
-
| tlv | Pointer to the base TLV. |
- Returns
- struct sof_tlv* Pointer to the next TLV.
◆ tlv_value_get()
| static void tlv_value_get |
( |
const void * |
data, |
|
|
uint32_t |
size, |
|
|
uint32_t |
type, |
|
|
void ** |
value, |
|
|
uint32_t * |
length |
|
) |
| |
|
inlinestatic |
Searches a sequence of TLV structures for values of the specified type.
- Parameters
-
| data | Pointer to the beginning of the TLV sequence. |
| size | The size of the data block containing the TLV structure sequences. |
| type | The type of the searched value. |
| value | A pointer that will point to the found value. |
| length | The size of the found value. |
◆ tlv_value_ptr_get()
| static void * tlv_value_ptr_get |
( |
struct sof_tlv * |
tlv, |
|
|
uint32_t |
type |
|
) |
| |
|
inlinestatic |
Retrieves pointer to the TLV Structure value of the specified type.
- Parameters
-
| tlv | TLV struct pointer. |
| type | Value type. |
- Returns
- Value pointer
◆ tlv_value_set()
| static void tlv_value_set |
( |
struct sof_tlv * |
tlv, |
|
|
uint32_t |
type, |
|
|
uint32_t |
length, |
|
|
void * |
value |
|
) |
| |
|
inlinestatic |
Fills the TLV Structure (general purpose version).
- Parameters
-
| tlv | TLV struct pointer. |
| type | Value type. |
| length | Value size. |
| value | Pointer to the value. |
◆ tlv_value_uint32_set()
| static void tlv_value_uint32_set |
( |
struct sof_tlv * |
tlv, |
|
|
uint32_t |
type, |
|
|
uint32_t |
value |
|
) |
| |
|
inlinestatic |
Fills the TLV Structure (version for 32-bit values).
- Parameters
-
| tlv | TLV struct pointer. |
| type | Value type. |
| value | The value. |