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

/linux-4.4.14/include/linux/
H A Dspmi.h156 #define spmi_driver_register(sdrv) \
157 __spmi_driver_register(sdrv, THIS_MODULE)
158 int __spmi_driver_register(struct spmi_driver *sdrv, struct module *owner);
162 * @sdrv: the driver to unregister
164 static inline void spmi_driver_unregister(struct spmi_driver *sdrv) spmi_driver_unregister() argument
166 if (sdrv) spmi_driver_unregister()
167 driver_unregister(&sdrv->driver); spmi_driver_unregister()
/linux-4.4.14/drivers/spmi/
H A Dspmi.c332 const struct spmi_driver *sdrv = to_spmi_driver(dev->driver); spmi_drv_probe() local
340 err = sdrv->probe(sdev); spmi_drv_probe()
355 const struct spmi_driver *sdrv = to_spmi_driver(dev->driver); spmi_drv_remove() local
358 sdrv->remove(to_spmi_device(dev)); spmi_drv_remove()
558 * @sdrv: client driver to be associated with client-device.
563 int __spmi_driver_register(struct spmi_driver *sdrv, struct module *owner) __spmi_driver_register() argument
565 sdrv->driver.bus = &spmi_bus_type; __spmi_driver_register()
566 sdrv->driver.owner = owner; __spmi_driver_register()
567 return driver_register(&sdrv->driver); __spmi_driver_register()
/linux-4.4.14/drivers/mmc/core/
H A Dsdio_bus.c80 struct sdio_driver *sdrv) sdio_match_device()
84 ids = sdrv->id_table; sdio_match_device()
100 struct sdio_driver *sdrv = to_sdio_driver(drv); sdio_bus_match() local
102 if (sdio_match_device(func, sdrv)) sdio_bus_match()
79 sdio_match_device(struct sdio_func *func, struct sdio_driver *sdrv) sdio_match_device() argument
/linux-4.4.14/sound/core/seq/
H A Dseq_device.c61 struct snd_seq_driver *sdrv = to_seq_drv(drv); snd_seq_bus_match() local
63 return strcmp(sdrv->id, sdev->id) == 0 && snd_seq_bus_match()
64 sdrv->argsize == sdev->argsize; snd_seq_bus_match()
/linux-4.4.14/drivers/ssb/
H A Dmain.c207 struct ssb_driver *sdrv; ssb_devices_freeze() local
222 sdrv = drv_to_ssb_drv(sdev->dev->driver); ssb_devices_freeze()
223 if (SSB_WARN_ON(!sdrv->remove)) ssb_devices_freeze()
225 sdrv->remove(sdev); ssb_devices_freeze()
242 struct ssb_driver *sdrv; ssb_devices_thaw() local
253 sdrv = drv_to_ssb_drv(sdev->dev->driver); ssb_devices_thaw()
254 if (SSB_WARN_ON(!sdrv || !sdrv->probe)) ssb_devices_thaw()
257 err = sdrv->probe(sdev, &sdev->id); ssb_devices_thaw()
/linux-4.4.14/drivers/spi/
H A Dspi.c284 const struct spi_driver *sdrv = to_spi_driver(sdev->dev.driver); spi_get_device_id() local
286 return spi_match_id(sdrv->id_table, sdev); spi_get_device_id()
293 const struct spi_driver *sdrv = to_spi_driver(drv); spi_match_device() local
303 if (sdrv->id_table) spi_match_device()
304 return !!spi_match_id(sdrv->id_table, spi); spi_match_device()
333 const struct spi_driver *sdrv = to_spi_driver(dev->driver); spi_drv_probe() local
351 ret = sdrv->probe(spi); spi_drv_probe()
361 const struct spi_driver *sdrv = to_spi_driver(dev->driver); spi_drv_remove() local
364 ret = sdrv->remove(to_spi_device(dev)); spi_drv_remove()
372 const struct spi_driver *sdrv = to_spi_driver(dev->driver); spi_drv_shutdown() local
374 sdrv->shutdown(to_spi_device(dev)); spi_drv_shutdown()
380 * @sdrv: the driver to register
385 int __spi_register_driver(struct module *owner, struct spi_driver *sdrv) __spi_register_driver() argument
387 sdrv->driver.owner = owner; __spi_register_driver()
388 sdrv->driver.bus = &spi_bus_type; __spi_register_driver()
389 if (sdrv->probe) __spi_register_driver()
390 sdrv->driver.probe = spi_drv_probe; __spi_register_driver()
391 if (sdrv->remove) __spi_register_driver()
392 sdrv->driver.remove = spi_drv_remove; __spi_register_driver()
393 if (sdrv->shutdown) __spi_register_driver()
394 sdrv->driver.shutdown = spi_drv_shutdown; __spi_register_driver()
395 return driver_register(&sdrv->driver); __spi_register_driver()
/linux-4.4.14/include/linux/spi/
H A Dspi.h257 extern int __spi_register_driver(struct module *owner, struct spi_driver *sdrv);
261 * @sdrv: the driver to unregister
264 static inline void spi_unregister_driver(struct spi_driver *sdrv) spi_unregister_driver() argument
266 if (sdrv) spi_unregister_driver()
267 driver_unregister(&sdrv->driver); spi_unregister_driver()
/linux-4.4.14/drivers/scsi/
H A Dscsi_error.c1109 struct scsi_driver *sdrv = scsi_cmd_to_driver(scmd); scsi_eh_action() local
1110 if (sdrv->eh_action) scsi_eh_action()
1111 rtn = sdrv->eh_action(scmd, rtn); scsi_eh_action()

Completed in 548 milliseconds