Searched refs:MEM_ALIGNMENT (Results 1 - 17 of 17) sorted by relevance

/vbox/src/VBox/Devices/Network/lwip/src/include/lwip/
H A Dmem.h61 #define MEM_ALIGN_SIZE(size) (((size) + MEM_ALIGNMENT - 1) & ~(MEM_ALIGNMENT-1))
65 #define MEM_ALIGN(addr) ((void *)(((mem_ptr_t)(addr) + MEM_ALIGNMENT - 1) & ~(mem_ptr_t)(MEM_ALIGNMENT-1)))
H A Dopt.h60 /* MEM_ALIGNMENT: should be set to the alignment of the CPU for which
61 lwIP is compiled. 4 byte alignment -> define MEM_ALIGNMENT to 4, 2
62 byte alignment -> define MEM_ALIGNMENT to 2. */
64 #ifndef MEM_ALIGNMENT
65 #define MEM_ALIGNMENT 1 macro
/vbox/src/VBox/Devices/Network/lwip-new/src/include/lwip/
H A Dmem.h97 * multiple of MEM_ALIGNMENT (e.g. LWIP_MEM_ALIGN_SIZE(3) and
98 * LWIP_MEM_ALIGN_SIZE(4) will both yield 4 for MEM_ALIGNMENT == 4).
101 #define LWIP_MEM_ALIGN_SIZE(size) (((size) + MEM_ALIGNMENT - 1) & ~(MEM_ALIGNMENT-1))
105 * type as storage. This includes a safety-margin on (MEM_ALIGNMENT - 1) at the
109 #define LWIP_MEM_ALIGN_BUFFER(size) (((size) + MEM_ALIGNMENT - 1))
112 /** Align a memory pointer to the alignment defined by MEM_ALIGNMENT
113 * so that ADDR % MEM_ALIGNMENT == 0
116 #define LWIP_MEM_ALIGN(addr) ((void *)(((mem_ptr_t)(addr) + MEM_ALIGNMENT - 1) & ~(mem_ptr_t)(MEM_ALIGNMENT
[all...]
H A Dopt.h119 * MEM_ALIGNMENT: should be set to the alignment of the CPU
120 * 4 byte alignment -> #define MEM_ALIGNMENT 4
121 * 2 byte alignment -> #define MEM_ALIGNMENT 2
123 #ifndef MEM_ALIGNMENT
124 #define MEM_ALIGNMENT 1 macro
/vbox/src/VBox/Devices/Network/lwip/src/core/
H A Dmem.c55 #if MEM_ALIGNMENT == 1
57 #elif MEM_ALIGNMENT == 2
59 #elif MEM_ALIGNMENT == 4
61 #elif MEM_ALIGNMENT == 8
64 #error "unhandled MEM_ALIGNMENT size"
65 #endif /* MEM_ALIGNMENT */
71 static u8_t ram[MEM_SIZE + sizeof(struct mem) + MEM_ALIGNMENT];
83 (((sizeof(struct mem) % MEM_ALIGNMENT) == 0)? 0 : \
84 (4 - (sizeof(struct mem) % MEM_ALIGNMENT))))
204 if ((newsize % MEM_ALIGNMENT) !
[all...]
H A Dmemp.c87 static u8_t memp_memory[MEM_ALIGNMENT - 1 +
184 ((mem_ptr_t)memp % MEM_ALIGNMENT) == 0);
H A Dpbuf.c76 static u8_t pbuf_pool_memory[MEM_ALIGNMENT - 1 + PBUF_POOL_SIZE * MEM_ALIGN_SIZE(PBUF_POOL_BUFSIZE + sizeof(struct pbuf))];
257 ((mem_ptr_t)p->payload % MEM_ALIGNMENT) == 0);
293 ((mem_ptr_t)q->payload % MEM_ALIGNMENT) == 0);
317 ((mem_ptr_t)p->payload % MEM_ALIGNMENT) == 0);
/vbox/src/VBox/Devices/Network/
H A Dlwipopts.h22 # define MEM_ALIGNMENT 8 macro
24 #define MEM_ALIGNMENT 4 macro
/vbox/src/VBox/NetworkServices/NAT/
H A Dlwipopts.h39 # define MEM_ALIGNMENT 8 macro
41 #define MEM_ALIGNMENT 4 macro
/vbox/src/VBox/Devices/Network/lwip-new/src/core/
H A Dmem.c182 u8_t ram_heap[MEM_SIZE_ALIGNED + (2*SIZEOF_STRUCT_MEM) + MEM_ALIGNMENT];
279 (SIZEOF_STRUCT_MEM & (MEM_ALIGNMENT-1)) == 0);
320 LWIP_ASSERT("mem_free: sanity check alignment", (((mem_ptr_t)rmem) & (MEM_ALIGNMENT-1)) == 0);
491 * Note that the returned value will always be aligned (as defined by MEM_ALIGNMENT).
617 ((mem_ptr_t)mem + SIZEOF_STRUCT_MEM) % MEM_ALIGNMENT == 0);
619 (((mem_ptr_t)mem) & (MEM_ALIGNMENT-1)) == 0);
H A Dmemp.c216 static u8_t memp_memory[MEM_ALIGNMENT - 1 /* XXX: LWIP_MEM_ALIGN_BUFFER */
483 ((mem_ptr_t)memp % MEM_ALIGNMENT) == 0);
514 ((mem_ptr_t)mem % MEM_ALIGNMENT) == 0);
H A Dinit.c166 #if (PBUF_POOL_BUFSIZE <= MEM_ALIGNMENT)
167 #error "PBUF_POOL_BUFSIZE must be greater than MEM_ALIGNMENT or the offset may take the full first pbuf"
H A Dpbuf.c251 ((mem_ptr_t)p->payload % MEM_ALIGNMENT) == 0);
259 LWIP_ASSERT("PBUF_POOL_BUFSIZE must be bigger than MEM_ALIGNMENT",
292 ((mem_ptr_t)q->payload % MEM_ALIGNMENT) == 0);
319 ((mem_ptr_t)p->payload % MEM_ALIGNMENT) == 0);
H A Dtcp_out.c782 ((mem_ptr_t)seg->tcphdr % (MEM_ALIGNMENT < 4 ? MEM_ALIGNMENT : 4)) == 0);
/vbox/src/VBox/Devices/Network/lwip/vbox/include/
H A Dlwipopts.h21 # define MEM_ALIGNMENT 8 macro
23 #define MEM_ALIGNMENT 4 macro
/vbox/src/VBox/Devices/Network/lwip-new/src/api/
H A Dnetdb.c190 if (buflen < (sizeof(struct gethostbyname_r_helper) + namelen + 1 + (MEM_ALIGNMENT - 1))) {
/vbox/src/VBox/Devices/Network/lwip-new/src/core/ipv4/
H A Dip_frag.c627 static u8_t buf[LWIP_MEM_ALIGN_SIZE(IP_FRAG_MAX_MTU + MEM_ALIGNMENT - 1)];

Completed in 646 milliseconds