Home
last modified time | relevance | path

Searched refs:region_size (Results 1 – 24 of 24) 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.c143 chip->vendor.region_size); in atml_plat_remove()
164 int have_region, region_size; in init_atmel() local
172 if ((iobase = atmel_get_base_addr(&base, &region_size)) == NULL) { in init_atmel()
179 (base, region_size, "tpm_atmel0") == NULL) ? 0 : 1; in init_atmel()
195 chip->vendor.region_size = region_size; in init_atmel()
205 region_size); in init_atmel()
Dtpm.h73 int region_size; member
/drivers/md/
Ddm-switch.c43 unsigned region_size; /* Region size in 512-byte sectors */ member
60 unsigned 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()
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
344 static int _check_region_size(struct dm_target *ti, uint32_t region_size) in _check_region_size() argument
346 if (region_size < 2 || region_size > ti->len) in _check_region_size()
349 if (!is_power_of_2(region_size)) in _check_region_size()
368 uint32_t region_size; in create_log_context() local
391 if (sscanf(argv[0], "%u%c", &region_size, &dummy) != 1 || in create_log_context()
392 !_check_region_size(ti, region_size)) { in create_log_context()
397 region_count = dm_sector_div_up(ti->len, region_size); in create_log_context()
409 lc->region_size = region_size; in create_log_context()
650 return lc->region_size; in core_get_region_size()
[all …]
Ddm-raid.c320 static int validate_region_size(struct raid_set *rs, unsigned long region_size) in validate_region_size() argument
324 if (!region_size) { in validate_region_size()
330 region_size = roundup_pow_of_two(min_region_size); in validate_region_size()
332 region_size); in validate_region_size()
335 region_size = 1 << 13; /* sectors */ in validate_region_size()
341 if (region_size > rs->ti->len) { in validate_region_size()
346 if (region_size < min_region_size) { in validate_region_size()
348 region_size, min_region_size); in validate_region_size()
353 if (!is_power_of_2(region_size)) { in validate_region_size()
358 if (region_size < rs->md.chunk_sectors) { in validate_region_size()
[all …]
Ddm-region-hash.c58 uint32_t region_size; member
148 return rh->region_size; in dm_rh_get_region_size()
166 struct dm_dirty_log *log, uint32_t region_size, in dm_region_hash_create() argument
195 rh->region_size = region_size; in dm_region_hash_create()
196 rh->region_shift = ffs(region_size) - 1; in dm_region_hash_create()
Ddm-log-userspace-base.c36 uint32_t region_size; member
281 lc->region_size = (uint32_t)rdata; in userspace_ctr()
282 lc->region_count = dm_sector_div_up(ti->len, lc->region_size); in userspace_ctr()
390 return lc->region_size; in userspace_get_region_size()
Ddm-raid1.c334 sector_t region_size = dm_rh_get_region_size(ms->rh); in recover() local
345 from.count = ms->ti->len & (region_size - 1); in recover()
347 from.count = region_size; in recover()
349 from.count = region_size; in recover()
859 uint32_t region_size, in alloc_context() argument
882 ms->nr_regions = dm_sector_div_up(ti->len, region_size); in alloc_context()
899 dl, region_size, ms->nr_regions); in alloc_context()
/drivers/media/radio/
Dradio-isa.c213 int radio_nr, unsigned region_size) in radio_isa_common_probe() argument
220 if (!request_region(isa->io, region_size, v4l2_dev->name)) { in radio_isa_common_probe()
286 release_region(isa->io, region_size); in radio_isa_common_probe()
292 unsigned region_size) in radio_isa_common_remove() argument
300 release_region(isa->io, region_size); in radio_isa_common_remove()
325 if (request_region(io, drv->region_size, v4l2_dev->name)) { in radio_isa_probe()
328 release_region(io, drv->region_size); in radio_isa_probe()
352 drv->region_size); in radio_isa_probe()
360 return radio_isa_common_remove(isa, isa->drv->region_size); in radio_isa_remove()
Dradio-isa.h95 unsigned region_size; member
Dradio-rtrack2.c124 .region_size = 4,
Dradio-terratec.c151 .region_size = 2,
Dradio-aztech.c143 .region_size = 8,
Dradio-typhoon.c153 .region_size = 8,
Dradio-aimslab.c176 .region_size = 2,
Dradio-zoltrix.c229 .region_size = 2,
Dradio-trust.c225 .region_size = 2,
Dradio-gemtek.c318 .region_size = 1,
/drivers/misc/sgi-xp/
Dxpc_partition.c415 int region_size; in xpc_discovery() local
442 region_size = xp_region_size; in xpc_discovery()
449 switch (region_size) { in xpc_discovery()
456 region_size = 16; in xpc_discovery()
468 for (nasid = (region * region_size * 2); in xpc_discovery()
469 nasid < ((region + 1) * region_size * 2); nasid += 2) { in xpc_discovery()
/drivers/char/
Dsonypi.c484 u16 region_size; member
1237 sonypi_device.region_size, in sonypi_setup_ioports()
1244 release_region(check->port1, sonypi_device.region_size); in sonypi_setup_ioports()
1251 sonypi_device.region_size, in sonypi_setup_ioports()
1346 sonypi_device.region_size = SONYPI_TYPE1_REGION_SIZE; in sonypi_probe()
1351 sonypi_device.region_size = SONYPI_TYPE2_REGION_SIZE; in sonypi_probe()
1356 sonypi_device.region_size = SONYPI_TYPE3_REGION_SIZE; in sonypi_probe()
1415 release_region(sonypi_device.ioport1, sonypi_device.region_size); in sonypi_probe()
1442 release_region(sonypi_device.ioport1, sonypi_device.region_size); in sonypi_remove()
/drivers/scsi/
Dg_NCR5380.c287 unsigned long region_size = 16; in generic_NCR5380_detect() local
421 region_size = NCR5380_region_size; in generic_NCR5380_detect()
436 release_region(overrides[current_override].NCR5380_map_name, region_size); in generic_NCR5380_detect()
446 instance->n_io_port = region_size; in generic_NCR5380_detect()
/drivers/hv/
Dhv_balloon.c844 unsigned long region_size; in hot_add_req() local
855 region_size = (pfn_cnt / HA_CHUNK) * HA_CHUNK; in hot_add_req()
857 region_size += HA_CHUNK; in hot_add_req()
862 rg_sz = region_size; in hot_add_req()
/drivers/video/fbdev/omap2/omapfb/
Domapfb-main.c445 static int check_vrfb_fb_size(unsigned long region_size, in check_vrfb_fb_size() argument
451 return min_phys_size > region_size ? -EINVAL : 0; in check_vrfb_fb_size()