Searched refs:alarmvals (Results 1 – 5 of 5) sorted by relevance
/kernel/linux/linux-5.10/drivers/rtc/ |
D | rtc-rx8010.c | 228 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 …]
|
D | rtc-m41t80.c | 321 u8 alarmvals[5]; in m41t80_set_alarm() local 324 alarmvals[0] = bin2bcd(alrm->time.tm_mon + 1); in m41t80_set_alarm() 325 alarmvals[1] = bin2bcd(alrm->time.tm_mday); in m41t80_set_alarm() 326 alarmvals[2] = bin2bcd(alrm->time.tm_hour); in m41t80_set_alarm() 327 alarmvals[3] = bin2bcd(alrm->time.tm_min); in m41t80_set_alarm() 328 alarmvals[4] = bin2bcd(alrm->time.tm_sec); in m41t80_set_alarm() 342 alarmvals[0] |= (ret & M41T80_ALMON_SQWE); in m41t80_set_alarm() 357 5, alarmvals); in m41t80_set_alarm() 363 alarmvals[0] |= M41T80_ALMON_AFE; in m41t80_set_alarm() 365 alarmvals[0]); in m41t80_set_alarm() [all …]
|
D | rtc-rv8803.c | 283 u8 alarmvals[3]; in rv8803_get_alarm() local 286 ret = rv8803_read_regs(client, RV8803_ALARM_MIN, 3, alarmvals); in rv8803_get_alarm() 295 alrm->time.tm_min = bcd2bin(alarmvals[0] & 0x7f); in rv8803_get_alarm() 296 alrm->time.tm_hour = bcd2bin(alarmvals[1] & 0x3f); in rv8803_get_alarm() 297 alrm->time.tm_mday = bcd2bin(alarmvals[2] & 0x3f); in rv8803_get_alarm() 309 u8 alarmvals[3]; in rv8803_set_alarm() local 329 alarmvals[0] = bin2bcd(alrm->time.tm_min); in rv8803_set_alarm() 330 alarmvals[1] = bin2bcd(alrm->time.tm_hour); in rv8803_set_alarm() 331 alarmvals[2] = bin2bcd(alrm->time.tm_mday); in rv8803_set_alarm() 349 err = rv8803_write_regs(rv8803->client, RV8803_ALARM_MIN, 3, alarmvals); in rv8803_set_alarm()
|
D | rtc-rv3032.c | 279 u8 alarmvals[3]; in rv3032_get_alarm() local 282 ret = regmap_bulk_read(rv3032->regmap, RV3032_ALARM_MIN, alarmvals, in rv3032_get_alarm() 283 sizeof(alarmvals)); in rv3032_get_alarm() 296 alrm->time.tm_min = bcd2bin(alarmvals[0] & 0x7f); in rv3032_get_alarm() 297 alrm->time.tm_hour = bcd2bin(alarmvals[1] & 0x3f); in rv3032_get_alarm() 298 alrm->time.tm_mday = bcd2bin(alarmvals[2] & 0x3f); in rv3032_get_alarm() 309 u8 alarmvals[3]; in rv3032_set_alarm() local 326 alarmvals[0] = bin2bcd(alrm->time.tm_min); in rv3032_set_alarm() 327 alarmvals[1] = bin2bcd(alrm->time.tm_hour); in rv3032_set_alarm() 328 alarmvals[2] = bin2bcd(alrm->time.tm_mday); in rv3032_set_alarm() [all …]
|
D | rtc-rv3028.c | 366 u8 alarmvals[3]; in rv3028_get_alarm() local 369 ret = regmap_bulk_read(rv3028->regmap, RV3028_ALARM_MIN, alarmvals, in rv3028_get_alarm() 370 sizeof(alarmvals)); in rv3028_get_alarm() 383 alrm->time.tm_min = bcd2bin(alarmvals[0] & 0x7f); in rv3028_get_alarm() 384 alrm->time.tm_hour = bcd2bin(alarmvals[1] & 0x3f); in rv3028_get_alarm() 385 alrm->time.tm_mday = bcd2bin(alarmvals[2] & 0x3f); in rv3028_get_alarm() 396 u8 alarmvals[3]; in rv3028_set_alarm() local 413 alarmvals[0] = bin2bcd(alrm->time.tm_min); in rv3028_set_alarm() 414 alarmvals[1] = bin2bcd(alrm->time.tm_hour); in rv3028_set_alarm() 415 alarmvals[2] = bin2bcd(alrm->time.tm_mday); in rv3028_set_alarm() [all …]
|