Lines Matching refs:alarmvals
325 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()
380 u8 alarmvals[5]; in m41t80_read_alarm() local
384 5, alarmvals); in m41t80_read_alarm()
392 alrm->time.tm_sec = bcd2bin(alarmvals[4] & 0x7f); in m41t80_read_alarm()
393 alrm->time.tm_min = bcd2bin(alarmvals[3] & 0x7f); in m41t80_read_alarm()
394 alrm->time.tm_hour = bcd2bin(alarmvals[2] & 0x3f); in m41t80_read_alarm()
395 alrm->time.tm_mday = bcd2bin(alarmvals[1] & 0x3f); in m41t80_read_alarm()
396 alrm->time.tm_mon = bcd2bin(alarmvals[0] & 0x3f) - 1; in m41t80_read_alarm()
398 alrm->enabled = !!(alarmvals[0] & M41T80_ALMON_AFE); in m41t80_read_alarm()