Lines Matching refs:nr_pages
707 p = virt_to_page(buf->data_pages[buf->nr_pages]); in topa_insert_pages()
735 buf->nr_pages += 1ul << order; in topa_insert_pages()
816 ((buf->nr_pages << PAGE_SHIFT) - 1)); in pt_update_head()
818 base += buf->nr_pages << PAGE_SHIFT; in pt_update_head()
930 if (WARN_ON_ONCE(pg >= buf->nr_pages)) in pt_topa_entry_for_page()
1061 idx &= buf->nr_pages - 1; in pt_buffer_reset_markers()
1076 idx &= buf->nr_pages - 1; in pt_buffer_reset_markers()
1112 head &= (buf->nr_pages << PAGE_SHIFT) - 1; in pt_buffer_reset_offsets()
1114 pg = (head >> PAGE_SHIFT) & (buf->nr_pages - 1); in pt_buffer_reset_offsets()
1150 unsigned long nr_pages, gfp_t gfp) in pt_buffer_init_topa() argument
1161 while (buf->nr_pages < nr_pages) { in pt_buffer_init_topa()
1193 int nr_pages, bool snapshot) in pt_buffer_setup_aux() argument
1198 if (!nr_pages) in pt_buffer_setup_aux()
1216 ret = pt_buffer_init_topa(buf, cpu, nr_pages, GFP_KERNEL); in pt_buffer_setup_aux()
1494 buf->nr_pages << PAGE_SHIFT); in pt_event_stop()