Lines Matching refs:t
225 static int rx8010_read_alarm(struct device *dev, struct rtc_wkalrm *t) in rx8010_read_alarm() argument
239 t->time.tm_sec = 0; 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()
244 t->time.tm_mday = bcd2bin(alarmvals[2] & 0x7f); in rx8010_read_alarm()
246 t->enabled = !!(rx8010->ctrlreg & RX8010_CTRL_AIE); in rx8010_read_alarm()
247 t->pending = (flagreg & RX8010_FLAG_AF) && t->enabled; in rx8010_read_alarm()
252 static int rx8010_set_alarm(struct device *dev, struct rtc_wkalrm *t) in rx8010_set_alarm() argument
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()
288 if (t->enabled) { in rx8010_set_alarm()