Home
last modified time | relevance | path

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

12

/openbmc/linux/drivers/firmware/efi/libstub/
H A Dunaccepted_memory.c62 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
209 bitmap_size = DIV_ROUND_UP(end, unit_size); in accept_memory()
[all …]
/openbmc/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()
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()
/openbmc/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()
/openbmc/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()
/openbmc/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()
/openbmc/qemu/hw/virtio/
H A Dvirtio-mem.c198 while (first_zero_bit < vmem->bitmap_size) { in virtio_mem_for_each_unplugged_range()
221 first_bit = find_first_bit(vmem->bitmap, vmem->bitmap_size); in virtio_mem_for_each_plugged_range()
222 while (first_bit < vmem->bitmap_size) { in virtio_mem_for_each_plugged_range()
273 while (first_bit < vmem->bitmap_size) { in virtio_mem_for_each_plugged_section()
305 while (first_bit < vmem->bitmap_size) { in virtio_mem_for_each_unplugged_section()
309 last_bit = find_next_bit(vmem->bitmap, vmem->bitmap_size, in virtio_mem_for_each_unplugged_section()
746 bitmap_clear(vmem->bitmap, 0, vmem->bitmap_size); in virtio_mem_unplug_all()
1094 vmem->bitmap_size = memory_region_size(&vmem->memdev->mr) / in virtio_mem_device_realize()
1096 vmem->bitmap = bitmap_new(vmem->bitmap_size); in virtio_mem_device_realize()
1402 0, bitmap_size),
[all …]
/openbmc/qemu/block/
H A Dvpc.c147 uint32_t bitmap_size; member
369 s->bitmap_size = ((s->block_size / (8 * 512)) + 511) & ~511; in vpc_open()
419 s->bitmap_size + s->block_size; in vpc_open()
507 block_offset = bitmap_offset + s->bitmap_size + offset_in_block; in get_image_offset()
515 g_autofree uint8_t *bitmap = g_malloc(s->bitmap_size); in get_image_offset()
519 memset(bitmap, 0xff, s->bitmap_size); in get_image_offset()
563 g_autofree uint8_t *bitmap = g_malloc(s->bitmap_size); in alloc_block()
576 memset(bitmap, 0xff, s->bitmap_size); in alloc_block()
578 s->bitmap_size, bitmap, 0); in alloc_block()
584 s->free_data_block_offset += s->block_size + s->bitmap_size; in alloc_block()
[all …]
H A Ddirty-bitmap.c104 int64_t bitmap_size; in bdrv_create_dirty_bitmap() local
119 bitmap_size = bdrv_getlength(bs); in bdrv_create_dirty_bitmap()
120 if (bitmap_size < 0) { in bdrv_create_dirty_bitmap()
121 error_setg_errno(errp, -bitmap_size, "could not get length of device"); in bdrv_create_dirty_bitmap()
122 errno = -bitmap_size; in bdrv_create_dirty_bitmap()
127 bitmap->bitmap = hbitmap_alloc(bitmap_size, ctz32(granularity)); in bdrv_create_dirty_bitmap()
128 bitmap->size = bitmap_size; in bdrv_create_dirty_bitmap()
H A Dparallels.c182 uint32_t bitmap_size, int64_t off, uint32_t count) in mark_used() argument
187 if (cluster_index + count > bitmap_size) { in mark_used()
190 next_used = find_next_bit(bitmap, bitmap_size, cluster_index); in mark_used()
795 uint32_t i, bitmap_size, bat_entry; in parallels_check_duplicate() local
810 bitmap_size = host_cluster_index(s, res->image_end_offset); in parallels_check_duplicate()
811 if (bitmap_size == 0) { in parallels_check_duplicate()
816 bitmap_size++; in parallels_check_duplicate()
819 bitmap = bitmap_new(bitmap_size); in parallels_check_duplicate()
829 ret = mark_used(bs, bitmap, bitmap_size, host_off, 1); in parallels_check_duplicate()
889 ret = mark_used(bs, bitmap, bitmap_size, host_off, 1); in parallels_check_duplicate()
/openbmc/qemu/hw/ppc/
H A Dspapr_ovec.c32 int32_t bitmap_size; /* only used for migration */ member
40 VMSTATE_BITMAP(bitmap, SpaprOptionVector, 1, bitmap_size),
51 ov->bitmap_size = OV_MAXBITS; in spapr_ovec_new()
/openbmc/linux/drivers/pci/endpoint/
H A 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()
/openbmc/linux/include/linux/
H A Dbitmap.h244 #define bitmap_size(nbits) (ALIGN(nbits, BITS_PER_LONG) / BITS_PER_BYTE) macro
248 unsigned int len = bitmap_size(nbits); in bitmap_zero()
258 unsigned int len = bitmap_size(nbits); in bitmap_fill()
269 unsigned int len = bitmap_size(nbits); in bitmap_copy()
297 memset(to + copy, 0, bitmap_size(size) - copy * sizeof(long)); in bitmap_copy_and_extend()
/openbmc/linux/arch/arm/include/asm/
H A Ddma-iommu.h18 size_t bitmap_size; /* size of a single bitmap */ member
/openbmc/linux/drivers/vfio/pci/pds/
H A 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()
/openbmc/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 …]
/openbmc/qemu/include/hw/virtio/
H A Dvirtio-mem.h45 int32_t bitmap_size; member
/openbmc/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()
/openbmc/linux/arch/arm/mm/
H A 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()
/openbmc/linux/fs/omfs/
H A 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()
/openbmc/linux/net/netfilter/
H A Dnft_set_bitmap.c47 u16 bitmap_size; member
267 priv->bitmap_size = nft_bitmap_size(set->klen); in nft_bitmap_init()
/openbmc/linux/drivers/s390/cio/
H A Didset.c21 return bitmap_size(size_mul(num_ssid, num_id)); in idset_bitmap_size()
/openbmc/linux/fs/ext4/
H A 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()
/openbmc/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()
/openbmc/qemu/migration/
H A Dram.c2927 size_t header_size, bitmap_size; in mapped_ram_setup_ramblock() local
2934 bitmap_size = BITS_TO_LONGS(num_pages) * sizeof(unsigned long); in mapped_ram_setup_ramblock()
2943 bitmap_size, in mapped_ram_setup_ramblock()
3093 long bitmap_size = BITS_TO_LONGS(num_pages) * sizeof(unsigned long); in ram_save_file_bmap() local
3095 qemu_put_buffer_at(f, (uint8_t *)block->file_bmap, bitmap_size, in ram_save_file_bmap()
3097 ram_transferred_add(bitmap_size); in ram_save_file_bmap()
3969 size_t bitmap_size; in parse_ramblock_mapped_ram() local
3992 bitmap_size = BITS_TO_LONGS(num_pages) * sizeof(unsigned long); in parse_ramblock_mapped_ram()
3994 bitmap = g_malloc0(bitmap_size); in parse_ramblock_mapped_ram()
3995 if (qemu_get_buffer_at(f, (uint8_t *)bitmap, bitmap_size, in parse_ramblock_mapped_ram()
[all …]

12