/drivers/char/tpm/ |
D | tpm_atmel.h | 39 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()
|
D | tpm_atmel.c | 143 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, ®ion_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()
|
D | tpm.h | 73 int region_size; member
|
/drivers/md/ |
D | dm-switch.c | 43 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, ®ion_size, &ti->error); in switch_ctr() 286 sctx = alloc_switch_ctx(ti, nr_paths, region_size); in switch_ctr() [all …]
|
D | dm-log.c | 222 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", ®ion_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 …]
|
D | dm-raid.c | 320 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 …]
|
D | dm-region-hash.c | 58 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()
|
D | dm-log-userspace-base.c | 36 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()
|
D | dm-raid1.c | 334 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/ |
D | radio-isa.c | 213 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()
|
D | radio-isa.h | 95 unsigned region_size; member
|
D | radio-rtrack2.c | 124 .region_size = 4,
|
D | radio-terratec.c | 151 .region_size = 2,
|
D | radio-aztech.c | 143 .region_size = 8,
|
D | radio-typhoon.c | 153 .region_size = 8,
|
D | radio-aimslab.c | 176 .region_size = 2,
|
D | radio-zoltrix.c | 229 .region_size = 2,
|
D | radio-trust.c | 225 .region_size = 2,
|
D | radio-gemtek.c | 318 .region_size = 1,
|
/drivers/misc/sgi-xp/ |
D | xpc_partition.c | 415 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/ |
D | sonypi.c | 484 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/ |
D | g_NCR5380.c | 287 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/ |
D | hv_balloon.c | 844 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/ |
D | omapfb-main.c | 445 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()
|