Home
last modified time | relevance | path

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

12

/linux/drivers/firmware/efi/libstub/
H A 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()
184 unsigned long bitmap_size; in accept_memory() local
[all …]
/linux/kernel/
H A 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()
H A 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()
817 size_t bitmap_size, int arch) in seccomp_cache_prepare_bitmap() argument
825 bitmap_copy(bitmap, bitmap_prev, bitmap_size); in seccomp_cache_prepare_bitmap()
828 bitmap_fill(bitmap, bitmap_size); in seccomp_cache_prepare_bitmap()
831 for (nr = 0; nr < bitmap_size; nr++) { in seccomp_cache_prepare_bitmap()
2481 const void *bitmap, size_t bitmap_size) in device_initcall()
2485 for (nr = 0; nr < bitmap_size; nr++) { in device_initcall()
/linux/drivers/gpu/drm/vmwgfx/
H A 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/arch/mips/dec/prom/
H A 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/tools/include/linux/
H A Dbitmap.h29 #define bitmap_size(nbits) (ALIGN(nbits, BITS_PER_LONG) / BITS_PER_BYTE) macro
36 memset(dst, 0, bitmap_size(nbits)); in bitmap_zero()
88 return calloc(1, bitmap_size(nbits)); in bitmap_zalloc()
/linux/include/linux/
H A Dbitmap.h229 #define bitmap_size(nbits) (ALIGN(nbits, BITS_PER_LONG) / BITS_PER_BYTE) macro
233 unsigned int len = bitmap_size(nbits); in bitmap_zero()
243 unsigned int len = bitmap_size(nbits); in bitmap_fill()
254 unsigned int len = bitmap_size(nbits); in bitmap_copy()
282 memset(to + copy, 0, bitmap_size(size) - copy * sizeof(long)); in bitmap_copy_and_extend()
H A Dcpumask.h925 return bitmap_size(large_cpumask_bits); in cpumask_size()
/linux/fs/btrfs/
H A 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 …]
H A Dextent_io.c1126 const unsigned int bitmap_size = fs_info->sectors_per_page; in find_next_delalloc_bitmap() local
1134 first_set = find_next_bit(delalloc_bitmap, bitmap_size, start_bit); in find_next_delalloc_bitmap()
1135 if (first_set >= bitmap_size) in find_next_delalloc_bitmap()
1139 first_zero = find_next_zero_bit(delalloc_bitmap, bitmap_size, first_set); in find_next_delalloc_bitmap()
/linux/tools/testing/selftests/iommu/
H A Diommufd_utils.h447 unsigned long bitmap_size = DIV_ROUND_UP(nbits, BITS_PER_BYTE); in _test_cmd_destroy_access_pages()
451 memset(bitmap, 0, bitmap_size); in _test_cmd_destroy_access_pages()
460 memset(bitmap, 0, bitmap_size);
472 memset(bitmap, 0, bitmap_size);
490 bitmap, bitmap_size, flags, _metadata) \
493 bitmap_size, flags, _metadata)) in _test_ioctl_ioas_map()
369 unsigned long bitmap_size = DIV_ROUND_UP(nbits, BITS_PER_BYTE); _test_mock_dirty_bitmaps() local
412 test_mock_dirty_bitmaps(hwpt_id,length,iova,page_size,pte_size,bitmap,bitmap_size,flags,_metadata) global() argument
H A Diommufd.c1976 unsigned long bitmap_size; in FIXTURE() local
2023 self->bitmap_size = variant->buffer_size / self->page_size; in FIXTURE_SETUP()
2026 size = DIV_ROUND_UP(self->bitmap_size, BITS_PER_BYTE); in FIXTURE_SETUP()
2048 munmap(self->bitmap, DIV_ROUND_UP(self->bitmap_size, BITS_PER_BYTE)); in FIXTURE_TEARDOWN()
2185 self->bitmap, self->bitmap_size, 0, _metadata); in TEST_F()
2191 self->bitmap_size, 0, _metadata); in TEST_F()
2196 self->bitmap + 0xff1, self->bitmap_size, 0, in TEST_F()
2222 self->bitmap, self->bitmap_size, in TEST_F()
2230 self->bitmap_size, in TEST_F()
2237 self->bitmap + 0xff1, self->bitmap_size, in TEST_F()
/linux/arch/arm/include/asm/
H A Ddma-iommu.h18 size_t bitmap_size; /* size of a single bitmap */ member
/linux/arch/arm/mm/
H A Ddma-mapping.c1550 unsigned int bitmap_size = BITS_TO_LONGS(bits) * sizeof(long); in arm_iommu_create_mapping() local
1559 if (!bitmap_size) in arm_iommu_create_mapping()
1562 if (bitmap_size > PAGE_SIZE) { in arm_iommu_create_mapping()
1563 extensions = bitmap_size / PAGE_SIZE; in arm_iommu_create_mapping()
1564 bitmap_size = PAGE_SIZE; in arm_iommu_create_mapping()
1571 mapping->bitmap_size = bitmap_size; in arm_iommu_create_mapping()
1577 mapping->bitmaps[0] = kzalloc(bitmap_size, GFP_KERNEL); in arm_iommu_create_mapping()
1584 mapping->bits = BITS_PER_BYTE * bitmap_size; in arm_iommu_create_mapping()
1628 mapping->bitmaps[next_bitmap] = kzalloc(mapping->bitmap_size, in extend_iommu_mapping()
/linux/lib/pldmfw/
H A 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/fs/omfs/
H A Dinode.c335 unsigned int bitmap_size, array_size; in omfs_get_imap() local
342 bitmap_size = DIV_ROUND_UP(sbi->s_num_blocks, 8); in omfs_get_imap()
343 array_size = DIV_ROUND_UP(bitmap_size, sb->s_blocksize); in omfs_get_imap()
358 for (count = bitmap_size; count > 0; count -= sb->s_blocksize) { in omfs_get_imap()
/linux/drivers/s390/cio/
H A Didset.c21 return bitmap_size(size_mul(num_ssid, num_id)); in idset_bitmap_size()
/linux/fs/f2fs/
H A 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()
/linux/drivers/md/
H A Ddm-clone-metadata.c473 dmap->dirty_words = kvzalloc(bitmap_size(nr_words), GFP_KERNEL); in __dirty_map_init()
477 dmap->dirty_regions = kvzalloc(bitmap_size(nr_regions), GFP_KERNEL); in __dirty_map_init()
574 cmd->region_map = kvmalloc(bitmap_size(cmd->nr_regions), GFP_KERNEL); in dm_clone_metadata_open()
/linux/lib/math/
H A Dprime_numbers.c126 new = kmalloc(sizeof(*new) + bitmap_size(sz), in expand_to_next_prime()
/linux/drivers/net/ethernet/mellanox/mlx5/core/
H A Den_rx.c613 int bitmap_size, int first) in bitmap_find_window() argument
617 next_one = find_next_bit(bitmap, bitmap_size, first); in bitmap_find_window()
618 if (next_one == bitmap_size) { in bitmap_find_window()
619 if (bitmap_size - first >= len) in bitmap_find_window()
621 next_one = find_next_bit(bitmap, bitmap_size, 0); in bitmap_find_window()
622 count = next_one + bitmap_size - first; in bitmap_find_window()
/linux/drivers/video/fbdev/
H A Defifb.c38 u32 bitmap_size; member
/linux/drivers/vfio/
H A Dvfio_iommu_type1.c1224 static int verify_bitmap_size(uint64_t npages, uint64_t bitmap_size) in verify_bitmap_size() argument
1226 if (!npages || !bitmap_size || (bitmap_size > DIRTY_BITMAP_SIZE_MAX) || in verify_bitmap_size()
1227 (bitmap_size < DIRTY_BITMAP_BYTES(npages))) in verify_bitmap_size()
/linux/drivers/gpio/
H A Dgpiolib.c4756 int count, bitmap_size; in gpiod_get_array() local
4785 bitmap_size = BITS_TO_LONGS(gc->ngpio > count ? in gpiod_get_array()
4789 struct_size(array_info, invert_mask, 3 * bitmap_size), in gpiod_get_array()
4800 bitmap_size; in gpiod_get_array()
4802 bitmap_size; in gpiod_get_array()
/linux/drivers/usb/dwc2/
H A Dhcd.c4024 size_t bitmap_size; in dwc2_host_get_tt_info() local
4030 bitmap_size = DWC2_ELEMENTS_PER_LS_BITMAP * in dwc2_host_get_tt_info()
4033 bitmap_size *= urb->dev->tt->hub->maxchild; in dwc2_host_get_tt_info()
4035 dwc_tt = kzalloc(sizeof(*dwc_tt) + bitmap_size, in dwc2_host_get_tt_info()

12