Searched refs:bitmap (Results 1 – 8 of 8) sorted by relevance
/kernel/dma/ |
D | coherent.c | 18 unsigned long *bitmap; member 55 dma_mem->bitmap = bitmap_zalloc(pages, GFP_KERNEL); in dma_init_coherent_memory() 56 if (!dma_mem->bitmap) in dma_init_coherent_memory() 83 bitmap_free(mem->bitmap); in _dma_release_coherent_memory() 155 pageno = bitmap_find_free_region(mem->bitmap, mem->size, order); in __dma_alloc_from_coherent() 208 bitmap_release_region(mem->bitmap, page, order); in __dma_release_from_coherent()
|
/kernel/ |
D | watch_queue.c | 243 unsigned long *bitmap; in watch_queue_set_size() local 285 bitmap = bitmap_alloc(nr_notes, GFP_KERNEL); in watch_queue_set_size() 286 if (!bitmap) in watch_queue_set_size() 289 bitmap_fill(bitmap, nr_notes); in watch_queue_set_size() 291 wqueue->notes_bitmap = bitmap; in watch_queue_set_size()
|
D | seccomp.c | 346 static inline bool seccomp_cache_check_allow_bitmap(const void *bitmap, in seccomp_cache_check_allow_bitmap() argument 354 return test_bit(syscall_nr, bitmap); in seccomp_cache_check_allow_bitmap() 794 void *bitmap, const void *bitmap_prev, in seccomp_cache_prepare_bitmap() argument 803 bitmap_copy(bitmap, bitmap_prev, bitmap_size); in seccomp_cache_prepare_bitmap() 806 bitmap_fill(bitmap, bitmap_size); in seccomp_cache_prepare_bitmap() 811 if (!test_bit(nr, bitmap)) in seccomp_cache_prepare_bitmap() 825 __clear_bit(nr, bitmap); in seccomp_cache_prepare_bitmap() 2413 const void *bitmap, size_t bitmap_size) in device_initcall() 2418 bool cached = test_bit(nr, bitmap); in device_initcall()
|
D | sysctl.c | 1392 unsigned long *bitmap = *(unsigned long **) table->data; in proc_do_large_bitmap() local 1396 if (!bitmap || !bitmap_len || !left || (*ppos && !write)) { in proc_do_large_bitmap() 1482 bit_a = find_next_bit(bitmap, bitmap_len, bit_b); in proc_do_large_bitmap() 1485 bit_b = find_next_zero_bit(bitmap, bitmap_len, in proc_do_large_bitmap() 1504 bitmap_or(bitmap, bitmap, tmp_bitmap, bitmap_len); in proc_do_large_bitmap() 1506 bitmap_copy(bitmap, tmp_bitmap, bitmap_len); in proc_do_large_bitmap()
|
/kernel/events/ |
D | uprobes.c | 101 unsigned long *bitmap; /* 0 = free slot */ member 1490 area->bitmap = kcalloc(BITS_TO_LONGS(UINSNS_PER_PAGE), sizeof(long), in __create_xol_area() 1492 if (!area->bitmap) in __create_xol_area() 1506 set_bit(0, area->bitmap); in __create_xol_area() 1515 kfree(area->bitmap); in __create_xol_area() 1556 kfree(area->bitmap); in uprobe_clear_state() 1588 slot_nr = find_first_zero_bit(area->bitmap, UINSNS_PER_PAGE); in xol_take_insn_slot() 1590 if (!test_and_set_bit(slot_nr, area->bitmap)) in xol_take_insn_slot() 1657 clear_bit(slot_nr, area->bitmap); in xol_free_insn_slot()
|
/kernel/sched/ |
D | rt.c | 144 __clear_bit(i, array->bitmap); in init_rt_rq() 147 __set_bit(MAX_RT_PRIO, array->bitmap); in init_rt_rq() 1213 sched_find_first_bit(array->bitmap); in dec_rt_prio() 1334 __clear_bit(rt_se_prio(rt_se), array->bitmap); in __delist_rt_entity() 1471 __set_bit(rt_se_prio(rt_se), array->bitmap); in __enqueue_rt_entity() 1868 idx = sched_find_first_bit(array->bitmap); in pick_next_rt_entity()
|
D | sched.h | 277 DECLARE_BITMAP(bitmap, MAX_RT_PRIO+1); /* include 1 bit for delimiter */
|
/kernel/bpf/ |
D | core.c | 830 unsigned long bitmap[]; member 858 pack = kzalloc(struct_size(pack, bitmap, BITS_TO_LONGS(BPF_PROG_CHUNK_COUNT)), in alloc_new_pack() 868 bitmap_zero(pack->bitmap, BPF_PROG_PACK_SIZE / BPF_PROG_CHUNK_SIZE); in alloc_new_pack() 897 pos = bitmap_find_next_zero_area(pack->bitmap, BPF_PROG_CHUNK_COUNT, 0, in bpf_prog_pack_alloc() 910 bitmap_set(pack->bitmap, pos, nbits); in bpf_prog_pack_alloc() 946 bitmap_clear(pack->bitmap, pos, nbits); in bpf_prog_pack_free() 947 if (bitmap_find_next_zero_area(pack->bitmap, BPF_PROG_CHUNK_COUNT, 0, in bpf_prog_pack_free()
|