Lines Matching defs:time
88 static int ds1374_read_rtc(struct i2c_client *client, u32 *time,
105 for (i = nbytes - 1, *time = 0; i >= 0; i--)
106 *time = (*time << 8) | buf[i];
111 static int ds1374_write_rtc(struct i2c_client *client, u32 time,
123 buf[i] = time & 0xff;
124 time >>= 8;
141 "oscillator discontinuity flagged, time unreliable\n");
162 static int ds1374_read_time(struct device *dev, struct rtc_time *time)
170 rtc_time64_to_tm(itime, time);
175 static int ds1374_set_time(struct device *dev, struct rtc_time *time)
178 unsigned long itime = rtc_tm_to_time64(time);
185 * If the time of day is changed, then the alarm will need to be
217 rtc_time64_to_tm(now + cur_alarm, &alarm->time);
242 new_alarm = rtc_tm_to_time64(&alarm->time);
414 /* Set new watchdog time */