Lines Matching refs:scmdrv
26 struct scm_driver *scmdrv = to_scm_drv(dev->driver); in scmdev_probe() local
28 return scmdrv->probe ? scmdrv->probe(scmdev) : -ENODEV; in scmdev_probe()
34 struct scm_driver *scmdrv = to_scm_drv(dev->driver); in scmdev_remove() local
36 if (scmdrv->remove) in scmdev_remove()
37 scmdrv->remove(scmdev); in scmdev_remove()
56 int scm_driver_register(struct scm_driver *scmdrv) in scm_driver_register() argument
58 struct device_driver *drv = &scmdrv->drv; in scm_driver_register()
70 void scm_driver_unregister(struct scm_driver *scmdrv) in scm_driver_unregister() argument
72 driver_unregister(&scmdrv->drv); in scm_driver_unregister()
80 struct scm_driver *scmdrv = to_scm_drv(scmdev->dev.driver); in scm_irq_handler() local
82 scmdrv->handler(scmdev, aobrq->data, error); in scm_irq_handler()
159 struct scm_driver *scmdrv; in scmdev_update() local
169 scmdrv = to_scm_drv(scmdev->dev.driver); in scmdev_update()
170 if (changed && scmdrv->notify) in scmdev_update()
171 scmdrv->notify(scmdev, SCM_CHANGE); in scmdev_update()
259 struct scm_driver *scmdrv = to_scm_drv(dev->driver); in scm_dev_avail() local
262 if (dev->driver && scmdrv->notify) in scm_dev_avail()
263 scmdrv->notify(scmdev, SCM_AVAIL); in scm_dev_avail()