Home
last modified time | relevance | path

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

123

/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()
/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 …]
/drivers/md/
Ddm-switch.c43 unsigned region_size; /* Region size in 512-byte sectors */ member
60 unsigned region_size) in alloc_switch_ctx() argument
69 sctx->region_size = region_size; in alloc_switch_ctx()
82 if (!(sctx->region_size & (sctx->region_size - 1))) in alloc_region_table()
83 sctx->region_size_bits = __ffs(sctx->region_size); in alloc_region_table()
98 if (sector_div(nr_regions, sctx->region_size)) in alloc_region_table()
163 sector_div(p, sctx->region_size); in switch_get_path_nr()
262 unsigned nr_paths, region_size, nr_optional_args; in switch_ctr() local
272 r = dm_read_arg(_args + 1, &as, &region_size, &ti->error); in switch_ctr()
286 sctx = alloc_switch_ctx(ti, nr_paths, region_size); in switch_ctr()
[all …]
Ddm-log.c222 uint32_t region_size; member
346 static int _check_region_size(struct dm_target *ti, uint32_t region_size) in _check_region_size() argument
348 if (region_size < 2 || region_size > ti->len) in _check_region_size()
351 if (!is_power_of_2(region_size)) in _check_region_size()
370 uint32_t region_size; in create_log_context() local
393 if (sscanf(argv[0], "%u%c", &region_size, &dummy) != 1 || in create_log_context()
394 !_check_region_size(ti, region_size)) { in create_log_context()
399 region_count = dm_sector_div_up(ti->len, region_size); in create_log_context()
411 lc->region_size = region_size; in create_log_context()
651 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.c58 uint32_t region_size; member
149 return rh->region_size; in dm_rh_get_region_size()
167 struct dm_dirty_log *log, uint32_t region_size, in dm_region_hash_create() argument
197 rh->region_size = region_size; in dm_region_hash_create()
198 rh->region_shift = __ffs(region_size); in dm_region_hash_create()
Ddm-log-userspace-base.c43 uint32_t region_size; member
284 lc->region_size = (uint32_t)rdata; in userspace_ctr()
285 lc->region_count = dm_sector_div_up(ti->len, lc->region_size); in userspace_ctr()
396 return lc->region_size; in userspace_get_region_size()
Ddm-raid1.c336 sector_t region_size = dm_rh_get_region_size(ms->rh); in recover() local
347 from.count = ms->ti->len & (region_size - 1); in recover()
349 from.count = region_size; in recover()
351 from.count = region_size; in recover()
877 uint32_t region_size, in alloc_context() argument
897 ms->nr_regions = dm_sector_div_up(ti->len, region_size); in alloc_context()
914 dl, region_size, ms->nr_regions); in alloc_context()
Ddm-raid.c937 static int validate_region_size(struct raid_set *rs, unsigned long region_size) in validate_region_size() argument
944 if (!region_size) { in validate_region_size()
950 region_size = roundup_pow_of_two(min_region_size); in validate_region_size()
952 region_size); in validate_region_size()
955 region_size = 1 << 13; /* sectors */ in validate_region_size()
961 if (region_size > rs->ti->len) { in validate_region_size()
966 if (region_size < min_region_size) { in validate_region_size()
968 region_size, min_region_size); in validate_region_size()
973 if (!is_power_of_2(region_size)) { in validate_region_size()
978 if (region_size < rs->md.chunk_sectors) { in validate_region_size()
[all …]
Ddm-clone-metadata.h69 sector_t region_size);
/drivers/fpga/
Ddfl-afu-region.c50 u32 region_index, u64 region_size, u64 phys, u32 flags) in afu_mmio_region_add() argument
61 region->size = region_size; in afu_mmio_region_add()
76 region_size = PAGE_ALIGN(region_size); in afu_mmio_region_add()
80 afu->region_cur_offset += region_size; in afu_mmio_region_add()
Ddfl-afu.h88 u32 region_index, u64 region_size, u64 phys, u32 flags);
/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()
Dradio-isa.h82 unsigned region_size; member
Dradio-rtrack2.c125 .region_size = 4,
/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()
/drivers/soc/qcom/
Docmem.c44 unsigned long region_size; member
309 unsigned long reg, region_size; in ocmem_dev_probe() local
376 region_size = ocmem->config->macro_size * num_banks; in ocmem_dev_probe()
403 region->region_size = region_size / 2; in ocmem_dev_probe()
406 region->region_size = region_size; in ocmem_dev_probe()
/drivers/virt/acrn/
Dmm.c263 u32 region_size; in acrn_vm_ram_map() local
268 region_size = PAGE_SIZE << order; in acrn_vm_ram_map()
272 vm_region->size = region_size; in acrn_vm_ram_map()
277 user_vm_pa += region_size; in acrn_vm_ram_map()
/drivers/char/
Dsonypi.c470 u16 region_size; member
1223 sonypi_device.region_size, in sonypi_setup_ioports()
1230 release_region(check->port1, sonypi_device.region_size); in sonypi_setup_ioports()
1237 sonypi_device.region_size, in sonypi_setup_ioports()
1332 sonypi_device.region_size = SONYPI_TYPE1_REGION_SIZE; in sonypi_probe()
1337 sonypi_device.region_size = SONYPI_TYPE2_REGION_SIZE; in sonypi_probe()
1342 sonypi_device.region_size = SONYPI_TYPE3_REGION_SIZE; in sonypi_probe()
1401 release_region(sonypi_device.ioport1, sonypi_device.region_size); in sonypi_probe()
1428 release_region(sonypi_device.ioport1, sonypi_device.region_size); in sonypi_remove()
/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()
/drivers/virtio/
Dvirtio_mem.c137 uint64_t region_size; member
797 return start < vm->addr + vm->region_size && vm->addr < start + size; in virtio_mem_overlaps_range()
807 return start >= vm->addr && start + size <= vm->addr + vm->region_size; in virtio_mem_contains_range()
2425 virtio_cread_le(vm->vdev, struct virtio_mem_config, region_size, in virtio_mem_init()
2426 &vm->region_size); in virtio_mem_init()
2436 if (!IS_ALIGNED(vm->addr + vm->region_size, memory_block_size_bytes())) in virtio_mem_init()
2440 vm->addr + vm->region_size - 1 > pluggable_range.end) in virtio_mem_init()
2501 dev_info(&vm->vdev->dev, "region size: 0x%llx", vm->region_size); in virtio_mem_init()
2529 vm->parent_resource = __request_mem_region(vm->addr, vm->region_size, in virtio_mem_create_resource()
2568 vm->addr + vm->region_size, NULL, in virtio_mem_has_memory_added()
/drivers/bus/fsl-mc/
Ddprc-driver.c623 size_t region_size; in dprc_setup() local
642 region_size = resource_size(mc_dev->regions); in dprc_setup()
646 region_size, in dprc_setup()
/drivers/gpu/drm/amd/display/dc/dcn30/
Ddcn30_hwseq.c282 wb_info->mcif_warmup_params.region_size != 0) { in dcn30_mmhubbub_warmup()
287 warmup_params.address_increment = wb_info->mcif_warmup_params.region_size; in dcn30_mmhubbub_warmup()
288 warmup_params.region_size = wb_info->mcif_warmup_params.region_size; in dcn30_mmhubbub_warmup()
309 …warmup_params.region_size = wb_info[i].mcif_buf_params.luma_pitch * wb_info[i].dwb_params.dest_hei… in dcn30_mmhubbub_warmup()

123