Lines Matching defs:time
85 static int ds1374_read_rtc(struct i2c_client *client, u32 *time,
102 for (i = nbytes - 1, *time = 0; i >= 0; i--)
103 *time = (*time << 8) | buf[i];
108 static int ds1374_write_rtc(struct i2c_client *client, u32 time,
120 buf[i] = time & 0xff;
121 time >>= 8;
138 "oscillator discontinuity flagged, time unreliable\n");
159 static int ds1374_read_time(struct device *dev, struct rtc_time *time)
167 rtc_time64_to_tm(itime, time);
172 static int ds1374_set_time(struct device *dev, struct rtc_time *time)
175 unsigned long itime = rtc_tm_to_time64(time);
182 * If the time of day is changed, then the alarm will need to be
214 rtc_time64_to_tm(now + cur_alarm, &alarm->time);
239 new_alarm = rtc_tm_to_time64(&alarm->time);
411 /* Set new watchdog time */