Searched refs:capacity (Results 1 – 6 of 6) sorted by relevance
72 size_t capacity = memory_size / item_size; in nrf_802154_queue_init() local76 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()
57 uint8_t capacity; member
114 size_t capacity = memsize / sizeof(nrf_802154_buffer_t); in nrf_802154_buffer_allocator_init() local116 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()
90 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()
64 #define NRF_802154_BUFFER_ALLOCATOR_MEMORY_SIZE(capacity) \ argument65 ((capacity) * (sizeof(nrf_802154_buffer_t)))82 size_t capacity; member132 return p_obj->capacity; in nrf_802154_buffer_allocator_capacity()
51 size_t capacity; member71 #define NRF_802154_KVMAP_MEMORY_SIZE(capacity, key_size, val_size) \ argument72 ((capacity) * ((key_size) + (val_size)))105 return p_kvmap->capacity; in nrf_802154_kvmap_capacity()