Lines Matching refs:pnum
757 int pnum, offset = 0; in bitmap_storage_alloc() local
779 pnum = 0; in bitmap_storage_alloc()
782 pnum = 1; in bitmap_storage_alloc()
786 for ( ; pnum < num_pages; pnum++) { in bitmap_storage_alloc()
787 store->filemap[pnum] = alloc_page(GFP_KERNEL|__GFP_ZERO); in bitmap_storage_alloc()
788 if (!store->filemap[pnum]) { in bitmap_storage_alloc()
789 store->file_pages = pnum; in bitmap_storage_alloc()
792 store->filemap[pnum]->index = pnum + offset; in bitmap_storage_alloc()
794 store->file_pages = pnum; in bitmap_storage_alloc()
873 static inline void set_page_attr(struct bitmap *bitmap, int pnum, in set_page_attr() argument
876 set_bit((pnum<<2) + attr, bitmap->storage.filemap_attr); in set_page_attr()
879 static inline void clear_page_attr(struct bitmap *bitmap, int pnum, in clear_page_attr() argument
882 clear_bit((pnum<<2) + attr, bitmap->storage.filemap_attr); in clear_page_attr()
885 static inline int test_page_attr(struct bitmap *bitmap, int pnum, in test_page_attr() argument
888 return test_bit((pnum<<2) + attr, bitmap->storage.filemap_attr); in test_page_attr()
891 static inline int test_and_clear_page_attr(struct bitmap *bitmap, int pnum, in test_and_clear_page_attr() argument
894 return test_and_clear_bit((pnum<<2) + attr, in test_and_clear_page_attr()