Home
last modified time | relevance | path

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

/linux-6.3-rc2/drivers/platform/surface/aggregator/
A Dbus.c264 const struct ssam_device_driver *sdrv; in ssam_device_get_match() local
266 sdrv = to_ssam_device_driver(dev->dev.driver); in ssam_device_get_match()
267 if (!sdrv) in ssam_device_get_match()
270 if (!sdrv->match_table) in ssam_device_get_match()
328 if (sdrv->remove) in ssam_bus_remove()
329 sdrv->remove(to_ssam_device(dev)); in ssam_bus_remove()
351 sdrv->driver.owner = owner; in __ssam_device_driver_register()
352 sdrv->driver.bus = &ssam_bus_type; in __ssam_device_driver_register()
355 sdrv->driver.probe_type = PROBE_PREFER_ASYNCHRONOUS; in __ssam_device_driver_register()
357 return driver_register(&sdrv->driver); in __ssam_device_driver_register()
[all …]
/linux-6.3-rc2/include/linux/
A Dspmi.h149 #define spmi_driver_register(sdrv) \ argument
150 __spmi_driver_register(sdrv, THIS_MODULE)
151 int __spmi_driver_register(struct spmi_driver *sdrv, struct module *owner);
157 static inline void spmi_driver_unregister(struct spmi_driver *sdrv) in spmi_driver_unregister() argument
159 if (sdrv) in spmi_driver_unregister()
160 driver_unregister(&sdrv->driver); in spmi_driver_unregister()
A Dserdev.h215 #define serdev_device_driver_register(sdrv) \ argument
216 __serdev_device_driver_register(sdrv, THIS_MODULE)
222 static inline void serdev_device_driver_unregister(struct serdev_device_driver *sdrv) in serdev_device_driver_unregister() argument
224 if (sdrv) in serdev_device_driver_unregister()
225 driver_unregister(&sdrv->driver); in serdev_device_driver_unregister()
/linux-6.3-rc2/drivers/spmi/
A 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 sdrv->remove(to_spmi_device(dev)); in spmi_drv_remove()
363 const struct spmi_driver *sdrv = to_spmi_driver(dev->driver); in spmi_drv_shutdown() local
365 if (sdrv && sdrv->shutdown) in spmi_drv_shutdown()
366 sdrv->shutdown(to_spmi_device(dev)); in spmi_drv_shutdown()
591 int __spmi_driver_register(struct spmi_driver *sdrv, struct module *owner) in __spmi_driver_register() argument
593 sdrv->driver.bus = &spmi_bus_type; in __spmi_driver_register()
594 sdrv->driver.owner = owner; in __spmi_driver_register()
[all …]
/linux-6.3-rc2/drivers/tty/serdev/
A 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()
839 int __serdev_device_driver_register(struct serdev_device_driver *sdrv, struct module *owner) in __serdev_device_driver_register() argument
841 sdrv->driver.bus = &serdev_bus_type; in __serdev_device_driver_register()
842 sdrv->driver.owner = owner; in __serdev_device_driver_register()
845 sdrv->driver.probe_type = PROBE_PREFER_ASYNCHRONOUS; in __serdev_device_driver_register()
847 return driver_register(&sdrv->driver); in __serdev_device_driver_register()
/linux-6.3-rc2/sound/core/
A Dseq_device.c46 struct snd_seq_driver *sdrv = to_seq_drv(drv); in snd_seq_bus_match() local
48 return strcmp(sdrv->id, sdev->id) == 0 && in snd_seq_bus_match()
49 sdrv->argsize == sdev->argsize; in snd_seq_bus_match()
/linux-6.3-rc2/drivers/mmc/core/
A Dsdio_bus.c94 struct sdio_driver *sdrv) in sdio_match_device() argument
98 ids = sdrv->id_table; in sdio_match_device()
114 struct sdio_driver *sdrv = to_sdio_driver(drv); in sdio_bus_match() local
116 if (sdio_match_device(func, sdrv)) in sdio_bus_match()
/linux-6.3-rc2/drivers/ssb/
A 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()
/linux-6.3-rc2/drivers/spi/
A Dspi.c392 if (sdrv->id_table) in spi_match_device()
432 if (sdrv->probe) { in spi_probe()
433 ret = sdrv->probe(spi); in spi_probe()
445 if (sdrv->remove) in spi_remove()
446 sdrv->remove(to_spi_device(dev)); in spi_remove()
456 if (sdrv->shutdown) in spi_shutdown()
457 sdrv->shutdown(to_spi_device(dev)); in spi_shutdown()
482 sdrv->driver.owner = owner; in __spi_register_driver()
483 sdrv->driver.bus = &spi_bus_type; in __spi_register_driver()
490 if (sdrv->driver.of_match_table) { in __spi_register_driver()
[all …]
/linux-6.3-rc2/include/linux/spi/
A Dspi.h327 extern int __spi_register_driver(struct module *owner, struct spi_driver *sdrv);
334 static inline void spi_unregister_driver(struct spi_driver *sdrv) in spi_unregister_driver() argument
336 if (sdrv) in spi_unregister_driver()
337 driver_unregister(&sdrv->driver); in spi_unregister_driver()
/linux-6.3-rc2/drivers/gpio/
A Dgpio-max3191x.c454 static int __init max3191x_register_driver(struct spi_driver *sdrv) in max3191x_register_driver() argument
457 return spi_register_driver(sdrv); in max3191x_register_driver()
/linux-6.3-rc2/drivers/scsi/
A Dscsi_error.c275 struct scsi_driver *sdrv = scsi_cmd_to_driver(scmd); in scsi_eh_reset() local
276 if (sdrv->eh_reset) in scsi_eh_reset()
277 sdrv->eh_reset(scmd); in scsi_eh_reset()
1223 struct scsi_driver *sdrv = scsi_cmd_to_driver(scmd); in scsi_eh_action() local
1224 if (sdrv->eh_action) in scsi_eh_action()
1225 rtn = sdrv->eh_action(scmd, rtn); in scsi_eh_action()

Completed in 47 milliseconds