Lines Matching refs:zone

818 struct zone {  struct
1014 static inline unsigned long wmark_pages(const struct zone *z, in wmark_pages()
1020 static inline unsigned long min_wmark_pages(const struct zone *z) in min_wmark_pages()
1025 static inline unsigned long low_wmark_pages(const struct zone *z) in low_wmark_pages()
1030 static inline unsigned long high_wmark_pages(const struct zone *z) in high_wmark_pages()
1035 static inline unsigned long promo_wmark_pages(const struct zone *z) in promo_wmark_pages()
1040 static inline unsigned long zone_managed_pages(struct zone *zone) in zone_managed_pages() argument
1042 return (unsigned long)atomic_long_read(&zone->managed_pages); in zone_managed_pages()
1045 static inline unsigned long zone_cma_pages(struct zone *zone) in zone_cma_pages() argument
1048 return zone->cma_pages; in zone_cma_pages()
1054 static inline unsigned long zone_end_pfn(const struct zone *zone) in zone_end_pfn() argument
1056 return zone->zone_start_pfn + zone->spanned_pages; in zone_end_pfn()
1059 static inline bool zone_spans_pfn(const struct zone *zone, unsigned long pfn) in zone_spans_pfn() argument
1061 return zone->zone_start_pfn <= pfn && pfn < zone_end_pfn(zone); in zone_spans_pfn()
1064 static inline bool zone_is_initialized(struct zone *zone) in zone_is_initialized() argument
1066 return zone->initialized; in zone_is_initialized()
1069 static inline bool zone_is_empty(struct zone *zone) in zone_is_empty() argument
1071 return zone->spanned_pages == 0; in zone_is_empty()
1155 extern void memmap_init_zone_device(struct zone *, unsigned long,
1189 static inline bool zone_intersects(struct zone *zone, in zone_intersects() argument
1192 if (zone_is_empty(zone)) in zone_intersects()
1194 if (start_pfn >= zone_end_pfn(zone) || in zone_intersects()
1195 start_pfn + nr_pages <= zone->zone_start_pfn) in zone_intersects()
1228 struct zone *zone; /* Pointer to actual zone */ member
1304 struct zone node_zones[MAX_NR_ZONES];
1454 void wakeup_kswapd(struct zone *zone, gfp_t gfp_mask, int order,
1456 bool __zone_watermark_ok(struct zone *z, unsigned int order, unsigned long mark,
1459 bool zone_watermark_ok(struct zone *z, unsigned int order,
1462 bool zone_watermark_ok_safe(struct zone *z, unsigned int order,
1473 extern void init_currently_empty_zone(struct zone *zone, unsigned long start_pfn,
1496 #define zone_idx(zone) ((zone) - (zone)->zone_pgdat->node_zones) argument
1499 static inline bool zone_is_zone_device(struct zone *zone) in zone_is_zone_device() argument
1501 return zone_idx(zone) == ZONE_DEVICE; in zone_is_zone_device()
1504 static inline bool zone_is_zone_device(struct zone *zone) in zone_is_zone_device() argument
1516 static inline bool managed_zone(struct zone *zone) in managed_zone() argument
1518 return zone_managed_pages(zone); in managed_zone()
1522 static inline bool populated_zone(struct zone *zone) in populated_zone() argument
1524 return zone->present_pages; in populated_zone()
1528 static inline int zone_to_nid(struct zone *zone) in zone_to_nid() argument
1530 return zone->node; in zone_to_nid()
1533 static inline void zone_set_nid(struct zone *zone, int nid) in zone_set_nid() argument
1535 zone->node = nid; in zone_set_nid()
1538 static inline int zone_to_nid(struct zone *zone) in zone_to_nid() argument
1543 static inline void zone_set_nid(struct zone *zone, int nid) {} in zone_set_nid() argument
1565 static inline int is_highmem(struct zone *zone) in is_highmem() argument
1567 return is_highmem_idx(zone_idx(zone)); in is_highmem()
1596 extern struct zone *next_zone(struct zone *zone);
1613 #define for_each_zone(zone) \ argument
1614 for (zone = (first_online_pgdat())->node_zones; \
1615 zone; \
1616 zone = next_zone(zone))
1618 #define for_each_populated_zone(zone) \ argument
1619 for (zone = (first_online_pgdat())->node_zones; \
1620 zone; \
1621 zone = next_zone(zone)) \
1622 if (!populated_zone(zone)) \
1626 static inline struct zone *zonelist_zone(struct zoneref *zoneref) in zonelist_zone()
1628 return zoneref->zone; in zonelist_zone()
1638 return zone_to_nid(zoneref->zone); in zonelist_node_idx()
1705 #define for_each_zone_zonelist_nodemask(zone, z, zlist, highidx, nodemask) \ argument
1706 for (z = first_zones_zonelist(zlist, highidx, nodemask), zone = zonelist_zone(z); \
1707 zone; \
1709 zone = zonelist_zone(z))
1711 #define for_next_zone_zonelist_nodemask(zone, z, highidx, nodemask) \ argument
1712 for (zone = zonelist_zone(z); \
1713 zone; \
1715 zone = zonelist_zone(z))
1727 #define for_each_zone_zonelist(zone, z, zlist, highidx) \ argument
1728 for_each_zone_zonelist_nodemask(zone, z, zlist, highidx, NULL)