Home
last modified time | relevance | path

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

/drivers/spmi/
Dspmi.c325 const struct spmi_driver *sdrv = to_spmi_driver(dev->driver); in spmi_drv_probe() local
333 err = sdrv->probe(sdev); in spmi_drv_probe()
348 const struct spmi_driver *sdrv = to_spmi_driver(dev->driver); in spmi_drv_remove() local
351 sdrv->remove(to_spmi_device(dev)); in spmi_drv_remove()
566 int __spmi_driver_register(struct spmi_driver *sdrv, struct module *owner) in __spmi_driver_register() argument
568 sdrv->driver.bus = &spmi_bus_type; in __spmi_driver_register()
569 sdrv->driver.owner = owner; in __spmi_driver_register()
570 return driver_register(&sdrv->driver); in __spmi_driver_register()
/drivers/tty/serdev/
Dcore.c431 const struct serdev_device_driver *sdrv = to_serdev_device_driver(dev->driver); in serdev_drv_probe() local
438 ret = sdrv->probe(to_serdev_device(dev)); in serdev_drv_probe()
447 const struct serdev_device_driver *sdrv = to_serdev_device_driver(dev->driver); in serdev_drv_remove() local
448 if (sdrv->remove) in serdev_drv_remove()
449 sdrv->remove(to_serdev_device(dev)); in serdev_drv_remove()
762 int __serdev_device_driver_register(struct serdev_device_driver *sdrv, struct module *owner) in __serdev_device_driver_register() argument
764 sdrv->driver.bus = &serdev_bus_type; in __serdev_device_driver_register()
765 sdrv->driver.owner = owner; in __serdev_device_driver_register()
768 sdrv->driver.probe_type = PROBE_PREFER_ASYNCHRONOUS; in __serdev_device_driver_register()
770 return driver_register(&sdrv->driver); in __serdev_device_driver_register()
/drivers/mmc/core/
Dsdio_bus.c77 struct sdio_driver *sdrv) in sdio_match_device() argument
81 ids = sdrv->id_table; in sdio_match_device()
97 struct sdio_driver *sdrv = to_sdio_driver(drv); in sdio_bus_match() local
99 if (sdio_match_device(func, sdrv)) in sdio_bus_match()
/drivers/ssb/
Dmain.c207 struct ssb_driver *sdrv; in ssb_devices_freeze() local
222 sdrv = drv_to_ssb_drv(sdev->dev->driver); in ssb_devices_freeze()
223 if (WARN_ON(!sdrv->remove)) in ssb_devices_freeze()
225 sdrv->remove(sdev); in ssb_devices_freeze()
242 struct ssb_driver *sdrv; in ssb_devices_thaw() local
253 sdrv = drv_to_ssb_drv(sdev->dev->driver); in ssb_devices_thaw()
254 if (WARN_ON(!sdrv || !sdrv->probe)) in ssb_devices_thaw()
257 err = sdrv->probe(sdev, &sdev->id); in ssb_devices_thaw()
/drivers/spi/
Dspi.c336 const struct spi_driver *sdrv = to_spi_driver(sdev->dev.driver); in spi_get_device_id() local
338 return spi_match_id(sdrv->id_table, sdev); in spi_get_device_id()
345 const struct spi_driver *sdrv = to_spi_driver(drv); in spi_match_device() local
359 if (sdrv->id_table) in spi_match_device()
360 return !!spi_match_id(sdrv->id_table, spi); in spi_match_device()
388 const struct spi_driver *sdrv = to_spi_driver(dev->driver); in spi_drv_probe() local
408 ret = sdrv->probe(spi); in spi_drv_probe()
417 const struct spi_driver *sdrv = to_spi_driver(dev->driver); in spi_drv_remove() local
420 ret = sdrv->remove(to_spi_device(dev)); in spi_drv_remove()
428 const struct spi_driver *sdrv = to_spi_driver(dev->driver); in spi_drv_shutdown() local
[all …]
/drivers/scsi/
Dscsi_error.c226 struct scsi_driver *sdrv = scsi_cmd_to_driver(scmd); in scsi_eh_reset() local
227 if (sdrv->eh_reset) in scsi_eh_reset()
228 sdrv->eh_reset(scmd); in scsi_eh_reset()
1171 struct scsi_driver *sdrv = scsi_cmd_to_driver(scmd); in scsi_eh_action() local
1172 if (sdrv->eh_action) in scsi_eh_action()
1173 rtn = sdrv->eh_action(scmd, rtn); in scsi_eh_action()
/drivers/gpio/
Dgpio-max3191x.c455 static int __init max3191x_register_driver(struct spi_driver *sdrv) in max3191x_register_driver() argument
458 return spi_register_driver(sdrv); in max3191x_register_driver()