Searched refs:txrx_buf (Results 1 - 2 of 2) sorted by relevance
/kernel/linux/linux-5.10/drivers/rtc/ |
H A D | rtc-ds1390.c | 50 u8 txrx_buf[9]; /* cmd + 8 registers */ member 77 chip->txrx_buf[0] = address & 0x7f; in ds1390_get_reg() 79 status = spi_write_then_read(spi, chip->txrx_buf, 1, chip->txrx_buf, 1); in ds1390_get_reg() 83 *data = chip->txrx_buf[0]; in ds1390_get_reg() 134 chip->txrx_buf[0] = DS1390_REG_SECONDS; in ds1390_read_time() 137 status = spi_write_then_read(spi, chip->txrx_buf, 1, chip->txrx_buf, 8); in ds1390_read_time() 143 dt->tm_sec = bcd2bin(chip->txrx_buf[0]); in ds1390_read_time() 144 dt->tm_min = bcd2bin(chip->txrx_buf[ in ds1390_read_time() [all...] |
/kernel/linux/linux-6.6/drivers/rtc/ |
H A D | rtc-ds1390.c | 50 u8 txrx_buf[9]; /* cmd + 8 registers */ member 77 chip->txrx_buf[0] = address & 0x7f; in ds1390_get_reg() 79 status = spi_write_then_read(spi, chip->txrx_buf, 1, chip->txrx_buf, 1); in ds1390_get_reg() 83 *data = chip->txrx_buf[0]; in ds1390_get_reg() 134 chip->txrx_buf[0] = DS1390_REG_SECONDS; in ds1390_read_time() 137 status = spi_write_then_read(spi, chip->txrx_buf, 1, chip->txrx_buf, 8); in ds1390_read_time() 143 dt->tm_sec = bcd2bin(chip->txrx_buf[0]); in ds1390_read_time() 144 dt->tm_min = bcd2bin(chip->txrx_buf[ in ds1390_read_time() [all...] |
Completed in 1 milliseconds