txrx_buf           50 drivers/rtc/rtc-ds1390.c 	u8 txrx_buf[9];	/* cmd + 8 registers */
txrx_buf           77 drivers/rtc/rtc-ds1390.c 	chip->txrx_buf[0] = address & 0x7f;
txrx_buf           79 drivers/rtc/rtc-ds1390.c 	status = spi_write_then_read(spi, chip->txrx_buf, 1, chip->txrx_buf, 1);
txrx_buf           83 drivers/rtc/rtc-ds1390.c 	*data = chip->txrx_buf[0];
txrx_buf          134 drivers/rtc/rtc-ds1390.c 	chip->txrx_buf[0] = DS1390_REG_SECONDS;
txrx_buf          137 drivers/rtc/rtc-ds1390.c 	status = spi_write_then_read(spi, chip->txrx_buf, 1, chip->txrx_buf, 8);
txrx_buf          143 drivers/rtc/rtc-ds1390.c 	dt->tm_sec	= bcd2bin(chip->txrx_buf[0]);
txrx_buf          144 drivers/rtc/rtc-ds1390.c 	dt->tm_min	= bcd2bin(chip->txrx_buf[1]);
txrx_buf          145 drivers/rtc/rtc-ds1390.c 	dt->tm_hour	= bcd2bin(chip->txrx_buf[2]);
txrx_buf          146 drivers/rtc/rtc-ds1390.c 	dt->tm_wday	= bcd2bin(chip->txrx_buf[3]);
txrx_buf          147 drivers/rtc/rtc-ds1390.c 	dt->tm_mday	= bcd2bin(chip->txrx_buf[4]);
txrx_buf          149 drivers/rtc/rtc-ds1390.c 	dt->tm_mon	= bcd2bin(chip->txrx_buf[5] & 0x7f) - 1;
txrx_buf          151 drivers/rtc/rtc-ds1390.c 	dt->tm_year = bcd2bin(chip->txrx_buf[6]) + ((chip->txrx_buf[5] & 0x80) ? 100 : 0);
txrx_buf          162 drivers/rtc/rtc-ds1390.c 	chip->txrx_buf[0] = DS1390_REG_SECONDS | 0x80;
txrx_buf          163 drivers/rtc/rtc-ds1390.c 	chip->txrx_buf[1] = bin2bcd(dt->tm_sec);
txrx_buf          164 drivers/rtc/rtc-ds1390.c 	chip->txrx_buf[2] = bin2bcd(dt->tm_min);
txrx_buf          165 drivers/rtc/rtc-ds1390.c 	chip->txrx_buf[3] = bin2bcd(dt->tm_hour);
txrx_buf          166 drivers/rtc/rtc-ds1390.c 	chip->txrx_buf[4] = bin2bcd(dt->tm_wday);
txrx_buf          167 drivers/rtc/rtc-ds1390.c 	chip->txrx_buf[5] = bin2bcd(dt->tm_mday);
txrx_buf          168 drivers/rtc/rtc-ds1390.c 	chip->txrx_buf[6] = bin2bcd(dt->tm_mon + 1) |
txrx_buf          170 drivers/rtc/rtc-ds1390.c 	chip->txrx_buf[7] = bin2bcd(dt->tm_year % 100);
txrx_buf          173 drivers/rtc/rtc-ds1390.c 	return spi_write_then_read(spi, chip->txrx_buf, 8, NULL, 0);