Home
last modified time | relevance | path

Searched refs:zone_idx (Results 1 – 20 of 20) sorted by relevance

/linux-6.12.1/drivers/nvme/host/
Dzns.c181 int ret, zone_idx = 0; in nvme_ns_report_zones() local
200 while (zone_idx < nr_zones && sector < get_capacity(ns->disk)) { in nvme_ns_report_zones()
215 for (i = 0; i < nz && zone_idx < nr_zones; i++) { in nvme_ns_report_zones()
218 zone_idx, cb, data); in nvme_ns_report_zones()
221 zone_idx++; in nvme_ns_report_zones()
227 if (zone_idx > 0) in nvme_ns_report_zones()
228 ret = zone_idx; in nvme_ns_report_zones()
/linux-6.12.1/mm/
Dshow_mem.c170 int zone_idx; in node_has_managed_zones() local
171 for (zone_idx = 0; zone_idx <= max_zone_idx; zone_idx++) in node_has_managed_zones()
172 if (zone_managed_pages(pgdat->node_zones + zone_idx)) in node_has_managed_zones()
194 if (zone_idx(zone) > max_zone_idx) in show_free_areas()
295 if (zone_idx(zone) > max_zone_idx) in show_free_areas()
358 if (zone_idx(zone) > max_zone_idx) in show_free_areas()
Dmm_init.c923 int nid = zone_to_nid(zone), zone_id = zone_idx(zone); in memmap_init_zone_range()
979 unsigned long zone_idx, int nid, in __init_zone_device_page() argument
983 __init_single_page(page, pfn, zone_idx, nid); in __init_zone_device_page()
1045 unsigned long zone_idx, int nid, in memmap_init_compound() argument
1056 __init_zone_device_page(page, pfn, zone_idx, nid, pgmap); in memmap_init_compound()
1079 unsigned long zone_idx = zone_idx(zone); in memmap_init_zone_device() local
1083 if (WARN_ON_ONCE(!pgmap || zone_idx != ZONE_DEVICE)) in memmap_init_zone_device()
1099 __init_zone_device_page(page, pfn, zone_idx, nid, pgmap); in memmap_init_zone_device()
1104 memmap_init_compound(page, pfn, zone_idx, nid, pgmap, in memmap_init_zone_device()
1413 int zone_idx = zone_idx(zone) + 1; in init_currently_empty_zone() local
[all …]
Dmemory_hotplug.c686 if (zone_idx(zone) <= ZONE_NORMAL && !node_state(nid, N_NORMAL_MEMORY)) in node_states_check_changes_online()
777 memmap_init_range(nr_pages, nid, zone_idx(zone), start_pfn, 0, in move_pfn_range_to_zone()
791 if (zone_idx(zone) == ZONE_MOVABLE) { in auto_movable_stats_account_zone()
1067 const bool movable = zone_idx(zone) == ZONE_MOVABLE; in adjust_present_page_count()
1896 if (zone_idx(zone) <= ZONE_NORMAL && nr_pages >= present_pages) in node_states_check_changes_offline()
2338 if (page && zone_idx(page_zone(page)) == ZONE_MOVABLE) in try_offline_memory_block()
Dpage_isolation.c72 if (zone_idx(zone) == ZONE_MOVABLE) in has_unmovable_pages()
Dpage_alloc.c3088 wakeup_kswapd(zone, 0, 0, zone_idx(zone)); in rmqueue()
3302 if (zone_idx(zone) != ZONE_NORMAL) in alloc_flags_nofragment()
4689 __count_zid_vm_events(PGALLOC, zone_idx(zone), nr_account); in alloc_pages_bulk_noprof()
5137 zoneref->zone_idx = zone_idx(zone); in zoneref_set_zone()
5280 zonerefs->zone_idx = 0; in build_zonelists_in_node_order()
5295 zonerefs->zone_idx = 0; in build_thisnode_zonelists()
5371 zonerefs->zone_idx = 0; in build_zonelists()
6017 if (!is_highmem(zone) && zone_idx(zone) != ZONE_MOVABLE) in __setup_per_zone_wmarks()
6027 if (is_highmem(zone) || zone_idx(zone) == ZONE_MOVABLE) { in __setup_per_zone_wmarks()
Dvmscan.c388 int zone_idx) in lruvec_lru_size() argument
393 for (zid = 0; zid <= zone_idx; zid++) { in lruvec_lru_size()
6438 if (zone_idx(zone) > ZONE_NORMAL) in throttle_direct_reclaim()
Dkhugepaged.c2600 if (zone_idx(zone) > gfp_zone(GFP_USER)) in set_recommended_min_free_kbytes()
Dmigrate.c2158 zidx = zone_idx(folio_zone(src)); in alloc_migration_target()
Dhugetlb.c3170 enum zone_type zone = zone_idx(folio_zone(folio)); in hugetlb_folio_init_tail_vmemmap()
/linux-6.12.1/drivers/scsi/
Dsd_zbc.c231 int zone_idx = 0; in sd_zbc_report_zones() local
246 while (zone_idx < nr_zones && lba < sdkp->capacity) { in sd_zbc_report_zones()
256 for (i = 0; i < nr && zone_idx < nr_zones; i++) { in sd_zbc_report_zones()
260 if ((zone_idx == 0 && in sd_zbc_report_zones()
263 (zone_idx > 0 && start_lba != lba) || in sd_zbc_report_zones()
267 zone_idx, lba, start_lba, zone_length); in sd_zbc_report_zones()
281 ret = sd_zbc_parse_report(sdkp, buf + offset, zone_idx, in sd_zbc_report_zones()
286 zone_idx++; in sd_zbc_report_zones()
290 ret = zone_idx; in sd_zbc_report_zones()
/linux-6.12.1/include/trace/events/
Doom.h48 __field( int, zone_idx)
59 __entry->zone_idx = zonelist_zone_idx(zoneref);
69 __entry->node, __print_symbolic(__entry->zone_idx, ZONE_TYPE),
Dcompaction.h209 __entry->idx = zone_idx(zone);
256 __entry->idx = zone_idx(zone);
/linux-6.12.1/drivers/md/
Ddm-zone.c40 nr_zones - args.zone_idx); in dm_blk_do_report_zones()
43 } while (args.zone_idx < nr_zones && in dm_blk_do_report_zones()
46 return args.zone_idx; in dm_blk_do_report_zones()
109 return args->orig_cb(zone, args->zone_idx++, args->orig_data); in dm_report_zones_cb()
/linux-6.12.1/include/linux/
Dmmzone.h1229 int zone_idx; /* zone_idx(zoneref->zone) */ member
1496 #define zone_idx(zone) ((zone) - (zone)->zone_pgdat->node_zones) macro
1501 return zone_idx(zone) == ZONE_DEVICE; in zone_is_zone_device()
1567 return is_highmem_idx(zone_idx(zone)); in is_highmem()
1633 return zoneref->zone_idx; in zonelist_zone_idx()
Dmemcontrol.h939 enum lru_list lru, int zone_idx) in mem_cgroup_get_zone_lru_size() argument
944 return READ_ONCE(mz->lru_zone_size[zone_idx][lru]); in mem_cgroup_get_zone_lru_size()
1387 enum lru_list lru, int zone_idx) in mem_cgroup_get_zone_lru_size() argument
Ddevice-mapper.h535 unsigned int zone_idx; member
/linux-6.12.1/drivers/block/
Dvirtio_blk.c670 unsigned int zone_idx = 0; in virtblk_report_zones() local
687 while (zone_idx < nr_zones && sector < get_capacity(vblk->disk)) { in virtblk_report_zones()
700 for (i = 0; i < nz && zone_idx < nr_zones; i++) { in virtblk_report_zones()
702 zone_idx, cb, data); in virtblk_report_zones()
709 zone_idx++; in virtblk_report_zones()
713 if (zone_idx > 0) in virtblk_report_zones()
714 ret = zone_idx; in virtblk_report_zones()
/linux-6.12.1/drivers/net/ethernet/sfc/
Dtc.h253 u8 zone_idx; /* for TABLE_FIELD_ID_DOMAIN */ member
/linux-6.12.1/fs/btrfs/
Dzoned.c1274 static int btrfs_load_zone_info(struct btrfs_fs_info *fs_info, int zone_idx, in btrfs_load_zone_info() argument
1285 info->physical = map->stripes[zone_idx].physical; in btrfs_load_zone_info()
1288 device = map->stripes[zone_idx].dev; in btrfs_load_zone_info()
1298 __set_bit(zone_idx, active); in btrfs_load_zone_info()
1358 __set_bit(zone_idx, active); in btrfs_load_zone_info()