Lines Matching refs:t
285 static int abx80x_read_alarm(struct device *dev, struct rtc_wkalrm *t) in abx80x_read_alarm() argument
304 t->time.tm_sec = bcd2bin(buf[0] & 0x7F); in abx80x_read_alarm()
305 t->time.tm_min = bcd2bin(buf[1] & 0x7F); in abx80x_read_alarm()
306 t->time.tm_hour = bcd2bin(buf[2] & 0x3F); in abx80x_read_alarm()
307 t->time.tm_mday = bcd2bin(buf[3] & 0x3F); in abx80x_read_alarm()
308 t->time.tm_mon = bcd2bin(buf[4] & 0x1F) - 1; in abx80x_read_alarm()
309 t->time.tm_wday = buf[5] & 0x7; in abx80x_read_alarm()
311 t->enabled = !!(irq_mask & ABX8XX_IRQ_AIE); in abx80x_read_alarm()
312 t->pending = (buf[6] & ABX8XX_STATUS_AF) && t->enabled; in abx80x_read_alarm()
317 static int abx80x_set_alarm(struct device *dev, struct rtc_wkalrm *t) in abx80x_set_alarm() argument
327 alarm[1] = bin2bcd(t->time.tm_sec); in abx80x_set_alarm()
328 alarm[2] = bin2bcd(t->time.tm_min); in abx80x_set_alarm()
329 alarm[3] = bin2bcd(t->time.tm_hour); in abx80x_set_alarm()
330 alarm[4] = bin2bcd(t->time.tm_mday); in abx80x_set_alarm()
331 alarm[5] = bin2bcd(t->time.tm_mon + 1); in abx80x_set_alarm()
340 if (t->enabled) { in abx80x_set_alarm()