Searched refs:alarmvals (Results 1 – 4 of 4) sorted by relevance
/drivers/rtc/ |
D | rtc-rx8010.c | 253 u8 alarmvals[3]; in rx8010_read_alarm() local 257 err = i2c_smbus_read_i2c_block_data(client, RX8010_ALMIN, 3, alarmvals); in rx8010_read_alarm() 266 t->time.tm_min = bcd2bin(alarmvals[0] & 0x7f); in rx8010_read_alarm() 267 t->time.tm_hour = bcd2bin(alarmvals[1] & 0x3f); in rx8010_read_alarm() 269 if (!(alarmvals[2] & RX8010_ALARM_AE)) in rx8010_read_alarm() 270 t->time.tm_mday = bcd2bin(alarmvals[2] & 0x7f); in rx8010_read_alarm() 282 u8 alarmvals[3]; in rx8010_set_alarm() local 305 alarmvals[0] = bin2bcd(t->time.tm_min); in rx8010_set_alarm() 306 alarmvals[1] = bin2bcd(t->time.tm_hour); in rx8010_set_alarm() 307 alarmvals[2] = bin2bcd(t->time.tm_mday); in rx8010_set_alarm() [all …]
|
D | rtc-m41t80.c | 324 u8 alarmvals[5]; in m41t80_set_alarm() local 327 alarmvals[0] = bin2bcd(alrm->time.tm_mon + 1); in m41t80_set_alarm() 328 alarmvals[1] = bin2bcd(alrm->time.tm_mday); in m41t80_set_alarm() 329 alarmvals[2] = bin2bcd(alrm->time.tm_hour); in m41t80_set_alarm() 330 alarmvals[3] = bin2bcd(alrm->time.tm_min); in m41t80_set_alarm() 331 alarmvals[4] = bin2bcd(alrm->time.tm_sec); in m41t80_set_alarm() 345 alarmvals[0] |= (ret & M41T80_ALMON_SQWE); in m41t80_set_alarm() 360 5, alarmvals); in m41t80_set_alarm() 366 alarmvals[0] |= M41T80_ALMON_AFE; in m41t80_set_alarm() 368 alarmvals[0]); in m41t80_set_alarm() [all …]
|
D | rtc-rv3028.c | 274 u8 alarmvals[3]; in rv3028_get_alarm() local 277 ret = regmap_bulk_read(rv3028->regmap, RV3028_ALARM_MIN, alarmvals, in rv3028_get_alarm() 278 sizeof(alarmvals)); in rv3028_get_alarm() 291 alrm->time.tm_min = bcd2bin(alarmvals[0] & 0x7f); in rv3028_get_alarm() 292 alrm->time.tm_hour = bcd2bin(alarmvals[1] & 0x3f); in rv3028_get_alarm() 293 alrm->time.tm_mday = bcd2bin(alarmvals[2] & 0x3f); in rv3028_get_alarm() 304 u8 alarmvals[3]; in rv3028_set_alarm() local 321 alarmvals[0] = bin2bcd(alrm->time.tm_min); in rv3028_set_alarm() 322 alarmvals[1] = bin2bcd(alrm->time.tm_hour); in rv3028_set_alarm() 323 alarmvals[2] = bin2bcd(alrm->time.tm_mday); in rv3028_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()
|