Lines Matching refs:spi
77 struct spi_device *spi = to_spi_device(dev); in rx4581_set_reg() local
84 return spi_write_then_read(spi, buf, 2, NULL, 0); in rx4581_set_reg()
90 struct spi_device *spi = to_spi_device(dev); in rx4581_get_reg() local
95 return spi_write_then_read(spi, data, 1, data, 1); in rx4581_get_reg()
104 struct spi_device *spi = to_spi_device(dev); in rx4581_get_datetime() local
134 err = spi_write_then_read(spi, date, 1, date, 7); in rx4581_get_datetime()
184 struct spi_device *spi = to_spi_device(dev); in rx4581_set_datetime() local
224 err = spi_write_then_read(spi, buf, 8, NULL, 0); in rx4581_set_datetime()
266 static int rx4581_probe(struct spi_device *spi) in rx4581_probe() argument
272 res = rx4581_get_reg(&spi->dev, RX4581_REG_SC, &tmp); in rx4581_probe()
276 rtc = devm_rtc_device_register(&spi->dev, "rx4581", in rx4581_probe()
281 spi_set_drvdata(spi, rtc); in rx4581_probe()
289 MODULE_DEVICE_TABLE(spi, rx4581_id);