Lines Matching refs:sector
40 int blkdev_issue_discard(struct block_device *bdev, sector_t sector, in blkdev_issue_discard() argument
91 end_sect = sector + req_sects; in blkdev_issue_discard()
98 req_sects = end_sect - sector; in blkdev_issue_discard()
101 bio->bi_iter.bi_sector = sector; in blkdev_issue_discard()
108 sector = end_sect; in blkdev_issue_discard()
144 int blkdev_issue_write_same(struct block_device *bdev, sector_t sector, in blkdev_issue_write_same() argument
172 bio->bi_iter.bi_sector = sector; in blkdev_issue_write_same()
184 sector += max_write_same_sectors; in blkdev_issue_write_same()
215 static int __blkdev_issue_zeroout(struct block_device *bdev, sector_t sector, in __blkdev_issue_zeroout() argument
237 bio->bi_iter.bi_sector = sector; in __blkdev_issue_zeroout()
246 sector += ret >> 9; in __blkdev_issue_zeroout()
285 int blkdev_issue_zeroout(struct block_device *bdev, sector_t sector, in blkdev_issue_zeroout() argument
291 blkdev_issue_discard(bdev, sector, nr_sects, gfp_mask, 0) == 0) in blkdev_issue_zeroout()
295 blkdev_issue_write_same(bdev, sector, nr_sects, gfp_mask, in blkdev_issue_zeroout()
299 return __blkdev_issue_zeroout(bdev, sector, nr_sects, gfp_mask); in blkdev_issue_zeroout()