Lines Matching refs:ofs
15 #define PAGE_OFS(ofs) ((ofs) & (PAGE_SIZE-1)) argument
76 static int __bdev_writeseg(struct super_block *sb, u64 ofs, pgoff_t index, in __bdev_writeseg() argument
97 bio->bi_iter.bi_sector = ofs >> 9; in __bdev_writeseg()
103 ofs += i * PAGE_SIZE; in __bdev_writeseg()
124 bio->bi_iter.bi_sector = ofs >> 9; in __bdev_writeseg()
132 static void bdev_writeseg(struct super_block *sb, u64 ofs, size_t len) in bdev_writeseg() argument
146 head = ofs & (PAGE_SIZE - 1); in bdev_writeseg()
148 ofs -= head; in bdev_writeseg()
152 __bdev_writeseg(sb, ofs, ofs >> PAGE_SHIFT, len >> PAGE_SHIFT); in bdev_writeseg()
170 static int do_erase(struct super_block *sb, u64 ofs, pgoff_t index, in do_erase() argument
189 bio->bi_iter.bi_sector = ofs >> 9; in do_erase()
195 ofs += i * PAGE_SIZE; in do_erase()
210 bio->bi_iter.bi_sector = ofs >> 9; in do_erase()
249 static struct page *bdev_find_first_sb(struct super_block *sb, u64 *ofs) in bdev_find_first_sb() argument
255 *ofs = 0; in bdev_find_first_sb()
259 static struct page *bdev_find_last_sb(struct super_block *sb, u64 *ofs) in bdev_find_last_sb() argument
267 *ofs = pos; in bdev_find_last_sb()
284 static int bdev_can_write_buf(struct super_block *sb, u64 ofs) in bdev_can_write_buf() argument