Lines Matching refs:scmdev
17 static void scm_notify(struct scm_device *scmdev, enum scm_event event) in scm_notify() argument
19 struct scm_blk_dev *bdev = dev_get_drvdata(&scmdev->dev); in scm_notify()
24 (unsigned long) scmdev->address); in scm_notify()
26 SCM_LOG_STATE(2, scmdev); in scm_notify()
30 SCM_LOG_STATE(2, scmdev); in scm_notify()
36 static int scm_probe(struct scm_device *scmdev) in scm_probe() argument
42 SCM_LOG_STATE(2, scmdev); in scm_probe()
44 if (scmdev->attrs.oper_state != OP_STATE_GOOD) in scm_probe()
51 dev_set_drvdata(&scmdev->dev, bdev); in scm_probe()
52 ret = scm_blk_dev_setup(bdev, scmdev); in scm_probe()
54 dev_set_drvdata(&scmdev->dev, NULL); in scm_probe()
63 static void scm_remove(struct scm_device *scmdev) in scm_remove() argument
65 struct scm_blk_dev *bdev = dev_get_drvdata(&scmdev->dev); in scm_remove()
68 dev_set_drvdata(&scmdev->dev, NULL); in scm_remove()