Lines Matching refs:ptr
241 static inline void *freelist_ptr(const struct kmem_cache *s, void *ptr, in freelist_ptr() argument
255 return (void *)((unsigned long)ptr ^ s->random ^ in freelist_ptr()
258 return ptr; in freelist_ptr()
1545 static inline void *kmalloc_large_node_hook(void *ptr, size_t size, gfp_t flags) in kmalloc_large_node_hook() argument
1547 ptr = kasan_kmalloc_large(ptr, size, flags); in kmalloc_large_node_hook()
1549 kmemleak_alloc(ptr, size, 1, flags); in kmalloc_large_node_hook()
1550 return ptr; in kmalloc_large_node_hook()
4052 void *ptr = NULL; in kmalloc_large_node() local
4058 ptr = page_address(page); in kmalloc_large_node()
4063 return kmalloc_large_node_hook(ptr, size, flags); in kmalloc_large_node()
4106 void __check_heap_object(const void *ptr, unsigned long n, struct page *page, in __check_heap_object() argument
4112 bool is_kfence = is_kfence_address(ptr); in __check_heap_object()
4114 ptr = kasan_reset_tag(ptr); in __check_heap_object()
4120 if (ptr < page_address(page)) in __check_heap_object()
4126 offset = ptr - kfence_object_start(ptr); in __check_heap_object()
4128 offset = (ptr - page_address(page)) % s->size; in __check_heap_object()