• Home
  • Raw
  • Download

Lines Matching refs:counter

30 #define hugetlb_cgroup_from_counter(counter, idx)                   \  argument
31 container_of(counter, struct hugetlb_cgroup, hugepage[idx])
165 struct page_counter *counter; in hugetlb_cgroup_move_parent() local
184 counter = &h_cg->hugepage[idx]; in hugetlb_cgroup_move_parent()
186 page_counter_cancel(counter, nr_pages); in hugetlb_cgroup_move_parent()
236 struct page_counter *counter; in __hugetlb_cgroup_charge_cgroup() local
258 nr_pages, &counter)) { in __hugetlb_cgroup_charge_cgroup()
427 struct page_counter *counter; in hugetlb_cgroup_read_u64() local
431 counter = &h_cg->hugepage[MEMFILE_IDX(cft->private)]; in hugetlb_cgroup_read_u64()
436 return (u64)page_counter_read(counter) * PAGE_SIZE; in hugetlb_cgroup_read_u64()
440 return (u64)counter->max * PAGE_SIZE; in hugetlb_cgroup_read_u64()
444 return (u64)counter->watermark * PAGE_SIZE; in hugetlb_cgroup_read_u64()
448 return counter->failcnt; in hugetlb_cgroup_read_u64()
462 struct page_counter *counter; in hugetlb_cgroup_read_u64_max() local
466 counter = &h_cg->hugepage[idx]; in hugetlb_cgroup_read_u64_max()
473 counter = &h_cg->rsvd_hugepage[idx]; in hugetlb_cgroup_read_u64_max()
476 val = (u64)page_counter_read(counter); in hugetlb_cgroup_read_u64_max()
480 counter = &h_cg->rsvd_hugepage[idx]; in hugetlb_cgroup_read_u64_max()
483 val = (u64)counter->max; in hugetlb_cgroup_read_u64_max()
552 struct page_counter *counter, *rsvd_counter; in hugetlb_cgroup_reset() local
555 counter = &h_cg->hugepage[MEMFILE_IDX(of_cft(of)->private)]; in hugetlb_cgroup_reset()
560 page_counter_reset_watermark(counter); in hugetlb_cgroup_reset()
566 counter->failcnt = 0; in hugetlb_cgroup_reset()