Lines Matching refs:item
40 int item, cpu; in zero_zone_numa_counters() local
42 for (item = 0; item < NR_VM_NUMA_EVENT_ITEMS; item++) { in zero_zone_numa_counters()
43 atomic_long_set(&zone->vm_numa_event[item], 0); in zero_zone_numa_counters()
45 per_cpu_ptr(zone->per_cpu_zonestats, cpu)->vm_numa_event[item] in zero_zone_numa_counters()
63 int item; in zero_global_numa_counters() local
65 for (item = 0; item < NR_VM_NUMA_EVENT_ITEMS; item++) in zero_global_numa_counters()
66 atomic_long_set(&vm_numa_event[item], 0); in zero_global_numa_counters()
314 void __mod_zone_page_state(struct zone *zone, enum zone_stat_item item, in __mod_zone_page_state() argument
318 s8 __percpu *p = pcp->vm_stat_diff + item; in __mod_zone_page_state()
337 zone_page_state_add(x, zone, item); in __mod_zone_page_state()
347 void __mod_node_page_state(struct pglist_data *pgdat, enum node_stat_item item, in __mod_node_page_state() argument
351 s8 __percpu *p = pcp->vm_node_stat_diff + item; in __mod_node_page_state()
355 if (vmstat_item_in_bytes(item)) { in __mod_node_page_state()
375 node_page_state_add(x, pgdat, item); in __mod_node_page_state()
408 void __inc_zone_state(struct zone *zone, enum zone_stat_item item) in __inc_zone_state() argument
411 s8 __percpu *p = pcp->vm_stat_diff + item; in __inc_zone_state()
423 zone_page_state_add(v + overstep, zone, item); in __inc_zone_state()
431 void __inc_node_state(struct pglist_data *pgdat, enum node_stat_item item) in __inc_node_state() argument
434 s8 __percpu *p = pcp->vm_node_stat_diff + item; in __inc_node_state()
437 VM_WARN_ON_ONCE(vmstat_item_in_bytes(item)); in __inc_node_state()
448 node_page_state_add(v + overstep, pgdat, item); in __inc_node_state()
456 void __inc_zone_page_state(struct page *page, enum zone_stat_item item) in __inc_zone_page_state() argument
458 __inc_zone_state(page_zone(page), item); in __inc_zone_page_state()
462 void __inc_node_page_state(struct page *page, enum node_stat_item item) in __inc_node_page_state() argument
464 __inc_node_state(page_pgdat(page), item); in __inc_node_page_state()
468 void __dec_zone_state(struct zone *zone, enum zone_stat_item item) in __dec_zone_state() argument
471 s8 __percpu *p = pcp->vm_stat_diff + item; in __dec_zone_state()
483 zone_page_state_add(v - overstep, zone, item); in __dec_zone_state()
491 void __dec_node_state(struct pglist_data *pgdat, enum node_stat_item item) in __dec_node_state() argument
494 s8 __percpu *p = pcp->vm_node_stat_diff + item; in __dec_node_state()
497 VM_WARN_ON_ONCE(vmstat_item_in_bytes(item)); in __dec_node_state()
508 node_page_state_add(v - overstep, pgdat, item); in __dec_node_state()
516 void __dec_zone_page_state(struct page *page, enum zone_stat_item item) in __dec_zone_page_state() argument
518 __dec_zone_state(page_zone(page), item); in __dec_zone_page_state()
522 void __dec_node_page_state(struct page *page, enum node_stat_item item) in __dec_node_page_state() argument
524 __dec_node_state(page_pgdat(page), item); in __dec_node_page_state()
542 enum zone_stat_item item, long delta, int overstep_mode) in mod_zone_state() argument
545 s8 __percpu *p = pcp->vm_stat_diff + item; in mod_zone_state()
576 zone_page_state_add(z, zone, item); in mod_zone_state()
579 void mod_zone_page_state(struct zone *zone, enum zone_stat_item item, in mod_zone_page_state() argument
582 mod_zone_state(zone, item, delta, 0); in mod_zone_page_state()
586 void inc_zone_page_state(struct page *page, enum zone_stat_item item) in inc_zone_page_state() argument
588 mod_zone_state(page_zone(page), item, 1, 1); in inc_zone_page_state()
592 void dec_zone_page_state(struct page *page, enum zone_stat_item item) in dec_zone_page_state() argument
594 mod_zone_state(page_zone(page), item, -1, -1); in dec_zone_page_state()
599 enum node_stat_item item, int delta, int overstep_mode) in mod_node_state() argument
602 s8 __percpu *p = pcp->vm_node_stat_diff + item; in mod_node_state()
605 if (vmstat_item_in_bytes(item)) { in mod_node_state()
644 node_page_state_add(z, pgdat, item); in mod_node_state()
647 void mod_node_page_state(struct pglist_data *pgdat, enum node_stat_item item, in mod_node_page_state() argument
650 mod_node_state(pgdat, item, delta, 0); in mod_node_page_state()
654 void inc_node_state(struct pglist_data *pgdat, enum node_stat_item item) in inc_node_state() argument
656 mod_node_state(pgdat, item, 1, 1); in inc_node_state()
659 void inc_node_page_state(struct page *page, enum node_stat_item item) in inc_node_page_state() argument
661 mod_node_state(page_pgdat(page), item, 1, 1); in inc_node_page_state()
665 void dec_node_page_state(struct page *page, enum node_stat_item item) in dec_node_page_state() argument
667 mod_node_state(page_pgdat(page), item, -1, -1); in dec_node_page_state()
674 void mod_zone_page_state(struct zone *zone, enum zone_stat_item item, in mod_zone_page_state() argument
680 __mod_zone_page_state(zone, item, delta); in mod_zone_page_state()
685 void inc_zone_page_state(struct page *page, enum zone_stat_item item) in inc_zone_page_state() argument
692 __inc_zone_state(zone, item); in inc_zone_page_state()
697 void dec_zone_page_state(struct page *page, enum zone_stat_item item) in dec_zone_page_state() argument
702 __dec_zone_page_state(page, item); in dec_zone_page_state()
707 void inc_node_state(struct pglist_data *pgdat, enum node_stat_item item) in inc_node_state() argument
712 __inc_node_state(pgdat, item); in inc_node_state()
717 void mod_node_page_state(struct pglist_data *pgdat, enum node_stat_item item, in mod_node_page_state() argument
723 __mod_node_page_state(pgdat, item, delta); in mod_node_page_state()
728 void inc_node_page_state(struct page *page, enum node_stat_item item) in inc_node_page_state() argument
735 __inc_node_state(pgdat, item); in inc_node_page_state()
740 void dec_node_page_state(struct page *page, enum node_stat_item item) in dec_node_page_state() argument
745 __dec_node_page_state(page, item); in dec_node_page_state()
779 enum numa_stat_item item; in fold_vm_zone_numa_events() local
785 for (item = 0; item < NR_VM_NUMA_EVENT_ITEMS; item++) in fold_vm_zone_numa_events()
786 zone_numa_events[item] += xchg(&pzstats->vm_numa_event[item], 0); in fold_vm_zone_numa_events()
789 for (item = 0; item < NR_VM_NUMA_EVENT_ITEMS; item++) in fold_vm_zone_numa_events()
790 zone_numa_event_add(zone_numa_events[item], zone, item); in fold_vm_zone_numa_events()
995 enum zone_stat_item item) in sum_zone_node_page_state() argument
1002 count += zone_page_state(zones + i, item); in sum_zone_node_page_state()
1009 enum numa_stat_item item) in sum_zone_numa_event_state() argument
1016 count += zone_numa_event_state(zones + i, item); in sum_zone_numa_event_state()
1025 enum node_stat_item item) in node_page_state_pages() argument
1027 long x = atomic_long_read(&pgdat->vm_stat[item]); in node_page_state_pages()
1036 enum node_stat_item item) in node_page_state() argument
1038 VM_WARN_ON_ONCE(vmstat_item_in_bytes(item)); in node_page_state()
1040 return node_page_state_pages(pgdat, item); in node_page_state()