Home
last modified time | relevance | path

Searched refs:bdev (Results 1 – 22 of 22) sorted by relevance

/external/ltp/testcases/kernel/fs/scsi/ltpfs/
DLtpfsCmds.c89 struct block_device *bdev = NULL; in ltpdev_ioctl() local
148 bdev = lookup_bdev(LTP_FS_DEVICE_NAME); in ltpdev_ioctl()
151 bdev->bd_block_size); in ltpdev_ioctl()
160 my_bio_copy = bio_map_user(bdev, uaddr, TEST_MEM_SIZE, FALSE); in ltpdev_ioctl()
261 struct block_device *bdev; in lookup_bdev() local
283 bdev = inode->i_bdev; in lookup_bdev()
287 return bdev; in lookup_bdev()
289 bdev = ERR_PTR(error); in lookup_bdev()
295 struct block_device *bdev; in bd_acquire() local
303 bdev = bdget(kdev_t_to_nr(inode->i_rdev)); in bd_acquire()
[all …]
/external/ltp/testcases/kernel/device-drivers/tbio/tbio_kernel/
Dltp_tbio.c73 struct block_device *bdev; member
78 struct block_device *bdev, struct tbio_interface *inter, in send_request() argument
105 if (blk_execute_rq(q, bdev->bd_disk, rq, 0)) in send_request()
118 static int tbio_io(struct block_device *bdev, struct tbio_interface *uptr) in tbio_io() argument
125 struct request_queue *q = bdev_get_queue(bdev); in tbio_io()
150 bio = bio_map_user(q, bdev, (unsigned long)inter.data, in tbio_io()
170 send_request(q, bio, bdev, &inter, writing); in tbio_io()
277 tbiop->bi_bdev = tbio_dev.bdev; in test_bio_alloc()
283 static int test_bio_split(struct block_device *bdev, in test_bio_split() argument
292 struct request_queue *q = bdev_get_queue(bdev); in test_bio_split()
[all …]
/external/u-boot/lib/efi_driver/
Defi_block_device.c132 struct udevice *bdev, *parent = dm_root(); in efi_bl_bind() local
159 (lbaint_t)io->media->last_block, &bdev); in efi_bl_bind()
162 if (!bdev) in efi_bl_bind()
165 ret = device_probe(bdev); in efi_bl_bind()
168 EFI_PRINT("%s: block device '%s' created\n", __func__, bdev->name); in efi_bl_bind()
170 priv = bdev->priv; in efi_bl_bind()
174 ret = blk_prepare_device(bdev); in efi_bl_bind()
177 disks = efi_bl_bind_partitions(handle, bdev); in efi_bl_bind()
/external/u-boot/drivers/mmc/
Dmmc-uclass.c287 struct udevice *bdev; in mmc_bind() local
299 devnum, 512, 0, &bdev); in mmc_bind()
304 bdesc = dev_get_uclass_platdata(bdev); in mmc_bind()
325 struct udevice *bdev; in mmc_unbind() local
327 device_find_first_child(dev, &bdev); in mmc_unbind()
328 if (bdev) { in mmc_unbind()
329 device_remove(bdev, DM_REMOVE_NORMAL); in mmc_unbind()
330 device_unbind(bdev); in mmc_unbind()
336 static int mmc_select_hwpart(struct udevice *bdev, int hwpart) in mmc_select_hwpart() argument
338 struct udevice *mmc_dev = dev_get_parent(bdev); in mmc_select_hwpart()
[all …]
/external/avb/contrib/linux/4.4/
D0002-ANDROID-AVB-error-handler-to-invalidate-vbmeta-parti.patch110 + struct block_device *bdev,
118 + bio->bi_bdev = bdev;
125 + last_sector = (i_size_read(bdev->bd_inode)>>SECTOR_SHIFT) - 1;
143 + struct block_device *bdev;
158 + bdev = blkdev_get_by_dev(vbmeta_devt, dev_mode,
160 + if (IS_ERR(bdev)) {
180 + ret = invalidate_vbmeta_submit(bio, bdev, rw, access_last_sector, page);
199 + ret = invalidate_vbmeta_submit(bio, bdev, rw,
218 + blkdev_put(bdev, dev_mode);
220 + bdev = blkdev_get_by_dev(vbmeta_devt, dev_mode,
[all …]
/external/u-boot/cmd/
Dunzip.c45 struct blk_desc *bdev; in do_gzwrite() local
55 ret = blk_get_device_by_str(argv[1], argv[2], &bdev); in do_gzwrite()
72 ret = gzwrite(addr, length, bdev, writebuf, startoffs, szexpected); in do_gzwrite()
Dhost.c92 host_dev = dev_get_priv(blk_dev->bdev); in do_host_info()
/external/syzkaller/pkg/report/testdata/linux/report/
D268 [ 127.554094] (&bdev->bd_mutex){+.+.}, at: [<ffffffff8232bf0e>] blkdev_reread_part+0x1e/0x40
34 [ 127.660888] -> #0 (&bdev->bd_mutex){+.+.}:
57 [ 127.759694] lock(&bdev->bd_mutex);
59 [ 127.772438] lock(&bdev->bd_mutex);
D2508 [ 254.407386] 000000000199d5d7 (&bdev->bd_mutex){+.+.}, at: blkdev_reread_part+0x1e/0x40
48 [ 254.429729] -> #0 (&bdev->bd_mutex){+.+.}:
65 [ 254.439670] &bdev->bd_mutex --> loop_index_mutex --> &lo->lo_ctl_mutex#2
74 [ 254.446004] lock(&bdev->bd_mutex);
/external/u-boot/drivers/scsi/
Dscsi.c154 struct udevice *bdev = dev->parent; in scsi_read() local
156 struct udevice *bdev = NULL; in scsi_read()
201 if (scsi_exec(bdev, pccb)) { in scsi_read()
230 struct udevice *bdev = dev->parent; in scsi_write() local
232 struct udevice *bdev = NULL; in scsi_write()
265 if (scsi_exec(bdev, pccb)) { in scsi_write()
562 struct udevice *bdev; in do_scsi_scan_one() local
582 bd.blksz, bd.lba, &bdev); in do_scsi_scan_one()
588 bdesc = dev_get_uclass_platdata(bdev); in do_scsi_scan_one()
/external/ltp/testcases/kernel/device-drivers/nls/
DnlsTest.c65 static int test_open(struct block_device *bdev, fmode_t mode);
67 static int test_ioctl(struct block_device *bdev, fmode_t mode,
89 static int test_open(struct block_device *bdev, fmode_t mode) in test_open()
110 static int test_ioctl(struct block_device *bdev, fmode_t mode, in test_ioctl()
/external/u-boot/drivers/block/
Dblk-uclass.c326 return blk_select_hwpart(desc->bdev, hwpart); in blk_dselect_hwpart()
407 struct udevice *dev = block_dev->bdev; in blk_dread()
428 struct udevice *dev = block_dev->bdev; in blk_dwrite()
441 struct udevice *dev = block_dev->bdev; in blk_derase()
569 desc->bdev = dev; in blk_create_device()
/external/e2fsprogs/e2fsck/
Drevoke.c336 struct block_device *bdev; in journal_revoke() local
349 bdev = journal->j_fs_dev; in journal_revoke()
353 bh = __find_get_block(bdev, blocknr, journal->j_blocksize); in journal_revoke()
363 bh2 = __find_get_block(bdev, blocknr, journal->j_blocksize); in journal_revoke()
/external/e2fsprogs/debugfs/
Drevoke.c336 struct block_device *bdev; in journal_revoke() local
349 bdev = journal->j_fs_dev; in journal_revoke()
353 bh = __find_get_block(bdev, blocknr, journal->j_blocksize); in journal_revoke()
363 bh2 = __find_get_block(bdev, blocknr, journal->j_blocksize); in journal_revoke()
/external/e2fsprogs/tests/u_mke2fs_opt_oddsize/
Dscript1 test_description="e2undo with mke2fs -z and non-32k-aligned bdev size"
/external/ltp/testcases/kdump/lib/lkdtm/
Dlkdtm.c189 struct block_device *bdev, unsigned int cmd, in jp_generic_ide_ioctl() argument
/external/u-boot/include/
Dblk.h93 struct udevice *bdev; member
/external/u-boot/lib/efi_loader/
Defi_device_path.c632 dev = desc->bdev->parent; in dp_part_size()
730 dev = desc->bdev->parent; in dp_part_fill()
/external/u-boot/drivers/nvme/
Dnvme.c662 desc->bdev = udev; in nvme_blk_probe()
/external/syzkaller/sys/linux/
Dfilesystem.txt11 … "fusectl", "bfs", "nsfs", "efs", "cifs", "efivarfs", "affs", "tracefs", "bdev", "ocfs2", "ocfs2_d…
/external/syzkaller/docs/linux/
Dfound_bugs.md288 * [bdev: fix NULL pointer dereference in sync()/close() race](https://groups.google.com/d/msg/syzka…
289 * [bdev: fix NULL pointer dereference](https://groups.google.com/forum/#!topic/syzkaller/VF7tNBDWFM…
/external/selinux/libsepol/tests/policies/test-cond/
Drefpolicy-base.conf1696 genfscon bdev / system_u:object_r:bdev_t:s0