Home
last modified time | relevance | path

Searched refs:RT_ALIGN_SIZE (Results 1 – 24 of 24) sorted by relevance

/nrf52832-nimble/rt-thread/components/net/uip/rt-thread/
H A Duip_pbuf.c5 … 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 Dmem.c128 #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 Dmempool.c94 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 Dmemheap.c36 #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 Ddevice.c163 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 Didle.c50 ALIGN(RT_ALIGN_SIZE)
H A Dtimer.c39 ALIGN(RT_ALIGN_SIZE)
H A DKconfig27 config RT_ALIGN_SIZE config
H A Dipc.c1804 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 Drtconfig.h10 #define RT_ALIGN_SIZE 4 macro
/nrf52832-nimble/rt-thread/components/lwp/
H A Dlwp_memheap.c31 #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 Dlwp_mem.c21 #define RT_MEMHEAP_SIZE RT_ALIGN(sizeof(struct rt_lwp_memheap_item), RT_ALIGN_SIZE)
/nrf52832-nimble/rt-thread/components/drivers/src/
H A Dringbuffer.c42 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 Dportserial.c31 ALIGN(RT_ALIGN_SIZE)
H A Dportserial_m.c32 ALIGN(RT_ALIGN_SIZE)
/nrf52832-nimble/rt-thread/components/libc/pthreads/
H A Dpthread_attr.c159 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 Ddfs_ramfs.c427 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 Dfinsh_heap.c14 ALIGN(RT_ALIGN_SIZE) in ALIGN() argument
H A Dshell.c39 ALIGN(RT_ALIGN_SIZE)
/nrf52832-nimble/rt-thread/components/drivers/audio/
H A Daudio_pipe.c267 size = RT_ALIGN(size, RT_ALIGN_SIZE); in rt_audio_pipe_create()
/nrf52832-nimble/rt-thread/components/utilities/ulog/
H A Dulog.c424 …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 Dhid.c621 ALIGN(RT_ALIGN_SIZE)
H A Dcdc_vcom.c57 ALIGN(RT_ALIGN_SIZE)
/nrf52832-nimble/rt-thread/components/drivers/usb/usbdevice/core/
H A Dcore.c2183 ALIGN(RT_ALIGN_SIZE)