Lines Matching refs:pos
37 static bool blkdev_dio_unaligned(struct block_device *bdev, loff_t pos, in blkdev_dio_unaligned() argument
40 return pos & (bdev_logical_block_size(bdev) - 1) || in blkdev_dio_unaligned()
51 loff_t pos = iocb->ki_pos; in __blkdev_direct_IO_simple() local
56 if (blkdev_dio_unaligned(bdev, pos, iter)) in __blkdev_direct_IO_simple()
75 bio.bi_iter.bi_sector = pos >> SECTOR_SHIFT; in __blkdev_direct_IO_simple()
172 loff_t pos = iocb->ki_pos; in __blkdev_direct_IO() local
175 if (blkdev_dio_unaligned(bdev, pos, iter)) in __blkdev_direct_IO()
206 bio->bi_iter.bi_sector = pos >> SECTOR_SHIFT; in __blkdev_direct_IO()
244 pos += bio->bi_iter.bi_size; in __blkdev_direct_IO()
312 loff_t pos = iocb->ki_pos; in __blkdev_direct_IO_async() local
315 if (blkdev_dio_unaligned(bdev, pos, iter)) in __blkdev_direct_IO_async()
325 bio->bi_iter.bi_sector = pos >> SECTOR_SHIFT; in __blkdev_direct_IO_async()
432 loff_t pos, unsigned len, struct page **pagep, void **fsdata) in blkdev_write_begin() argument
434 return block_write_begin(mapping, pos, len, pagep, blkdev_get_block); in blkdev_write_begin()
438 loff_t pos, unsigned len, unsigned copied, struct page *page, in blkdev_write_end() argument
442 ret = block_write_end(file, mapping, pos, len, copied, page, fsdata); in blkdev_write_end()
700 loff_t pos = iocb->ki_pos; in blkdev_read_iter() local
705 if (unlikely(pos + iov_iter_count(to) > size)) { in blkdev_read_iter()
706 if (pos >= size) in blkdev_read_iter()
708 size -= pos; in blkdev_read_iter()