/Linux-v5.15/drivers/nvme/host/ |
D | zns.c | 179 int ret, zone_idx = 0; in nvme_ns_report_zones() local 198 while (zone_idx < nr_zones && sector < get_capacity(ns->disk)) { in nvme_ns_report_zones() 213 for (i = 0; i < nz && zone_idx < nr_zones; i++) { in nvme_ns_report_zones() 215 zone_idx, cb, data); in nvme_ns_report_zones() 218 zone_idx++; in nvme_ns_report_zones() 224 if (zone_idx > 0) in nvme_ns_report_zones() 225 ret = zone_idx; in nvme_ns_report_zones()
|
/Linux-v5.15/include/trace/events/ |
D | oom.h | 46 __field( int, zone_idx) 57 __entry->zone_idx = zoneref->zone_idx; 67 __entry->node, __print_symbolic(__entry->zone_idx, ZONE_TYPE),
|
D | compaction.h | 214 __entry->idx = zone_idx(zone); 261 __entry->idx = zone_idx(zone);
|
/Linux-v5.15/drivers/scsi/ |
D | sd_zbc.c | 200 int zone_idx = 0; in sd_zbc_report_zones() local 215 while (zone_idx < nr_zones && sector < capacity) { in sd_zbc_report_zones() 226 for (i = 0; i < nr && zone_idx < nr_zones; i++) { in sd_zbc_report_zones() 228 ret = sd_zbc_parse_report(sdkp, buf + offset, zone_idx, in sd_zbc_report_zones() 232 zone_idx++; in sd_zbc_report_zones() 238 ret = zone_idx; in sd_zbc_report_zones()
|
/Linux-v5.15/drivers/md/ |
D | dm-zone.c | 41 nr_zones - args.zone_idx); in dm_blk_do_report_zones() 44 } while (args.zone_idx < nr_zones && in dm_blk_do_report_zones() 47 return args.zone_idx; in dm_blk_do_report_zones() 103 return args->orig_cb(zone, args->zone_idx++, args->orig_data); in dm_report_zones_cb()
|
/Linux-v5.15/include/linux/ |
D | mmzone.h | 756 int zone_idx; /* zone_idx(zoneref->zone) */ member 972 #define zone_idx(zone) ((zone) - (zone)->zone_pgdat->node_zones) macro 977 return zone_idx(zone) == ZONE_DEVICE; in zone_is_zone_device() 1044 return is_highmem_idx(zone_idx(zone)); in is_highmem() 1126 return zoneref->zone_idx; in zonelist_zone_idx()
|
D | memcontrol.h | 905 enum lru_list lru, int zone_idx) in mem_cgroup_get_zone_lru_size() argument 910 return READ_ONCE(mz->lru_zone_size[zone_idx][lru]); in mem_cgroup_get_zone_lru_size() 1326 enum lru_list lru, int zone_idx) in mem_cgroup_get_zone_lru_size() argument
|
D | device-mapper.h | 481 unsigned int zone_idx; member
|
/Linux-v5.15/mm/ |
D | memory_hotplug.c | 633 if (zone_idx(zone) <= ZONE_NORMAL && !node_state(nid, N_NORMAL_MEMORY)) in node_states_check_changes_online() 636 if (zone_idx(zone) <= ZONE_HIGHMEM && !node_state(nid, N_HIGH_MEMORY)) in node_states_check_changes_online() 725 memmap_init_range(nr_pages, nid, zone_idx(zone), start_pfn, 0, in move_pfn_range_to_zone() 739 if (zone_idx(zone) == ZONE_MOVABLE) { in auto_movable_stats_account_zone() 1014 const bool movable = zone_idx(zone) == ZONE_MOVABLE; in adjust_present_page_count() 1818 if (zone_idx(zone) <= ZONE_NORMAL && nr_pages >= present_pages) in node_states_check_changes_offline() 1831 if (zone_idx(zone) <= ZONE_HIGHMEM && nr_pages >= present_pages) in node_states_check_changes_offline() 2269 if (page && zone_idx(page_zone(page)) == ZONE_MOVABLE) in try_offline_memory_block()
|
D | page_alloc.c | 1909 int zid = zone_idx(zone); in deferred_init_pages() 3733 wakeup_kswapd(zone, 0, 0, zone_idx(zone)); in rmqueue() 4006 if (zone_idx(zone) != ZONE_NORMAL) in alloc_flags_nofragment() 5317 __count_zid_vm_events(PGALLOC, zone_idx(zone), nr_account); in __alloc_pages_bulk() 6076 zoneref->zone_idx = zone_idx(zone); in zoneref_set_zone() 6218 zonerefs->zone_idx = 0; in build_zonelists_in_node_order() 6233 zonerefs->zone_idx = 0; in build_thisnode_zonelists() 6331 zonerefs->zone_idx = 0; in build_zonelists() 6567 unsigned long zone_idx = zone_idx(zone); in memmap_init_zone_device() local 6571 if (WARN_ON_ONCE(!pgmap || zone_idx(zone) != ZONE_DEVICE)) in memmap_init_zone_device() [all …]
|
D | vmscan.c | 592 int zone_idx) in lruvec_lru_size() argument 597 for (zid = 0; zid <= zone_idx && zid < MAX_NR_ZONES; zid++) { in lruvec_lru_size() 3557 if (zone_idx(zone) > ZONE_NORMAL) in throttle_direct_reclaim()
|
D | khugepaged.c | 2307 if (zone_idx(zone) > gfp_zone(GFP_USER)) in set_recommended_min_free_kbytes()
|
D | migrate.c | 1636 zidx = zone_idx(page_zone(page)); in alloc_migration_target()
|
/Linux-v5.15/fs/f2fs/ |
D | segment.c | 5020 static bool is_conv_zone(struct f2fs_sb_info *sbi, unsigned int zone_idx, in is_conv_zone() argument 5025 return !test_bit(zone_idx, FDEV(dev_idx).blkz_seq); in is_conv_zone() 5045 unsigned int dev_idx, zone_idx, unusable_segs_in_sec; in f2fs_usable_zone_segs_in_sec() local 5048 zone_idx = get_zone_idx(sbi, GET_SEC_FROM_SEG(sbi, segno), dev_idx); in f2fs_usable_zone_segs_in_sec() 5051 if (is_conv_zone(sbi, zone_idx, dev_idx)) in f2fs_usable_zone_segs_in_sec() 5063 FDEV(dev_idx).zone_capacity_blocks[zone_idx]) >> in f2fs_usable_zone_segs_in_sec() 5080 unsigned int zone_idx, dev_idx, secno; in f2fs_usable_zone_blks_in_seg() local 5085 zone_idx = get_zone_idx(sbi, secno, dev_idx); in f2fs_usable_zone_blks_in_seg() 5091 if (is_conv_zone(sbi, zone_idx, dev_idx)) in f2fs_usable_zone_blks_in_seg() 5099 FDEV(dev_idx).zone_capacity_blocks[zone_idx]; in f2fs_usable_zone_blks_in_seg()
|