Searched refs:txrx_buf (Results 1 – 1 of 1) sorted by relevance
45 u8 txrx_buf[9]; /* cmd + 8 registers */ member59 chip->txrx_buf[0] = address & 0x7f; in ds1390_get_reg()61 status = spi_write_then_read(spi, chip->txrx_buf, 1, chip->txrx_buf, 1); in ds1390_get_reg()65 *data = chip->txrx_buf[1]; in ds1390_get_reg()77 chip->txrx_buf[0] = DS1390_REG_SECONDS; in ds1390_read_time()80 status = spi_write_then_read(spi, chip->txrx_buf, 1, chip->txrx_buf, 8); in ds1390_read_time()86 dt->tm_sec = bcd2bin(chip->txrx_buf[0]); in ds1390_read_time()87 dt->tm_min = bcd2bin(chip->txrx_buf[1]); in ds1390_read_time()88 dt->tm_hour = bcd2bin(chip->txrx_buf[2]); in ds1390_read_time()89 dt->tm_wday = bcd2bin(chip->txrx_buf[3]); in ds1390_read_time()[all …]