Home
last modified time | relevance | path

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

12

/rk3399_rockchip-uboot/include/
H A Drtc.h32 int (*get)(struct udevice *dev, struct rtc_time *time);
43 int (*set)(struct udevice *dev, const struct rtc_time *time);
94 int dm_rtc_get(struct udevice *dev, struct rtc_time *time);
103 int dm_rtc_set(struct udevice *dev, struct rtc_time *time);
185 int rtc_get (struct rtc_time *);
186 int rtc_set (struct rtc_time *);
237 int rtc_calc_weekday(struct rtc_time *time);
251 int rtc_to_tm(int time_t, struct rtc_time *time);
264 unsigned long rtc_mktime(const struct rtc_time *time);
H A Dos.h16 struct rtc_time;
311 void os_localtime(struct rtc_time *rt);
H A Drtc_def.h24 struct rtc_time { struct
/rk3399_rockchip-uboot/post/drivers/
H A Drtc.c34 struct rtc_time tm1; in rtc_post_skip()
35 struct rtc_time tm2; in rtc_post_skip()
60 static void rtc_post_restore (struct rtc_time *tm, unsigned int sec) in rtc_post_restore()
63 struct rtc_time ntm; in rtc_post_restore()
74 struct rtc_time svtm; in rtc_post_test()
119 struct rtc_time tm; in rtc_post_test()
150 struct rtc_time tm; in rtc_post_test()
/rk3399_rockchip-uboot/drivers/rtc/
H A Di2c_rtc_emul.c81 struct rtc_time now; in reset_time()
89 static int sandbox_i2c_rtc_get(struct udevice *dev, struct rtc_time *time) in sandbox_i2c_rtc_get()
92 struct rtc_time tm_now; in sandbox_i2c_rtc_get()
105 static int sandbox_i2c_rtc_set(struct udevice *dev, const struct rtc_time *time) in sandbox_i2c_rtc_set()
108 struct rtc_time tm_now; in sandbox_i2c_rtc_set()
126 struct rtc_time time; in sandbox_i2c_rtc_prepare_read()
147 struct rtc_time time; in sandbox_i2c_rtc_complete_write()
H A Dmc146818.c85 static int mc146818_get(struct rtc_time *tmp) in mc146818_get()
133 static int mc146818_set(struct rtc_time *tmp) in mc146818_set()
199 static int rtc_mc146818_get(struct udevice *dev, struct rtc_time *time) in rtc_mc146818_get()
204 static int rtc_mc146818_set(struct udevice *dev, const struct rtc_time *time) in rtc_mc146818_set()
206 return mc146818_set((struct rtc_time *)time); in rtc_mc146818_set()
258 int rtc_get(struct rtc_time *tmp) in rtc_get()
263 int rtc_set(struct rtc_time *tmp) in rtc_set()
H A Ddate.c34 int rtc_calc_weekday(struct rtc_time *tm) in rtc_calc_weekday()
69 int rtc_to_tm(int tim, struct rtc_time *tm) in rtc_to_tm()
124 unsigned long rtc_mktime(const struct rtc_time *tm) in rtc_mktime()
H A Dmxsrtc.c40 int rtc_get(struct rtc_time *time) in rtc_get()
51 int rtc_set(struct rtc_time *time) in rtc_set()
H A Dmc13xxx-rtc.c13 int rtc_get(struct rtc_time *rtc) in rtc_get()
47 int rtc_set(struct rtc_time *rtc) in rtc_set()
H A Drs5c372.c118 rs5c372_convert_to_time(struct rtc_time *dt, unsigned char *buf) in rs5c372_convert_to_time()
157 rtc_get (struct rtc_time *tmp) in rtc_get()
185 int rtc_set (struct rtc_time *tmp) in rtc_set()
255 struct rtc_time tmp; in rtc_reset()
H A Dpl031.c62 int rtc_set(struct rtc_time *tmp) in rtc_set()
85 int rtc_get(struct rtc_time *tmp) in rtc_get()
H A Dat91sam9_rtt.c33 int rtc_get (struct rtc_time *tmp) in rtc_get()
51 int rtc_set (struct rtc_time *tmp) in rtc_set()
H A Dds1307.c81 int rtc_get (struct rtc_time *tmp) in rtc_get()
148 int rtc_set (struct rtc_time *tmp) in rtc_set()
187 struct rtc_time tmp; in rtc_reset()
230 static int ds1307_rtc_set(struct udevice *dev, const struct rtc_time *tm) in ds1307_rtc_set()
263 static int ds1307_rtc_get(struct udevice *dev, struct rtc_time *tm) in ds1307_rtc_get()
324 struct rtc_time tmp = { in ds1307_rtc_reset()
H A Dmx27rtc.c19 int rtc_get(struct rtc_time *time) in rtc_get()
38 int rtc_set(struct rtc_time *time) in rtc_set()
H A Dftrtc010.c76 int rtc_get(struct rtc_time *tmp) in rtc_get()
97 int rtc_set(struct rtc_time *tmp) in rtc_set()
H A Dds1374.c85 int rtc_get (struct rtc_time *tm){ in rtc_get()
138 int rtc_set (struct rtc_time *tmp){ in rtc_set()
175 struct rtc_time tmp; in rtc_reset()
H A Drx8025.c81 int rtc_get (struct rtc_time *tmp) in rtc_get()
143 int rtc_set (struct rtc_time *tmp) in rtc_set()
170 struct rtc_time tmp; in rtc_reset()
H A Dmax6900.c40 int rtc_get (struct rtc_time *tmp) in rtc_get()
84 int rtc_set (struct rtc_time *tmp) in rtc_set()
H A Dmcfrtc.c26 int rtc_get(struct rtc_time *tmp) in rtc_get()
55 int rtc_set(struct rtc_time *tmp) in rtc_set()
H A Dsandbox_rtc.c16 static int sandbox_rtc_get(struct udevice *dev, struct rtc_time *time) in sandbox_rtc_get()
44 static int sandbox_rtc_set(struct udevice *dev, const struct rtc_time *time) in sandbox_rtc_set()
H A Dpcf2127.c25 static int pcf2127_rtc_set(struct udevice *dev, const struct rtc_time *tm) in pcf2127_rtc_set()
52 static int pcf2127_rtc_get(struct udevice *dev, struct rtc_time *tm) in pcf2127_rtc_get()
H A Dpcf8563.c26 int rtc_get (struct rtc_time *tmp) in rtc_get()
71 int rtc_set (struct rtc_time *tmp) in rtc_set()
H A Dmvrtc.c21 int rtc_get(struct rtc_time *t) in rtc_get()
61 int rtc_set(struct rtc_time *t) in rtc_set()
/rk3399_rockchip-uboot/test/dm/
H A Drtc.c29 static void show_time(const char *msg, struct rtc_time *time) in show_time()
36 static int cmp_times(struct rtc_time *expect, struct rtc_time *time, bool show) in cmp_times()
57 struct rtc_time now, time, cmp; in dm_test_rtc_set_get()
122 struct rtc_time now; in dm_test_rtc_reset()
148 struct rtc_time now1, now2, cmp; in dm_test_rtc_dual()
/rk3399_rockchip-uboot/cmd/
H 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 };
35 struct rtc_time tm; in do_date()
158 int mk_date (const char *datestr, struct rtc_time *tmp) in mk_date()

12