Home
last modified time | relevance | path

Searched refs:RX8010_SEC (Results 1 – 1 of 1) sorted by relevance

/Linux-v4.19/drivers/rtc/
Drtc-rx8010.c20 #define RX8010_SEC 0x10 macro
128 err = i2c_smbus_read_i2c_block_data(rx8010->client, RX8010_SEC, in rx8010_get_time()
133 dt->tm_sec = bcd2bin(date[RX8010_SEC - RX8010_SEC] & 0x7f); in rx8010_get_time()
134 dt->tm_min = bcd2bin(date[RX8010_MIN - RX8010_SEC] & 0x7f); in rx8010_get_time()
135 dt->tm_hour = bcd2bin(date[RX8010_HOUR - RX8010_SEC] & 0x3f); in rx8010_get_time()
136 dt->tm_mday = bcd2bin(date[RX8010_MDAY - RX8010_SEC] & 0x3f); in rx8010_get_time()
137 dt->tm_mon = bcd2bin(date[RX8010_MONTH - RX8010_SEC] & 0x1f) - 1; in rx8010_get_time()
138 dt->tm_year = bcd2bin(date[RX8010_YEAR - RX8010_SEC]) + 100; in rx8010_get_time()
139 dt->tm_wday = ffs(date[RX8010_WDAY - RX8010_SEC] & 0x7f); in rx8010_get_time()
164 date[RX8010_SEC - RX8010_SEC] = bin2bcd(dt->tm_sec); in rx8010_set_time()
[all …]