| /Linux-v5.4/arch/csky/kernel/ |
| D | setup.c | 45 unsigned long zone_size[MAX_NR_ZONES]; in csky_memblock_init() local 59 memset(zone_size, 0, sizeof(zone_size)); in csky_memblock_init() 72 zone_size[ZONE_NORMAL] = in csky_memblock_init() 78 zone_size[ZONE_NORMAL] = max_pfn - min_low_pfn; in csky_memblock_init() 80 zone_size[ZONE_NORMAL] = in csky_memblock_init() 82 max_low_pfn = min_low_pfn + zone_size[ZONE_NORMAL]; in csky_memblock_init() 99 zone_size[ZONE_HIGHMEM] = size; in csky_memblock_init() 107 free_area_init_node(0, zone_size, min_low_pfn, zhole_size); in csky_memblock_init()
|
| /Linux-v5.4/arch/unicore32/mm/ |
| D | init.c | 67 unsigned long zone_size[MAX_NR_ZONES], zhole_size[MAX_NR_ZONES]; in uc32_bootmem_free() local 73 memset(zone_size, 0, sizeof(zone_size)); in uc32_bootmem_free() 80 zone_size[0] = max_low - min; in uc32_bootmem_free() 86 memcpy(zhole_size, zone_size, sizeof(zhole_size)); in uc32_bootmem_free() 101 arch_adjust_zones(zone_size, zhole_size); in uc32_bootmem_free() 103 free_area_init_node(0, zone_size, min, zhole_size); in uc32_bootmem_free()
|
| /Linux-v5.4/arch/arm64/mm/ |
| D | init.c | 202 unsigned long zone_size[MAX_NR_ZONES], zhole_size[MAX_NR_ZONES]; in zone_sizes_init() local 205 memset(zone_size, 0, sizeof(zone_size)); in zone_sizes_init() 210 zone_size[ZONE_DMA32] = max_dma - min; in zone_sizes_init() 212 zone_size[ZONE_NORMAL] = max - max_dma; in zone_sizes_init() 214 memcpy(zhole_size, zone_size, sizeof(zhole_size)); in zone_sizes_init() 236 free_area_init_node(0, zone_size, min, zhole_size); in zone_sizes_init()
|
| /Linux-v5.4/arch/arm/mm/ |
| D | init.c | 123 unsigned long zone_size[MAX_NR_ZONES], zhole_size[MAX_NR_ZONES]; in zone_sizes_init() local 129 memset(zone_size, 0, sizeof(zone_size)); in zone_sizes_init() 136 zone_size[0] = max_low - min; in zone_sizes_init() 138 zone_size[ZONE_HIGHMEM] = max_high - max_low; in zone_sizes_init() 145 memcpy(zhole_size, zone_size, sizeof(zhole_size)); in zone_sizes_init() 168 arm_adjust_dma_zone(zone_size, zhole_size, in zone_sizes_init() 172 free_area_init_node(0, zone_size, min, zhole_size); in zone_sizes_init()
|
| /Linux-v5.4/arch/unicore32/kernel/ |
| D | pci.c | 136 void __init puv3_pci_adjust_zones(unsigned long *zone_size, in puv3_pci_adjust_zones() argument 144 if (zone_size[0] <= sz) in puv3_pci_adjust_zones() 147 zone_size[1] = zone_size[0] - sz; in puv3_pci_adjust_zones() 148 zone_size[0] = sz; in puv3_pci_adjust_zones()
|
| /Linux-v5.4/fs/adfs/ |
| D | super.c | 328 unsigned int map_addr, zone_size, nzones; in adfs_read_map() local 333 zone_size = (8 << dr->log2secsize) - le16_to_cpu(dr->zone_spare); in adfs_read_map() 334 map_addr = (nzones >> 1) * zone_size - in adfs_read_map() 338 asb->s_ids_per_zone = zone_size / (asb->s_idlen + 1); in adfs_read_map() 348 dm[zone].dm_endbit = zone_size; in adfs_read_map() 349 dm[zone].dm_startblk = zone * zone_size - ADFS_DR_SIZE_BITS; in adfs_read_map() 363 (ADFS_DR_SIZE_BITS - i * zone_size); in adfs_read_map()
|
| /Linux-v5.4/drivers/mtd/ |
| D | sm_ftl.c | 196 WARN_ON(block >= ftl->zone_size); in sm_mkoffset() 571 ftl->zone_size = 256; in sm_get_media_info() 580 ftl->zone_size = 512; in sm_get_media_info() 590 ftl->zone_size = 256; in sm_get_media_info() 597 ftl->zone_size = 512; in sm_get_media_info() 603 ftl->zone_size = 1024; in sm_get_media_info() 612 ftl->zone_size = 1024; in sm_get_media_info() 680 for (block = 0 ; block < ftl->zone_size - ftl->max_lba ; block++) { in sm_find_cis() 764 if (kfifo_alloc(&zone->free_sectors, ftl->zone_size * 2, GFP_KERNEL)) { in sm_init_zone() 770 for (block = 0 ; block < ftl->zone_size ; block++) { in sm_init_zone() [all …]
|
| D | sm_ftl.h | 33 int zone_size; /* zone size in blocks */ member
|
| /Linux-v5.4/drivers/block/ |
| D | null_blk_zoned.c | 19 if (!is_power_of_2(dev->zone_size)) { in null_zone_init() 24 dev->zone_size_sects = dev->zone_size << ZONE_SIZE_SHIFT; in null_zone_init()
|
| D | null_blk.h | 54 unsigned long zone_size; /* zone size in MB if device is zoned */ member
|
| D | null_blk_main.c | 189 module_param_named(zone_size, g_zone_size, ulong, S_IRUGO); 190 MODULE_PARM_DESC(zone_size, "Zone size in MB when block device is zoned. Must be power-of-two: Defa… 300 NULLB_DEVICE_ATTR(zone_size, ulong); 530 dev->zone_size = g_zone_size; in null_alloc_dev()
|
| /Linux-v5.4/drivers/md/ |
| D | raid0.c | 53 sector_t zone_size = 0; in dump_zones() local 71 zone_size = conf->strip_zone[j].zone_end - zone_start; in dump_zones() 75 (unsigned long long)zone_size>>1); in dump_zones()
|
| /Linux-v5.4/Documentation/block/ |
| D | null_blk.rst | 124 zone_size=[MB]: Default: 256
|