Lines Matching refs:bdev
19 struct scm_blk_dev *bdev = dev_get_drvdata(&scmdev->dev); in scm_notify() local
31 scm_blk_set_available(bdev); in scm_notify()
38 struct scm_blk_dev *bdev; in scm_probe() local
47 bdev = kzalloc(sizeof(*bdev), GFP_KERNEL); in scm_probe()
48 if (!bdev) in scm_probe()
51 dev_set_drvdata(&scmdev->dev, bdev); in scm_probe()
52 ret = scm_blk_dev_setup(bdev, scmdev); in scm_probe()
55 kfree(bdev); in scm_probe()
65 struct scm_blk_dev *bdev = dev_get_drvdata(&scmdev->dev); in scm_remove() local
67 scm_blk_dev_cleanup(bdev); in scm_remove()
69 kfree(bdev); in scm_remove()