Home
last modified time | relevance | path

Searched defs:ptr (Results 1 – 25 of 76) sorted by relevance

1234

/lk-master/lib/heap/
A Dheap_wrapper.c45 void *ptr = miniheap_alloc(realsize, 0); in HEAP_CALLOC() local
53 void *ptr = page_first_alloc(&len); in HEAP_INIT() local
74 void *ptr = cmpct_alloc(realsize); in HEAP_CALLOC() local
160 void *ptr = HEAP_MALLOC(size); in malloc() local
174 void *ptr = HEAP_MEMALIGN(boundary, size); in memalign() local
188 void *ptr = HEAP_CALLOC(count, size); in calloc() local
194 void *realloc(void *ptr, size_t size) { in realloc()
208 void free(void *ptr) { in free()
217 void heap_delayed_free(void *ptr) { in heap_delayed_free()
334 void *ptr = memalign((argc >= 4) ? argv[3].u : 0, argv[2].u); in cmd_heap() local
[all …]
/lk-master/external/arch/arm/arm-m/CMSIS/Include/
A Dcmsis_armcc.h298 …#define __LDREXB(ptr) ((uint8_t ) __ldrex(p… argument
311 …#define __LDREXH(ptr) ((uint16_t) __ldrex(p… argument
339 #define __STREXB(value, ptr) __strex(value, ptr) argument
354 #define __STREXH(value, ptr) __strex(value, ptr) argument
369 #define __STREXW(value, ptr) __strex(value, ptr) argument
424 #define __LDRBT(ptr) ((uint8_t ) __ldrt(ptr)) argument
433 #define __LDRHT(ptr) ((uint16_t) __ldrt(ptr)) argument
442 #define __LDRT(ptr) ((uint32_t ) __ldrt(ptr)) argument
451 #define __STRBT(value, ptr) __strt(value, ptr) argument
460 #define __STRHT(value, ptr) __strt(value, ptr) argument
[all …]
A Dcmsis_iccarm.h183 __IAR_FT uint16_t __iar_uint16_read(void const *ptr) in __iar_uint16_read()
195 __IAR_FT void __iar_uint16_write(void const *ptr, uint16_t val) in __iar_uint16_write()
206 __IAR_FT uint32_t __iar_uint32_read(void const *ptr) in __iar_uint32_read()
614 __IAR_FT uint32_t __LDREXW(uint32_t volatile *ptr) in __LDREXW()
911 __IAR_FT uint8_t __LDAB(volatile uint8_t *ptr) in __LDAB()
918 __IAR_FT uint16_t __LDAH(volatile uint16_t *ptr) in __LDAH()
925 __IAR_FT uint32_t __LDA(volatile uint32_t *ptr) in __LDA()
932 __IAR_FT void __STLB(uint8_t value, volatile uint8_t *ptr) in __STLB()
947 __IAR_FT uint8_t __LDAEXB(volatile uint8_t *ptr) in __LDAEXB()
954 __IAR_FT uint16_t __LDAEXH(volatile uint16_t *ptr) in __LDAEXH()
[all …]
A Dcmsis_armclang.h440 __STATIC_FORCEINLINE uint8_t __LDRBT(volatile uint8_t *ptr) in __LDRBT()
455 __STATIC_FORCEINLINE uint16_t __LDRHT(volatile uint16_t *ptr) in __LDRHT()
470 __STATIC_FORCEINLINE uint32_t __LDRT(volatile uint32_t *ptr) in __LDRT()
485 __STATIC_FORCEINLINE void __STRBT(uint8_t value, volatile uint8_t *ptr) in __STRBT()
509 __STATIC_FORCEINLINE void __STRT(uint32_t value, volatile uint32_t *ptr) in __STRT()
584 __STATIC_FORCEINLINE uint8_t __LDAB(volatile uint8_t *ptr) in __LDAB()
599 __STATIC_FORCEINLINE uint16_t __LDAH(volatile uint16_t *ptr) in __LDAH()
614 __STATIC_FORCEINLINE uint32_t __LDA(volatile uint32_t *ptr) in __LDA()
629 __STATIC_FORCEINLINE void __STLB(uint8_t value, volatile uint8_t *ptr) in __STLB()
641 __STATIC_FORCEINLINE void __STLH(uint16_t value, volatile uint16_t *ptr) in __STLH()
[all …]
A Dcmsis_gcc.h611 __STATIC_FORCEINLINE uint8_t __LDRBT(volatile uint8_t *ptr) in __LDRBT()
633 __STATIC_FORCEINLINE uint16_t __LDRHT(volatile uint16_t *ptr) in __LDRHT()
655 __STATIC_FORCEINLINE uint32_t __LDRT(volatile uint32_t *ptr) in __LDRT()
670 __STATIC_FORCEINLINE void __STRBT(uint8_t value, volatile uint8_t *ptr) in __STRBT()
765 __STATIC_FORCEINLINE uint8_t __LDAB(volatile uint8_t *ptr) in __LDAB()
780 __STATIC_FORCEINLINE uint16_t __LDAH(volatile uint16_t *ptr) in __LDAH()
795 __STATIC_FORCEINLINE uint32_t __LDA(volatile uint32_t *ptr) in __LDA()
810 __STATIC_FORCEINLINE void __STLB(uint8_t value, volatile uint8_t *ptr) in __STLB()
846 __STATIC_FORCEINLINE uint8_t __LDAEXB(volatile uint8_t *ptr) in __LDAEXB()
861 __STATIC_FORCEINLINE uint16_t __LDAEXH(volatile uint16_t *ptr) in __LDAEXH()
[all …]
A Dcmsis_armclang_ltm.h434 __STATIC_FORCEINLINE uint8_t __LDRBT(volatile uint8_t *ptr) in __LDRBT()
449 __STATIC_FORCEINLINE uint16_t __LDRHT(volatile uint16_t *ptr) in __LDRHT()
464 __STATIC_FORCEINLINE uint32_t __LDRT(volatile uint32_t *ptr) in __LDRT()
479 __STATIC_FORCEINLINE void __STRBT(uint8_t value, volatile uint8_t *ptr) in __STRBT()
503 __STATIC_FORCEINLINE void __STRT(uint32_t value, volatile uint32_t *ptr) in __STRT()
574 __STATIC_FORCEINLINE uint8_t __LDAB(volatile uint8_t *ptr) in __LDAB()
589 __STATIC_FORCEINLINE uint16_t __LDAH(volatile uint16_t *ptr) in __LDAH()
604 __STATIC_FORCEINLINE uint32_t __LDA(volatile uint32_t *ptr) in __LDA()
619 __STATIC_FORCEINLINE void __STLB(uint8_t value, volatile uint8_t *ptr) in __STLB()
631 __STATIC_FORCEINLINE void __STLH(uint16_t value, volatile uint16_t *ptr) in __STLH()
[all …]
/lk-master/arch/include/arch/
A Datomic.h18 static inline int atomic_add(volatile int *ptr, int val) { in atomic_add()
22 static inline int atomic_or(volatile int *ptr, int val) { in atomic_or()
26 static inline int atomic_and(volatile int *ptr, int val) { in atomic_and()
30 static inline int atomic_swap(volatile int *ptr, int val) { in atomic_swap()
33 static inline int atomic_cmpxchg(volatile int *ptr, int oldval, int newval) { in atomic_cmpxchg()
/lk-master/app/tests/
A Dmem_tests.c22 static void mem_test_fail(void *ptr, uint32_t should, uint32_t is) { in mem_test_fail()
29 static status_t do_pattern_test(void *ptr, size_t len, uint32_t pat) { in do_pattern_test()
48 static status_t do_moving_inversion_test(void *ptr, size_t len, uint32_t pat) { in do_moving_inversion_test()
93 static void do_mem_tests(void *ptr, size_t len) { in do_mem_tests()
165 void *ptr; in mem_test() local
208 void *ptr = argv[1].p; in mem_test() local
/lk-master/arch/arm/include/arch/
A Darch_atomic.h17 static inline int atomic_add(volatile int *ptr, int val) { in atomic_add()
30 static inline int atomic_and(volatile int *ptr, int val) { in atomic_and()
43 static inline int atomic_or(volatile int *ptr, int val) { in atomic_or()
56 static inline int atomic_swap(volatile int *ptr, int val) { in atomic_swap()
69 static inline int atomic_cmpxchg(volatile int *ptr, int oldval, int newval) { in atomic_cmpxchg()
/lk-master/lib/heap/miniheap/
A Dminiheap.c60 void *ptr; member
150 static struct free_heap_chunk *heap_create_free_chunk(void *ptr, size_t len, bool allow_debug) { in heap_create_free_chunk()
166 void *ptr; in miniheap_alloc() local
288 void *miniheap_realloc(void *ptr, size_t size) { in miniheap_realloc()
308 void miniheap_free(void *ptr) { in miniheap_free()
437 void miniheap_get_stats(struct miniheap_stats *ptr) { in miniheap_get_stats()
462 void *ptr = page_alloc(size / PAGE_SIZE, PAGE_ALLOC_ANY_ARENA); in heap_grow() local
484 void miniheap_init(void *ptr, size_t len) { in miniheap_init()
/lk-master/external/platform/lpc15xx/lpcopen/lpc_chip_15xx/src/
A Dring_buffer.c68 uint8_t *ptr = RingBuff->data; in RingBuffer_Insert() local
84 uint8_t *ptr = RingBuff->data; in RingBuffer_InsertMult() local
120 uint8_t *ptr = RingBuff->data; in RingBuffer_Pop() local
136 uint8_t *ptr = RingBuff->data; in RingBuffer_PopMult() local
A Deeprom.c52 uint8_t Chip_EEPROM_Write(uint32_t dstAdd, uint8_t *ptr, uint32_t byteswrt) in Chip_EEPROM_Write()
67 uint8_t Chip_EEPROM_Read(uint32_t srcAdd, uint8_t *ptr, uint32_t bytesrd) in Chip_EEPROM_Read()
/lk-master/lib/bootimage/
A Dbootimage.c22 const uint8_t *ptr; member
136 status_t bootimage_open(const void *ptr, size_t len, bootimage_t **bi) { in bootimage_open()
166 status_t bootimage_get_range(bootimage_t *bi, const void **ptr, size_t *len) { in bootimage_get_range()
178 status_t bootimage_get_file_section(bootimage_t *bi, uint32_t type, const void **ptr, size_t *len) { in bootimage_get_file_section()
/lk-master/lib/norfs/
A Dnorfs.c77 FRIEND_TEST status_t find_free_block(uint32_t *ptr) { in find_free_block()
96 static bool block_full(uint8_t block, uint32_t ptr) { in block_full()
103 static uint8_t select_garbage_block(uint32_t ptr) { in select_garbage_block()
107 static ssize_t nvram_read(size_t offset, size_t length, void *ptr) { in nvram_read()
111 static ssize_t nvram_write(size_t offset, size_t length, const void *ptr) { in nvram_write()
156 static ssize_t read_header(uint32_t ptr, struct norfs_header *header) { in read_header()
248 static status_t write_obj_header(uint32_t *ptr, uint32_t key, uint16_t version, in write_obj_header()
328 static status_t initialize_next_block(uint32_t *ptr) { in initialize_next_block()
469 static status_t find_space_for_object(uint16_t obj_len, uint32_t *ptr) { in find_space_for_object()
705 static status_t load_and_verify_obj(uint32_t *ptr, struct norfs_header *header) { in load_and_verify_obj()
[all …]
/lk-master/external/platform/lpc15xx/lpcopen/lpc_chip_15xx/inc/
A Dcore_cmInstr.h193 #define __LDREXB(ptr) ((uint8_t ) __ldrex(ptr)) argument
203 #define __LDREXH(ptr) ((uint16_t) __ldrex(ptr)) argument
213 #define __LDREXW(ptr) ((uint32_t ) __ldrex(ptr)) argument
225 #define __STREXB(value, ptr) __strex(value, ptr) argument
237 #define __STREXH(value, ptr) __strex(value, ptr) argument
249 #define __STREXW(value, ptr) __strex(value, ptr) argument
/lk-master/lib/norfs/test/
A Dnorfs_test.c81 static void write_block_header(uint *ptr) { in write_block_header()
331 uint ptr = 0; in test_deletion() local
379 uint ptr = 4; in test_corruption() local
458 uint32_t ptr = 0; in test_garbage_collection_interruption() local
633 uint ptr = 0; in test_wrapping() local
/lk-master/kernel/vm/
A Dvm.c109 paddr_t vaddr_to_paddr(void *ptr) { in vaddr_to_paddr()
122 vmm_aspace_t *vaddr_to_aspace(void *ptr) { in vaddr_to_aspace()
148 void *ptr = paddr_to_kvaddr((paddr_t)argv[2].u); in cmd_vm() local
A Dvmm.c326void **ptr, uint8_t align_log2, paddr_t paddr, uint vmm_flags, uint arch_mmu_flags) { in vmm_alloc_physical()
382 status_t vmm_alloc_contiguous(vmm_aspace_t *aspace, const char *name, size_t size, void **ptr, in vmm_alloc_contiguous()
456 status_t vmm_alloc(vmm_aspace_t *aspace, const char *name, size_t size, void **ptr, in vmm_alloc()
745 void *ptr = (void *)0x99; in cmd_vmm() local
751 void *ptr = (void *)0x99; in cmd_vmm() local
758 void *ptr = (void *)0x99; in cmd_vmm() local
/lk-master/lib/elf/
A Delf.c42 const uint8_t *ptr; member
86 status_t elf_open_handle_memory(elf_handle_t *handle, const void *ptr, size_t len) { in elf_open_handle_memory()
224 void *ptr = (void *)(uintptr_t)pheader->p_vaddr; in elf_load() local
/lk-master/lib/acpi_lite/
A Dacpi_lite.cpp30 void *ptr = paddr_to_kvaddr(pa); in phys_to_ptr() local
76 for (paddr_t ptr = 0xe0000; ptr <= 0xfffff; ptr += 16) { in find_rsdp_pc() local
180 const void* ptr = phys_to_ptr(rsdp_pa); in acpi_lite_init() local
/lk-master/app/lkboot/
A Dcommands.c129 const void *ptr; in do_boot() local
197 const void *ptr; in do_flash_boot() local
380 const void *ptr; in lkb_handle_command() local
/lk-master/app/zynq-common/
A Dinit.c96 void *ptr = paddr_to_kvaddr(bootimage_phys); in zynq_common_target_init() local
103 void *ptr = 0; in zynq_common_target_init() local
/lk-master/app/lpcboot/
A Dlpc43xx-spifi.c39 void spifi_page_program(u32 addr, u32 *ptr, u32 count) { in spifi_page_program()
70 int spifi_verify_page(u32 addr, u32 *ptr) { in spifi_verify_page()
/lk-master/lib/klog/
A Dklog.c63 uint8_t *ptr = (uint8_t *)k->data; in find_nth_log() local
110 uint8_t *ptr = _ptr; in klog_create() local
158 uint8_t *ptr = _ptr; in klog_recover() local
481 void *ptr = malloc(size); in cmd_klog() local
/lk-master/lib/bio/
A Dmem.c21 void *ptr; member
64 int create_membdev(const char *name, void *ptr, size_t len) { in create_membdev()

Completed in 36 milliseconds

1234