Lines Matching refs:pnum
779 int pnum, offset = 0; in md_bitmap_storage_alloc() local
801 pnum = 0; in md_bitmap_storage_alloc()
804 pnum = 1; in md_bitmap_storage_alloc()
808 for ( ; pnum < num_pages; pnum++) { in md_bitmap_storage_alloc()
809 store->filemap[pnum] = alloc_page(GFP_KERNEL|__GFP_ZERO); in md_bitmap_storage_alloc()
810 if (!store->filemap[pnum]) { in md_bitmap_storage_alloc()
811 store->file_pages = pnum; in md_bitmap_storage_alloc()
814 store->filemap[pnum]->index = pnum + offset; in md_bitmap_storage_alloc()
816 store->file_pages = pnum; in md_bitmap_storage_alloc()
893 static inline void set_page_attr(struct bitmap *bitmap, int pnum, in set_page_attr() argument
896 set_bit((pnum<<2) + attr, bitmap->storage.filemap_attr); in set_page_attr()
899 static inline void clear_page_attr(struct bitmap *bitmap, int pnum, in clear_page_attr() argument
902 clear_bit((pnum<<2) + attr, bitmap->storage.filemap_attr); in clear_page_attr()
905 static inline int test_page_attr(struct bitmap *bitmap, int pnum, in test_page_attr() argument
908 return test_bit((pnum<<2) + attr, bitmap->storage.filemap_attr); in test_page_attr()
911 static inline int test_and_clear_page_attr(struct bitmap *bitmap, int pnum, in test_and_clear_page_attr() argument
914 return test_and_clear_bit((pnum<<2) + attr, in test_and_clear_page_attr()