Lines Matching refs:zone
807 struct zone { struct
995 static inline unsigned long zone_managed_pages(struct zone *zone) in zone_managed_pages() argument
997 return (unsigned long)atomic_long_read(&zone->managed_pages); in zone_managed_pages()
1000 static inline unsigned long zone_cma_pages(struct zone *zone) in zone_cma_pages() argument
1003 return zone->cma_pages; in zone_cma_pages()
1009 static inline unsigned long zone_end_pfn(const struct zone *zone) in zone_end_pfn() argument
1011 return zone->zone_start_pfn + zone->spanned_pages; in zone_end_pfn()
1014 static inline bool zone_spans_pfn(const struct zone *zone, unsigned long pfn) in zone_spans_pfn() argument
1016 return zone->zone_start_pfn <= pfn && pfn < zone_end_pfn(zone); in zone_spans_pfn()
1019 static inline bool zone_is_initialized(struct zone *zone) in zone_is_initialized() argument
1021 return zone->initialized; in zone_is_initialized()
1024 static inline bool zone_is_empty(struct zone *zone) in zone_is_empty() argument
1026 return zone->spanned_pages == 0; in zone_is_empty()
1110 extern void memmap_init_zone_device(struct zone *, unsigned long,
1139 static inline bool zone_intersects(struct zone *zone, in zone_intersects() argument
1142 if (zone_is_empty(zone)) in zone_intersects()
1144 if (start_pfn >= zone_end_pfn(zone) || in zone_intersects()
1145 start_pfn + nr_pages <= zone->zone_start_pfn) in zone_intersects()
1178 struct zone *zone; /* Pointer to actual zone */ member
1254 struct zone node_zones[MAX_NR_ZONES];
1404 void wakeup_kswapd(struct zone *zone, gfp_t gfp_mask, int order,
1406 bool __zone_watermark_ok(struct zone *z, unsigned int order, unsigned long mark,
1409 bool zone_watermark_ok(struct zone *z, unsigned int order,
1412 bool zone_watermark_ok_safe(struct zone *z, unsigned int order,
1423 extern void init_currently_empty_zone(struct zone *zone, unsigned long start_pfn,
1446 #define zone_idx(zone) ((zone) - (zone)->zone_pgdat->node_zones) argument
1449 static inline bool zone_is_zone_device(struct zone *zone) in zone_is_zone_device() argument
1451 return zone_idx(zone) == ZONE_DEVICE; in zone_is_zone_device()
1454 static inline bool zone_is_zone_device(struct zone *zone) in zone_is_zone_device() argument
1466 static inline bool managed_zone(struct zone *zone) in managed_zone() argument
1468 return zone_managed_pages(zone); in managed_zone()
1472 static inline bool populated_zone(struct zone *zone) in populated_zone() argument
1474 return zone->present_pages; in populated_zone()
1478 static inline int zone_to_nid(struct zone *zone) in zone_to_nid() argument
1480 return zone->node; in zone_to_nid()
1483 static inline void zone_set_nid(struct zone *zone, int nid) in zone_set_nid() argument
1485 zone->node = nid; in zone_set_nid()
1488 static inline int zone_to_nid(struct zone *zone) in zone_to_nid() argument
1493 static inline void zone_set_nid(struct zone *zone, int nid) {} in zone_set_nid() argument
1515 static inline int is_highmem(struct zone *zone) in is_highmem() argument
1517 return is_highmem_idx(zone_idx(zone)); in is_highmem()
1567 extern struct zone *next_zone(struct zone *zone);
1584 #define for_each_zone(zone) \ argument
1585 for (zone = (first_online_pgdat())->node_zones; \
1586 zone; \
1587 zone = next_zone(zone))
1589 #define for_each_populated_zone(zone) \ argument
1590 for (zone = (first_online_pgdat())->node_zones; \
1591 zone; \
1592 zone = next_zone(zone)) \
1593 if (!populated_zone(zone)) \
1597 static inline struct zone *zonelist_zone(struct zoneref *zoneref) in zonelist_zone()
1599 return zoneref->zone; in zonelist_zone()
1609 return zone_to_nid(zoneref->zone); in zonelist_node_idx()
1676 #define for_each_zone_zonelist_nodemask(zone, z, zlist, highidx, nodemask) \ argument
1677 for (z = first_zones_zonelist(zlist, highidx, nodemask), zone = zonelist_zone(z); \
1678 zone; \
1680 zone = zonelist_zone(z))
1682 #define for_next_zone_zonelist_nodemask(zone, z, highidx, nodemask) \ argument
1683 for (zone = z->zone; \
1684 zone; \
1686 zone = zonelist_zone(z))
1698 #define for_each_zone_zonelist(zone, z, zlist, highidx) \ argument
1699 for_each_zone_zonelist_nodemask(zone, z, zlist, highidx, NULL)
1719 return (!z->zone) ? true : false; in movable_only_nodes()