Lines Matching full:time
24 * get() - get the current time
26 * Returns the current time read from the RTC device. The driver
30 * @time: Place to put the time that is read
32 int (*get)(struct udevice *dev, struct rtc_time *time);
35 * set() - set the current time
37 * Sets the time in the RTC device. The driver can expect every
41 * @time: Time to write
43 int (*set)(struct udevice *dev, const struct rtc_time *time);
48 * This function resets the RTC to a known-good state. The time may
88 * dm_rtc_get() - Read the time from an RTC
91 * @time: Place to put the current time
94 int dm_rtc_get(struct udevice *dev, struct rtc_time *time);
97 * dm_rtc_put() - Write a time to an RTC
100 * @time: Time to write into the RTC
103 int dm_rtc_set(struct udevice *dev, struct rtc_time *time);
110 * After resetting the RTC the time should then be set to a known value by
223 * rtc_init() - Set up the real time clock ready for use
229 * rtc_calc_weekday() - Work out the weekday from a time
232 * It sets time->tm_wdaay to the correct day of the week.
234 * @time: Time to inspect. tm_wday is updated
237 int rtc_calc_weekday(struct rtc_time *time);
240 * rtc_to_tm() - Convert a time_t value into a broken-out time
248 * @time: Place to put the broken-out time
251 int rtc_to_tm(int time_t, struct rtc_time *time);
254 * rtc_mktime() - Convert a broken-out time into a time_t value
261 * @time: Broken-out time to convert
264 unsigned long rtc_mktime(const struct rtc_time *time);