Home
last modified time | relevance | path

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

/linux-4.19.296/drivers/rtc/
Drtc-rx8010.c257 u8 alarmvals[3]; in rx8010_read_alarm() local
261 err = i2c_smbus_read_i2c_block_data(client, RX8010_ALMIN, 3, alarmvals); in rx8010_read_alarm()
270 t->time.tm_min = bcd2bin(alarmvals[0] & 0x7f); in rx8010_read_alarm()
271 t->time.tm_hour = bcd2bin(alarmvals[1] & 0x3f); in rx8010_read_alarm()
273 if (!(alarmvals[2] & RX8010_ALARM_AE)) in rx8010_read_alarm()
274 t->time.tm_mday = bcd2bin(alarmvals[2] & 0x7f); in rx8010_read_alarm()
286 u8 alarmvals[3]; in rx8010_set_alarm() local
309 alarmvals[0] = bin2bcd(t->time.tm_min); in rx8010_set_alarm()
310 alarmvals[1] = bin2bcd(t->time.tm_hour); in rx8010_set_alarm()
311 alarmvals[2] = bin2bcd(t->time.tm_mday); in rx8010_set_alarm()
[all …]
Drtc-m41t80.c325 u8 alarmvals[5]; in m41t80_set_alarm() local
328 alarmvals[0] = bin2bcd(alrm->time.tm_mon + 1); in m41t80_set_alarm()
329 alarmvals[1] = bin2bcd(alrm->time.tm_mday); in m41t80_set_alarm()
330 alarmvals[2] = bin2bcd(alrm->time.tm_hour); in m41t80_set_alarm()
331 alarmvals[3] = bin2bcd(alrm->time.tm_min); in m41t80_set_alarm()
332 alarmvals[4] = bin2bcd(alrm->time.tm_sec); in m41t80_set_alarm()
346 alarmvals[0] |= (ret & M41T80_ALMON_SQWE); in m41t80_set_alarm()
361 5, alarmvals); in m41t80_set_alarm()
367 alarmvals[0] |= M41T80_ALMON_AFE; in m41t80_set_alarm()
369 alarmvals[0]); in m41t80_set_alarm()
[all …]
Drtc-rv8803.c290 u8 alarmvals[3]; in rv8803_get_alarm() local
293 ret = rv8803_read_regs(client, RV8803_ALARM_MIN, 3, alarmvals); in rv8803_get_alarm()
302 alrm->time.tm_min = bcd2bin(alarmvals[0] & 0x7f); in rv8803_get_alarm()
303 alrm->time.tm_hour = bcd2bin(alarmvals[1] & 0x3f); in rv8803_get_alarm()
304 alrm->time.tm_mday = bcd2bin(alarmvals[2] & 0x3f); in rv8803_get_alarm()
316 u8 alarmvals[3]; in rv8803_set_alarm() local
336 alarmvals[0] = bin2bcd(alrm->time.tm_min); in rv8803_set_alarm()
337 alarmvals[1] = bin2bcd(alrm->time.tm_hour); in rv8803_set_alarm()
338 alarmvals[2] = bin2bcd(alrm->time.tm_mday); in rv8803_set_alarm()
356 err = rv8803_write_regs(rv8803->client, RV8803_ALARM_MIN, 3, alarmvals); in rv8803_set_alarm()