Lines Matching refs:slave
281 static struct spi_slave *slave; variable
294 if (!slave) { in rtc_get()
295 slave = spi_setup_slave(0, CONFIG_SYS_SPI_RTC_DEVID, 600000, in rtc_get()
297 if (!slave) in rtc_get()
301 if (spi_claim_bus(slave)) in rtc_get()
312 spi_release_bus(slave); in rtc_get()
357 if (!slave) { in rtc_set()
358 slave = spi_setup_slave(0, CONFIG_SYS_SPI_RTC_DEVID, 600000, in rtc_set()
360 if (!slave) in rtc_set()
364 if (spi_claim_bus(slave)) in rtc_set()
379 spi_release_bus(slave); in rtc_set()
388 if (!slave) { in rtc_reset()
389 slave = spi_setup_slave(0, CONFIG_SYS_SPI_RTC_DEVID, 600000, in rtc_reset()
391 if (!slave) in rtc_reset()
395 if (spi_claim_bus(slave)) in rtc_reset()
412 spi_release_bus(slave); in rtc_reset()
421 ret = spi_w8r8(slave, reg); in rtc_read()
435 spi_xfer (slave, 16, dout, din, SPI_XFER_BEGIN | SPI_XFER_END); in rtc_write()