Home
last modified time | relevance | path

Searched refs:rtc_time (Results 1 – 25 of 62) sorted by relevance

123

/u-boot/include/
A Drtc.h33 int (*get)(struct udevice *dev, struct rtc_time *time);
44 int (*set)(struct udevice *dev, const struct rtc_time *time);
112 int dm_rtc_get(struct udevice *dev, struct rtc_time *time);
121 int dm_rtc_set(struct udevice *dev, struct rtc_time *time);
223 int rtc_get (struct rtc_time *);
224 int rtc_set (struct rtc_time *);
288 int rtc_calc_weekday(struct rtc_time *time);
301 void rtc_to_tm(u64 time_t, struct rtc_time *time);
314 unsigned long rtc_mktime(const struct rtc_time *time);
A Drtc_def.h23 struct rtc_time { struct
A Dos.h16 struct rtc_time;
339 void os_localtime(struct rtc_time *rt);
/u-boot/post/drivers/
A Drtc.c33 struct rtc_time tm1; in rtc_post_skip()
34 struct rtc_time tm2; in rtc_post_skip()
59 static void rtc_post_restore (struct rtc_time *tm, unsigned int sec) in rtc_post_restore()
62 struct rtc_time ntm; in rtc_post_restore()
73 struct rtc_time svtm; in rtc_post_test()
118 struct rtc_time tm; in rtc_post_test()
149 struct rtc_time tm; in rtc_post_test()
/u-boot/lib/
A Ddate.c30 int rtc_calc_weekday(struct rtc_time *tm) in rtc_calc_weekday()
81 unsigned long rtc_mktime(const struct rtc_time *tm) in rtc_mktime()
108 struct rtc_time time; in mktime64()
117 return (time64_t)rtc_mktime((const struct rtc_time *)&time); in mktime64()
/u-boot/drivers/rtc/
A Dmvrtc.c22 static int __mv_rtc_get(struct mvrtc_registers *regs, struct rtc_time *t) in __mv_rtc_get()
60 int rtc_get(struct rtc_time *t) in rtc_get()
69 static int __mv_rtc_set(struct mvrtc_registers *regs, const struct rtc_time *t) in __mv_rtc_set()
99 int rtc_set(struct rtc_time *t) in rtc_set()
134 static int mv_rtc_get(struct udevice *dev, struct rtc_time *tm) in mv_rtc_get()
142 static int mv_rtc_set(struct udevice *dev, const struct rtc_time *tm) in mv_rtc_set()
A Di2c_rtc_emul.c80 struct rtc_time now; in reset_time()
88 static int sandbox_i2c_rtc_get(struct udevice *dev, struct rtc_time *time) in sandbox_i2c_rtc_get()
91 struct rtc_time tm_now; in sandbox_i2c_rtc_get()
106 static int sandbox_i2c_rtc_set(struct udevice *dev, const struct rtc_time *time) in sandbox_i2c_rtc_set()
109 struct rtc_time tm_now; in sandbox_i2c_rtc_set()
128 struct rtc_time time; in sandbox_i2c_rtc_prepare_read()
149 struct rtc_time time; in sandbox_i2c_rtc_complete_write()
A Dmc146818.c82 static int mc146818_get(struct rtc_time *tmp) in mc146818_get()
134 static int mc146818_set(struct rtc_time *tmp) in mc146818_set()
200 static int rtc_mc146818_get(struct udevice *dev, struct rtc_time *time) in rtc_mc146818_get()
205 static int rtc_mc146818_set(struct udevice *dev, const struct rtc_time *time) in rtc_mc146818_set()
207 return mc146818_set((struct rtc_time *)time); in rtc_mc146818_set()
259 int rtc_get(struct rtc_time *tmp) in rtc_get()
264 int rtc_set(struct rtc_time *tmp) in rtc_set()
A Dmxsrtc.c39 int rtc_get(struct rtc_time *time) in rtc_get()
50 int rtc_set(struct rtc_time *time) in rtc_set()
A Dmc13xxx-rtc.c12 int rtc_get(struct rtc_time *rtc) in rtc_get()
46 int rtc_set(struct rtc_time *rtc) in rtc_set()
A Dm41t62.c65 static void m41t62_update_rtc_time(struct rtc_time *tm, u8 *buf) in m41t62_update_rtc_time()
91 static void m41t62_set_rtc_buf(const struct rtc_time *tm, u8 *buf) in m41t62_set_rtc_buf()
116 static int m41t62_rtc_get(struct udevice *dev, struct rtc_time *tm) in m41t62_rtc_get()
130 static int m41t62_rtc_set(struct udevice *dev, const struct rtc_time *tm) in m41t62_rtc_set()
318 int rtc_get(struct rtc_time *tm) in rtc_get()
328 int rtc_set(struct rtc_time *tm) in rtc_set()
A Dat91sam9_rtt.c30 int rtc_get (struct rtc_time *tmp) in rtc_get()
48 int rtc_set (struct rtc_time *tmp) in rtc_set()
A Dmx27rtc.c18 int rtc_get(struct rtc_time *time) in rtc_get()
37 int rtc_set(struct rtc_time *time) in rtc_set()
A Demul_rtc.c29 static int emul_rtc_get(struct udevice *dev, struct rtc_time *time) in emul_rtc_get()
42 static int emul_rtc_set(struct udevice *dev, const struct rtc_time *time) in emul_rtc_set()
A Ds35392a.c132 static int validate_time(const struct rtc_time *tm) in validate_time()
194 static int s35392a_rtc_get(DEV_TYPE *dev, struct rtc_time *tm) in s35392a_rtc_get()
230 static int s35392a_rtc_set(DEV_TYPE *dev, const struct rtc_time *tm) in s35392a_rtc_set()
316 int rtc_get(struct rtc_time *tm) in rtc_get()
321 int rtc_set(struct rtc_time *tm) in rtc_set()
A Dftrtc010.c76 int rtc_get(struct rtc_time *tmp) in rtc_get()
97 int rtc_set(struct rtc_time *tmp) in rtc_set()
A Drx8010sj.c122 static int validate_time(const struct rtc_time *tm) in validate_time()
206 static int rx8010sj_rtc_get(DEV_TYPE *dev, struct rtc_time *tmp) in rx8010sj_rtc_get()
250 static int rx8010sj_rtc_set(DEV_TYPE *dev, const struct rtc_time *tm) in rx8010sj_rtc_set()
313 int rtc_get(struct rtc_time *tm) in rtc_get()
322 int rtc_set(struct rtc_time *tm) in rtc_set()
A Drv8803.c39 static int rv8803_rtc_set(struct udevice *dev, const struct rtc_time *tm) in rv8803_rtc_set()
66 static int rv8803_rtc_get(struct udevice *dev, struct rtc_time *tm) in rv8803_rtc_get()
109 struct rtc_time tmp = { in rv8803_rtc_reset()
A Dpcf8563.c26 int rtc_get (struct rtc_time *tmp) in rtc_get()
71 int rtc_set (struct rtc_time *tmp) in rtc_set()
122 static int pcf8563_rtc_get(struct udevice *dev, struct rtc_time *tmp) in pcf8563_rtc_get()
167 static int pcf8563_rtc_set(struct udevice *dev, const struct rtc_time *tmp) in pcf8563_rtc_set()
A Drx8025.c99 static int rx8025_rtc_get(DEV_TYPE *dev, struct rtc_time *tmp)
168 static int rx8025_rtc_set(DEV_TYPE *dev, const struct rtc_time *tmp)
280 int rtc_get(struct rtc_time *tm)
289 int rtc_set(struct rtc_time *tm)
A Drs5c372.c117 rs5c372_convert_to_time(struct rtc_time *dt, unsigned char *buf) in rs5c372_convert_to_time()
156 rtc_get (struct rtc_time *tmp) in rtc_get()
184 int rtc_set (struct rtc_time *tmp) in rtc_set()
A Dpl031.c64 static int pl031_get(struct udevice *dev, struct rtc_time *tm) in pl031_get()
85 static int pl031_set(struct udevice *dev, const struct rtc_time *tm) in pl031_set()
A Dmax6900.c38 int rtc_get (struct rtc_time *tmp) in rtc_get()
82 int rtc_set (struct rtc_time *tmp) in rtc_set()
/u-boot/cmd/
A Ddate.c29 int mk_date (const char *, struct rtc_time *);
31 static struct rtc_time default_tm = { 0, 0, 0, 1, 1, 2000, 6, 0, 0 };
36 struct rtc_time tm; in do_date()
159 int mk_date (const char *datestr, struct rtc_time *tmp) in mk_date()
/u-boot/test/dm/
A Drtc.c33 static void show_time(const char *msg, struct rtc_time *time) in show_time()
40 static int cmp_times(struct rtc_time *expect, struct rtc_time *time, bool show) in cmp_times()
61 struct rtc_time now, time, cmp; in dm_test_rtc_set_get()
138 struct rtc_time time; in dm_test_rtc_read_write()
240 struct rtc_time now; in dm_test_rtc_reset()
266 struct rtc_time now1, now2, cmp; in dm_test_rtc_dual()

Completed in 36 milliseconds

123