Home
last modified time | relevance | path

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

/drivers/char/tpm/
Dtpm_atmel.h39 static void __iomem * atmel_get_base_addr(unsigned long *base, int *region_size) in atmel_get_base_addr() argument
77 *region_size = size; in atmel_get_base_addr()
78 return ioremap(*base, *region_size); in atmel_get_base_addr()
116 static void __iomem * atmel_get_base_addr(unsigned long *base, int *region_size) in atmel_get_base_addr() argument
127 *region_size = 2; in atmel_get_base_addr()
129 return ioport_map(*base, *region_size); in atmel_get_base_addr()
Dtpm_atmel.c164 chip->vendor.region_size); in atml_plat_remove()
183 int have_region, region_size; in init_atmel() local
191 if ((iobase = atmel_get_base_addr(&base, &region_size)) == NULL) { in init_atmel()
198 (tpm_atmel.base, region_size, "tpm_atmel0") == NULL) ? 0 : 1; in init_atmel()
214 chip->vendor.region_size = region_size; in init_atmel()
224 region_size); in init_atmel()
Dtpm.h70 int region_size; member
/drivers/md/
Ddm-log.c255 uint32_t region_size; member
363 static int _check_region_size(struct dm_target *ti, uint32_t region_size) in _check_region_size() argument
365 if (region_size < 2 || region_size > ti->len) in _check_region_size()
368 if (!is_power_of_2(region_size)) in _check_region_size()
387 uint32_t region_size; in create_log_context() local
409 if (sscanf(argv[0], "%u", &region_size) != 1 || in create_log_context()
410 !_check_region_size(ti, region_size)) { in create_log_context()
415 region_count = dm_sector_div_up(ti->len, region_size); in create_log_context()
425 lc->region_size = region_size; in create_log_context()
670 return lc->region_size; in core_get_region_size()
[all …]
Ddm-region-hash.c58 uint32_t region_size; member
142 return rh->region_size; in dm_rh_get_region_size()
160 struct dm_dirty_log *log, uint32_t region_size, in dm_region_hash_create() argument
189 rh->region_size = region_size; in dm_region_hash_create()
190 rh->region_shift = ffs(region_size) - 1; in dm_region_hash_create()
Ddm-raid1.c287 sector_t region_size = dm_rh_get_region_size(ms->rh); in recover() local
298 from.count = ms->ti->len & (region_size - 1); in recover()
300 from.count = region_size; in recover()
302 from.count = region_size; in recover()
742 uint32_t region_size, in alloc_context() argument
761 ms->nr_regions = dm_sector_div_up(ti->len, region_size); in alloc_context()
787 dl, region_size, ms->nr_regions); in alloc_context()
/drivers/misc/sgi-xp/
Dxpc_partition.c407 int region_size; in xpc_discovery() local
435 region_size = xp_region_size; in xpc_discovery()
437 switch (region_size) { in xpc_discovery()
444 region_size = 16; in xpc_discovery()
455 for (nasid = (region * region_size * 2); in xpc_discovery()
456 nasid < ((region + 1) * region_size * 2); nasid += 2) { in xpc_discovery()
/drivers/char/
Dsonypi.c484 u16 region_size; member
1243 sonypi_device.region_size, in sonypi_setup_ioports()
1250 release_region(check->port1, sonypi_device.region_size); in sonypi_setup_ioports()
1257 sonypi_device.region_size, in sonypi_setup_ioports()
1353 sonypi_device.region_size = SONYPI_TYPE1_REGION_SIZE; in sonypi_probe()
1358 sonypi_device.region_size = SONYPI_TYPE2_REGION_SIZE; in sonypi_probe()
1363 sonypi_device.region_size = SONYPI_TYPE3_REGION_SIZE; in sonypi_probe()
1424 release_region(sonypi_device.ioport1, sonypi_device.region_size); in sonypi_probe()
1451 release_region(sonypi_device.ioport1, sonypi_device.region_size); in sonypi_remove()
/drivers/scsi/
Dg_NCR5380.c290 unsigned long region_size = 16; in generic_NCR5380_detect() local
425 region_size = NCR5380_region_size; in generic_NCR5380_detect()
440 release_region(overrides[current_override].NCR5380_map_name, region_size); in generic_NCR5380_detect()
450 instance->n_io_port = region_size; in generic_NCR5380_detect()