Home
last modified time | relevance | path

Searched refs:capacity (Results 1 – 6 of 6) sorted by relevance

/hal_nordic-3.4.0/drivers/nrf_802154/driver/src/
Dnrf_802154_queue.c72 size_t capacity = memory_size / item_size; in nrf_802154_queue_init() local
76 assert(capacity >= 2U); in nrf_802154_queue_init()
79 assert(capacity <= UINT8_MAX); in nrf_802154_queue_init()
82 p_queue->capacity = capacity; in nrf_802154_queue_init()
95 p_queue->wridx = increment_modulo(p_queue->wridx, p_queue->capacity); in nrf_802154_queue_push_commit()
105 p_queue->rdidx = increment_modulo(p_queue->rdidx, p_queue->capacity); in nrf_802154_queue_pop_commit()
112 wridx = increment_modulo(p_queue->wridx, p_queue->capacity); in nrf_802154_queue_is_full()
Dnrf_802154_queue.h57 uint8_t capacity; member
/hal_nordic-3.4.0/drivers/nrf_802154/serialization/src/
Dnrf_802154_buffer_allocator.c114 size_t capacity = memsize / sizeof(nrf_802154_buffer_t); in nrf_802154_buffer_allocator_init() local
116 assert((capacity == 0U) || ((capacity != 0U) && (p_memory != NULL))); in nrf_802154_buffer_allocator_init()
119 p_obj->capacity = capacity; in nrf_802154_buffer_allocator_init()
123 for (size_t i = 0; i < p_obj->capacity; i++) in nrf_802154_buffer_allocator_init()
131 return buffer_alloc((nrf_802154_buffer_t *)p_obj->p_memory, p_obj->capacity); in nrf_802154_buffer_allocator_alloc()
137 buffer_free(p_buffer, (nrf_802154_buffer_t *)p_obj->p_memory, p_obj->capacity); in nrf_802154_buffer_allocator_free()
Dnrf_802154_kvmap.c90 p_kvmap->capacity = memsize / NRF_802154_KVMAP_ITEMSIZE(key_size, val_size); in nrf_802154_kvmap_init()
112 else if (p_kvmap->count >= p_kvmap->capacity) in nrf_802154_kvmap_add()
/hal_nordic-3.4.0/drivers/nrf_802154/serialization/src/include/
Dnrf_802154_buffer_allocator.h64 #define NRF_802154_BUFFER_ALLOCATOR_MEMORY_SIZE(capacity) \ argument
65 ((capacity) * (sizeof(nrf_802154_buffer_t)))
82 size_t capacity; member
132 return p_obj->capacity; in nrf_802154_buffer_allocator_capacity()
Dnrf_802154_kvmap.h51 size_t capacity; member
71 #define NRF_802154_KVMAP_MEMORY_SIZE(capacity, key_size, val_size) \ argument
72 ((capacity) * ((key_size) + (val_size)))
105 return p_kvmap->capacity; in nrf_802154_kvmap_capacity()