Home
last modified time | relevance | path

Searched full:mem (Results 1 – 25 of 682) sorted by relevance

12345678910>>...28

/Zephyr-Core-3.5.0/arch/riscv/core/
Dasm_macros.inc12 .macro lr, rd, mem
13 ld \rd, \mem
16 .macro sr, rs, mem
17 sd \rs, \mem
23 .macro lr, rd, mem
24 lw \rd, \mem
27 .macro sr, rs, mem
28 sw \rs, \mem
35 .macro flr, rd, mem
36 fld \rd, \mem
[all …]
/Zephyr-Core-3.5.0/subsys/bluetooth/controller/util/
Dmem.c13 #include "mem.h"
45 void *mem; in mem_acquire() local
52 mem = *mem_head; in mem_acquire()
53 memcpy(&head, mem, sizeof(head)); in mem_acquire()
62 return mem; in mem_acquire()
68 void mem_release(void *mem, void **mem_head) in mem_release() argument
79 memcpy(mem, mem_head, sizeof(mem)); in mem_release()
82 *((uint16_t *)MROUND((uint8_t *)mem + sizeof(mem))) = free_count; in mem_release()
84 *mem_head = mem; in mem_release()
105 uint16_t mem_index_get(const void *mem, const void *mem_pool, uint16_t mem_size) in mem_index_get() argument
[all …]
Dmemq.c17 * Invariant: The tail element's mem pointer is DontCare.
31 * where I[] means the initial link-element, whose mem pointer is DontCare.
32 * where A[b] means the A'th link-element, whose mem pointer is b.
46 * @param link[in] Initial link-element. Not associated with any mem
88 * @param mem[in] The memory payload to be enqueued. Pointed to by old tail
90 * @return New tail. Note: Does not point to the new mem
92 memq_link_t *memq_enqueue(memq_link_t *link, void *mem, memq_link_t **tail) in memq_enqueue() argument
98 (*tail)->mem = mem; in memq_enqueue()
114 * @param mem[out] The memory pointed to by head-element
117 memq_link_t *memq_peek(memq_link_t *head, memq_link_t *tail, void **mem) in memq_peek() argument
[all …]
Dmemq.h14 void *mem; /* payload */ member
32 memq_link_t *memq_enqueue(memq_link_t *link, void *mem, memq_link_t **tail);
33 memq_link_t *memq_peek(memq_link_t *head, memq_link_t *tail, void **mem);
35 void **mem);
36 memq_link_t *memq_dequeue(memq_link_t *tail, memq_link_t **head, void **mem);
Dmfifo.h120 void *mem, uint8_t *last) in mfifo_by_idx_enqueue() argument
124 *p = mem; /* store the payload which for API 2 is only a void-ptr */ in mfifo_by_idx_enqueue()
134 #define MFIFO_BY_IDX_ENQUEUE(name, i, mem) \ argument
136 (mem), &mfifo_##name.l)
143 * @return Index of newly allocated buffer; only valid if mem != NULL
146 uint8_t first, uint8_t last, void **mem) in mfifo_enqueue_get() argument
153 *mem = NULL; /* Signal the failure */ in mfifo_enqueue_get()
161 *mem = (void *)(fifo + last * size); /* preceding buffer */ in mfifo_enqueue_get()
171 * @param mem[out] Pointer to newly allocated buffer; NULL if allocation failed
174 #define MFIFO_ENQUEUE_GET(name, mem) \ argument
[all …]
/Zephyr-Core-3.5.0/subsys/net/ip/
Dtp.c48 struct tp_mem *mem = k_malloc(sizeof(struct tp_mem) + size + in tp_malloc() local
49 sizeof(*mem->footer)); in tp_malloc()
51 mem->file = file; in tp_malloc()
52 mem->line = line; in tp_malloc()
53 mem->func = func; in tp_malloc()
55 mem->size = size; in tp_malloc()
57 mem->header = TP_MEM_HEADER_COOKIE; in tp_malloc()
59 mem->footer = (void *) ((uint8_t *) &mem->mem + size); in tp_malloc()
60 *mem->footer = TP_MEM_FOOTER_COOKIE; in tp_malloc()
62 sys_slist_append(&tp_mem, (sys_snode_t *) mem); in tp_malloc()
[all …]
/Zephyr-Core-3.5.0/tests/bluetooth/audio/mocks/src/
Dmem_slab.c10 int k_mem_slab_alloc(struct k_mem_slab *slab, void **mem, k_timeout_t timeout) in k_mem_slab_alloc() argument
13 *mem = NULL; in k_mem_slab_alloc()
17 *mem = malloc(slab->info.block_size); in k_mem_slab_alloc()
18 zassert_not_null(*mem); in k_mem_slab_alloc()
24 void k_mem_slab_free(struct k_mem_slab *slab, void *mem) in k_mem_slab_free() argument
26 free(mem); in k_mem_slab_free()
/Zephyr-Core-3.5.0/tests/boards/intel_adsp/mm/src/
Dmain.c24 uint32_t mem[1024]; member
57 vps[i].mem[0] = markers[i];
63 sys_cache_data_flush_range(&vps[i].mem[0], PAGE_SZ);
76 zassert_equal(vps[i].mem[0], *(uint32_t *)pa[i],
78 vps[i].mem[0], *(uint32_t *)pa[i]);
95 zassert_equal(vps2[i].mem[0], *(uint32_t *)pa[i],
121 zassert_equal(vps3[i].mem[0], *(uint32_t *)pa[i],
123 vps3[i].mem[0], *(uint32_t *)pa[i]);
130 vps3[i].mem[0] = poison;
136 sys_cache_data_flush_range(&vps3[i].mem[0], PAGE_SZ);
[all …]
/Zephyr-Core-3.5.0/include/zephyr/sys/
Dheap_listener.h68 * @param mem Pointer to the allocated memory
72 void *mem, size_t bytes);
87 * @param mem Pointer to the freed memory
91 void *mem, size_t bytes);
145 * @param mem Pointer to the allocated memory
148 void heap_listener_notify_alloc(uintptr_t heap_id, void *mem, size_t bytes);
157 * @param mem Pointer to the freed memory
160 void heap_listener_notify_free(uintptr_t heap_id, void *mem, size_t bytes);
196 * void on_heap_alloc(uintptr_t heap_id, void *mem, size_t bytes)
198 * LOG_INF("Memory allocated at %p, size %ld", heap_id, mem, bytes);
[all …]
/Zephyr-Core-3.5.0/kernel/
Dmempool.c14 void *mem; in z_heap_aligned_alloc() local
29 mem = k_heap_aligned_alloc(heap, __align, size, K_NO_WAIT); in z_heap_aligned_alloc()
30 if (mem == NULL) { in z_heap_aligned_alloc()
34 heap_ref = mem; in z_heap_aligned_alloc()
36 mem = ++heap_ref; in z_heap_aligned_alloc()
37 __ASSERT(align == 0 || ((uintptr_t)mem & (align - 1)) == 0, in z_heap_aligned_alloc()
38 "misaligned memory at %p (align = %zu)", mem, align); in z_heap_aligned_alloc()
40 return mem; in z_heap_aligned_alloc()
Dmem_slab.c208 int k_mem_slab_alloc(struct k_mem_slab *slab, void **mem, k_timeout_t timeout) in k_mem_slab_alloc() argument
217 *mem = slab->free_list; in k_mem_slab_alloc()
230 *mem = NULL; in k_mem_slab_alloc()
238 *mem = _current->base.swap_data; in k_mem_slab_alloc()
253 void k_mem_slab_free(struct k_mem_slab *slab, void *mem) in k_mem_slab_free() argument
257 __ASSERT(((char *)mem >= slab->buffer) && in k_mem_slab_free()
258 ((((char *)mem - slab->buffer) % slab->info.block_size) == 0) && in k_mem_slab_free()
259 ((char *)mem <= (slab->buffer + (slab->info.block_size * in k_mem_slab_free()
270 z_thread_return_value_set_with_data(pending_thread, 0, mem); in k_mem_slab_free()
276 *(char **) mem = slab->free_list; in k_mem_slab_free()
[all …]
/Zephyr-Core-3.5.0/dts/riscv/sifive/
Driscv64-fu540.dtsi60 reg-names = "mem";
66 reg-names = "mem";
72 reg-names = "mem";
78 reg-names = "mem";
84 reg-names = "mem";
90 reg-names = "mem";
96 reg-names = "mem";
102 reg-names = "mem";
114 reg-names = "mem";
151 reg-names = "control", "mem";
/Zephyr-Core-3.5.0/samples/subsys/zbus/benchmark/
Dbenchmark_256KB.robot34 ${mem} Get Substring ${result.stdout} -20
35 ${mem} Strip String ${mem}
36 ${mem} Convert To Integer ${mem}
37 RETURN ${mem}
/Zephyr-Core-3.5.0/lib/os/
Dheap.c159 uint8_t *mem = p, *base = (uint8_t *)chunk_buf(h); in mem_to_chunkid() local
160 return (mem - chunk_header_bytes(h) - base) / CHUNK_UNIT; in mem_to_chunkid()
163 void sys_heap_free(struct sys_heap *heap, void *mem) in sys_heap_free() argument
165 if (mem == NULL) { in sys_heap_free()
169 chunkid_t c = mem_to_chunkid(h, mem); in sys_heap_free()
176 "unexpected heap state (double-free?) for memory at %p", mem); in sys_heap_free()
185 mem); in sys_heap_free()
193 heap_listener_notify_free(HEAP_ID_FROM_POINTER(heap), mem, in sys_heap_free()
200 size_t sys_heap_usable_size(struct sys_heap *heap, void *mem) in sys_heap_usable_size() argument
203 chunkid_t c = mem_to_chunkid(h, mem); in sys_heap_usable_size()
[all …]
Dheap_listener.c31 void heap_listener_notify_alloc(uintptr_t heap_id, void *mem, size_t bytes) in heap_listener_notify_alloc() argument
40 listener->alloc_cb(heap_id, mem, bytes); in heap_listener_notify_alloc()
47 void heap_listener_notify_free(uintptr_t heap_id, void *mem, size_t bytes) in heap_listener_notify_free() argument
56 listener->free_cb(heap_id, mem, bytes); in heap_listener_notify_free()
/Zephyr-Core-3.5.0/samples/boards/esp32/spiram_test/src/
Dmain.c64 printk("mem test ok! %d\n", cnt); in test_heap_caps()
75 printk("SPIRAM mem test failed\n"); in main()
77 printk("SPIRAM mem test pass\n"); in main()
82 printk("Internal mem test failed\n"); in main()
84 printk("Internal mem test pass\n"); in main()
/Zephyr-Core-3.5.0/samples/boards/esp32/spiram_test/
DREADME.rst52 mem test ok! 209
53 SPIRAM mem test pass
54 mem test ok! 194
55 Internal mem test pass
/Zephyr-Core-3.5.0/drivers/virtualization/
Dvirt_ivshmem_shell.c62 uintptr_t mem; in cmd_ivshmem_shmem() local
71 size = ivshmem_get_mem(ivshmem, &mem); in cmd_ivshmem_shmem()
80 mem, size, id, vectors); in cmd_ivshmem_shmem()
90 uintptr_t mem; in cmd_ivshmem_dump() local
100 size = ivshmem_get_mem(ivshmem, &mem); in cmd_ivshmem_dump()
106 } else if ((mem + dump_pos + dump_size) > (mem + size)) { in cmd_ivshmem_dump()
109 shell_hexdump(sh, (const uint8_t *)mem+dump_pos, dump_size); in cmd_ivshmem_dump()
/Zephyr-Core-3.5.0/tests/drivers/virtualization/ivshmem/plain/src/
Divshmem.c15 uintptr_t mem; in ZTEST() local
25 size = ivshmem_get_mem(ivshmem, &mem); in ZTEST()
27 zassert_not_null((void *)mem, "Shared memory cannot be null"); in ZTEST()
32 area_to_rw = (uint32_t *)mem; in ZTEST()
/Zephyr-Core-3.5.0/drivers/pcie/host/
Dpcie_ecam.c142 LOG_DBG("MEM bus [0x%lx - 0x%lx, size 0x%lx]", in pcie_ecam_init()
147 LOG_DBG("MEM space [0x%lx - 0x%lx, size 0x%lx]", in pcie_ecam_init()
214 bool mem, bool mem64, size_t bar_size, in pcie_ecam_region_allocate() argument
220 if (mem && !data->regions[PCIE_REGION_MEM64].size && in pcie_ecam_region_allocate()
222 LOG_DBG("bdf %x no mem region defined for allocation", bdf); in pcie_ecam_region_allocate()
226 if (!mem && !data->regions[PCIE_REGION_IO].size) { in pcie_ecam_region_allocate()
235 * - handle allocation from/to mem/mem64 when a region is full in pcie_ecam_region_allocate()
237 if (mem && ((mem64 && data->regions[PCIE_REGION_MEM64].size) || in pcie_ecam_region_allocate()
241 } else if (mem) { in pcie_ecam_region_allocate()
251 bool mem, bool mem64, size_t align, in pcie_ecam_region_get_allocate_base() argument
[all …]
/Zephyr-Core-3.5.0/boards/arm/arty/
DCMakeLists.txt7 # Generate zephyr.mem verilog memory hex dump file for initialising ITCM in
22 ${PROJECT_BINARY_DIR}/${CONFIG_KERNEL_BIN_NAME}.mem
25 … "Verilog memory hex dump will be written to: ${PROJECT_BINARY_DIR}/${CONFIG_KERNEL_BIN_NAME}.mem")
/Zephyr-Core-3.5.0/tests/lib/heap/src/
Dmain.c252 * - 1: chunk mem
395 static void heap_alloc_cb(uintptr_t heap_id, void *mem, size_t bytes) in heap_alloc_cb() argument
398 listener_mem = mem; in heap_alloc_cb()
401 heap_id, mem, (uint32_t)bytes); in heap_alloc_cb()
404 static void heap_free_cb(uintptr_t heap_id, void *mem, size_t bytes) in heap_free_cb() argument
407 listener_mem = mem; in heap_free_cb()
410 heap_id, mem, (uint32_t)bytes); in heap_free_cb()
417 void *mem; in ZTEST() local
440 mem = sys_heap_alloc(&listener_heap, 32U); in ZTEST()
446 zassert_equal(listener_mem, mem, in ZTEST()
[all …]
/Zephyr-Core-3.5.0/dts/bindings/dma/
Dst,stm32u5-dma.yaml26 0x0: MEM to MEM
27 0x1: MEM to PERIPH
28 0x2: PERIPH to MEM
/Zephyr-Core-3.5.0/include/zephyr/drivers/pcie/
Dcontroller.h72 * @param mem True if the BAR is of memory type
79 bool mem, bool mem64, size_t bar_size,
91 * @param mem True if the BAR is of memory type
98 bool mem, bool mem64, size_t align,
114 * @param mem True if the BAR is of memory type
121 bool mem, bool mem64, uintptr_t bar_bus_addr,
236 * @param mem True if the BAR is of memory type
243 bool mem, bool mem64, size_t bar_size, in pcie_ctrl_region_allocate() argument
249 return api->region_allocate(dev, bdf, mem, mem64, bar_size, bar_bus_addr); in pcie_ctrl_region_allocate()
261 * @param mem True if the BAR is of memory type
[all …]
/Zephyr-Core-3.5.0/dts/xtensa/intel/
Dintel_adsp_cavs20_jsl.dtsi8 #include <mem.h>
55 compatible = "intel,adsp-mem-window";
63 compatible = "intel,adsp-mem-window";
69 compatible = "intel,adsp-mem-window";
75 compatible = "intel,adsp-mem-window";

12345678910>>...28