Lines Matching refs:sdrv
336 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
430 sdrv->shutdown(to_spi_device(dev)); in spi_drv_shutdown()
441 int __spi_register_driver(struct module *owner, struct spi_driver *sdrv) in __spi_register_driver() argument
443 sdrv->driver.owner = owner; in __spi_register_driver()
444 sdrv->driver.bus = &spi_bus_type; in __spi_register_driver()
445 if (sdrv->probe) in __spi_register_driver()
446 sdrv->driver.probe = spi_drv_probe; in __spi_register_driver()
447 if (sdrv->remove) in __spi_register_driver()
448 sdrv->driver.remove = spi_drv_remove; in __spi_register_driver()
449 if (sdrv->shutdown) in __spi_register_driver()
450 sdrv->driver.shutdown = spi_drv_shutdown; in __spi_register_driver()
451 return driver_register(&sdrv->driver); in __spi_register_driver()