Searched refs:alloc_map (Results 1 – 5 of 5) sorted by relevance
/kernel/linux/linux-5.10/kernel/irq/ |
D | matrix.c | 20 unsigned long alloc_map[IRQ_MATRIX_SIZE]; member 117 bitmap_or(m->scratch_map, m->scratch_map, cm->alloc_map, end); in matrix_alloc_area() 124 bitmap_set(cm->alloc_map, area, num); in matrix_alloc_area() 191 BUG_ON(!test_and_clear_bit(bit, cm->alloc_map)); in irq_matrix_assign_system() 263 bitmap_andnot(m->scratch_map, cm->managed_map, cm->alloc_map, end); in irq_matrix_remove_managed() 301 bitmap_andnot(m->scratch_map, cm->managed_map, cm->alloc_map, end); in irq_matrix_alloc_managed() 305 set_bit(bit, cm->alloc_map); in irq_matrix_alloc_managed() 327 if (WARN_ON_ONCE(test_and_set_bit(bit, cm->alloc_map))) in irq_matrix_assign() 426 if (WARN_ON_ONCE(!test_and_clear_bit(bit, cm->alloc_map))) in irq_matrix_free() 509 m->matrix_bits, cm->alloc_map); in irq_matrix_debug_show()
|
/kernel/linux/linux-5.10/mm/ |
D | percpu-stats.c | 73 last_alloc = find_last_bit(chunk->alloc_map, in chunk_map_stats() 76 last_alloc = test_bit(last_alloc, chunk->alloc_map) ? in chunk_map_stats() 92 if (test_bit(start, chunk->alloc_map)) { in chunk_map_stats() 97 end = find_next_bit(chunk->alloc_map, last_alloc, in chunk_map_stats()
|
D | percpu.c | 286 return chunk->alloc_map + in pcpu_index_alloc_map() 733 unsigned long *alloc_map = pcpu_index_alloc_map(chunk, index); in pcpu_block_refresh_hint() local 750 bitmap_for_each_clear_region(alloc_map, rs, re, start, in pcpu_block_refresh_hint() 1184 bit_off = pcpu_find_zero_area(chunk->alloc_map, end, start, alloc_bits, in pcpu_alloc_area() 1193 bitmap_set(chunk->alloc_map, bit_off, alloc_bits); in pcpu_alloc_area() 1205 chunk->alloc_map, in pcpu_alloc_area() 1243 bitmap_clear(chunk->alloc_map, bit_off, bits); in pcpu_free_area() 1334 alloc_size = BITS_TO_LONGS(region_bits) * sizeof(chunk->alloc_map[0]); in pcpu_alloc_first_chunk() 1335 chunk->alloc_map = memblock_alloc(alloc_size, SMP_CACHE_BYTES); in pcpu_alloc_first_chunk() 1336 if (!chunk->alloc_map) in pcpu_alloc_first_chunk() [all …]
|
D | percpu-internal.h | 64 unsigned long *alloc_map; /* allocation map */ member
|
/kernel/linux/linux-5.10/drivers/dma/ |
D | ste_dma40.c | 398 struct d40_desc **alloc_map; member 717 if (!d40c->base->lcla_pool.alloc_map[idx]) { in d40_lcla_alloc_one() 718 d40c->base->lcla_pool.alloc_map[idx] = d40d; in d40_lcla_alloc_one() 745 if (d40c->base->lcla_pool.alloc_map[idx] == d40d) { in d40_lcla_free_all() 746 d40c->base->lcla_pool.alloc_map[idx] = NULL; in d40_lcla_free_all() 3270 base->lcla_pool.alloc_map = kcalloc(num_phy_chans in d40_hw_detect_init() 3272 sizeof(*base->lcla_pool.alloc_map), in d40_hw_detect_init() 3274 if (!base->lcla_pool.alloc_map) in d40_hw_detect_init() 3294 kfree(base->lcla_pool.alloc_map); in d40_hw_detect_init() 3698 kfree(base->lcla_pool.alloc_map); in d40_probe()
|