Searched refs:sdrv (Results 1 – 7 of 7) sorted by relevance
325 const struct spmi_driver *sdrv = to_spmi_driver(dev->driver); in spmi_drv_probe() local333 err = sdrv->probe(sdev); in spmi_drv_probe()348 const struct spmi_driver *sdrv = to_spmi_driver(dev->driver); in spmi_drv_remove() local351 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() argument568 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()
431 const struct serdev_device_driver *sdrv = to_serdev_device_driver(dev->driver); in serdev_drv_probe() local438 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() local448 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() argument764 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()
77 struct sdio_driver *sdrv) in sdio_match_device() argument81 ids = sdrv->id_table; in sdio_match_device()97 struct sdio_driver *sdrv = to_sdio_driver(drv); in sdio_bus_match() local99 if (sdio_match_device(func, sdrv)) in sdio_bus_match()
207 struct ssb_driver *sdrv; in ssb_devices_freeze() local222 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() local253 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()
336 const struct spi_driver *sdrv = to_spi_driver(sdev->dev.driver); in spi_get_device_id() local338 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() local359 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() local408 ret = sdrv->probe(spi); in spi_drv_probe()417 const struct spi_driver *sdrv = to_spi_driver(dev->driver); in spi_drv_remove() local420 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 …]
226 struct scsi_driver *sdrv = scsi_cmd_to_driver(scmd); in scsi_eh_reset() local227 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() local1172 if (sdrv->eh_action) in scsi_eh_action()1173 rtn = sdrv->eh_action(scmd, rtn); in scsi_eh_action()
455 static int __init max3191x_register_driver(struct spi_driver *sdrv) in max3191x_register_driver() argument458 return spi_register_driver(sdrv); in max3191x_register_driver()