Lines Matching refs:sector

13 static sector_t bio_discard_limit(struct block_device *bdev, sector_t sector)  in bio_discard_limit()  argument
19 sector += bdev->bd_start_sect; in bio_discard_limit()
22 round_up(sector, discard_granularity >> SECTOR_SHIFT); in bio_discard_limit()
28 if (granularity_aligned_sector != sector) in bio_discard_limit()
29 return granularity_aligned_sector - sector; in bio_discard_limit()
38 int __blkdev_issue_discard(struct block_device *bdev, sector_t sector, in __blkdev_issue_discard() argument
57 if ((sector | nr_sects) & bs_mask) in __blkdev_issue_discard()
65 min(nr_sects, bio_discard_limit(bdev, sector)); in __blkdev_issue_discard()
68 bio->bi_iter.bi_sector = sector; in __blkdev_issue_discard()
70 sector += req_sects; in __blkdev_issue_discard()
97 int blkdev_issue_discard(struct block_device *bdev, sector_t sector, in blkdev_issue_discard() argument
105 ret = __blkdev_issue_discard(bdev, sector, nr_sects, gfp_mask, &bio); in blkdev_issue_discard()
119 sector_t sector, sector_t nr_sects, gfp_t gfp_mask, in __blkdev_issue_write_zeroes() argument
136 bio->bi_iter.bi_sector = sector; in __blkdev_issue_write_zeroes()
143 sector += max_write_zeroes_sectors; in __blkdev_issue_write_zeroes()
169 sector_t sector, sector_t nr_sects, gfp_t gfp_mask, in __blkdev_issue_zero_pages() argument
182 bio->bi_iter.bi_sector = sector; in __blkdev_issue_zero_pages()
188 sector += bi_size >> 9; in __blkdev_issue_zero_pages()
218 int __blkdev_issue_zeroout(struct block_device *bdev, sector_t sector, in __blkdev_issue_zeroout() argument
226 if ((sector | nr_sects) & bs_mask) in __blkdev_issue_zeroout()
229 ret = __blkdev_issue_write_zeroes(bdev, sector, nr_sects, gfp_mask, in __blkdev_issue_zeroout()
234 return __blkdev_issue_zero_pages(bdev, sector, nr_sects, gfp_mask, in __blkdev_issue_zeroout()
252 int blkdev_issue_zeroout(struct block_device *bdev, sector_t sector, in blkdev_issue_zeroout() argument
262 if ((sector | nr_sects) & bs_mask) in blkdev_issue_zeroout()
269 ret = __blkdev_issue_write_zeroes(bdev, sector, nr_sects, in blkdev_issue_zeroout()
272 ret = __blkdev_issue_zero_pages(bdev, sector, nr_sects, in blkdev_issue_zeroout()
303 int blkdev_issue_secure_erase(struct block_device *bdev, sector_t sector, in blkdev_issue_secure_erase() argument
319 if ((sector | nr_sects) & bs_mask) in blkdev_issue_secure_erase()
329 bio->bi_iter.bi_sector = sector; in blkdev_issue_secure_erase()
332 sector += len; in blkdev_issue_secure_erase()