Home
last modified time | relevance | path

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

/linux-6.1.9/drivers/rtc/
Drtc-rx8010.c228 u8 alarmvals[3]; in rx8010_read_alarm() local
231 err = regmap_bulk_read(rx8010->regs, RX8010_ALMIN, alarmvals, 3); in rx8010_read_alarm()
240 t->time.tm_min = bcd2bin(alarmvals[0] & 0x7f); in rx8010_read_alarm()
241 t->time.tm_hour = bcd2bin(alarmvals[1] & 0x3f); in rx8010_read_alarm()
243 if (!(alarmvals[2] & RX8010_ALARM_AE)) in rx8010_read_alarm()
244 t->time.tm_mday = bcd2bin(alarmvals[2] & 0x7f); in rx8010_read_alarm()
255 u8 alarmvals[3]; in rx8010_set_alarm() local
269 alarmvals[0] = bin2bcd(t->time.tm_min); in rx8010_set_alarm()
270 alarmvals[1] = bin2bcd(t->time.tm_hour); in rx8010_set_alarm()
271 alarmvals[2] = bin2bcd(t->time.tm_mday); in rx8010_set_alarm()
[all …]
Drtc-m41t80.c320 u8 alarmvals[5]; in m41t80_set_alarm() local
323 alarmvals[0] = bin2bcd(alrm->time.tm_mon + 1); in m41t80_set_alarm()
324 alarmvals[1] = bin2bcd(alrm->time.tm_mday); in m41t80_set_alarm()
325 alarmvals[2] = bin2bcd(alrm->time.tm_hour); in m41t80_set_alarm()
326 alarmvals[3] = bin2bcd(alrm->time.tm_min); in m41t80_set_alarm()
327 alarmvals[4] = bin2bcd(alrm->time.tm_sec); in m41t80_set_alarm()
341 alarmvals[0] |= (ret & M41T80_ALMON_SQWE); in m41t80_set_alarm()
356 5, alarmvals); in m41t80_set_alarm()
362 alarmvals[0] |= M41T80_ALMON_AFE; in m41t80_set_alarm()
364 alarmvals[0]); in m41t80_set_alarm()
[all …]
Drtc-rv8803.c336 u8 alarmvals[3]; in rv8803_get_alarm() local
339 ret = rv8803_read_regs(client, RV8803_ALARM_MIN, 3, alarmvals); in rv8803_get_alarm()
348 alrm->time.tm_min = bcd2bin(alarmvals[0] & 0x7f); in rv8803_get_alarm()
349 alrm->time.tm_hour = bcd2bin(alarmvals[1] & 0x3f); in rv8803_get_alarm()
350 alrm->time.tm_mday = bcd2bin(alarmvals[2] & 0x3f); in rv8803_get_alarm()
362 u8 alarmvals[3]; in rv8803_set_alarm() local
382 alarmvals[0] = bin2bcd(alrm->time.tm_min); in rv8803_set_alarm()
383 alarmvals[1] = bin2bcd(alrm->time.tm_hour); in rv8803_set_alarm()
384 alarmvals[2] = bin2bcd(alrm->time.tm_mday); in rv8803_set_alarm()
402 err = rv8803_write_regs(rv8803->client, RV8803_ALARM_MIN, 3, alarmvals); in rv8803_set_alarm()
Drtc-rv3028.c368 u8 alarmvals[3]; in rv3028_get_alarm() local
371 ret = regmap_bulk_read(rv3028->regmap, RV3028_ALARM_MIN, alarmvals, in rv3028_get_alarm()
372 sizeof(alarmvals)); in rv3028_get_alarm()
385 alrm->time.tm_min = bcd2bin(alarmvals[0] & 0x7f); in rv3028_get_alarm()
386 alrm->time.tm_hour = bcd2bin(alarmvals[1] & 0x3f); in rv3028_get_alarm()
387 alrm->time.tm_mday = bcd2bin(alarmvals[2] & 0x3f); in rv3028_get_alarm()
398 u8 alarmvals[3]; in rv3028_set_alarm() local
415 alarmvals[0] = bin2bcd(alrm->time.tm_min); in rv3028_set_alarm()
416 alarmvals[1] = bin2bcd(alrm->time.tm_hour); in rv3028_set_alarm()
417 alarmvals[2] = bin2bcd(alrm->time.tm_mday); in rv3028_set_alarm()
[all …]
Drtc-rv3032.c280 u8 alarmvals[3]; in rv3032_get_alarm() local
283 ret = regmap_bulk_read(rv3032->regmap, RV3032_ALARM_MIN, alarmvals, in rv3032_get_alarm()
284 sizeof(alarmvals)); in rv3032_get_alarm()
297 alrm->time.tm_min = bcd2bin(alarmvals[0] & 0x7f); in rv3032_get_alarm()
298 alrm->time.tm_hour = bcd2bin(alarmvals[1] & 0x3f); in rv3032_get_alarm()
299 alrm->time.tm_mday = bcd2bin(alarmvals[2] & 0x3f); in rv3032_get_alarm()
310 u8 alarmvals[3]; in rv3032_set_alarm() local
319 alarmvals[0] = bin2bcd(alrm->time.tm_min); in rv3032_set_alarm()
320 alarmvals[1] = bin2bcd(alrm->time.tm_hour); in rv3032_set_alarm()
321 alarmvals[2] = bin2bcd(alrm->time.tm_mday); in rv3032_set_alarm()
[all …]