Lines Matching refs:t
340 int t = tmp & 0x3f; in rs5c372_get_trim() local
343 t = (~t | (s8)0xc0) + 1; in rs5c372_get_trim()
345 t = t - 1; in rs5c372_get_trim()
347 tmp = t * 2; in rs5c372_get_trim()
398 static int rs5c_read_alarm(struct device *dev, struct rtc_wkalrm *t) in rs5c_read_alarm() argument
409 t->time.tm_sec = 0; in rs5c_read_alarm()
410 t->time.tm_min = bcd2bin(rs5c->regs[RS5C_REG_ALARM_A_MIN] & 0x7f); in rs5c_read_alarm()
411 t->time.tm_hour = rs5c_reg2hr(rs5c, rs5c->regs[RS5C_REG_ALARM_A_HOURS]); in rs5c_read_alarm()
414 t->enabled = !!(rs5c->regs[RS5C_REG_CTRL1] & RS5C_CTRL1_AALE); in rs5c_read_alarm()
415 t->pending = !!(rs5c->regs[RS5C_REG_CTRL2] & RS5C_CTRL2_AAFG); in rs5c_read_alarm()
420 static int rs5c_set_alarm(struct device *dev, struct rtc_wkalrm *t) in rs5c_set_alarm() argument
428 if (t->time.tm_mday != -1 in rs5c_set_alarm()
429 || t->time.tm_mon != -1 in rs5c_set_alarm()
430 || t->time.tm_year != -1) in rs5c_set_alarm()
450 buf[0] = bin2bcd(t->time.tm_min); in rs5c_set_alarm()
451 buf[1] = rs5c_hr2reg(rs5c, t->time.tm_hour); in rs5c_set_alarm()
463 if (t->enabled) { in rs5c_set_alarm()