Home
last modified time | relevance | path

Searched refs:mem_tag (Results 1 – 2 of 2) sorted by relevance

/openbmc/qemu/target/arm/tcg/
H A Dmte_helper.c921 uint64_t ptr_tag, mem_tag, align_ptr; in HELPER() local
974 mem_tag = *(uint8_t *)mem; in HELPER()
978 mem_tag = cpu_to_le16(*(uint16_t *)mem); in HELPER()
982 mem_tag = cpu_to_le32(*(uint32_t *)mem); in HELPER()
986 mem_tag = cpu_to_le64(*(uint64_t *)mem); in HELPER()
994 mem_tag = cpu_to_le64(*(uint64_t *)(mem + i)); in HELPER()
995 if (unlikely(mem_tag != ptr_tag)) { in HELPER()
1004 if (likely(mem_tag == ptr_tag)) { in HELPER()
1010 i = ctz64(mem_tag ^ ptr_tag) >> 4; in HELPER()
/openbmc/linux/mm/kasan/
H A Dkasan.h481 u8 mem_tag = hw_get_mem_tag((void *)addr); in kasan_byte_accessible() local
483 return ptr_tag == KASAN_TAG_KERNEL || ptr_tag == mem_tag; in kasan_byte_accessible()