/openbmc/qemu/tests/qemu-iotests/ |
H A D | 246.out | 8 {"execute": "block-dirty-bitmap-add", "arguments": {"granularity": 32768, "name": "Small", "node": … 12 {"execute": "block-dirty-bitmap-add", "arguments": {"granularity": 131072, "name": "Large", "node":… 24 "granularity": 65536, 32 "granularity": 131072, 40 "granularity": 65536, 48 "granularity": 32768, 64 "granularity": 32768, 72 "granularity": 65536, 80 "granularity": 131072, 101 "granularity": 65536, [all …]
|
H A D | 236.out | 6 {"execute": "block-dirty-bitmap-add", "arguments": {"granularity": 65536, "name": "bitmapA", "node"… 8 {"execute": "block-dirty-bitmap-add", "arguments": {"granularity": 65536, "name": "bitmapB", "node"… 27 "granularity": 65536, 35 "granularity": 65536, 59 "granularity": 65536, 91 "granularity": 65536, 99 "granularity": 65536, 123 "granularity": 65536, 193 "granularity": 65536, 201 "granularity": 65536, [all …]
|
H A D | 242.out | 2 {"execute": "block-dirty-bitmap-add", "arguments": {"disabled": false, "granularity": 16384, "name"… 24 {"execute": "block-dirty-bitmap-add", "arguments": {"disabled": true, "granularity": 32768, "name":… 43 granularity: 32768 52 "granularity": 32768, 58 {"execute": "block-dirty-bitmap-add", "arguments": {"disabled": false, "granularity": 65536, "name"… 77 granularity: 32768 82 granularity: 65536 91 "granularity": 32768, 98 "granularity": 65536, 120 granularity: 32768 [all …]
|
H A D | 236 | 28 granularity = 64 * 1024 variable 55 name="bitmapA", granularity=granularity) 57 name="bitmapB", granularity=granularity) 74 "granularity": granularity }}, 87 "granularity": granularity }}, 121 "disabled": True, "granularity": granularity }}, 134 "disabled": True, "granularity": granularity }},
|
H A D | 257.out | 39 {"execute": "block-dirty-bitmap-add", "arguments": {"granularity": 65536, "name": "bitmap0", "node"… 58 "granularity": 65536, 113 "granularity": 65536, 120 "granularity": 65536, 127 "granularity": 65536, 136 "granularity": 65536, 143 "granularity": 65536, 168 "granularity": 65536, 196 "granularity": 65536, 244 "granularity": 65536, [all …]
|
H A D | 257 | 39 def bits(self, granularity): argument 40 lower = self.offset // granularity 41 upper = (self.offset + self.size - 1) // granularity 50 def bits(self, granularity): argument 54 res |= pattern.bits(granularity) 91 def __init__(self, granularity=GRANULARITY): argument 93 self.granularity = granularity 99 self.dirty_bits(GROUPS[n].bits(self.granularity)) 111 self.clear_bits(GROUPS[n].bits(self.granularity)) 339 name="bitmap0", granularity=GRANULARITY) [all …]
|
H A D | 254.out | 99 "granularity": 65536, 107 "granularity": 65536, 115 "granularity": 65536, 128 "granularity": 65536,
|
H A D | 242 | 52 granularity = 1 << (13 + bitmap_number) 57 granularity=granularity, persistent=persistent,
|
/openbmc/qemu/util/ |
H A D | hbitmap.c | 85 int granularity; member 166 return item << hbi->granularity; in hbitmap_iter_next() 175 pos = first >> hb->granularity; in hbitmap_iter_init() 178 hbi->granularity = hb->granularity; in hbitmap_iter_init() 222 size_t pos = (start >> hb->granularity) >> BITS_PER_LEVEL; in hbitmap_next_zero() 237 ((start + count - 1) >> hb->granularity) + 1; in hbitmap_next_zero() 243 start_bit_offset = (start >> hb->granularity) & (BITS_PER_LONG - 1); in hbitmap_next_zero() 245 assert((start >> hb->granularity) < hb->size); in hbitmap_next_zero() 264 res = res << hb->granularity; in hbitmap_next_zero() 266 assert(((start - res) >> hb->granularity) == 0); in hbitmap_next_zero() [all …]
|
/openbmc/linux/drivers/gpu/drm/amd/display/dc/dml/ |
H A D | dml_inline_defs.h | 67 static inline double dml_ceil(double a, double granularity) in dml_ceil() argument 69 if (granularity == 0) in dml_ceil() 71 return (double) dcn_bw_ceil2(a, granularity); 74 static inline double dml_floor(double a, double granularity) in dml_floor() 76 if (granularity == 0) 78 return (double) dcn_bw_floor2(a, granularity); in dml_round() 119 static inline double dml_ceil_ex(double x, double granularity) 121 if (granularity == 0) in dml_floor_ex() 123 return (double) dcn_bw_ceil2(x, granularity); in dml_floor_ex() 126 static inline double dml_floor_ex(double x, double granularity) in dml_round_to_multiple() 72 dml_floor(double a,double granularity) dml_floor() argument 115 dml_ceil_ex(double x,double granularity) dml_ceil_ex() argument 120 dml_floor_ex(double x,double granularity) dml_floor_ex() argument [all...] |
/openbmc/qemu/tests/qemu-iotests/tests/ |
H A D | qemu-img-bitmaps.out | 33 granularity: 524288 38 granularity: 65536 49 granularity: 524288 54 granularity: 65536 58 granularity: 65536 74 granularity: 524288 79 granularity: 65536 83 granularity: 65536 96 granularity: 65536 101 granularity: 65536 [all …]
|
H A D | migrate-bitmaps-test | 63 def add_bitmap(self, vm, granularity, persistent): argument 66 'granularity': granularity} 82 granularity = 512 96 self.add_bitmap(self.vm_a, granularity, persistent) 138 granularity = 512 161 self.add_bitmap(self.vm_a, granularity, persistent)
|
/openbmc/qemu/block/ |
H A D | mirror.c | 72 int64_t granularity; member 149 uint64_t self_start_chunk = offset / s->granularity; in mirror_wait_on_conflicts() 150 uint64_t self_end_chunk = DIV_ROUND_UP(offset + bytes, s->granularity); in mirror_wait_on_conflicts() 160 uint64_t op_start_chunk = op->offset / s->granularity; in mirror_wait_on_conflicts() 162 s->granularity) - in mirror_wait_on_conflicts() 215 chunk_num = op->offset / s->granularity; in mirror_iteration_done() 216 nb_chunks = DIV_ROUND_UP(op->bytes, s->granularity); in mirror_iteration_done() 289 int max_bytes = s->granularity * s->max_iov; in mirror_cow_align() 291 need_cow = !test_bit(*offset / s->granularity, s->cow_bitmap); in mirror_cow_align() 292 need_cow |= !test_bit((*offset + *bytes - 1) / s->granularity, in mirror_cow_align() [all …]
|
H A D | dirty-bitmap.c | 100 uint32_t granularity, in bdrv_create_dirty_bitmap() argument 107 assert(is_power_of_2(granularity) && granularity >= BDRV_SECTOR_SIZE); in bdrv_create_dirty_bitmap() 127 bitmap->bitmap = hbitmap_alloc(bitmap_size, ctz32(granularity)); in bdrv_create_dirty_bitmap() 213 uint64_t granularity; in bdrv_dirty_bitmap_create_successor() local 226 granularity = bdrv_dirty_bitmap_granularity(bitmap); in bdrv_dirty_bitmap_create_successor() 227 child = bdrv_create_dirty_bitmap(bitmap->bs, granularity, NULL, errp); in bdrv_dirty_bitmap_create_successor() 416 uint32_t granularity, Error **errp) in bdrv_co_can_store_new_dirty_bitmap() argument 435 return drv->bdrv_co_can_store_new_dirty_bitmap(bs, name, granularity, errp); in bdrv_co_can_store_new_dirty_bitmap() 463 info->granularity = bdrv_dirty_bitmap_granularity(bm); in bdrv_query_dirty_bitmaps() 501 uint32_t granularity; in bdrv_get_default_bitmap_granularity() local [all …]
|
H A D | qcow2-bitmap.c | 152 static int64_t get_bitmap_bytes_needed(int64_t len, uint32_t granularity) in get_bitmap_bytes_needed() argument 154 int64_t num_bits = DIV_ROUND_UP(len, granularity); in get_bitmap_bytes_needed() 161 uint32_t granularity, Error **errp) in check_constraints_on_bitmap() argument 164 int granularity_bits = ctz32(granularity); in check_constraints_on_bitmap() 168 assert(granularity > 0); in check_constraints_on_bitmap() 169 assert((granularity & (granularity - 1)) == 0); in check_constraints_on_bitmap() 188 bitmap_bytes = get_bitmap_bytes_needed(len, granularity); in check_constraints_on_bitmap() 347 uint32_t granularity; in load_bitmap() local 350 granularity = 1U << bm->granularity_bits; in load_bitmap() 351 bitmap = bdrv_create_dirty_bitmap(bs, granularity, bm->name, errp); in load_bitmap() [all …]
|
/openbmc/linux/drivers/acpi/acpica/ |
H A D | rsaddr.c | 41 {ACPI_RSC_MOVE16, ACPI_RS_OFFSET(data.address16.address.granularity), 42 AML_OFFSET(address16.granularity), 79 {ACPI_RSC_MOVE32, ACPI_RS_OFFSET(data.address32.address.granularity), 80 AML_OFFSET(address32.granularity), 117 {ACPI_RSC_MOVE64, ACPI_RS_OFFSET(data.address64.address.granularity), 118 AML_OFFSET(address64.granularity), 162 ACPI_RS_OFFSET(data.ext_address64.address.granularity), 163 AML_OFFSET(ext_address64.granularity),
|
/openbmc/qemu/tests/unit/ |
H A D | test-hbitmap.c | 28 int granularity; member 72 g_assert_cmpint(count << data->granularity, ==, hbitmap_count(data->hb)); in hbitmap_test_check() 79 uint64_t size, int granularity) in hbitmap_test_init() argument 82 data->hb = hbitmap_alloc(size, granularity); in hbitmap_test_init() 90 data->granularity = granularity; in hbitmap_test_init() 160 if (data->granularity == 0) { in hbitmap_test_set() 179 if (data->granularity == 0) { in hbitmap_test_reset() 196 if (data->granularity == 0) { in hbitmap_test_reset_all() 462 if (data->granularity == 0) { in hbitmap_test_set_boundary_bits() 471 if (data->granularity == 0) { in hbitmap_test_check_boundary_bits() [all …]
|
/openbmc/qemu/block/monitor/ |
H A D | bitmap-qmp-cmds.c | 91 bool has_granularity, uint32_t granularity, in qmp_block_dirty_bitmap_add() argument 110 if (granularity < 512 || !is_power_of_2(granularity)) { in qmp_block_dirty_bitmap_add() 117 granularity = bdrv_get_default_bitmap_granularity(bs); in qmp_block_dirty_bitmap_add() 129 !bdrv_can_store_new_dirty_bitmap(bs, name, granularity, errp)) in qmp_block_dirty_bitmap_add() 134 bitmap = bdrv_create_dirty_bitmap(bs, granularity, name, errp); in qmp_block_dirty_bitmap_add()
|
/openbmc/linux/sound/pci/lola/ |
H A D | lola.c | 39 static int granularity[SNDRV_CARDS] = { variable 48 module_param_array(granularity, int, NULL, 0444); 49 MODULE_PARM_DESC(granularity, "Granularity value"); 419 lola_set_granularity(chip, chip->granularity, true); in lola_reset_setups() 517 if (chip->granularity != LOLA_GRANULARITY_MIN) in lola_parse_tree() 518 lola_set_granularity(chip, chip->granularity, true); in lola_parse_tree() 556 chip->granularity = granularity[dev]; in lola_create() 557 switch (chip->granularity) { in lola_create() 570 chip->granularity, LOLA_GRANULARITY_MAX); in lola_create() 571 chip->granularity = LOLA_GRANULARITY_MAX; in lola_create()
|
H A D | lola_clock.c | 59 if (!chip->granularity) in check_gran_clock_compatibility() 81 if (val == chip->granularity) in lola_set_granularity() 93 chip->granularity = val; in lola_set_granularity() 279 if (!check_gran_clock_compatibility(chip, chip->granularity, freq)) in lola_set_clock()
|
/openbmc/linux/arch/powerpc/boot/ |
H A D | simple_alloc.c | 128 unsigned long granularity, unsigned long max_allocs) in simple_alloc_init() argument 132 heap_size = _ALIGN_UP(heap_size, granularity); in simple_alloc_init() 133 alloc_min = granularity; in simple_alloc_init()
|
/openbmc/linux/block/ |
H A D | blk-settings.c | 493 unsigned int granularity = max(lim->physical_block_size, lim->io_min); in queue_limit_alignment_offset() local 494 unsigned int alignment = sector_div(sector, granularity >> SECTOR_SHIFT) in queue_limit_alignment_offset() 497 return (granularity + lim->alignment_offset - alignment) % granularity; in queue_limit_alignment_offset() 503 unsigned int alignment, granularity, offset; in queue_limit_discard_alignment() local 510 granularity = lim->discard_granularity >> SECTOR_SHIFT; in queue_limit_discard_alignment() 511 if (!granularity) in queue_limit_discard_alignment() 515 offset = sector_div(sector, granularity); in queue_limit_discard_alignment() 518 offset = (granularity + alignment - offset) % granularity; in queue_limit_discard_alignment()
|
/openbmc/linux/drivers/gpu/drm/vmwgfx/ |
H A D | vmwgfx_blit.c | 115 return round_down(offset + diff_offs, granularity); \ 128 if (diff_offs >= size || granularity == sizeof(_type)) \ 151 size_t granularity) in vmw_find_first_diff() argument 167 granularity); in vmw_find_first_diff() 188 return round_down(location, granularity); \ 202 if (location < 0 || granularity == sizeof(_type)) \ 223 size_t granularity) in vmw_find_last_diff() argument 235 granularity); in vmw_find_last_diff()
|
/openbmc/linux/drivers/cxl/ |
H A D | cxl.h | 79 static inline int eig_to_granularity(u16 eig, unsigned int *granularity) in eig_to_granularity() argument 83 *granularity = CXL_DECODER_MIN_GRANULARITY << eig; in eig_to_granularity() 104 static inline int granularity_to_eig(int granularity, u16 *eig) in granularity_to_eig() argument 106 if (granularity > SZ_16K || granularity < CXL_DECODER_MIN_GRANULARITY || in granularity_to_eig() 107 !is_power_of_2(granularity)) in granularity_to_eig() 109 *eig = ilog2(granularity) - 8; in granularity_to_eig()
|
/openbmc/linux/drivers/pci/pcie/ |
H A D | ptm.c | 168 int pci_enable_ptm(struct pci_dev *dev, u8 *granularity) in pci_enable_ptm() argument 179 if (granularity) in pci_enable_ptm() 180 *granularity = dev->ptm_granularity; in pci_enable_ptm()
|