Lines Matching refs:time
130 unsigned long time; in pl031_stv2_tm_to_time() local
133 rtc_tm_to_time(tm, &time); in pl031_stv2_tm_to_time()
134 rtc_time_to_tm(time, &calc_tm); in pl031_stv2_tm_to_time()
182 unsigned long time; in pl031_stv2_set_time() local
187 ret = pl031_stv2_tm_to_time(dev, tm, &time, &bcd_year); in pl031_stv2_set_time()
190 writel(time, ldata->base + RTC_LR); in pl031_stv2_set_time()
202 readl(ldata->base + RTC_YMR), &alarm->time); in pl031_stv2_read_alarm()
213 unsigned long time; in pl031_stv2_set_alarm() local
218 ret = rtc_valid_tm(&alarm->time); in pl031_stv2_set_alarm()
220 ret = pl031_stv2_tm_to_time(dev, &alarm->time, in pl031_stv2_set_alarm()
221 &time, &bcd_year); in pl031_stv2_set_alarm()
224 writel(time, ldata->base + RTC_MR); in pl031_stv2_set_alarm()
262 unsigned long time; in pl031_set_time() local
266 ret = rtc_tm_to_time(tm, &time); in pl031_set_time()
269 writel(time, ldata->base + RTC_LR); in pl031_set_time()
278 rtc_time_to_tm(readl(ldata->base + RTC_MR), &alarm->time); in pl031_read_alarm()
289 unsigned long time; in pl031_set_alarm() local
293 ret = rtc_valid_tm(&alarm->time); in pl031_set_alarm()
295 ret = rtc_tm_to_time(&alarm->time, &time); in pl031_set_alarm()
297 writel(time, ldata->base + RTC_MR); in pl031_set_alarm()
325 unsigned long time, data; in pl031_probe() local
367 time = readl(ldata->base + RTC_DR); in pl031_probe()
368 if ((time & in pl031_probe()
371 time = time | (0x7 << RTC_WDAY_SHIFT); in pl031_probe()
373 writel(time, ldata->base + RTC_LR); in pl031_probe()