Home
last modified time | relevance | path

Searched refs:val_size (Results 1 – 2 of 2) sorted by relevance

/hal_nordic-3.4.0/drivers/nrf_802154/serialization/src/
Dnrf_802154_kvmap.c46 #define NRF_802154_KVMAP_ITEMSIZE(key_size, val_size) ((key_size) + (val_size)) argument
51 (idx * NRF_802154_KVMAP_ITEMSIZE(p_kvmap->key_size, p_kvmap->val_size)); in item_ptr_by_idx_get()
58 if (p_kvmap->val_size != 0U) in item_value_write()
60 memcpy(p_item + p_kvmap->key_size, p_value, p_kvmap->val_size); in item_value_write()
66 size_t item_size = NRF_802154_KVMAP_ITEMSIZE(p_kvmap->key_size, p_kvmap->val_size); in item_idx_by_key_search()
87 size_t val_size) in nrf_802154_kvmap_init() argument
90 p_kvmap->capacity = memsize / NRF_802154_KVMAP_ITEMSIZE(key_size, val_size); in nrf_802154_kvmap_init()
92 p_kvmap->val_size = val_size; in nrf_802154_kvmap_init()
157 NRF_802154_KVMAP_ITEMSIZE(p_kvmap->key_size, p_kvmap->val_size)); in nrf_802154_kvmap_remove()
191 if ((p_value != NULL) && (p_kvmap->val_size != 0U)) in nrf_802154_kvmap_search()
[all …]
/hal_nordic-3.4.0/drivers/nrf_802154/serialization/src/include/
Dnrf_802154_kvmap.h57 size_t val_size; member
71 #define NRF_802154_KVMAP_MEMORY_SIZE(capacity, key_size, val_size) \ argument
72 ((capacity) * ((key_size) + (val_size)))
95 size_t val_size);