Searched refs:alarmvals (Results 1 – 5 of 5) sorted by relevance
/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 | 320 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 …]
|
D | rtc-rv8803.c | 349 u8 alarmvals[3]; in rv8803_get_alarm() local 352 ret = rv8803_read_regs(client, RV8803_ALARM_MIN, 3, alarmvals); in rv8803_get_alarm() 360 alarmvals[0] &= 0x7f; in rv8803_get_alarm() 361 alarmvals[1] &= 0x3f; in rv8803_get_alarm() 362 alarmvals[2] &= 0x3f; in rv8803_get_alarm() 364 if (!bcd_is_valid(alarmvals[0]) || in rv8803_get_alarm() 365 !bcd_is_valid(alarmvals[1]) || in rv8803_get_alarm() 366 !bcd_is_valid(alarmvals[2])) in rv8803_get_alarm() 370 alrm->time.tm_min = bcd2bin(alarmvals[0]); in rv8803_get_alarm() 371 alrm->time.tm_hour = bcd2bin(alarmvals[1]); in rv8803_get_alarm() [all …]
|
D | rtc-rv3032.c | 280 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 …]
|
D | rtc-rv3028.c | 368 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 …]
|