Searched refs:txrx_buf (Results 1 – 1 of 1) sorted by relevance
53 u8 txrx_buf[9]; /* cmd + 8 registers */ member80 chip->txrx_buf[0] = address & 0x7f; in ds1390_get_reg()82 status = spi_write_then_read(spi, chip->txrx_buf, 1, chip->txrx_buf, 1); in ds1390_get_reg()86 *data = chip->txrx_buf[0]; in ds1390_get_reg()137 chip->txrx_buf[0] = DS1390_REG_SECONDS; in ds1390_read_time()140 status = spi_write_then_read(spi, chip->txrx_buf, 1, chip->txrx_buf, 8); in ds1390_read_time()146 dt->tm_sec = bcd2bin(chip->txrx_buf[0]); in ds1390_read_time()147 dt->tm_min = bcd2bin(chip->txrx_buf[1]); in ds1390_read_time()148 dt->tm_hour = bcd2bin(chip->txrx_buf[2]); in ds1390_read_time()149 dt->tm_wday = bcd2bin(chip->txrx_buf[3]); in ds1390_read_time()[all …]