Lines Matching refs:memp
66 struct memp { struct
67 struct memp *next; argument
101 #define MEMP_SIZE (LWIP_MEM_ALIGN_SIZE(sizeof(struct memp)) + MEMP_SANITY_REGION_BEFORE_AL…
117 static struct memp *memp_tab[MEMP_MAX];
185 struct memp *t, *h; in memp_sanity()
217 memp_overflow_check_element_overflow(struct memp *p, u16_t memp_type) in memp_overflow_check_element_overflow()
250 memp_overflow_check_element_underflow(struct memp *p, u16_t memp_type) in memp_overflow_check_element_underflow()
284 struct memp *p; in memp_overflow_check_all()
286 p = (struct memp *)LWIP_MEM_ALIGN(memp_memory); in memp_overflow_check_all()
291 p = (struct memp*)((u8_t*)p + MEMP_SIZE + memp_sizes[i] + MEMP_SANITY_REGION_AFTER_ALIGNED); in memp_overflow_check_all()
294 p = (struct memp *)LWIP_MEM_ALIGN(memp_memory); in memp_overflow_check_all()
299 p = (struct memp*)((u8_t*)p + MEMP_SIZE + memp_sizes[i] + MEMP_SANITY_REGION_AFTER_ALIGNED); in memp_overflow_check_all()
311 struct memp *p; in memp_overflow_init()
314 p = (struct memp *)LWIP_MEM_ALIGN(memp_memory); in memp_overflow_init()
326 p = (struct memp*)((u8_t*)p + MEMP_SIZE + memp_sizes[i] + MEMP_SANITY_REGION_AFTER_ALIGNED); in memp_overflow_init()
340 struct memp *memp; in memp_init() local
351 memp = (struct memp *)LWIP_MEM_ALIGN(memp_memory); in memp_init()
357 memp = (struct memp*)memp_bases[i]; in memp_init()
361 memp->next = memp_tab[i]; in memp_init()
362 memp_tab[i] = memp; in memp_init()
363 memp = (struct memp *)(void *)((u8_t *)memp + MEMP_SIZE + memp_sizes[i] in memp_init()
395 struct memp *memp; in memp_malloc() local
405 memp = memp_tab[type]; in memp_malloc()
407 if (memp != NULL) { in memp_malloc()
408 memp_tab[type] = memp->next; in memp_malloc()
410 memp->next = NULL; in memp_malloc()
411 memp->file = file; in memp_malloc()
412 memp->line = line; in memp_malloc()
416 ((mem_ptr_t)memp % MEM_ALIGNMENT) == 0); in memp_malloc()
417 memp = (struct memp*)(void *)((u8_t*)memp + MEMP_SIZE); in memp_malloc()
425 return memp; in memp_malloc()
437 struct memp *memp; in memp_free() local
446 memp = (struct memp *)(void *)((u8_t*)mem - MEMP_SIZE); in memp_free()
453 memp_overflow_check_element_overflow(memp, type); in memp_free()
454 memp_overflow_check_element_underflow(memp, type); in memp_free()
460 memp->next = memp_tab[type]; in memp_free()
461 memp_tab[type] = memp; in memp_free()