Lines Matching refs:nr_pages
113 unsigned long nr_pages; member
493 reg = msc->nr_pages; in msc_configure()
549 msc->single_sz = reg & ((msc->nr_pages << PAGE_SHIFT) - 1); in msc_disable()
624 msc->nr_pages = size >> PAGE_SHIFT; in msc_buffer_contig_alloc()
639 for (off = 0; off < msc->nr_pages << PAGE_SHIFT; off += PAGE_SIZE) { in msc_buffer_contig_free()
646 msc->nr_pages = 0; in msc_buffer_contig_free()
659 if (pgoff >= msc->nr_pages) in msc_buffer_contig_get_page()
719 msc->nr_pages += nr_blocks; in msc_buffer_win_alloc()
749 msc->nr_pages -= win->nr_blocks; in msc_buffer_win_free()
841 static int msc_buffer_multi_alloc(struct msc *msc, unsigned long *nr_pages, in msc_buffer_multi_alloc() argument
847 ret = msc_buffer_win_alloc(msc, nr_pages[i]); in msc_buffer_multi_alloc()
892 static int msc_buffer_alloc(struct msc *msc, unsigned long *nr_pages, in msc_buffer_alloc() argument
905 ret = msc_buffer_contig_alloc(msc, nr_pages[0] << PAGE_SHIFT); in msc_buffer_alloc()
907 ret = msc_buffer_multi_alloc(msc, nr_pages, nr_wins); in msc_buffer_alloc()
1059 unsigned long size = msc->nr_pages << PAGE_SHIFT, rem = len; in msc_single_to_user()
1112 size = msc->nr_pages << PAGE_SHIFT; in intel_th_msc_read()
1169 for (pg = 0; pg < msc->nr_pages; pg++) { in msc_mmap_close()
1227 if (size >> PAGE_SHIFT != msc->nr_pages) in intel_th_msc_mmap()
1355 count = scnprintf(buf, PAGE_SIZE, "%ld\n", msc->nr_pages); in nr_pages_show()
1435 static DEVICE_ATTR_RW(nr_pages);