Home
last modified time | relevance | path

Searched refs:sdrv (Results 1 – 8 of 8) sorted by relevance

/drivers/platform/surface/aggregator/
Dbus.c259 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()
[all …]
/drivers/spmi/
Dspmi.c327 const struct spmi_driver *sdrv = to_spmi_driver(dev->driver); in spmi_drv_probe() local
335 err = sdrv->probe(sdev); in spmi_drv_probe()
350 const struct spmi_driver *sdrv = to_spmi_driver(dev->driver); in spmi_drv_remove() local
353 if (sdrv->remove) in spmi_drv_remove()
354 sdrv->remove(to_spmi_device(dev)); in spmi_drv_remove()
364 const struct spmi_driver *sdrv = to_spmi_driver(dev->driver); in spmi_drv_shutdown() local
366 if (sdrv && sdrv->shutdown) in spmi_drv_shutdown()
367 sdrv->shutdown(to_spmi_device(dev)); in spmi_drv_shutdown()
575 int __spmi_driver_register(struct spmi_driver *sdrv, struct module *owner) in __spmi_driver_register() argument
577 sdrv->driver.bus = &spmi_bus_type; in __spmi_driver_register()
[all …]
/drivers/tty/serdev/
Dcore.c410 const struct serdev_device_driver *sdrv = to_serdev_device_driver(dev->driver); in serdev_drv_probe() local
417 ret = sdrv->probe(to_serdev_device(dev)); in serdev_drv_probe()
426 const struct serdev_device_driver *sdrv = to_serdev_device_driver(dev->driver); in serdev_drv_remove() local
427 if (sdrv->remove) in serdev_drv_remove()
428 sdrv->remove(to_serdev_device(dev)); in serdev_drv_remove()
828 int __serdev_device_driver_register(struct serdev_device_driver *sdrv, struct module *owner) in __serdev_device_driver_register() argument
830 sdrv->driver.bus = &serdev_bus_type; in __serdev_device_driver_register()
831 sdrv->driver.owner = owner; in __serdev_device_driver_register()
834 sdrv->driver.probe_type = PROBE_PREFER_ASYNCHRONOUS; in __serdev_device_driver_register()
836 return driver_register(&sdrv->driver); in __serdev_device_driver_register()
/drivers/mmc/core/
Dsdio_bus.c93 struct sdio_driver *sdrv) in sdio_match_device() argument
97 ids = sdrv->id_table; in sdio_match_device()
113 struct sdio_driver *sdrv = to_sdio_driver(drv); in sdio_bus_match() local
115 if (sdio_match_device(func, sdrv)) in sdio_bus_match()
/drivers/ssb/
Dmain.c210 struct ssb_driver *sdrv; in ssb_devices_freeze() local
225 sdrv = drv_to_ssb_drv(sdev->dev->driver); in ssb_devices_freeze()
226 if (WARN_ON(!sdrv->remove)) in ssb_devices_freeze()
228 sdrv->remove(sdev); in ssb_devices_freeze()
245 struct ssb_driver *sdrv; in ssb_devices_thaw() local
256 sdrv = drv_to_ssb_drv(sdev->dev->driver); in ssb_devices_thaw()
257 if (WARN_ON(!sdrv || !sdrv->probe)) in ssb_devices_thaw()
260 err = sdrv->probe(sdev, &sdev->id); in ssb_devices_thaw()
/drivers/spi/
Dspi.c332 const struct spi_driver *sdrv = to_spi_driver(sdev->dev.driver); in spi_get_device_id() local
334 return spi_match_id(sdrv->id_table, sdev); in spi_get_device_id()
341 const struct spi_driver *sdrv = to_spi_driver(drv); in spi_match_device() local
355 if (sdrv->id_table) in spi_match_device()
356 return !!spi_match_id(sdrv->id_table, spi); in spi_match_device()
375 const struct spi_driver *sdrv = to_spi_driver(dev->driver); in spi_probe() local
395 if (sdrv->probe) { in spi_probe()
396 ret = sdrv->probe(spi); in spi_probe()
406 const struct spi_driver *sdrv = to_spi_driver(dev->driver); in spi_remove() local
408 if (sdrv->remove) { in spi_remove()
[all …]
/drivers/gpio/
Dgpio-max3191x.c456 static int __init max3191x_register_driver(struct spi_driver *sdrv) in max3191x_register_driver() argument
459 return spi_register_driver(sdrv); in max3191x_register_driver()
/drivers/scsi/
Dscsi_error.c272 struct scsi_driver *sdrv = scsi_cmd_to_driver(scmd); in scsi_eh_reset() local
273 if (sdrv->eh_reset) in scsi_eh_reset()
274 sdrv->eh_reset(scmd); in scsi_eh_reset()
1233 struct scsi_driver *sdrv = scsi_cmd_to_driver(scmd); in scsi_eh_action() local
1234 if (sdrv->eh_action) in scsi_eh_action()
1235 rtn = sdrv->eh_action(scmd, rtn); in scsi_eh_action()