Searched refs:elem (Results 1 – 2 of 2) sorted by relevance
49 struct test_node *elem; in kmemleak_test_init() local80 elem = kzalloc(sizeof(*elem), GFP_KERNEL); in kmemleak_test_init()81 pr_info("kzalloc(sizeof(*elem)) = %p\n", elem); in kmemleak_test_init()82 if (!elem) in kmemleak_test_init()84 INIT_LIST_HEAD(&elem->list); in kmemleak_test_init()85 list_add_tail(&elem->list, &test_list); in kmemleak_test_init()100 struct test_node *elem, *tmp; in kmemleak_test_exit() local106 list_for_each_entry_safe(elem, tmp, &test_list, list) in kmemleak_test_exit()107 list_del(&elem->list); in kmemleak_test_exit()
953 int elem = size_index_elem(i); in setup_kmalloc_cache_index_table() local955 if (elem >= ARRAY_SIZE(size_index)) in setup_kmalloc_cache_index_table()957 size_index[elem] = KMALLOC_SHIFT_LOW; in setup_kmalloc_cache_index_table()