Lines Matching refs:nr_pages
5773 if (!rb || !rb->nr_pages) { in _perf_ioctl()
6263 unsigned long nr_pages; in perf_mmap() local
6285 nr_pages = (vma_size / PAGE_SIZE) - 1; in perf_mmap()
6297 nr_pages = vma_size / PAGE_SIZE; in perf_mmap()
6319 if (aux_size != vma_size || aux_size != nr_pages * PAGE_SIZE) in perf_mmap()
6323 if (rb_has_aux(rb) && rb->aux_nr_pages != nr_pages) in perf_mmap()
6326 if (!is_power_of_2(nr_pages)) in perf_mmap()
6339 user_extra = nr_pages; in perf_mmap()
6348 if (nr_pages != 0 && !is_power_of_2(nr_pages)) in perf_mmap()
6351 if (vma_size != PAGE_SIZE * (1 + nr_pages)) in perf_mmap()
6358 if (data_page_nr(event->rb) != nr_pages) { in perf_mmap()
6376 user_extra = nr_pages + 1; in perf_mmap()
6421 rb = rb_alloc(nr_pages, in perf_mmap()
6440 ret = rb_alloc_aux(rb, event, vma->vm_pgoff, nr_pages, in perf_mmap()