Searched refs:MEM_ALIGNMENT (Results 1 – 10 of 10) sorted by relevance
100 #define LWIP_MEM_ALIGN_SIZE(size) (((size) + MEM_ALIGNMENT - 1) & ~(MEM_ALIGNMENT-1))108 #define LWIP_MEM_ALIGN_BUFFER(size) (((size) + MEM_ALIGNMENT - 1))115 … LWIP_MEM_ALIGN(addr) ((void *)(((mem_ptr_t)(addr) + MEM_ALIGNMENT - 1) & ~(mem_ptr_t)(MEM_ALIGNME…
123 #ifndef MEM_ALIGNMENT124 #define MEM_ALIGNMENT 1 macro
181 u8_t ram_heap[MEM_SIZE_ALIGNED + (2*SIZEOF_STRUCT_MEM) + MEM_ALIGNMENT];276 (SIZEOF_STRUCT_MEM & (MEM_ALIGNMENT-1)) == 0); in lwip_mem_init()317 LWIP_ASSERT("mem_free: sanity check alignment", (((mem_ptr_t)rmem) & (MEM_ALIGNMENT-1)) == 0); in mem_free()600 ((mem_ptr_t)mem + SIZEOF_STRUCT_MEM) % MEM_ALIGNMENT == 0); in mem_malloc()602 (((mem_ptr_t)mem) & (MEM_ALIGNMENT-1)) == 0); in mem_malloc()
170 static u8_t memp_memory[MEM_ALIGNMENT - 1 415 ((mem_ptr_t)memp % MEM_ALIGNMENT) == 0); in memp_malloc()443 ((mem_ptr_t)mem % MEM_ALIGNMENT) == 0); in memp_free()
229 ((mem_ptr_t)p->payload % MEM_ALIGNMENT) == 0); in pbuf_alloc()270 ((mem_ptr_t)q->payload % MEM_ALIGNMENT) == 0); in pbuf_alloc()297 ((mem_ptr_t)p->payload % MEM_ALIGNMENT) == 0); in pbuf_alloc()
163 #if (PBUF_POOL_BUFSIZE <= MEM_ALIGNMENT)
771 LWIP_ASSERT("seg->tcphdr not aligned", ((mem_ptr_t)seg->tcphdr % MEM_ALIGNMENT) == 0); in tcp_enqueue_flags()1066 LWIP_ASSERT("seg->tcphdr not aligned", ((mem_ptr_t)seg->tcphdr % MEM_ALIGNMENT) == 0); in tcp_output_segment()
190 if (buflen < (sizeof(struct gethostbyname_r_helper) + namelen + 1 + (MEM_ALIGNMENT - 1))) { in lwip_gethostbyname_r()
618 static u8_t buf[LWIP_MEM_ALIGN_SIZE(IP_FRAG_MAX_MTU + MEM_ALIGNMENT - 1)];
1088 too small depending on MEM_ALIGNMENT