/nrf52832-nimble/rt-thread/components/net/uip/rt-thread/ |
H A D | uip_pbuf.c | 5 … LWIP_MEM_ALIGN(addr) ((void *)(((mem_ptr_t)(addr) + RT_ALIGN_SIZE - 1) & ~(mem_ptr_t)(RT_ALIGN_SI… 6 #define LWIP_MEM_ALIGN_SIZE(size) (((size) + RT_ALIGN_SIZE - 1) & ~(RT_ALIGN_SIZE-1))
|
/nrf52832-nimble/rt-thread/src/ |
H A D | mem.c | 128 #define MIN_SIZE_ALIGNED RT_ALIGN(MIN_SIZE, RT_ALIGN_SIZE) 129 #define SIZEOF_STRUCT_MEM RT_ALIGN(sizeof(struct heap_mem), RT_ALIGN_SIZE) 207 rt_ubase_t begin_align = RT_ALIGN((rt_ubase_t)begin_addr, RT_ALIGN_SIZE); in rt_system_heap_init() 208 rt_ubase_t end_align = RT_ALIGN_DOWN((rt_ubase_t)end_addr, RT_ALIGN_SIZE); in rt_system_heap_init() 282 if (size != RT_ALIGN(size, RT_ALIGN_SIZE)) in rt_malloc() 284 size, RT_ALIGN(size, RT_ALIGN_SIZE))); in rt_malloc() 289 size = RT_ALIGN(size, RT_ALIGN_SIZE); in rt_malloc() 391 RT_ASSERT((rt_ubase_t)((rt_uint8_t *)mem + SIZEOF_STRUCT_MEM) % RT_ALIGN_SIZE == 0); in rt_malloc() 392 RT_ASSERT((((rt_ubase_t)mem) & (RT_ALIGN_SIZE - 1)) == 0); in rt_malloc() 431 newsize = RT_ALIGN(newsize, RT_ALIGN_SIZE); in rt_realloc() [all …]
|
H A D | mempool.c | 94 mp->size = RT_ALIGN_DOWN(size, RT_ALIGN_SIZE); in rt_mp_init() 97 block_size = RT_ALIGN(block_size, RT_ALIGN_SIZE); in rt_mp_init() 202 block_size = RT_ALIGN(block_size, RT_ALIGN_SIZE); in rt_mp_create()
|
H A D | memheap.c | 36 #define RT_MEMHEAP_SIZE RT_ALIGN(sizeof(struct rt_memheap_item), RT_ALIGN_SIZE) 63 memheap->pool_size = RT_ALIGN_DOWN(size, RT_ALIGN_SIZE); in rt_memheap_init() 148 size = RT_ALIGN(size, RT_ALIGN_SIZE); in rt_memheap_alloc() 301 newsize = RT_ALIGN(newsize, RT_ALIGN_SIZE); in rt_memheap_realloc()
|
H A D | device.c | 163 size = RT_ALIGN(sizeof(struct rt_device), RT_ALIGN_SIZE); in rt_device_create() 164 attach_size = RT_ALIGN(attach_size, RT_ALIGN_SIZE); in rt_device_create()
|
H A D | idle.c | 50 ALIGN(RT_ALIGN_SIZE)
|
H A D | timer.c | 39 ALIGN(RT_ALIGN_SIZE)
|
H A D | Kconfig | 27 config RT_ALIGN_SIZE config
|
H A D | ipc.c | 1804 mq->msg_size = RT_ALIGN(msg_size, RT_ALIGN_SIZE); in rt_mq_init() 1888 mq->msg_size = RT_ALIGN(msg_size, RT_ALIGN_SIZE); in rt_mq_create()
|
/nrf52832-nimble/ |
H A D | rtconfig.h | 10 #define RT_ALIGN_SIZE 4 macro
|
/nrf52832-nimble/rt-thread/components/lwp/ |
H A D | lwp_memheap.c | 31 #define RT_MEMHEAP_SIZE RT_ALIGN(sizeof(struct rt_lwp_memheap_item), RT_ALIGN_SIZE) 56 memheap->pool_size = RT_ALIGN_DOWN(size, RT_ALIGN_SIZE); in rt_lwp_memheap_init() 125 size = RT_ALIGN(size, RT_ALIGN_SIZE); in rt_lwp_memheap_alloc() 274 newsize = RT_ALIGN(newsize, RT_ALIGN_SIZE); in rt_lwp_memheap_realloc()
|
H A D | lwp_mem.c | 21 #define RT_MEMHEAP_SIZE RT_ALIGN(sizeof(struct rt_lwp_memheap_item), RT_ALIGN_SIZE)
|
/nrf52832-nimble/rt-thread/components/drivers/src/ |
H A D | ringbuffer.c | 42 rb->buffer_size = RT_ALIGN_DOWN(size, RT_ALIGN_SIZE); in rt_ringbuffer_init() 333 size = RT_ALIGN_DOWN(size, RT_ALIGN_SIZE); in rt_ringbuffer_create()
|
/nrf52832-nimble/rt-thread/components/net/freemodbus/port/ |
H A D | portserial.c | 31 ALIGN(RT_ALIGN_SIZE)
|
H A D | portserial_m.c | 32 ALIGN(RT_ALIGN_SIZE)
|
/nrf52832-nimble/rt-thread/components/libc/pthreads/ |
H A D | pthread_attr.c | 159 attr->stack_size = RT_ALIGN_DOWN(stack_size, RT_ALIGN_SIZE); in pthread_attr_setstack()
|
/nrf52832-nimble/rt-thread/components/dfs/filesystems/ramfs/ |
H A D | dfs_ramfs.c | 427 size = RT_ALIGN_DOWN(size, RT_ALIGN_SIZE); in dfs_ramfs_create() 432 size = RT_ALIGN_DOWN(size, RT_ALIGN_SIZE); in dfs_ramfs_create()
|
/nrf52832-nimble/rt-thread/components/finsh/ |
H A D | finsh_heap.c | 14 ALIGN(RT_ALIGN_SIZE) in ALIGN() argument
|
H A D | shell.c | 39 ALIGN(RT_ALIGN_SIZE)
|
/nrf52832-nimble/rt-thread/components/drivers/audio/ |
H A D | audio_pipe.c | 267 size = RT_ALIGN(size, RT_ALIGN_SIZE); in rt_audio_pipe_create()
|
/nrf52832-nimble/rt-thread/components/utilities/ulog/ |
H A D | ulog.c | 424 …k = rt_rbb_blk_alloc(ulog.async_rbb, RT_ALIGN(sizeof(struct ulog_frame) + log_len, RT_ALIGN_SIZE)); 1236 …ulog.async_rbb = rt_rbb_create(RT_ALIGN(ULOG_ASYNC_OUTPUT_BUF_SIZE, RT_ALIGN_SIZE), ULOG_ASYNC_OUT…
|
/nrf52832-nimble/rt-thread/components/drivers/usb/usbdevice/class/ |
H A D | hid.c | 621 ALIGN(RT_ALIGN_SIZE)
|
H A D | cdc_vcom.c | 57 ALIGN(RT_ALIGN_SIZE)
|
/nrf52832-nimble/rt-thread/components/drivers/usb/usbdevice/core/ |
H A D | core.c | 2183 ALIGN(RT_ALIGN_SIZE)
|