Searched refs:bdev (Results 176 - 200 of 414) sorted by last modified time

1234567891011>>

/linux-master/drivers/dax/
H A Dsuper.c77 * @bdev: block device to find a dax_device for
78 * @start_off: returns the byte offset into the dax_device that @bdev starts
82 struct dax_device *fs_dax_get_by_bdev(struct block_device *bdev, u64 *start_off, argument
89 if (!blk_queue_dax(bdev->bd_disk->queue))
92 *start_off = get_start_sect(bdev) * SECTOR_SIZE;
93 part_size = bdev_nr_sectors(bdev) * SECTOR_SIZE;
95 pr_info("%pg: error: unaligned partition for dax\n", bdev);
100 dax_dev = xa_load(&dax_hosts, (unsigned long)bdev->bd_disk);
/linux-master/drivers/block/zram/
H A Dzram_drv.c1952 static void zram_slot_free_notify(struct block_device *bdev, argument
1957 zram = bdev->bd_disk->private_data;
/linux-master/drivers/block/
H A Dsunvdc.c122 static int vdc_getgeo(struct block_device *bdev, struct hd_geometry *geo) argument
124 struct gendisk *disk = bdev->bd_disk;
142 static int vdc_ioctl(struct block_device *bdev, blk_mode_t mode, argument
145 struct vdc_port *port = bdev->bd_disk->private_data;
/linux-master/include/linux/
H A Diomap.h100 struct block_device *bdev; /* block device for I/O */ member in struct:iomap
H A Ddevice-mapper.h96 typedef int (*dm_prepare_ioctl_fn) (struct dm_target *ti, struct block_device **bdev);
167 struct block_device *bdev; member in struct:dm_dev
520 int dm_report_zones(struct block_device *bdev, sector_t start, sector_t sector,
H A Dblk-integrity.h58 bdev_get_integrity(struct block_device *bdev) argument
60 return blk_get_integrity(bdev->bd_disk);
/linux-master/include/drm/
H A Ddrm_gem_vram_helper.h172 * @bdev: The TTM BO device.
178 * &struct drm_vram_mm.bdev to access the TTM BO device.
184 struct ttm_device bdev; member in struct:drm_vram_mm
189 * field bdev.
190 * @bdev: the TTM BO device
196 struct ttm_device *bdev)
198 return container_of(bdev, struct drm_vram_mm, bdev);
195 drm_vram_mm_of_bdev( struct ttm_device *bdev) argument
/linux-master/fs/zonefs/
H A Dfile.c41 iomap->bdev = inode->i_sb->s_bdev;
91 iomap->bdev = inode->i_sb->s_bdev;
/linux-master/fs/nfsd/
H A Dblocklayout.c334 struct block_device *bdev = file->nf_file->f_path.mnt->mnt_sb->s_bdev; local
336 bdev->bd_disk->fops->pr_ops->pr_preempt(bdev, NFSD_MDS_PR_KEY,
/linux-master/fs/nfs/blocklayout/
H A Dblocklayout.h98 struct block_device *bdev; member in struct:pnfs_block_dev_map
H A Ddev.c172 map->bdev = file_bdev(dev->bdev_file);
/linux-master/fs/
H A Dmpage.c172 struct block_device *bdev = NULL; local
219 bdev = map_bh->b_bdev;
275 bdev = map_bh->b_bdev;
297 args->bio = bio_alloc(bdev, bio_max_segs(args->nr_pages), opf,
472 struct block_device *bdev = NULL; local
518 bdev = bh->b_bdev;
568 bdev = map_bh.b_bdev;
603 bio = bio_alloc(bdev, BIO_MAX_VECS,
H A Ddirect-io.c396 struct block_device *bdev,
405 bio = bio_alloc(bdev, nr_vecs, dio->opf, GFP_KERNEL);
1107 struct block_device *bdev, struct iov_iter *iter,
1125 * Avoid references to bdev if not absolutely needed to give
1158 if (bdev)
1159 blkbits = blksize_bits(bdev_logical_block_size(bdev));
395 dio_bio_alloc(struct dio *dio, struct dio_submit *sdio, struct block_device *bdev, sector_t first_sector, int nr_vecs) argument
1106 __blockdev_direct_IO(struct kiocb *iocb, struct inode *inode, struct block_device *bdev, struct iov_iter *iter, get_block_t get_block, dio_iodone_t end_io, int flags) argument
H A Dbuffer.c190 __find_get_block_slow(struct block_device *bdev, sector_t block) argument
192 struct inode *bd_inode = bdev->bd_inode;
235 bh->b_state, bh->b_size, bdev,
658 void write_boundary_block(struct block_device *bdev, argument
661 struct buffer_head *bh = __find_get_block(bdev, bblock + 1, blocksize);
981 static sector_t blkdev_max_block(struct block_device *bdev, unsigned int size) argument
984 loff_t sz = bdev_nr_bytes(bdev);
997 struct block_device *bdev, unsigned size)
1003 sector_t end_block = blkdev_max_block(bdev, size);
1009 bh->b_bdev = bdev;
996 folio_init_buffers(struct folio *folio, struct block_device *bdev, unsigned size) argument
1034 grow_dev_folio(struct block_device *bdev, sector_t block, pgoff_t index, unsigned size, gfp_t gfp) argument
1091 grow_buffers(struct block_device *bdev, sector_t block, unsigned size, gfp_t gfp) argument
1112 __getblk_slow(struct block_device *bdev, sector_t block, unsigned size, gfp_t gfp) argument
1356 lookup_bh_lru(struct block_device *bdev, sector_t block, unsigned size) argument
1395 __find_get_block(struct block_device *bdev, sector_t block, unsigned size) argument
1420 bdev_getblk(struct block_device *bdev, sector_t block, unsigned size, gfp_t gfp) argument
1436 __breadahead(struct block_device *bdev, sector_t block, unsigned size) argument
1461 __bread_gfp(struct block_device *bdev, sector_t block, unsigned size, gfp_t gfp) argument
1697 clean_bdev_aliases(struct block_device *bdev, sector_t block, sector_t len) argument
[all...]
/linux-master/fs/iomap/
H A Ddirect-io.c59 return bio_alloc_bioset(iter->iomap.bdev, nr_vecs, opf,
61 return bio_alloc(iter->iomap.bdev, nr_vecs, opf, GFP_KERNEL);
291 if ((pos | length) & (bdev_logical_block_size(iomap->bdev) - 1) ||
292 !bdev_iter_is_aligned(iomap->bdev, dio->submit.iter))
319 (bdev_fua(iomap->bdev) || !bdev_write_cache(iomap->bdev)))
H A Dtrace.h127 __field(dev_t, bdev)
137 __entry->bdev = iomap->bdev ? iomap->bdev->bd_dev : 0;
139 TP_printk("dev %d:%d ino 0x%llx bdev %d:%d addr 0x%llx offset 0x%llx "
143 MAJOR(__entry->bdev), MINOR(__entry->bdev),
172 __field(dev_t, bdev)
184 __entry->bdev = iomap->bdev
[all...]
H A Dbuffered-io.c418 ctx->bio = bio_alloc(iomap->bdev, bio_max_segs(nr_vecs),
426 ctx->bio = bio_alloc(iomap->bdev, 1, REQ_OP_READ,
665 bio_init(&bio, iomap->bdev, &bvec, 1, REQ_OP_READ);
1687 bio = bio_alloc_bioset(wpc->iomap.bdev, BIO_MAX_VECS,
/linux-master/fs/erofs/
H A Ddata.c281 iomap->bdev = mdev.m_bdev;
385 struct block_device *bdev = inode->i_sb->s_bdev; local
388 if (bdev)
389 blksize_mask = bdev_logical_block_size(bdev) - 1;
/linux-master/fs/btrfs/
H A Dzoned.h33 * Number of zones, zone size and types of zones if bdev is a
64 int btrfs_sb_log_location_bdev(struct block_device *bdev, int mirror, int rw,
69 int btrfs_reset_sb_log_zones(struct block_device *bdev, int mirror);
145 static inline int btrfs_sb_log_location_bdev(struct block_device *bdev, argument
164 static inline int btrfs_reset_sb_log_zones(struct block_device *bdev, int mirror) argument
323 struct block_device *bdev)
330 if (!bdev_is_zoned(bdev))
334 (bdev_zone_sectors(bdev) << SECTOR_SHIFT);
338 return !bdev_is_zoned(bdev);
322 btrfs_check_device_zone_type(const struct btrfs_fs_info *fs_info, struct block_device *bdev) argument
H A Dvolumes.h109 struct block_device *bdev; member in struct:btrfs_device
115 * opened (bdev == NULL), unless the device is missing.
H A Dsysfs.c1760 if (device->bdev)
1761 sysfs_remove_link(devices_kobj, bdev_kobj(device->bdev)->name);
1942 if (device->bdev) {
1943 struct kobject *disk_kobj = bdev_kobj(device->bdev);
1996 void btrfs_kobject_uevent(struct block_device *bdev, enum kobject_action action) argument
2000 ret = kobject_uevent(&disk_to_dev(bdev->bd_disk)->kobj, action);
2003 action, kobject_name(&disk_to_dev(bdev->bd_disk)->kobj),
2004 &disk_to_dev(bdev->bd_disk)->kobj);
H A Dsysfs.h32 void btrfs_kobject_uevent(struct block_device *bdev, enum kobject_action action);
H A Dsuper.c1608 !device->bdev ||
1798 struct block_device *bdev; local
1831 bdev = fs_devices->latest_dev->bdev;
1855 snprintf(sb->s_id, sizeof(sb->s_id), "%pg", bdev);
2288 if (!dev->bdev)
2292 sb = btrfs_read_dev_one_super(dev->bdev, 0, true);
H A Draid56.c1069 if (!stripe->dev->bdev) {
1093 last->bi_bdev == stripe->dev->bdev) {
1102 bio = bio_alloc(stripe->dev->bdev,
1168 if (bio->bi_bdev != bioc->stripes[i].dev->bdev)
1383 if (!rbio->bioc->stripes[stripe_nr].dev->bdev) {
1979 if (!rbio->bioc->stripes[stripe].dev->bdev ||
H A Ddisk-io.h63 struct btrfs_super_block *btrfs_read_dev_super(struct block_device *bdev);
64 struct btrfs_super_block *btrfs_read_dev_one_super(struct block_device *bdev,

Completed in 309 milliseconds

1234567891011>>