Lines Matching full:item
64 static inline void __count_vm_event(enum vm_event_item item) in __count_vm_event() argument
66 raw_cpu_inc(vm_event_states.event[item]); in __count_vm_event()
69 static inline void count_vm_event(enum vm_event_item item) in count_vm_event() argument
71 this_cpu_inc(vm_event_states.event[item]); in count_vm_event()
74 static inline void __count_vm_events(enum vm_event_item item, long delta) in __count_vm_events() argument
76 raw_cpu_add(vm_event_states.event[item], delta); in __count_vm_events()
79 static inline void count_vm_events(enum vm_event_item item, long delta) in count_vm_events() argument
81 this_cpu_add(vm_event_states.event[item], delta); in count_vm_events()
91 static inline void count_vm_event(enum vm_event_item item) in count_vm_event() argument
94 static inline void count_vm_events(enum vm_event_item item, long delta) in count_vm_events() argument
97 static inline void __count_vm_event(enum vm_event_item item) in __count_vm_event() argument
100 static inline void __count_vm_events(enum vm_event_item item, long delta) in __count_vm_events() argument
128 #define __count_zid_vm_events(item, zid, delta) \ argument
129 __count_vm_events(item##_NORMAL - ZONE_NORMAL + zid, delta)
140 enum numa_stat_item item) in zone_numa_event_add() argument
142 atomic_long_add(x, &zone->vm_numa_event[item]); in zone_numa_event_add()
143 atomic_long_add(x, &vm_numa_event[item]); in zone_numa_event_add()
147 enum numa_stat_item item) in zone_numa_event_state() argument
149 return atomic_long_read(&zone->vm_numa_event[item]); in zone_numa_event_state()
153 global_numa_event_state(enum numa_stat_item item) in global_numa_event_state() argument
155 return atomic_long_read(&vm_numa_event[item]); in global_numa_event_state()
160 enum zone_stat_item item) in zone_page_state_add() argument
162 atomic_long_add(x, &zone->vm_stat[item]); in zone_page_state_add()
163 atomic_long_add(x, &vm_zone_stat[item]); in zone_page_state_add()
167 enum node_stat_item item) in node_page_state_add() argument
169 atomic_long_add(x, &pgdat->vm_stat[item]); in node_page_state_add()
170 atomic_long_add(x, &vm_node_stat[item]); in node_page_state_add()
173 static inline unsigned long global_zone_page_state(enum zone_stat_item item) in global_zone_page_state() argument
175 long x = atomic_long_read(&vm_zone_stat[item]); in global_zone_page_state()
184 unsigned long global_node_page_state_pages(enum node_stat_item item) in global_node_page_state_pages() argument
186 long x = atomic_long_read(&vm_node_stat[item]); in global_node_page_state_pages()
194 static inline unsigned long global_node_page_state(enum node_stat_item item) in global_node_page_state() argument
196 VM_WARN_ON_ONCE(vmstat_item_in_bytes(item)); in global_node_page_state()
198 return global_node_page_state_pages(item); in global_node_page_state()
202 enum zone_stat_item item) in zone_page_state() argument
204 long x = atomic_long_read(&zone->vm_stat[item]); in zone_page_state()
219 enum zone_stat_item item) in zone_page_state_snapshot() argument
221 long x = atomic_long_read(&zone->vm_stat[item]); in zone_page_state_snapshot()
226 x += per_cpu_ptr(zone->per_cpu_zonestats, cpu)->vm_stat_diff[item]; in zone_page_state_snapshot()
237 __count_numa_event(struct zone *zone, enum numa_stat_item item) in __count_numa_event() argument
241 raw_cpu_inc(pzstats->vm_numa_event[item]); in __count_numa_event()
245 __count_numa_events(struct zone *zone, enum numa_stat_item item, long delta) in __count_numa_events() argument
249 raw_cpu_add(pzstats->vm_numa_event[item], delta); in __count_numa_events()
253 enum zone_stat_item item);
254 extern unsigned long sum_zone_numa_event_state(int node, enum numa_stat_item item);
256 enum node_stat_item item);
258 enum node_stat_item item);
261 #define sum_zone_node_page_state(node, item) global_zone_page_state(item) argument
262 #define node_page_state(node, item) global_node_page_state(item) argument
263 #define node_page_state_pages(node, item) global_node_page_state_pages(item) argument
270 void __mod_zone_page_state(struct zone *, enum zone_stat_item item, long);
274 void __mod_node_page_state(struct pglist_data *, enum node_stat_item item, long);
314 enum zone_stat_item item, long delta) in __mod_zone_page_state() argument
316 zone_page_state_add(delta, zone, item); in __mod_zone_page_state()
320 enum node_stat_item item, int delta) in __mod_node_page_state() argument
322 if (vmstat_item_in_bytes(item)) { in __mod_node_page_state()
333 node_page_state_add(delta, pgdat, item); in __mod_node_page_state()
336 static inline void __inc_zone_state(struct zone *zone, enum zone_stat_item item) in __inc_zone_state() argument
338 atomic_long_inc(&zone->vm_stat[item]); in __inc_zone_state()
339 atomic_long_inc(&vm_zone_stat[item]); in __inc_zone_state()
342 static inline void __inc_node_state(struct pglist_data *pgdat, enum node_stat_item item) in __inc_node_state() argument
344 atomic_long_inc(&pgdat->vm_stat[item]); in __inc_node_state()
345 atomic_long_inc(&vm_node_stat[item]); in __inc_node_state()
348 static inline void __dec_zone_state(struct zone *zone, enum zone_stat_item item) in __dec_zone_state() argument
350 atomic_long_dec(&zone->vm_stat[item]); in __dec_zone_state()
351 atomic_long_dec(&vm_zone_stat[item]); in __dec_zone_state()
354 static inline void __dec_node_state(struct pglist_data *pgdat, enum node_stat_item item) in __dec_node_state() argument
356 atomic_long_dec(&pgdat->vm_stat[item]); in __dec_node_state()
357 atomic_long_dec(&vm_node_stat[item]); in __dec_node_state()
361 enum zone_stat_item item) in __inc_zone_page_state() argument
363 __inc_zone_state(page_zone(page), item); in __inc_zone_page_state()
367 enum node_stat_item item) in __inc_node_page_state() argument
369 __inc_node_state(page_pgdat(page), item); in __inc_node_page_state()
374 enum zone_stat_item item) in __dec_zone_page_state() argument
376 __dec_zone_state(page_zone(page), item); in __dec_zone_page_state()
380 enum node_stat_item item) in __dec_node_page_state() argument
382 __dec_node_state(page_pgdat(page), item); in __dec_node_page_state()
413 enum zone_stat_item item, long nr) in __zone_stat_mod_folio() argument
415 __mod_zone_page_state(folio_zone(folio), item, nr); in __zone_stat_mod_folio()
419 enum zone_stat_item item) in __zone_stat_add_folio() argument
421 __mod_zone_page_state(folio_zone(folio), item, folio_nr_pages(folio)); in __zone_stat_add_folio()
425 enum zone_stat_item item) in __zone_stat_sub_folio() argument
427 __mod_zone_page_state(folio_zone(folio), item, -folio_nr_pages(folio)); in __zone_stat_sub_folio()
431 enum zone_stat_item item, long nr) in zone_stat_mod_folio() argument
433 mod_zone_page_state(folio_zone(folio), item, nr); in zone_stat_mod_folio()
437 enum zone_stat_item item) in zone_stat_add_folio() argument
439 mod_zone_page_state(folio_zone(folio), item, folio_nr_pages(folio)); in zone_stat_add_folio()
443 enum zone_stat_item item) in zone_stat_sub_folio() argument
445 mod_zone_page_state(folio_zone(folio), item, -folio_nr_pages(folio)); in zone_stat_sub_folio()
449 enum node_stat_item item, long nr) in __node_stat_mod_folio() argument
451 __mod_node_page_state(folio_pgdat(folio), item, nr); in __node_stat_mod_folio()
455 enum node_stat_item item) in __node_stat_add_folio() argument
457 __mod_node_page_state(folio_pgdat(folio), item, folio_nr_pages(folio)); in __node_stat_add_folio()
461 enum node_stat_item item) in __node_stat_sub_folio() argument
463 __mod_node_page_state(folio_pgdat(folio), item, -folio_nr_pages(folio)); in __node_stat_sub_folio()
467 enum node_stat_item item, long nr) in node_stat_mod_folio() argument
469 mod_node_page_state(folio_pgdat(folio), item, nr); in node_stat_mod_folio()
473 enum node_stat_item item) in node_stat_add_folio() argument
475 mod_node_page_state(folio_pgdat(folio), item, folio_nr_pages(folio)); in node_stat_add_folio()
479 enum node_stat_item item) in node_stat_sub_folio() argument
481 mod_node_page_state(folio_pgdat(folio), item, -folio_nr_pages(folio)); in node_stat_sub_folio()
494 static inline const char *zone_stat_name(enum zone_stat_item item) in zone_stat_name() argument
496 return vmstat_text[item]; in zone_stat_name()
500 static inline const char *numa_stat_name(enum numa_stat_item item) in numa_stat_name() argument
503 item]; in numa_stat_name()
507 static inline const char *node_stat_name(enum node_stat_item item) in node_stat_name() argument
511 item]; in node_stat_name()
519 static inline const char *writeback_stat_name(enum writeback_stat_item item) in writeback_stat_name() argument
524 item]; in writeback_stat_name()
528 static inline const char *vm_event_name(enum vm_event_item item) in vm_event_name() argument
534 item]; in vm_event_name()