Lines Matching refs:ofs
15 #define PAGE_OFS(ofs) ((ofs) & (PAGE_SIZE-1)) argument
74 static int __bdev_writeseg(struct super_block *sb, u64 ofs, pgoff_t index, in __bdev_writeseg() argument
95 bio->bi_iter.bi_sector = ofs >> 9; in __bdev_writeseg()
101 ofs += i * PAGE_SIZE; in __bdev_writeseg()
122 bio->bi_iter.bi_sector = ofs >> 9; in __bdev_writeseg()
130 static void bdev_writeseg(struct super_block *sb, u64 ofs, size_t len) in bdev_writeseg() argument
144 head = ofs & (PAGE_SIZE - 1); in bdev_writeseg()
146 ofs -= head; in bdev_writeseg()
150 __bdev_writeseg(sb, ofs, ofs >> PAGE_SHIFT, len >> PAGE_SHIFT); in bdev_writeseg()
166 static int do_erase(struct super_block *sb, u64 ofs, pgoff_t index, in do_erase() argument
185 bio->bi_iter.bi_sector = ofs >> 9; in do_erase()
191 ofs += i * PAGE_SIZE; in do_erase()
206 bio->bi_iter.bi_sector = ofs >> 9; in do_erase()
245 static struct page *bdev_find_first_sb(struct super_block *sb, u64 *ofs) in bdev_find_first_sb() argument
251 *ofs = 0; in bdev_find_first_sb()
255 static struct page *bdev_find_last_sb(struct super_block *sb, u64 *ofs) in bdev_find_last_sb() argument
263 *ofs = pos; in bdev_find_last_sb()
280 static int bdev_can_write_buf(struct super_block *sb, u64 ofs) in bdev_can_write_buf() argument