Lines Matching refs:t
80 #define ls1x_get_sec(t) (((t) >> LS1X_SEC_OFFSET) & LS1X_SEC_MASK) argument
81 #define ls1x_get_min(t) (((t) >> LS1X_MIN_OFFSET) & LS1X_MIN_MASK) argument
82 #define ls1x_get_hour(t) (((t) >> LS1X_HOUR_OFFSET) & LS1X_HOUR_MASK) argument
83 #define ls1x_get_day(t) (((t) >> LS1X_DAY_OFFSET) & LS1X_DAY_MASK) argument
84 #define ls1x_get_month(t) (((t) >> LS1X_MONTH_OFFSET) & LS1X_MONTH_MASK) argument
91 time64_t t; in ls1x_rtc_read_time() local
94 t = readl(SYS_TOYREAD1); in ls1x_rtc_read_time()
97 t = mktime64((t & LS1X_YEAR_MASK), ls1x_get_month(v), in ls1x_rtc_read_time()
100 rtc_time64_to_tm(t, rtm); in ls1x_rtc_read_time()
107 unsigned long v, t, c; in ls1x_rtc_set_time() local
127 t = rtm->tm_year + 1900; in ls1x_rtc_set_time()
128 writel(t, SYS_TOYWRITE1); in ls1x_rtc_set_time()