Searched refs:mem_size (Results 1 – 4 of 4) sorted by relevance
/Zephyr-Core-2.7.6/subsys/bluetooth/controller/util/ |
D | mem.c | 15 void mem_init(void *mem_pool, uint16_t mem_size, uint16_t mem_count, in mem_init() argument 28 (void)memset(((uint8_t *)mem_pool + (mem_size * (--mem_count))), 0, in mem_init() 34 (mem_size * (mem_count + 1))); in mem_init() 35 memcpy(((uint8_t *)mem_pool + (mem_size * mem_count)), in mem_init() 100 void *mem_get(void *mem_pool, uint16_t mem_size, uint16_t index) in mem_get() argument 102 return ((void *)((uint8_t *)mem_pool + (mem_size * index))); in mem_get() 105 uint16_t mem_index_get(void *mem, void *mem_pool, uint16_t mem_size) in mem_index_get() argument 107 return ((uint16_t)((uint8_t *)mem - (uint8_t *)mem_pool) / mem_size); in mem_index_get()
|
D | mem.h | 40 void mem_init(void *mem_pool, uint16_t mem_size, uint16_t mem_count, void **mem_head); 45 void *mem_get(void *mem_pool, uint16_t mem_size, uint16_t index); 46 uint16_t mem_index_get(void *mem, void *mem_pool, uint16_t mem_size);
|
/Zephyr-Core-2.7.6/drivers/ethernet/ |
D | eth_w5500.c | 114 const uint16_t mem_size = W5500_RX_MEM_SIZE; in w5500_readbuf() local 116 offset %= mem_size; in w5500_readbuf() 119 if (offset + len > mem_size) { in w5500_readbuf() 120 remain = (offset + len) % mem_size; in w5500_readbuf() 121 len = mem_size - offset; in w5500_readbuf() 139 const uint32_t mem_size = W5500_TX_MEM_SIZE; in w5500_writebuf() local 141 offset %= mem_size; in w5500_writebuf() 144 if (offset + len > mem_size) { in w5500_writebuf() 145 remain = (offset + len) % mem_size; in w5500_writebuf() 146 len = mem_size - offset; in w5500_writebuf()
|
/Zephyr-Core-2.7.6/arch/x86/ |
D | gen_mmu.py | 457 mem_size = mem_end - mem_start 459 self.reserve(mem_start, mem_size, to_level)
|