Home
last modified time | relevance | path

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

1234

/linux-6.6.21/drivers/char/tpm/
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()
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()
/linux-6.6.21/drivers/scsi/
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()
274 if (!request_region(ports[i], region_size, in generic_NCR5380_init_one()
279 release_region(ports[i], region_size); in generic_NCR5380_init_one()
295 region_size = 8; in generic_NCR5380_init_one()
296 if (!base || !request_region(base, region_size, "ncr5380")) in generic_NCR5380_init_one()
299 region_size = NCR53C400_region_size; in generic_NCR5380_init_one()
300 if (!request_mem_region(base, region_size, "ncr5380")) in generic_NCR5380_init_one()
305 iomem = ioport_map(base, region_size); in generic_NCR5380_init_one()
[all …]
/linux-6.6.21/drivers/md/
Ddm-switch.c44 unsigned int region_size; /* Region size in 512-byte sectors */ member
61 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()
[all …]
Ddm-log.c225 uint32_t region_size; member
349 static int _check_region_size(struct dm_target *ti, uint32_t region_size) in _check_region_size() argument
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()
[all …]
Ddm-clone-target.c77 sector_t region_size; member
293 *rs = dm_sector_div_up(bio->bi_iter.bi_sector, clone->region_size); in bio_region_range()
305 return (bio_data_dir(bio) == WRITE && bio_sectors(bio) == clone->region_size); in is_overwrite_bio()
796 sector_t tail_size, region_size, total_size; in hydration_copy() local
803 region_size = clone->region_size; in hydration_copy()
814 tail_size = clone->ti->len & (region_size - 1); 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
[all …]
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()
559 sector_t region_size) in dm_clone_metadata_open() argument
572 cmd->region_size = region_size; in dm_clone_metadata_open()
573 cmd->nr_regions = dm_sector_div_up(cmd->target_size, cmd->region_size); in dm_clone_metadata_open()
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()
/linux-6.6.21/tools/testing/selftests/mm/
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()
314 while (!is_remap_region_valid(addr, c.region_size) && !c.overlapping) { 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()
[all …]
/linux-6.6.21/drivers/fpga/
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()
/linux-6.6.21/drivers/media/radio/
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()
/linux-6.6.21/drivers/misc/sgi-xp/
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()
/linux-6.6.21/drivers/soc/qcom/
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()
/linux-6.6.21/drivers/virt/acrn/
Dmm.c262 u32 region_size; in acrn_vm_ram_map() local
267 region_size = PAGE_SIZE << order; in acrn_vm_ram_map()
271 vm_region->size = region_size; in acrn_vm_ram_map()
276 user_vm_pa += region_size; in acrn_vm_ram_map()
/linux-6.6.21/drivers/net/wwan/iosm/
Diosm_ipc_coredump.c19 u32 region_size) in ipc_coredump_collect() argument
25 data_ptr = vmalloc(region_size); in ipc_coredump_collect()
Diosm_ipc_devlink.c168 u32 region_size; in ipc_devlink_coredump_snapshot() local
173 region_size = cd_list->default_size; in ipc_devlink_coredump_snapshot()
175 region_size); in ipc_devlink_coredump_snapshot()
Diosm_ipc_coredump.h52 u32 region_size);
/linux-6.6.21/drivers/vfio/pci/pds/
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()
Ddirty.h18 u64 region_size; member
/linux-6.6.21/net/dsa/
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()
/linux-6.6.21/arch/mips/cavium-octeon/
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()
/linux-6.6.21/drivers/char/
Dsonypi.c470 u16 region_size; member
1222 sonypi_device.region_size, in sonypi_setup_ioports()
1229 release_region(check->port1, sonypi_device.region_size); in sonypi_setup_ioports()
1236 sonypi_device.region_size, in sonypi_setup_ioports()
1331 sonypi_device.region_size = SONYPI_TYPE1_REGION_SIZE; in sonypi_probe()
1336 sonypi_device.region_size = SONYPI_TYPE2_REGION_SIZE; in sonypi_probe()
1341 sonypi_device.region_size = SONYPI_TYPE3_REGION_SIZE; in sonypi_probe()
1400 release_region(sonypi_device.ioport1, sonypi_device.region_size); in sonypi_probe()
1427 release_region(sonypi_device.ioport1, sonypi_device.region_size); in sonypi_remove()
/linux-6.6.21/drivers/mtd/parsers/
Dafs.c291 u32 region_size = imginfo[pad + 4 + i*4]; in afs_parse_v2_partition() local
300 region_size, in afs_parse_v2_partition()
304 region_end = region_start + region_size; in afs_parse_v2_partition()
/linux-6.6.21/arch/powerpc/platforms/ps3/
Dplatform.h160 unsigned int dev_index, unsigned int region_index, u64 *region_size);
168 unsigned int *region_id, u64 *region_start, u64 *region_size);
Drepository.c623 unsigned int dev_index, unsigned int region_index, u64 *region_size) in ps3_repository_read_stor_dev_region_size() argument
630 region_size, NULL); in ps3_repository_read_stor_dev_region_size()
671 unsigned int *region_id, u64 *region_start, u64 *region_size) in ps3_repository_read_stor_dev_region() argument
686 region_index, region_size); in ps3_repository_read_stor_dev_region()
1259 u64 region_start, region_size; in dump_stor_dev_info() local
1263 &region_start, &region_size); in dump_stor_dev_info()
1274 (unsigned long)region_size); in dump_stor_dev_info()

1234