| /u-boot/include/ |
| A D | rtc.h | 33 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 D | rtc_def.h | 23 struct rtc_time { struct
|
| A D | os.h | 16 struct rtc_time; 339 void os_localtime(struct rtc_time *rt);
|
| /u-boot/post/drivers/ |
| A D | rtc.c | 33 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 D | date.c | 30 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 D | mvrtc.c | 22 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 D | i2c_rtc_emul.c | 80 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 D | mc146818.c | 82 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 D | mxsrtc.c | 39 int rtc_get(struct rtc_time *time) in rtc_get() 50 int rtc_set(struct rtc_time *time) in rtc_set()
|
| A D | mc13xxx-rtc.c | 12 int rtc_get(struct rtc_time *rtc) in rtc_get() 46 int rtc_set(struct rtc_time *rtc) in rtc_set()
|
| A D | m41t62.c | 65 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 D | at91sam9_rtt.c | 30 int rtc_get (struct rtc_time *tmp) in rtc_get() 48 int rtc_set (struct rtc_time *tmp) in rtc_set()
|
| A D | mx27rtc.c | 18 int rtc_get(struct rtc_time *time) in rtc_get() 37 int rtc_set(struct rtc_time *time) in rtc_set()
|
| A D | emul_rtc.c | 29 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 D | s35392a.c | 132 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 D | ftrtc010.c | 76 int rtc_get(struct rtc_time *tmp) in rtc_get() 97 int rtc_set(struct rtc_time *tmp) in rtc_set()
|
| A D | rx8010sj.c | 122 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 D | rv8803.c | 39 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 D | pcf8563.c | 26 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 D | rx8025.c | 99 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 D | rs5c372.c | 117 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 D | pl031.c | 64 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 D | max6900.c | 38 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 D | date.c | 29 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 D | rtc.c | 33 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()
|