Searched refs:sdrv (Results 1 – 8 of 8) sorted by relevance
259 const struct ssam_device_driver *sdrv; in ssam_device_get_match() local261 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() local310 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() local323 if (sdrv->remove) in ssam_bus_remove()324 sdrv->remove(to_ssam_device(dev)); in ssam_bus_remove()[all …]
327 const struct spmi_driver *sdrv = to_spmi_driver(dev->driver); in spmi_drv_probe() local335 err = sdrv->probe(sdev); in spmi_drv_probe()350 const struct spmi_driver *sdrv = to_spmi_driver(dev->driver); in spmi_drv_remove() local353 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() local366 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() argument577 sdrv->driver.bus = &spmi_bus_type; in __spmi_driver_register()[all …]
410 const struct serdev_device_driver *sdrv = to_serdev_device_driver(dev->driver); in serdev_drv_probe() local417 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() local427 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() argument830 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()
93 struct sdio_driver *sdrv) in sdio_match_device() argument97 ids = sdrv->id_table; in sdio_match_device()113 struct sdio_driver *sdrv = to_sdio_driver(drv); in sdio_bus_match() local115 if (sdio_match_device(func, sdrv)) in sdio_bus_match()
210 struct ssb_driver *sdrv; in ssb_devices_freeze() local225 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() local256 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()
332 const struct spi_driver *sdrv = to_spi_driver(sdev->dev.driver); in spi_get_device_id() local334 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() local355 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() local395 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() local408 if (sdrv->remove) { in spi_remove()[all …]
456 static int __init max3191x_register_driver(struct spi_driver *sdrv) in max3191x_register_driver() argument459 return spi_register_driver(sdrv); in max3191x_register_driver()
272 struct scsi_driver *sdrv = scsi_cmd_to_driver(scmd); in scsi_eh_reset() local273 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() local1234 if (sdrv->eh_action) in scsi_eh_action()1235 rtn = sdrv->eh_action(scmd, rtn); in scsi_eh_action()