Home
last modified time | relevance | path

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

12345678910>>...12

/openbmc/u-boot/include/
H A Drtc.h31 int (*get)(struct udevice *dev, struct rtc_time *time);
42 int (*set)(struct udevice *dev, const struct rtc_time *time);
86 int dm_rtc_get(struct udevice *dev, struct rtc_time *time);
95 int dm_rtc_set(struct udevice *dev, struct rtc_time *time);
170 int rtc_get (struct rtc_time *);
171 int rtc_set (struct rtc_time *);
233 int rtc_calc_weekday(struct rtc_time *time);
246 void rtc_to_tm(u64 time_t, struct rtc_time *time);
259 unsigned long rtc_mktime(const struct rtc_time *time);
/openbmc/linux/drivers/rtc/
H A Drtc-mv.c70 u32 rtc_time, rtc_date; in mv_rtc_read_time() local
73 rtc_time = readl(ioaddr + RTC_TIME_REG_OFFS); in mv_rtc_read_time()
76 second = rtc_time & 0x7f; in mv_rtc_read_time()
79 wday = (rtc_time >> RTC_WDAY_OFFS) & 0x7; in mv_rtc_read_time()
101 u32 rtc_time, rtc_date; in mv_rtc_read_alarm() local
107 second = rtc_time & 0x7f; in mv_rtc_read_alarm()
110 wday = (rtc_time >> RTC_WDAY_OFFS) & 0x7; in mv_rtc_read_alarm()
211 u32 rtc_time; in mv_rtc_probe() local
229 if (rtc_time & RTC_HOURS_12H_MODE) { in mv_rtc_probe()
236 if (rtc_time == 0x01000000) { in mv_rtc_probe()
[all …]
H A Dlib.c52 void rtc_time64_to_tm(time64_t time, struct rtc_time *tm) in rtc_time64_to_tm()
147 int rtc_valid_tm(struct rtc_time *tm) in rtc_valid_tm()
168 time64_t rtc_tm_to_time64(struct rtc_time *tm) in rtc_tm_to_time64()
178 ktime_t rtc_tm_to_ktime(struct rtc_time tm) in rtc_tm_to_ktime()
187 struct rtc_time rtc_ktime_to_tm(ktime_t kt) in rtc_ktime_to_tm()
190 struct rtc_time ret; in rtc_ktime_to_tm()
/openbmc/linux/include/linux/
H A Drtc.h23 extern int rtc_valid_tm(struct rtc_time *tm);
24 extern time64_t rtc_tm_to_time64(struct rtc_time *tm);
25 extern void rtc_time64_to_tm(time64_t time, struct rtc_time *tm);
26 ktime_t rtc_tm_to_ktime(struct rtc_time tm);
27 struct rtc_time rtc_ktime_to_tm(ktime_t kt);
32 static inline time64_t rtc_tm_sub(struct rtc_time *lhs, struct rtc_time *rhs) in rtc_tm_sub()
61 int (*read_time)(struct device *, struct rtc_time *);
62 int (*set_time)(struct device *, struct rtc_time *);
187 extern int rtc_read_time(struct rtc_device *rtc, struct rtc_time *tm);
188 extern int rtc_set_time(struct rtc_device *rtc, struct rtc_time *tm);
/openbmc/linux/include/uapi/linux/
H A Drtc.h25 struct rtc_time { struct
44 struct rtc_time time; /* time the alarm is set to */ argument
95 #define RTC_ALM_SET _IOW('p', 0x07, struct rtc_time) /* Set alarm time */
96 #define RTC_ALM_READ _IOR('p', 0x08, struct rtc_time) /* Read alarm time */
97 #define RTC_RD_TIME _IOR('p', 0x09, struct rtc_time) /* Read RTC time */
98 #define RTC_SET_TIME _IOW('p', 0x0a, struct rtc_time) /* Set RTC time */
/openbmc/u-boot/post/drivers/
H 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()
/openbmc/linux/drivers/input/misc/
H A Dhp_sdc_rtc.c66 static int hp_sdc_rtc_do_read_bbrtc (struct rtc_time *rtctm) in hp_sdc_rtc_do_read_bbrtc()
102 memset(rtctm, 0, sizeof(struct rtc_time)); in hp_sdc_rtc_do_read_bbrtc()
114 static int hp_sdc_rtc_read_bbrtc (struct rtc_time *rtctm) in hp_sdc_rtc_read_bbrtc()
116 struct rtc_time tm, tm_last; in hp_sdc_rtc_read_bbrtc()
124 while (memcmp(&tm, &tm_last, sizeof(struct rtc_time))) { in hp_sdc_rtc_read_bbrtc()
126 memcpy(&tm_last, &tm, sizeof(struct rtc_time)); in hp_sdc_rtc_read_bbrtc()
130 memcpy(rtctm, &tm, sizeof(struct rtc_time)); in hp_sdc_rtc_read_bbrtc()
272 struct rtc_time tm; in hp_sdc_rtc_proc_show()
275 memset(&tm, 0, sizeof(struct rtc_time)); in hp_sdc_rtc_proc_show()
/openbmc/linux/arch/alpha/kernel/
H A Drtc.c81 alpha_rtc_read_time(struct device *dev, struct rtc_time *tm) in alpha_rtc_read_time()
109 alpha_rtc_set_time(struct device *dev, struct rtc_time *tm) in alpha_rtc_set_time()
111 struct rtc_time xtm; in alpha_rtc_set_time()
154 struct rtc_time *tm;
166 remote_read_time(struct device *dev, struct rtc_time *tm) in remote_read_time()
185 remote_set_time(struct device *dev, struct rtc_time *tm) in remote_set_time()
/openbmc/linux/tools/testing/selftests/rtc/
H A Drtctest.c42 struct rtc_time rtc_tm; in TEST_F()
57 static time_t rtc_time_to_timestamp(struct rtc_time *rtc_time) in rtc_time_to_timestamp() argument
60 .tm_sec = rtc_time->tm_sec, in rtc_time_to_timestamp()
61 .tm_min = rtc_time->tm_min, in rtc_time_to_timestamp()
62 .tm_hour = rtc_time->tm_hour, in rtc_time_to_timestamp()
64 .tm_mon = rtc_time->tm_mon, in rtc_time_to_timestamp()
88 struct rtc_time rtc_tm;
196 struct rtc_time tm; in TEST_F()
253 struct rtc_time tm; in TEST_F()
306 struct rtc_time tm;
[all …]
/openbmc/u-boot/drivers/rtc/
H A Dmvrtc.c21 static int __mv_rtc_get(struct mvrtc_registers *regs, struct rtc_time *t) in __mv_rtc_get()
59 int rtc_get(struct rtc_time *t) in rtc_get()
68 static int __mv_rtc_set(struct mvrtc_registers *regs, const struct rtc_time *t) in __mv_rtc_set()
98 int rtc_set(struct rtc_time *t) in rtc_set()
133 static int mv_rtc_get(struct udevice *dev, struct rtc_time *tm) in mv_rtc_get()
141 static int mv_rtc_set(struct udevice *dev, const struct rtc_time *tm) in mv_rtc_set()
H A Di2c_rtc_emul.c78 struct rtc_time now; in reset_time()
86 static int sandbox_i2c_rtc_get(struct udevice *dev, struct rtc_time *time) in sandbox_i2c_rtc_get()
89 struct rtc_time tm_now; in sandbox_i2c_rtc_get()
104 static int sandbox_i2c_rtc_set(struct udevice *dev, const struct rtc_time *time) in sandbox_i2c_rtc_set()
107 struct rtc_time tm_now; in sandbox_i2c_rtc_set()
125 struct rtc_time time; in sandbox_i2c_rtc_prepare_read()
146 struct rtc_time time; in sandbox_i2c_rtc_complete_write()
H A Dm41t62.c56 static void m41t62_update_rtc_time(struct rtc_time *tm, u8 *buf) in m41t62_update_rtc_time()
82 static void m41t62_set_rtc_buf(const struct rtc_time *tm, u8 *buf) in m41t62_set_rtc_buf()
107 static int m41t62_rtc_get(struct udevice *dev, struct rtc_time *tm) in m41t62_rtc_get()
121 static int m41t62_rtc_set(struct udevice *dev, const struct rtc_time *tm) in m41t62_rtc_set()
178 int rtc_get(struct rtc_time *tm) in rtc_get()
188 int rtc_set(struct rtc_time *tm) in rtc_set()
H 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()
/openbmc/linux/arch/powerpc/platforms/powermac/
H A Dpmac.h15 struct rtc_time;
23 extern void pmac_get_rtc_time(struct rtc_time *);
24 extern int pmac_set_rtc_time(struct rtc_time *);
/openbmc/u-boot/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()
/openbmc/linux/arch/m68k/kernel/
H A Dtime.c67 int (*mach_hwclk) (int, struct rtc_time*);
78 struct rtc_time time; in read_persistent_clock64()
94 static int rtc_generic_get_time(struct device *dev, struct rtc_time *tm) in rtc_generic_get_time()
100 static int rtc_generic_set_time(struct device *dev, struct rtc_time *tm) in rtc_generic_set_time()
/openbmc/linux/arch/m68k/mvme16x/
H A Drtc.c42 struct rtc_time wtime; in rtc_ioctl()
51 memset(&wtime, 0, sizeof(struct rtc_time)); in rtc_ioctl()
68 struct rtc_time rtc_tm; in rtc_ioctl()
75 if (copy_from_user(&rtc_tm, argp, sizeof(struct rtc_time))) in rtc_ioctl()
/openbmc/linux/arch/powerpc/platforms/chrp/
H A Dchrp.h7 extern void chrp_get_rtc_time(struct rtc_time *);
8 extern int chrp_set_rtc_time(struct rtc_time *);
/openbmc/linux/arch/m68k/68000/
H A Dm68328.h4 struct rtc_time;
5 int m68328_hwclk(int set, struct rtc_time *t);
/openbmc/linux/arch/powerpc/platforms/8xx/
H A Dmpc8xx.h16 extern int mpc8xx_set_rtc_time(struct rtc_time *tm);
17 extern void mpc8xx_get_rtc_time(struct rtc_time *tm);
/openbmc/linux/arch/m68k/bvme6000/
H A Drtc.c44 struct rtc_time wtime; in rtc_ioctl()
54 memset(&wtime, 0, sizeof(struct rtc_time)); in rtc_ioctl()
73 struct rtc_time rtc_tm; in rtc_ioctl()
80 if (copy_from_user(&rtc_tm, argp, sizeof(struct rtc_time))) in rtc_ioctl()
/openbmc/u-boot/cmd/
H A Ddate.c28 int mk_date (const char *, struct rtc_time *);
30 static struct rtc_time default_tm = { 0, 0, 0, 1, 1, 2000, 6, 0, 0 };
34 struct rtc_time tm; in do_date()
157 int mk_date (const char *datestr, struct rtc_time *tmp) in mk_date()
/openbmc/linux/arch/powerpc/platforms/maple/
H A Dmaple.h7 extern int maple_set_rtc_time(struct rtc_time *tm);
8 extern void maple_get_rtc_time(struct rtc_time *tm);
/openbmc/linux/arch/powerpc/kernel/
H A Drtas-rtc.c47 void rtas_get_rtc_time(struct rtc_time *rtc_tm) in rtas_get_rtc_time()
61 memset(rtc_tm, 0, sizeof(struct rtc_time)); in rtas_get_rtc_time()
86 int rtas_set_rtc_time(struct rtc_time *tm) in rtas_set_rtc_time()
/openbmc/linux/arch/m68k/include/asm/
H A Dmachdep.h11 struct rtc_time;
21 extern int (*mach_hwclk)(int, struct rtc_time*);

12345678910>>...12