Lines Matching defs:ptr

33 static int check_mte_memory(char *ptr, int size, int mode, int tag_check)
35 mte_initialize_current_context(mode, (uintptr_t)ptr, size);
36 memset(ptr, '1', size);
41 mte_initialize_current_context(mode, (uintptr_t)ptr, -UNDERFLOW);
42 memset(ptr - UNDERFLOW, '2', UNDERFLOW);
49 mte_initialize_current_context(mode, (uintptr_t)ptr, size + OVERFLOW);
50 memset(ptr + size, '3', OVERFLOW);
62 char *ptr, *map_ptr;
73 ptr = map_ptr + UNDERFLOW;
74 mte_initialize_current_context(mode, (uintptr_t)ptr, sizes[run]);
76 ptr = mte_insert_tags((void *)ptr, sizes[run]);
77 if (!ptr || cur_mte_cxt.fault_valid == true) {
82 result = check_mte_memory(ptr, sizes[run], mode, tag_check);
83 mte_clear_tags((void *)ptr, sizes[run]);
93 char *ptr, *map_ptr;
110 ptr = map_ptr + UNDERFLOW;
111 mte_initialize_current_context(mode, (uintptr_t)ptr, sizes[run]);
113 ptr = mte_insert_tags((void *)ptr, sizes[run]);
114 if (!ptr || cur_mte_cxt.fault_valid == true) {
120 result = check_mte_memory(ptr, sizes[run], mode, tag_check);
121 mte_clear_tags((void *)ptr, sizes[run]);
132 char *ptr, *map_ptr;
140 ptr = (char *)mte_allocate_memory_tag_range(sizes[run], mem_type, mapping,
142 if (check_allocated_memory_range(ptr, sizes[run], mem_type,
145 map_ptr = ptr - UNDERFLOW;
148 mte_free_memory_tag_range((void *)ptr, sizes[run], mem_type,
153 result = check_mte_memory(ptr, sizes[run], mode, TAG_CHECK_ON);
154 mte_free_memory_tag_range((void *)ptr, sizes[run], mem_type, UNDERFLOW, OVERFLOW);
161 ptr = (char *)mte_allocate_file_memory_tag_range(sizes[run], mem_type, mapping,
163 if (check_allocated_memory_range(ptr, sizes[run], mem_type,
168 map_ptr = ptr - UNDERFLOW;
172 mte_free_memory_tag_range((void *)ptr, sizes[run], mem_type,
177 result = check_mte_memory(ptr, sizes[run], mode, TAG_CHECK_ON);
178 mte_free_memory_tag_range((void *)ptr, sizes[run], mem_type, UNDERFLOW, OVERFLOW);