Lines Matching defs:mode
22 static int verify_mte_pointer_validity(char *ptr, int mode)
24 mte_initialize_current_context(mode, (uintptr_t)ptr, BUFFER_SIZE);
29 ksft_print_msg("Unexpected fault recorded for %p-%p in mode %x\n",
30 ptr, ptr + BUFFER_SIZE, mode);
36 mte_initialize_current_context(mode, (uintptr_t)ptr, BUFFER_SIZE + 1);
41 ksft_print_msg("No valid fault recorded for %p in mode %x\n",
42 ptr, mode);
49 static int check_single_included_tags(int mem_type, int mode)
60 ret = mte_switch_mode(mode, MT_INCLUDE_VALID_TAG(tag));
74 result = verify_mte_pointer_validity(ptr, mode);
81 static int check_multiple_included_tags(int mem_type, int mode)
94 mte_switch_mode(mode, MT_INCLUDE_VALID_TAGS(excl_mask));
106 result = verify_mte_pointer_validity(ptr, mode);
113 static int check_all_included_tags(int mem_type, int mode)
123 ret = mte_switch_mode(mode, MT_INCLUDE_TAG_MASK);
133 result = verify_mte_pointer_validity(ptr, mode);
139 static int check_none_included_tags(int mem_type, int mode)
148 ret = mte_switch_mode(mode, MT_EXCLUDE_TAG_MASK);
160 mte_initialize_current_context(mode, (uintptr_t)ptr, BUFFER_SIZE);
189 "Check an included tag value with sync mode\n");
191 "Check different included tags value with sync mode\n");
193 "Check none included tags value with sync mode\n");
195 "Check all included tags value with sync mode\n");