Searched refs:nrf_802154_buffer_t (Results 1 – 2 of 2) sorted by relevance
48 static uint8_t * buffer_alloc(nrf_802154_buffer_t * p_buffer_pool, size_t buffer_pool_len) in buffer_alloc()50 nrf_802154_buffer_t * p_buffer = NULL; in buffer_alloc()93 static void buffer_free(nrf_802154_buffer_t * p_buffer_to_free, in buffer_free()94 nrf_802154_buffer_t * p_buffer_pool, in buffer_free()99 ((uintptr_t)p_buffer_to_free - (uintptr_t)p_buffer_pool) / sizeof(nrf_802154_buffer_t); in buffer_free()114 size_t capacity = memsize / sizeof(nrf_802154_buffer_t); in nrf_802154_buffer_allocator_init()121 nrf_802154_buffer_t * p_buffer = (nrf_802154_buffer_t *)p_obj->p_memory; 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()
65 ((capacity) * (sizeof(nrf_802154_buffer_t)))74 } nrf_802154_buffer_t; typedef