Lines Matching refs:sdrv
267 const struct ssam_device_driver *sdrv; in ssam_device_get_match() local
269 sdrv = to_ssam_device_driver(dev->dev.driver); in ssam_device_get_match()
270 if (!sdrv) in ssam_device_get_match()
273 if (!sdrv->match_table) in ssam_device_get_match()
276 return ssam_device_id_match(sdrv->match_table, dev->uid); in ssam_device_get_match()
312 const struct ssam_device_driver *sdrv = to_ssam_device_driver(drv); in ssam_bus_match() local
318 return !!ssam_device_id_match(sdrv->match_table, sdev->uid); in ssam_bus_match()
329 struct ssam_device_driver *sdrv = to_ssam_device_driver(dev->driver); in ssam_bus_remove() local
331 if (sdrv->remove) in ssam_bus_remove()
332 sdrv->remove(to_ssam_device(dev)); in ssam_bus_remove()
350 int __ssam_device_driver_register(struct ssam_device_driver *sdrv, in __ssam_device_driver_register() argument
353 sdrv->driver.owner = owner; in __ssam_device_driver_register()
354 sdrv->driver.bus = &ssam_bus_type; in __ssam_device_driver_register()
357 sdrv->driver.probe_type = PROBE_PREFER_ASYNCHRONOUS; in __ssam_device_driver_register()
359 return driver_register(&sdrv->driver); in __ssam_device_driver_register()
367 void ssam_device_driver_unregister(struct ssam_device_driver *sdrv) in ssam_device_driver_unregister() argument
369 driver_unregister(&sdrv->driver); in ssam_device_driver_unregister()