Home
last modified time | relevance | path

Searched refs:MEM_ALIGNMENT (Results 1 – 11 of 11) sorted by relevance

/lib/liblwip/src/include/lwip/
Dmem.h101 #define LWIP_MEM_ALIGN_SIZE(size) (((size) + MEM_ALIGNMENT - 1) & ~(MEM_ALIGNMENT-1))
109 #define LWIP_MEM_ALIGN_BUFFER(size) (((size) + MEM_ALIGNMENT - 1))
116 … LWIP_MEM_ALIGN(addr) ((void *)(((mem_ptr_t)(addr) + MEM_ALIGNMENT - 1) & ~(mem_ptr_t)(MEM_ALIGNME…
Dlwipopts.h78 #define MEM_ALIGNMENT 1 macro
Dopt.h123 #ifndef MEM_ALIGNMENT
124 #define MEM_ALIGNMENT 1 macro
/lib/liblwip/src/core/
Dmem.c182 u8_t ram_heap[MEM_SIZE_ALIGNED + (2*SIZEOF_STRUCT_MEM) + MEM_ALIGNMENT];
279 (SIZEOF_STRUCT_MEM & (MEM_ALIGNMENT-1)) == 0); in mem_init()
320 LWIP_ASSERT("mem_free: sanity check alignment", (((mem_ptr_t)rmem) & (MEM_ALIGNMENT-1)) == 0); in mem_free()
617 ((mem_ptr_t)mem + SIZEOF_STRUCT_MEM) % MEM_ALIGNMENT == 0); in mem_malloc()
619 (((mem_ptr_t)mem) & (MEM_ALIGNMENT-1)) == 0); in mem_malloc()
Dmemp.c170 static u8_t memp_memory[MEM_ALIGNMENT - 1
416 ((mem_ptr_t)memp % MEM_ALIGNMENT) == 0); in memp_malloc()
444 ((mem_ptr_t)mem % MEM_ALIGNMENT) == 0); in memp_free()
Dinit.c163 #if (PBUF_POOL_BUFSIZE <= MEM_ALIGNMENT)
Dpbuf.c251 ((mem_ptr_t)p->payload % MEM_ALIGNMENT) == 0); in pbuf_alloc()
292 ((mem_ptr_t)q->payload % MEM_ALIGNMENT) == 0); in pbuf_alloc()
319 ((mem_ptr_t)p->payload % MEM_ALIGNMENT) == 0); in pbuf_alloc()
Dtcp_out.c778 LWIP_ASSERT("seg->tcphdr not aligned", ((mem_ptr_t)seg->tcphdr % MEM_ALIGNMENT) == 0); in tcp_enqueue_flags()
/lib/liblwip/src/api/
Dnetdb.c190 if (buflen < (sizeof(struct gethostbyname_r_helper) + namelen + 1 + (MEM_ALIGNMENT - 1))) { in lwip_gethostbyname_r()
/lib/liblwip/src/core/ipv4/
Dip_frag.c618 static u8_t buf[LWIP_MEM_ALIGN_SIZE(IP_FRAG_MAX_MTU + MEM_ALIGNMENT - 1)];
/lib/liblwip/
DCHANGELOG205 * pbuf.c: fixed bug #34534: Error in sending fragmented IP if MEM_ALIGNMENT > 4
1387 too small depending on MEM_ALIGNMENT