Lines Matching refs:sdrv
259 const struct ssam_device_driver *sdrv; in ssam_device_get_match() local
261 sdrv = to_ssam_device_driver(dev->dev.driver); in ssam_device_get_match()
262 if (!sdrv) in ssam_device_get_match()
265 if (!sdrv->match_table) in ssam_device_get_match()
268 return ssam_device_id_match(sdrv->match_table, dev->uid); in ssam_device_get_match()
304 struct ssam_device_driver *sdrv = to_ssam_device_driver(drv); in ssam_bus_match() local
310 return !!ssam_device_id_match(sdrv->match_table, sdev->uid); in ssam_bus_match()
321 struct ssam_device_driver *sdrv = to_ssam_device_driver(dev->driver); in ssam_bus_remove() local
323 if (sdrv->remove) in ssam_bus_remove()
324 sdrv->remove(to_ssam_device(dev)); in ssam_bus_remove()
343 int __ssam_device_driver_register(struct ssam_device_driver *sdrv, in __ssam_device_driver_register() argument
346 sdrv->driver.owner = owner; in __ssam_device_driver_register()
347 sdrv->driver.bus = &ssam_bus_type; in __ssam_device_driver_register()
350 sdrv->driver.probe_type = PROBE_PREFER_ASYNCHRONOUS; in __ssam_device_driver_register()
352 return driver_register(&sdrv->driver); in __ssam_device_driver_register()
360 void ssam_device_driver_unregister(struct ssam_device_driver *sdrv) in ssam_device_driver_unregister() argument
362 driver_unregister(&sdrv->driver); in ssam_device_driver_unregister()