Home
last modified time | relevance | path

Searched refs:region_size (Results 1 – 25 of 92) sorted by relevance

1234

/openbmc/linux/drivers/char/tpm/
H A Dtpm_atmel.h21 int region_size; member
41 static void __iomem * atmel_get_base_addr(unsigned long *base, int *region_size) in atmel_get_base_addr() argument
79 *region_size = size; in atmel_get_base_addr()
80 return ioremap(*base, *region_size); in atmel_get_base_addr()
125 static void __iomem * atmel_get_base_addr(unsigned long *base, int *region_size) in atmel_get_base_addr() argument
136 *region_size = 2; in atmel_get_base_addr()
138 return ioport_map(*base, *region_size); in atmel_get_base_addr()
H A Dtpm_atmel.c144 atmel_release_region(priv->base, priv->region_size); in atml_plat_remove()
162 int have_region, region_size; in init_atmel() local
171 if ((iobase = atmel_get_base_addr(&base, &region_size)) == NULL) { in init_atmel()
178 (base, region_size, "tpm_atmel0") == NULL) ? 0 : 1; in init_atmel()
195 priv->region_size = region_size; in init_atmel()
217 region_size); in init_atmel()
/openbmc/linux/drivers/scsi/
H A Dg_NCR5380.c232 unsigned long region_size; in generic_NCR5380_init_one() local
261 region_size = 16; in generic_NCR5380_init_one()
266 region_size, in generic_NCR5380_init_one()
295 region_size = 8; in generic_NCR5380_init_one()
299 region_size = NCR53C400_region_size; in generic_NCR5380_init_one()
305 iomem = ioport_map(base, region_size); in generic_NCR5380_init_one()
307 iomem = ioremap(base, region_size); in generic_NCR5380_init_one()
323 hostdata->region_size = region_size; in generic_NCR5380_init_one()
460 release_region(base, region_size); in generic_NCR5380_init_one()
472 unsigned long region_size = hostdata->region_size; in generic_NCR5380_release_resources() local
[all …]
/openbmc/linux/drivers/md/
H A Ddm-switch.c61 unsigned int region_size) in alloc_switch_ctx() argument
70 sctx->region_size = region_size; in alloc_switch_ctx()
83 if (!(sctx->region_size & (sctx->region_size - 1))) in alloc_region_table()
84 sctx->region_size_bits = __ffs(sctx->region_size); in alloc_region_table()
99 if (sector_div(nr_regions, sctx->region_size)) in alloc_region_table()
164 sector_div(p, sctx->region_size); in switch_get_path_nr()
263 unsigned int nr_paths, region_size, nr_optional_args; in switch_ctr() local
273 r = dm_read_arg(_args + 1, &as, &region_size, &ti->error); in switch_ctr()
287 sctx = alloc_switch_ctx(ti, nr_paths, region_size); in switch_ctr()
293 r = dm_set_target_max_io_len(ti, region_size); in switch_ctr()
[all …]
H A Ddm-log.c225 uint32_t region_size; member
351 if (region_size < 2 || region_size > ti->len) in _check_region_size()
354 if (!is_power_of_2(region_size)) in _check_region_size()
375 uint32_t region_size; in create_log_context() local
397 if (sscanf(argv[0], "%u%c", &region_size, &dummy) != 1 || in create_log_context()
398 !_check_region_size(ti, region_size)) { in create_log_context()
403 region_count = dm_sector_div_up(ti->len, region_size); in create_log_context()
415 lc->region_size = region_size; in create_log_context()
657 return lc->region_size; in core_get_region_size()
806 lc->sync == DEFAULTSYNC ? 1 : 2, lc->region_size); in core_status()
[all …]
H A Ddm-clone-target.c77 sector_t region_size; member
796 sector_t tail_size, region_size, total_size; in hydration_copy() local
803 region_size = clone->region_size; in hydration_copy()
816 tail_size = region_size; in hydration_copy()
818 tail_size = region_size; in hydration_copy()
1469 (unsigned long long)clone->region_size, in clone_status()
1638 unsigned int region_size; in parse_region_size() local
1650 if (!is_power_of_2(region_size)) { in parse_region_size()
1662 clone->region_size = region_size; in parse_region_size()
1850 clone->region_size); in clone_ctr()
[all …]
H A Ddm-clone-metadata.c49 __le64 region_size; member
121 sector_t region_size; member
313 sb->region_size = cpu_to_le64(cmd->region_size); in __prepare_superblock()
334 if (cmd->region_size != le64_to_cpu(sb->region_size) || in __open_metadata()
554 sector_t region_size) in dm_clone_metadata_open() argument
567 cmd->region_size = region_size; in dm_clone_metadata_open()
568 cmd->nr_regions = dm_sector_div_up(cmd->target_size, cmd->region_size); in dm_clone_metadata_open()
H A Ddm-region-hash.c61 uint32_t region_size; member
152 return rh->region_size; in dm_rh_get_region_size()
170 struct dm_dirty_log *log, uint32_t region_size, in dm_region_hash_create() argument
200 rh->region_size = region_size; in dm_region_hash_create()
201 rh->region_shift = __ffs(region_size); in dm_region_hash_create()
/openbmc/linux/tools/testing/selftests/mm/
H A Dmremap_test.c30 unsigned long long region_size; member
62 .region_size = size, \
244 src_addr = mmap((void *) addr, c.region_size, PROT_READ | PROT_WRITE, in get_source_mapping()
262 munmap(src_addr, c.region_size); in get_source_mapping()
287 threshold = c.region_size; in remap_region()
289 threshold = MIN(threshold_mb * _1MB, c.region_size); in remap_region()
306 addr = (void *) (((unsigned long long) src_addr + c.region_size in remap_region()
325 dest_addr = mremap(src_addr, c.region_size, c.region_size, in remap_region()
361 munmap(dest_addr, c.region_size); in remap_region()
363 munmap(src_addr, c.region_size); in remap_region()
[all …]
/openbmc/u-boot/common/
H A Diotrace.c32 ulong region_size; member
50 if (iotrace.region_size) in add_record()
52 (ulong)ptr > iotrace.region_start + iotrace.region_size) in add_record()
140 iotrace.region_size = size; in iotrace_set_region()
146 iotrace.region_size = 0; in iotrace_reset_region()
152 *size = iotrace.region_size; in iotrace_get_region()
/openbmc/linux/drivers/fpga/
H A Ddfl-afu-region.c51 u32 region_index, u64 region_size, u64 phys, u32 flags) in afu_mmio_region_add() argument
62 region->size = region_size; in afu_mmio_region_add()
77 region_size = PAGE_ALIGN(region_size); in afu_mmio_region_add()
81 afu->region_cur_offset += region_size; in afu_mmio_region_add()
/openbmc/linux/drivers/media/radio/
H A Dradio-isa.c197 int radio_nr, unsigned region_size) in radio_isa_common_probe() argument
204 if (!request_region(isa->io, region_size, v4l2_dev->name)) { in radio_isa_common_probe()
271 release_region(isa->io, region_size); in radio_isa_common_probe()
277 unsigned region_size) in radio_isa_common_remove() argument
285 release_region(isa->io, region_size); in radio_isa_common_remove()
309 if (request_region(io, drv->region_size, v4l2_dev->name)) { in radio_isa_probe()
312 release_region(io, drv->region_size); in radio_isa_probe()
336 drv->region_size); in radio_isa_probe()
344 radio_isa_common_remove(isa, isa->drv->region_size); in radio_isa_remove()
/openbmc/u-boot/tools/
H A Difdtool.c632 int region_size; in inject_region() local
650 region_fd = open_for_read(region_fname, &region_size); in inject_region()
654 if ((region_size > region.size) || in inject_region()
655 ((region_type != 1) && (region_size > region.size))) { in inject_region()
658 region.size, region_size, region_size); in inject_region()
662 if ((region_type == 1) && (region_size < region.size)) { in inject_region()
665 region.size, region_size, region_size); in inject_region()
666 offset = region.size - region_size; in inject_region()
670 if (size < region.base + offset + region_size) { in inject_region()
672 size, region.base + offset + region_size); in inject_region()
[all …]
/openbmc/linux/drivers/misc/sgi-xp/
H A Dxpc_partition.c421 int region_size; in xpc_discovery() local
445 region_size = xp_region_size; in xpc_discovery()
452 switch (region_size) { in xpc_discovery()
461 region_size = 16; in xpc_discovery()
472 for (nasid = (region * region_size * 2); in xpc_discovery()
473 nasid < ((region + 1) * region_size * 2); nasid += 2) { in xpc_discovery()
/openbmc/linux/drivers/soc/qcom/
H A Docmem.c45 unsigned long region_size; member
302 unsigned long reg, region_size; in ocmem_dev_probe() local
372 region_size = ocmem->config->macro_size * num_banks; in ocmem_dev_probe()
399 region->region_size = region_size / 2; in ocmem_dev_probe()
402 region->region_size = region_size; in ocmem_dev_probe()
/openbmc/qemu/hw/virtio/
H A Dvirtio-mem.c542 const uint64_t region_size = memory_region_size(&vmem->memdev->mr); in virtio_mem_deactivate_unplugged_memslots() local
558 memslot_size = region_size - memslot_offset; in virtio_mem_deactivate_unplugged_memslots()
917 region_size); in virtio_mem_prepare_mr()
937 memslot_size = region_size - memslot_offset; in virtio_mem_prepare_memslots()
1315 uint64_t region_size; member
1326 tmp->region_size = memory_region_size(&vmem->memdev->mr); in virtio_mem_mig_sanity_checks_pre_save()
1347 if (tmp->region_size != new_region_size) { in virtio_mem_mig_sanity_checks_post_load()
1373 VMSTATE_UINT64(region_size, VirtIOMEMMigSanityChecks),
1472 uint64_t region_size, memslot_size, min_memslot_size; in virtio_mem_decide_memslots() local
1490 region_size = memory_region_size(&vmem->memdev->mr); in virtio_mem_decide_memslots()
[all …]
/openbmc/qemu/tcg/
H A Dregion.c755 size_t region_size; in tcg_region_init() local
791 region_size = tb_size / region.n; in tcg_region_init()
792 region_size = QEMU_ALIGN_DOWN(region_size, page_size); in tcg_region_init()
795 g_assert(region_size >= 2 * page_size); in tcg_region_init()
796 region.stride = region_size; in tcg_region_init()
799 region.size = region_size - page_size; in tcg_region_init()
/openbmc/qemu/hw/hyperv/
H A Dhv-balloon-our_range_memslots.c76 uint64_t region_size; in our_range_memslots_init_slots() local
79 region_size = memory_region_size(our_range->mr); in our_range_memslots_init_slots()
80 memslot_size = region_size - memslot_offset; in our_range_memslots_init_slots()
/openbmc/linux/drivers/net/wwan/iosm/
H A Diosm_ipc_coredump.c19 u32 region_size) in ipc_coredump_collect() argument
25 data_ptr = vmalloc(region_size); in ipc_coredump_collect()
/openbmc/linux/drivers/virt/acrn/
H A Dmm.c300 u32 region_size; in acrn_vm_ram_map() local
305 region_size = PAGE_SIZE << order; in acrn_vm_ram_map()
309 vm_region->size = region_size; in acrn_vm_ram_map()
314 user_vm_pa += region_size; in acrn_vm_ram_map()
/openbmc/google-misc/subprojects/libcr51sign/src/
H A Dlibcr51sign.c331 region->region_offset + region->region_size); in validate_payload_regions()
333 (region->region_size % IMAGE_REGION_ALIGNMENT) != 0) in validate_payload_regions()
339 region->region_size > image_size - byte_count) in validate_payload_regions()
344 byte_count += region->region_size; in validate_payload_regions()
405 hash_size = region->region_size; in validate_payload_regions()
416 hash_size = (region->region_offset + region->region_size - in validate_payload_regions()
431 } while (hash_start != region->region_offset + region->region_size); in validate_payload_regions()
/openbmc/linux/drivers/vfio/pci/pds/
H A Ddirty.c185 u64 region_start, region_size, region_page_size; in pds_vfio_dirty_enable() local
239 region_size = node->last - node->start + 1; in pds_vfio_dirty_enable()
248 page_count = DIV_ROUND_UP(region_size, region_page_size); in pds_vfio_dirty_enable()
292 dirty->region_size = region_size; in pds_vfio_dirty_enable()
481 if (!length || ((iova - dirty->region_start + length) > dirty->region_size)) { in pds_vfio_dirty_sync()
/openbmc/linux/net/dsa/
H A Ddevlink.c264 u32 region_max_snapshots, u64 region_size) in dsa_devlink_region_create() argument
267 region_size); in dsa_devlink_region_create()
275 u32 region_max_snapshots, u64 region_size) in dsa_devlink_port_region_create() argument
281 region_size); in dsa_devlink_port_region_create()
/openbmc/linux/arch/mips/cavium-octeon/
H A Docteon-platform.c929 unsigned long base_ptr, region_base, region_size; in octeon_prune_device_tree() local
957 region_size = (mio_boot_reg_cfg.s.size + 1) << 16; in octeon_prune_device_tree()
959 && base_ptr < region_base + region_size) { in octeon_prune_device_tree()
1013 ranges[(cs * 5) + 4] = cpu_to_be32(region_size); in octeon_prune_device_tree()
1033 unsigned long base_ptr, region_base, region_size; in octeon_prune_device_tree() local
1047 region_size = (mio_boot_reg_cfg.s.size + 1) << 16; in octeon_prune_device_tree()
1049 && base_ptr < region_base + region_size) in octeon_prune_device_tree()
1074 ranges[(cs * 5) + 4] = cpu_to_be32(region_size); in octeon_prune_device_tree()
/openbmc/u-boot/cmd/
H A Dcros_ec.c55 uint32_t offset, size = -1U, region_size; in do_read_write() local
75 ret = cros_ec_flash_offset(dev, region, &offset, &region_size); in do_read_write()
81 size = region_size; in do_read_write()

1234