• Home
  • Raw
  • Download

Lines Matching refs:bdev

25 int __blkdev_issue_discard(struct block_device *bdev, sector_t sector,  in __blkdev_issue_discard()  argument
29 struct request_queue *q = bdev_get_queue(bdev); in __blkdev_issue_discard()
37 if (bdev_read_only(bdev)) in __blkdev_issue_discard()
54 bdevname(bdev, dev_name); in __blkdev_issue_discard()
59 bs_mask = (bdev_logical_block_size(bdev) >> 9) - 1; in __blkdev_issue_discard()
67 if (bdev_is_partition(bdev)) in __blkdev_issue_discard()
68 part_offset = bdev->bd_part->start_sect; in __blkdev_issue_discard()
99 bio_set_dev(bio, bdev); in __blkdev_issue_discard()
131 int blkdev_issue_discard(struct block_device *bdev, sector_t sector, in blkdev_issue_discard() argument
139 ret = __blkdev_issue_discard(bdev, sector, nr_sects, gfp_mask, flags, in blkdev_issue_discard()
165 static int __blkdev_issue_write_same(struct block_device *bdev, sector_t sector, in __blkdev_issue_write_same() argument
169 struct request_queue *q = bdev_get_queue(bdev); in __blkdev_issue_write_same()
177 if (bdev_read_only(bdev)) in __blkdev_issue_write_same()
180 bs_mask = (bdev_logical_block_size(bdev) >> 9) - 1; in __blkdev_issue_write_same()
184 if (!bdev_write_same(bdev)) in __blkdev_issue_write_same()
193 bio_set_dev(bio, bdev); in __blkdev_issue_write_same()
197 bio->bi_io_vec->bv_len = bdev_logical_block_size(bdev); in __blkdev_issue_write_same()
226 int blkdev_issue_write_same(struct block_device *bdev, sector_t sector, in blkdev_issue_write_same() argument
235 ret = __blkdev_issue_write_same(bdev, sector, nr_sects, gfp_mask, page, in blkdev_issue_write_same()
246 static int __blkdev_issue_write_zeroes(struct block_device *bdev, in __blkdev_issue_write_zeroes() argument
252 struct request_queue *q = bdev_get_queue(bdev); in __blkdev_issue_write_zeroes()
257 if (bdev_read_only(bdev)) in __blkdev_issue_write_zeroes()
261 max_write_zeroes_sectors = bdev_write_zeroes_sectors(bdev); in __blkdev_issue_write_zeroes()
269 bio_set_dev(bio, bdev); in __blkdev_issue_write_zeroes()
302 static int __blkdev_issue_zero_pages(struct block_device *bdev, in __blkdev_issue_zero_pages() argument
306 struct request_queue *q = bdev_get_queue(bdev); in __blkdev_issue_zero_pages()
314 if (bdev_read_only(bdev)) in __blkdev_issue_zero_pages()
321 bio_set_dev(bio, bdev); in __blkdev_issue_zero_pages()
358 int __blkdev_issue_zeroout(struct block_device *bdev, sector_t sector, in __blkdev_issue_zeroout() argument
365 bs_mask = (bdev_logical_block_size(bdev) >> 9) - 1; in __blkdev_issue_zeroout()
369 ret = __blkdev_issue_write_zeroes(bdev, sector, nr_sects, gfp_mask, in __blkdev_issue_zeroout()
374 return __blkdev_issue_zero_pages(bdev, sector, nr_sects, gfp_mask, in __blkdev_issue_zeroout()
392 int blkdev_issue_zeroout(struct block_device *bdev, sector_t sector, in blkdev_issue_zeroout() argument
399 bool try_write_zeroes = !!bdev_write_zeroes_sectors(bdev); in blkdev_issue_zeroout()
401 bs_mask = (bdev_logical_block_size(bdev) >> 9) - 1; in blkdev_issue_zeroout()
409 ret = __blkdev_issue_write_zeroes(bdev, sector, nr_sects, in blkdev_issue_zeroout()
412 ret = __blkdev_issue_zero_pages(bdev, sector, nr_sects, in blkdev_issue_zeroout()
428 if (!bdev_write_zeroes_sectors(bdev)) { in blkdev_issue_zeroout()