Home
last modified time | relevance | path

Searched refs:mem (Results 1 – 25 of 29) sorted by relevance

12

/lk-master/external/lib/lwip/core/
A Dmem.c156 struct mem { struct
236 plug_holes(struct mem *mem) in plug_holes() argument
248 nmem = (struct mem *)(void *)&ram[mem->next]; in plug_holes()
259 pmem = (struct mem *)(void *)&ram[mem->prev]; in plug_holes()
276 struct mem *mem; in mem_init() local
284 mem = (struct mem *)(void *)ram; in mem_init()
313 struct mem *mem; in mem_free() local
373 struct mem *mem, *mem2; in mem_trim() local
421 mem2 = (struct mem *)(void *)&ram[mem->next]; in mem_trim()
497 struct mem *mem, *mem2; in mem_malloc() local
[all …]
A Dstats.c65 lwip_stats.mem.name = "MEM"; in stats_init()
113 stats_display_mem(struct stats_mem *mem, const char *name) in stats_display_mem() argument
116 LWIP_PLATFORM_DIAG(("avail: %"U32_F"\n\t", (u32_t)mem->avail)); in stats_display_mem()
117 LWIP_PLATFORM_DIAG(("used: %"U32_F"\n\t", (u32_t)mem->used)); in stats_display_mem()
118 LWIP_PLATFORM_DIAG(("max: %"U32_F"\n\t", (u32_t)mem->max)); in stats_display_mem()
119 LWIP_PLATFORM_DIAG(("err: %"U32_F"\n", (u32_t)mem->err)); in stats_display_mem()
124 stats_display_memp(struct stats_mem *mem, int index) in stats_display_memp() argument
131 stats_display_mem(mem, memp_names[index]); in stats_display_memp()
A Dmemp.c435 memp_free(memp_t type, void *mem) in memp_free() argument
440 if (mem == NULL) { in memp_free()
444 ((mem_ptr_t)mem % MEM_ALIGNMENT) == 0); in memp_free()
446 memp = (struct memp *)(void *)((u8_t*)mem - MEMP_SIZE); in memp_free()
/lk-master/lib/bio/
A Dmem.c25 mem_bdev_t *mem = (mem_bdev_t *)bdev; in mem_bdev_read() local
29 memcpy(buf, (uint8_t *)mem->ptr + offset, len); in mem_bdev_read()
35 mem_bdev_t *mem = (mem_bdev_t *)bdev; in mem_bdev_read_block() local
45 mem_bdev_t *mem = (mem_bdev_t *)bdev; in mem_bdev_write() local
55 mem_bdev_t *mem = (mem_bdev_t *)bdev; in mem_bdev_write_block() local
72 mem->ptr = ptr; in create_membdev()
73 mem->dev.read = mem_bdev_read; in create_membdev()
74 mem->dev.read_block = mem_bdev_read_block; in create_membdev()
75 mem->dev.write = mem_bdev_write; in create_membdev()
76 mem->dev.write_block = mem_bdev_write_block; in create_membdev()
[all …]
A Drules.mk8 $(LOCAL_DIR)/mem.c \
/lk-master/lib/fs/memfs/
A Dmemfs.c61 memfs_t *mem = malloc(sizeof(*mem)); in memfs_mount() local
62 if (!mem) in memfs_mount()
67 mutex_init(&mem->lock); in memfs_mount()
69 *cookie = (fscookie *)mem; in memfs_mount()
85 mutex_acquire(&mem->lock); in memfs_unmount()
93 mutex_release(&mem->lock); in memfs_unmount()
95 free(mem); in memfs_unmount()
117 mutex_acquire(&mem->lock); in memfs_create()
143 file->fs = mem; in memfs_create()
152 mutex_release(&mem->lock); in memfs_create()
[all …]
/lk-master/platform/armemu/
A Ddebug.c44 void debug_dump_memory_bytes(void *mem, int len) { in debug_dump_memory_bytes() argument
45 *REG32(DEBUG_MEMDUMPADDR) = (unsigned int)mem; in debug_dump_memory_bytes()
50 void debug_dump_memory_halfwords(void *mem, int len) { in debug_dump_memory_halfwords() argument
53 *REG32(DEBUG_MEMDUMPADDR) = (unsigned int)mem; in debug_dump_memory_halfwords()
58 void debug_dump_memory_words(void *mem, int len) { in debug_dump_memory_words() argument
61 *REG32(DEBUG_MEMDUMPADDR) = (unsigned int)mem; in debug_dump_memory_words()
/lk-master/external/lib/lwip/include/lwip/
A Dmem.h65 #define mem_trim(mem, size) (mem) argument
85 #define mem_trim(mem, size) (mem)
89 void *mem_trim(void *mem, mem_size_t size);
93 void mem_free(void *mem);
A Dstats.h139 struct stats_mem mem; member
232 #define MEM_STATS_AVAIL(x, y) lwip_stats.mem.x = y
233 #define MEM_STATS_INC(x) STATS_INC(mem.x)
234 #define MEM_STATS_INC_USED(x, y) STATS_INC_USED(mem, y)
235 #define MEM_STATS_DEC_USED(x, y) lwip_stats.mem.x -= y
236 #define MEM_STATS_DISPLAY() stats_display_mem(&lwip_stats.mem, "HEAP")
276 void stats_display_mem(struct stats_mem *mem, const char *name);
277 void stats_display_memp(struct stats_mem *mem, int index);
283 #define stats_display_mem(mem, name) argument
284 #define stats_display_memp(mem, index) argument
A Dmemp.h88 #define memp_free(type, mem) mem_free(mem) argument
108 void memp_free(memp_t type, void *mem);
A Dsockets.h331 int lwip_recv(int s, void *mem, size_t len, int flags);
332 int lwip_read(int s, void *mem, size_t len);
333 int lwip_recvfrom(int s, void *mem, size_t len, int flags,
A Dpbuf.h171 u16_t pbuf_memfind(struct pbuf* p, const void* mem, u16_t mem_len, u16_t start_offset);
/lk-master/external/platform/pico/rp2_common/pico_malloc/
A Dpico_malloc.c18 extern void __real_free(void *mem);
22 static inline void check_alloc(void *mem, uint8_t size) { in check_alloc() argument
24 if (!mem || (((char *)mem) + size) > &__StackLimit) { in check_alloc()
64 void __wrap_free(void *mem) { in __wrap_free() argument
68 __real_free(mem); in __wrap_free()
/lk-master/platform/armemu/include/platform/
A Darmemu.h14 void debug_dump_memory_bytes(void *mem, int len);
15 void debug_dump_memory_halfwords(void *mem, int len);
16 void debug_dump_memory_words(void *mem, int len);
/lk-master/external/lib/heap/dlmalloc/
A Ddlmalloc.c3855 #define internal_free(m, mem) mspace_free(m,mem); argument
3861 if (m == gm) dlfree(mem); else mspace_free(m,mem);
3864 #define internal_free(m, mem) dlfree(mem) argument
4845 void* mem; in dlcalloc() local
4854 if (mem != 0 && calloc_must_clear(mem2chunk(mem))) in dlcalloc()
4856 return mem; in dlcalloc()
5014 return mem; in internal_memalign()
5280 return mem; in dlrealloc()
5311 return mem; in dlrealloc_in_place()
5769 void* mem; in mspace_calloc() local
[all …]
/lk-master/external/lib/heap/dlmalloc/include/lib/
A Ddlmalloc.h598 void mspace_free(mspace msp, void* mem);
600 void* mspace_realloc(mspace msp, void* mem, size_t newsize);
601 void* mspace_realloc_in_place(mspace msp, void* mem, size_t newsize);
608 size_t mspace_usable_size(const void* mem);
/lk-master/lib/fdtwalk/include/lib/
A Dfdtwalk.h18 void (*mem)(uint64_t base, uint64_t len, void *cookie); member
/lk-master/lib/fdtwalk/
A Dfdtwalk.c116 if (cb->mem) { in fdt_walk()
118 cb->mem(base, len, cb->memcookie); in fdt_walk()
/lk-master/platform/qemu-virt-m68k/
A Dplatform.c66 .mem = memcallback, in platform_early_init()
/lk-master/external/lib/lwip/
A Drules.mk24 $(LOCAL_DIR)/core/mem.c \
/lk-master/external/lib/lwip/api/
A Dapi_msg.c684 void *mem; local
693 while (sys_mbox_tryfetch(&conn->recvmbox, &mem) != SYS_MBOX_EMPTY) {
696 if(mem != NULL) {
697 p = (struct pbuf*)mem;
707 netbuf_delete((struct netbuf *)mem);
717 while (sys_mbox_tryfetch(&conn->acceptmbox, &mem) != SYS_MBOX_EMPTY) {
718 struct netconn *newconn = (struct netconn *)mem;
/lk-master/external/platform/pico/rp2_common/pico_standard_link/
A Dmemmap_blocked_ram.ld71 *(EXCLUDE_FILE(*libgcc.a: *libc.a:*lib_a-mem*.o *libm.a:) .text*)
91 *(EXCLUDE_FILE(*libgcc.a: *libc.a:*lib_a-mem*.o *libm.a:) .rodata*)
A Dmemmap_default.ld71 *(EXCLUDE_FILE(*libgcc.a: *libc.a:*lib_a-mem*.o *libm.a:) .text*)
91 *(EXCLUDE_FILE(*libgcc.a: *libc.a:*lib_a-mem*.o *libm.a:) .rodata*)
/lk-master/dev/virtio/gpu/
A Dvirtio-gpu.c206 struct virtio_gpu_mem_entry mem; in attach_backing() member
220 req.mem.addr = pa; in attach_backing()
221 req.mem.length = buf_len; in attach_backing()
/lk-master/platform/qemu-virt-arm/
A Dplatform.c131 .mem = memcallback, in platform_early_init()

Completed in 51 milliseconds

12