Searched refs:p_kvmap (Results 1 – 2 of 2) sorted by relevance
/hal_nordic-3.4.0/drivers/nrf_802154/serialization/src/ |
D | nrf_802154_kvmap.c | 48 static inline uint8_t * item_ptr_by_idx_get(const nrf_802154_kvmap_t * p_kvmap, size_t idx) in item_ptr_by_idx_get() argument 50 return ((uint8_t *)(p_kvmap->p_memory)) + in item_ptr_by_idx_get() 51 (idx * NRF_802154_KVMAP_ITEMSIZE(p_kvmap->key_size, p_kvmap->val_size)); in item_ptr_by_idx_get() 54 static void item_value_write(const nrf_802154_kvmap_t * p_kvmap, in item_value_write() argument 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() 64 static size_t item_idx_by_key_search(const nrf_802154_kvmap_t * p_kvmap, const void * p_key) in item_idx_by_key_search() argument 66 size_t item_size = NRF_802154_KVMAP_ITEMSIZE(p_kvmap->key_size, p_kvmap->val_size); in item_idx_by_key_search() 67 uint8_t * p_item = p_kvmap->p_memory; in item_idx_by_key_search() 71 for (idx = 0U; idx < p_kvmap->count; ++idx, p_item += item_size) in item_idx_by_key_search() [all …]
|
/hal_nordic-3.4.0/drivers/nrf_802154/serialization/src/include/ |
D | nrf_802154_kvmap.h | 91 void nrf_802154_kvmap_init(nrf_802154_kvmap_t * p_kvmap, 103 static inline size_t nrf_802154_kvmap_capacity(const nrf_802154_kvmap_t * p_kvmap) in nrf_802154_kvmap_capacity() argument 105 return p_kvmap->capacity; in nrf_802154_kvmap_capacity() 114 static inline size_t nrf_802154_kvmap_count(const nrf_802154_kvmap_t * p_kvmap) in nrf_802154_kvmap_count() argument 116 return p_kvmap->count; in nrf_802154_kvmap_count() 136 bool nrf_802154_kvmap_add(nrf_802154_kvmap_t * p_kvmap, 150 bool nrf_802154_kvmap_remove(nrf_802154_kvmap_t * p_kvmap, const void * p_key); 170 bool nrf_802154_kvmap_search(const nrf_802154_kvmap_t * p_kvmap,
|