• Home
  • Raw
  • Download

Lines Matching refs:sdrv

332 	const struct spi_driver *sdrv = to_spi_driver(sdev->dev.driver);  in spi_get_device_id()  local
334 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() local
355 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() local
395 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() local
408 if (sdrv->remove) { in spi_remove()
411 ret = sdrv->remove(to_spi_device(dev)); in spi_remove()
424 const struct spi_driver *sdrv = to_spi_driver(dev->driver); in spi_shutdown() local
426 if (sdrv->shutdown) in spi_shutdown()
427 sdrv->shutdown(to_spi_device(dev)); in spi_shutdown()
450 int __spi_register_driver(struct module *owner, struct spi_driver *sdrv) in __spi_register_driver() argument
452 sdrv->driver.owner = owner; in __spi_register_driver()
453 sdrv->driver.bus = &spi_bus_type; in __spi_register_driver()
460 if (sdrv->driver.of_match_table) { in __spi_register_driver()
463 for (of_id = sdrv->driver.of_match_table; of_id->compatible[0]; in __spi_register_driver()
475 if (sdrv->id_table) { in __spi_register_driver()
478 for (spi_id = sdrv->id_table; spi_id->name[0]; in __spi_register_driver()
486 if (strcmp(sdrv->driver.name, of_name) == 0) in __spi_register_driver()
491 sdrv->driver.name, of_id->compatible); in __spi_register_driver()
495 return driver_register(&sdrv->driver); in __spi_register_driver()