Home
last modified time | relevance | path

Searched refs:zone_size (Results 1 – 8 of 8) sorted by relevance

/kernel/linux/linux-5.10/fs/adfs/
Dmap.c312 unsigned int zone, zone_size; in adfs_map_layout() local
315 zone_size = (8 << dr->log2secsize) - le16_to_cpu(dr->zone_spare); in adfs_map_layout()
320 dm[0].dm_endbit = 32 + zone_size; in adfs_map_layout()
324 dm[zone].dm_startblk = zone * zone_size - ADFS_DR_SIZE_BITS; in adfs_map_layout()
326 dm[zone].dm_endbit = 32 + zone_size; in adfs_map_layout()
330 size -= (nzones - 1) * zone_size - ADFS_DR_SIZE_BITS; in adfs_map_layout()
360 unsigned int map_addr, zone_size, nzones; in adfs_read_map() local
364 zone_size = (8 << dr->log2secsize) - le16_to_cpu(dr->zone_spare); in adfs_read_map()
370 asb->s_ids_per_zone = zone_size / (asb->s_idlen + 1); in adfs_read_map()
372 map_addr = (nzones >> 1) * zone_size - in adfs_read_map()
/kernel/linux/linux-5.10/drivers/mtd/
Dsm_ftl.c196 WARN_ON(block >= ftl->zone_size); in sm_mkoffset()
572 ftl->zone_size = 256; in sm_get_media_info()
581 ftl->zone_size = 512; in sm_get_media_info()
591 ftl->zone_size = 256; in sm_get_media_info()
598 ftl->zone_size = 512; in sm_get_media_info()
604 ftl->zone_size = 1024; in sm_get_media_info()
613 ftl->zone_size = 1024; in sm_get_media_info()
681 for (block = 0 ; block < ftl->zone_size - ftl->max_lba ; block++) { in sm_find_cis()
765 if (kfifo_alloc(&zone->free_sectors, ftl->zone_size * 2, GFP_KERNEL)) { in sm_init_zone()
771 for (block = 0 ; block < ftl->zone_size ; block++) { in sm_init_zone()
[all …]
Dsm_ftl.h33 int zone_size; /* zone size in blocks */ member
/kernel/linux/linux-5.10/drivers/block/
Dnull_blk_zoned.c22 if (!is_power_of_2(dev->zone_size)) { in null_init_zoned_dev()
26 if (dev->zone_size > dev->size) { in null_init_zoned_dev()
32 dev->zone_capacity = dev->zone_size; in null_init_zoned_dev()
34 if (dev->zone_capacity > dev->zone_size) { in null_init_zoned_dev()
36 dev->zone_capacity, dev->zone_size); in null_init_zoned_dev()
42 dev->zone_size_sects = MB_TO_SECTS(dev->zone_size); in null_init_zoned_dev()
Dnull_blk.h57 unsigned long zone_size; /* zone size in MB if device is zoned */ member
Dnull_blk_main.c204 module_param_named(zone_size, g_zone_size, ulong, S_IRUGO);
205 MODULE_PARM_DESC(zone_size, "Zone size in MB when block device is zoned. Must be power-of-two: Defa…
359 NULLB_DEVICE_ATTR(zone_size, ulong, NULL);
596 dev->zone_size = g_zone_size; in null_alloc_dev()
1768 (!dev->zone_size || !is_power_of_2(dev->zone_size))) { in null_validate_conf()
/kernel/linux/linux-5.10/drivers/md/
Draid0.c38 sector_t zone_size = 0; in dump_zones() local
56 zone_size = conf->strip_zone[j].zone_end - zone_start; in dump_zones()
60 (unsigned long long)zone_size>>1); in dump_zones()
/kernel/linux/linux-5.10/Documentation/block/
Dnull_blk.rst124 zone_size=[MB]: Default: 256