Searched refs:lru (Results 1 – 6 of 6) sorted by relevance
/kernel/bpf/ |
D | bpf_lru_list.c | 139 static void __bpf_lru_list_rotate_active(struct bpf_lru *lru, in __bpf_lru_list_rotate_active() argument 153 if (++i == lru->nr_scans || node == first_node) in __bpf_lru_list_rotate_active() 166 static void __bpf_lru_list_rotate_inactive(struct bpf_lru *lru, in __bpf_lru_list_rotate_inactive() argument 182 while (i < lru->nr_scans) { in __bpf_lru_list_rotate_inactive() 206 __bpf_lru_list_shrink_inactive(struct bpf_lru *lru, in __bpf_lru_list_shrink_inactive() argument 220 } else if (lru->del_from_htab(lru->del_arg, node)) { in __bpf_lru_list_shrink_inactive() 227 if (++i == lru->nr_scans) in __bpf_lru_list_shrink_inactive() 237 static void __bpf_lru_list_rotate(struct bpf_lru *lru, struct bpf_lru_list *l) in __bpf_lru_list_rotate() argument 240 __bpf_lru_list_rotate_active(lru, l); in __bpf_lru_list_rotate() 242 __bpf_lru_list_rotate_inactive(lru, l); in __bpf_lru_list_rotate() [all …]
|
D | bpf_lru_list.h | 74 int bpf_lru_init(struct bpf_lru *lru, bool percpu, u32 hash_offset, 76 void bpf_lru_populate(struct bpf_lru *lru, void *buf, u32 node_offset, 78 void bpf_lru_destroy(struct bpf_lru *lru); 79 struct bpf_lru_node *bpf_lru_pop_free(struct bpf_lru *lru, u32 hash); 80 void bpf_lru_push_free(struct bpf_lru *lru, struct bpf_lru_node *node); 81 void bpf_lru_promote(struct bpf_lru *lru, struct bpf_lru_node *node);
|
D | hashtab.c | 98 struct bpf_lru lru; member 303 struct bpf_lru_node *node = bpf_lru_pop_free(&htab->lru, hash); in prealloc_lru_pop() 346 err = bpf_lru_init(&htab->lru, in prealloc_init() 359 bpf_lru_populate(&htab->lru, htab->elems, in prealloc_init() 379 bpf_lru_destroy(&htab->lru); in prealloc_destroy() 412 bool lru = (attr->map_type == BPF_MAP_TYPE_LRU_HASH || in htab_map_alloc_check() local 429 if (lru && !bpf_capable()) in htab_map_alloc_check() 443 if (!lru && percpu_lru) in htab_map_alloc_check() 446 if (lru && !prealloc) in htab_map_alloc_check() 475 bool lru = (attr->map_type == BPF_MAP_TYPE_LRU_HASH || in htab_map_alloc() local [all …]
|
/kernel/power/ |
D | wakelock.c | 32 struct list_head lru; member 92 list_add(&wl->lru, &wakelocks_lru_list); in wakelocks_lru_add() 97 list_move(&wl->lru, &wakelocks_lru_list); in wakelocks_lru_most_recent() 108 list_for_each_entry_safe_reverse(wl, aux, &wakelocks_lru_list, lru) { in __wakelocks_gc() 123 list_del(&wl->lru); in __wakelocks_gc()
|
/kernel/ |
D | kexec_core.c | 345 list_for_each_entry_safe(page, next, list, lru) { in kimage_free_page_list() 346 list_del(&page->lru); in kimage_free_page_list() 389 list_add(&pages->lru, &extra_pages); in kimage_alloc_normal_control_pages() 396 list_add(&pages->lru, &image->control_pages); in kimage_alloc_normal_control_pages() 714 list_for_each_entry(page, &image->dest_pages, lru) { in kimage_alloc_page() 717 list_del(&page->lru); in kimage_alloc_page() 732 list_add(&page->lru, &image->unusable_pages); in kimage_alloc_page() 776 list_add(&page->lru, &image->dest_pages); in kimage_alloc_page()
|
D | crash_core.c | 444 VMCOREINFO_OFFSET(page, lru); in crash_save_vmcoreinfo_init()
|