Home
last modified time | relevance | path

Searched refs:bitmap_size (Results 1 – 25 of 39) sorted by relevance

12

/linux-6.6.21/drivers/firmware/efi/libstub/
Dunaccepted_memory.c13 u64 unaccepted_start = ULLONG_MAX, unaccepted_end = 0, bitmap_size; in allocate_unaccepted_bitmap() local
62 bitmap_size = DIV_ROUND_UP(unaccepted_end - unaccepted_start, in allocate_unaccepted_bitmap()
66 sizeof(*unaccepted_table) + bitmap_size, in allocate_unaccepted_bitmap()
76 unaccepted_table->size = bitmap_size; in allocate_unaccepted_bitmap()
77 memset(unaccepted_table->bitmap, 0, bitmap_size); in allocate_unaccepted_bitmap()
101 u64 bitmap_size = unaccepted_table->size; in process_unaccepted_memory() local
161 if (end > bitmap_size * unit_size * BITS_PER_BYTE) { in process_unaccepted_memory()
164 phys_start = bitmap_size * unit_size * BITS_PER_BYTE + in process_unaccepted_memory()
169 end = bitmap_size * unit_size * BITS_PER_BYTE; in process_unaccepted_memory()
183 unsigned long bitmap_size; in accept_memory() local
[all …]
/linux-6.6.21/kernel/
Dcompat.c194 unsigned long bitmap_size) in compat_get_bitmap() argument
199 bitmap_size = ALIGN(bitmap_size, BITS_PER_COMPAT_LONG); in compat_get_bitmap()
200 nr_compat_longs = BITS_TO_COMPAT_LONGS(bitmap_size); in compat_get_bitmap()
202 if (!user_read_access_begin(umask, bitmap_size / 8)) in compat_get_bitmap()
223 unsigned long bitmap_size) in compat_put_bitmap() argument
228 bitmap_size = ALIGN(bitmap_size, BITS_PER_COMPAT_LONG); in compat_put_bitmap()
229 nr_compat_longs = BITS_TO_COMPAT_LONGS(bitmap_size); in compat_put_bitmap()
231 if (!user_write_access_begin(umask, bitmap_size / 8)) in compat_put_bitmap()
Dseccomp.c352 size_t bitmap_size, in seccomp_cache_check_allow_bitmap() argument
355 if (unlikely(syscall_nr < 0 || syscall_nr >= bitmap_size)) in seccomp_cache_check_allow_bitmap()
357 syscall_nr = array_index_nospec(syscall_nr, bitmap_size); in seccomp_cache_check_allow_bitmap()
804 size_t bitmap_size, int arch) in seccomp_cache_prepare_bitmap() argument
812 bitmap_copy(bitmap, bitmap_prev, bitmap_size); in seccomp_cache_prepare_bitmap()
815 bitmap_fill(bitmap, bitmap_size); in seccomp_cache_prepare_bitmap()
818 for (nr = 0; nr < bitmap_size; nr++) { in seccomp_cache_prepare_bitmap()
2464 const void *bitmap, size_t bitmap_size) in device_initcall()
2468 for (nr = 0; nr < bitmap_size; nr++) { in device_initcall()
/linux-6.6.21/drivers/s390/cio/
Didset.c19 static inline unsigned long bitmap_size(int num_ssid, int num_id) in bitmap_size() function
28 set = vmalloc(sizeof(struct idset) + bitmap_size(num_ssid, num_id)); in idset_new()
32 memset(set->bitmap, 0, bitmap_size(num_ssid, num_id)); in idset_new()
44 memset(set->bitmap, 0xff, bitmap_size(set->num_ssid, set->num_id)); in idset_fill()
/linux-6.6.21/drivers/gpu/drm/vmwgfx/
Dvmwgfx_page_dirty.c70 unsigned long bitmap_size; member
91 offset, dirty->bitmap_size, in vmw_bo_dirty_scan_pagetable()
103 offset, dirty->bitmap_size); in vmw_bo_dirty_scan_pagetable()
105 offset, dirty->bitmap_size, in vmw_bo_dirty_scan_pagetable()
134 if (100UL * num_marked / dirty->bitmap_size > in vmw_bo_dirty_scan_mkwrite()
142 pgoff_t end = dirty->bitmap_size; in vmw_bo_dirty_scan_mkwrite()
148 bitmap_clear(&dirty->bitmap[0], 0, dirty->bitmap_size); in vmw_bo_dirty_scan_mkwrite()
249 dirty->bitmap_size = num_pages; in vmw_bo_dirty_add()
250 dirty->start = dirty->bitmap_size; in vmw_bo_dirty_add()
/linux-6.6.21/arch/mips/dec/prom/
Dmemory.c61 int i, bitmap_size; in rex_setup_memory_region() local
68 bitmap_size = rex_getbitmap(bm); in rex_setup_memory_region()
70 for (i = 0; i < bitmap_size; i++) { in rex_setup_memory_region()
/linux-6.6.21/drivers/pci/endpoint/
Dpci-epc-mem.c55 int bitmap_size; in pci_epc_multi_mem_init() local
75 bitmap_size = BITS_TO_LONGS(pages) * sizeof(long); in pci_epc_multi_mem_init()
84 bitmap = kzalloc(bitmap_size, GFP_KERNEL); in pci_epc_multi_mem_init()
/linux-6.6.21/drivers/vfio/pci/pds/
Ddirty.c461 u64 bitmap_size, pages; in pds_vfio_dirty_sync() local
473 bitmap_size = in pds_vfio_dirty_sync()
479 pages, bitmap_size); in pds_vfio_dirty_sync()
491 if (bmp_bytes != bitmap_size) { in pds_vfio_dirty_sync()
494 bmp_bytes, bitmap_size); in pds_vfio_dirty_sync()
/linux-6.6.21/fs/btrfs/
Dfree-space-tree.c41 size_t bitmap_size; in set_free_space_tree_thresholds() local
54 bitmap_size = sizeof(struct btrfs_item) + BTRFS_FREE_SPACE_BITMAP_SIZE; in set_free_space_tree_thresholds()
55 total_bitmap_size = num_bitmaps * bitmap_size; in set_free_space_tree_thresholds()
164 static unsigned long *alloc_bitmap(u32 bitmap_size) in alloc_bitmap() argument
168 u32 bitmap_rounded_size = round_up(bitmap_size, sizeof(unsigned long)); in alloc_bitmap()
218 u32 bitmap_size, flags, expected_extent_count; in convert_free_space_to_bitmaps() local
223 bitmap_size = free_space_bitmap_size(fs_info, block_group->length); in convert_free_space_to_bitmaps()
224 bitmap = alloc_bitmap(bitmap_size); in convert_free_space_to_bitmaps()
354 u32 bitmap_size, flags, expected_extent_count; in convert_free_space_to_extents() local
360 bitmap_size = free_space_bitmap_size(fs_info, block_group->length); in convert_free_space_to_extents()
[all …]
/linux-6.6.21/arch/arm/include/asm/
Ddma-iommu.h18 size_t bitmap_size; /* size of a single bitmap */ member
/linux-6.6.21/lib/math/
Dprime_numbers.c9 #define bitmap_size(nbits) (BITS_TO_LONGS(nbits) * sizeof(unsigned long)) macro
128 new = kmalloc(sizeof(*new) + bitmap_size(sz), in expand_to_next_prime()
/linux-6.6.21/lib/pldmfw/
Dpldmfw.c36 u16 bitmap_size; member
166 data->bitmap_size = data->component_bitmap_len / 8; in pldm_parse_header()
351 err = pldm_move_fw_offset(data, data->bitmap_size); in pldm_parse_one_record()
361 for (i = 0; i < data->bitmap_size; i++) in pldm_parse_one_record()
/linux-6.6.21/arch/arm/mm/
Ddma-mapping.c1553 unsigned int bitmap_size = BITS_TO_LONGS(bits) * sizeof(long); in arm_iommu_create_mapping() local
1562 if (!bitmap_size) in arm_iommu_create_mapping()
1565 if (bitmap_size > PAGE_SIZE) { in arm_iommu_create_mapping()
1566 extensions = bitmap_size / PAGE_SIZE; in arm_iommu_create_mapping()
1567 bitmap_size = PAGE_SIZE; in arm_iommu_create_mapping()
1574 mapping->bitmap_size = bitmap_size; in arm_iommu_create_mapping()
1580 mapping->bitmaps[0] = kzalloc(bitmap_size, GFP_KERNEL); in arm_iommu_create_mapping()
1587 mapping->bits = BITS_PER_BYTE * bitmap_size; in arm_iommu_create_mapping()
1629 mapping->bitmaps[next_bitmap] = kzalloc(mapping->bitmap_size, in extend_iommu_mapping()
/linux-6.6.21/fs/omfs/
Dinode.c337 unsigned int bitmap_size, array_size; in omfs_get_imap() local
344 bitmap_size = DIV_ROUND_UP(sbi->s_num_blocks, 8); in omfs_get_imap()
345 array_size = DIV_ROUND_UP(bitmap_size, sb->s_blocksize); in omfs_get_imap()
360 for (count = bitmap_size; count > 0; count -= sb->s_blocksize) { in omfs_get_imap()
/linux-6.6.21/net/netfilter/
Dnft_set_bitmap.c47 u16 bitmap_size; member
269 priv->bitmap_size = nft_bitmap_size(set->klen); in nft_bitmap_init()
/linux-6.6.21/drivers/md/
Ddm-clone-metadata.c468 static size_t bitmap_size(unsigned long nr_bits) in bitmap_size() function
478 dmap->dirty_words = kvzalloc(bitmap_size(nr_words), GFP_KERNEL); in __dirty_map_init()
482 dmap->dirty_regions = kvzalloc(bitmap_size(nr_regions), GFP_KERNEL); in __dirty_map_init()
582 cmd->region_map = kvmalloc(bitmap_size(cmd->nr_regions), GFP_KERNEL); in dm_clone_metadata_open()
/linux-6.6.21/fs/ext4/
Dballoc.c313 unsigned long bitmap_size = sb->s_blocksize * 8; in ext4_valid_block_bitmap_padding() local
316 if (bitmap_size <= offset) in ext4_valid_block_bitmap_padding()
319 next_zero_bit = ext4_find_next_zero_bit(bh->b_data, bitmap_size, offset); in ext4_valid_block_bitmap_padding()
321 return (next_zero_bit < bitmap_size ? next_zero_bit : 0); in ext4_valid_block_bitmap_padding()
/linux-6.6.21/fs/f2fs/
Dnode.h190 nm_i->bitmap_size)) in get_nat_bitmap()
193 memcpy(addr, nm_i->nat_bitmap, nm_i->bitmap_size); in get_nat_bitmap()
Dsegment.c4378 unsigned int bitmap_size, main_bitmap_size, sit_bitmap_size; in build_sit_info() local
4402 bitmap_size = MAIN_SEGS(sbi) * SIT_VBLOCK_MAP_SIZE * (3 + discard_map); in build_sit_info()
4404 bitmap_size = MAIN_SEGS(sbi) * SIT_VBLOCK_MAP_SIZE * (2 + discard_map); in build_sit_info()
4406 sit_i->bitmap = f2fs_kvzalloc(sbi, bitmap_size, GFP_KERNEL); in build_sit_info()
4469 sit_i->bitmap_size = sit_bitmap_size; in build_sit_info()
4481 unsigned int bitmap_size, sec_bitmap_size; in build_free_segmap() local
4490 bitmap_size = f2fs_bitmap_size(MAIN_SEGS(sbi)); in build_free_segmap()
4491 free_i->free_segmap = f2fs_kvmalloc(sbi, bitmap_size, GFP_KERNEL); in build_free_segmap()
4501 memset(free_i->free_segmap, 0xff, bitmap_size); in build_free_segmap()
4764 unsigned int bitmap_size = f2fs_bitmap_size(MAIN_SECS(sbi)); in init_victim_secmap() local
[all …]
Dsegment.h248 unsigned int bitmap_size; /* SIT bitmap size */ member
520 sit_i->bitmap_size)) in get_sit_bitmap()
523 memcpy(dst_addr, sit_i->sit_bitmap, sit_i->bitmap_size); in get_sit_bitmap()
/linux-6.6.21/arch/x86/kvm/
Dlapic.h263 const unsigned long *bitmap, u32 bitmap_size);
/linux-6.6.21/drivers/scsi/bfa/
Dbfa_fcbuild.h169 u32 bitmap_size);
Dbfa_fcbuild.c1083 u8 *fc4_bitmap, u32 bitmap_size) in fc_rftid_build_sol() argument
1096 (bitmap_size < 32 ? bitmap_size : 32)); in fc_rftid_build_sol()
/linux-6.6.21/include/linux/
Dcompat.h957 unsigned long bitmap_size);
959 unsigned long bitmap_size);
/linux-6.6.21/drivers/net/ethernet/mellanox/mlx5/core/
Den_rx.c605 int bitmap_size, int first) in bitmap_find_window() argument
609 next_one = find_next_bit(bitmap, bitmap_size, first); in bitmap_find_window()
610 if (next_one == bitmap_size) { in bitmap_find_window()
611 if (bitmap_size - first >= len) in bitmap_find_window()
613 next_one = find_next_bit(bitmap, bitmap_size, 0); in bitmap_find_window()
614 count = next_one + bitmap_size - first; in bitmap_find_window()

12