Home
last modified time | relevance | path

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

12345678910>>...13

/OK3568_Linux_fs/kernel/drivers/rtc/
H A Drtc-mv.c46 static int mv_rtc_set_time(struct device *dev, struct rtc_time *tm) in mv_rtc_set_time()
66 static int mv_rtc_read_time(struct device *dev, struct rtc_time *tm) in mv_rtc_read_time()
70 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()
77 minute = (rtc_time >> RTC_MINUTES_OFFS) & 0x7f; in mv_rtc_read_time()
78 hour = (rtc_time >> RTC_HOURS_OFFS) & 0x3f; /* assume 24 hour mode */ 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
104 rtc_time = readl(ioaddr + RTC_ALARM_TIME_REG_OFFS); in mv_rtc_read_alarm()
[all …]
H A Dlib.c49 void rtc_time64_to_tm(time64_t time, struct rtc_time *tm) in rtc_time64_to_tm()
94 int rtc_valid_tm(struct rtc_time *tm) in rtc_valid_tm()
115 time64_t rtc_tm_to_time64(struct rtc_time *tm) in rtc_tm_to_time64()
125 ktime_t rtc_tm_to_ktime(struct rtc_time tm) in rtc_tm_to_ktime()
134 struct rtc_time rtc_ktime_to_tm(ktime_t kt) in rtc_ktime_to_tm()
137 struct rtc_time ret; in rtc_ktime_to_tm()
H A Dinterface.c23 static void rtc_add_offset(struct rtc_device *rtc, struct rtc_time *tm) in rtc_add_offset()
46 static void rtc_subtract_offset(struct rtc_device *rtc, struct rtc_time *tm) in rtc_subtract_offset()
67 static int rtc_valid_range(struct rtc_device *rtc, struct rtc_time *tm) in rtc_valid_range()
84 static int __rtc_read_time(struct rtc_device *rtc, struct rtc_time *tm) in __rtc_read_time()
93 memset(tm, 0, sizeof(struct rtc_time)); in __rtc_read_time()
110 int rtc_read_time(struct rtc_device *rtc, struct rtc_time *tm) in rtc_read_time()
126 int rtc_set_time(struct rtc_device *rtc, struct rtc_time *tm) in rtc_set_time()
215 struct rtc_time before, now; in __rtc_read_alarm()
268 memcpy(&before, &now, sizeof(struct rtc_time)); in __rtc_read_alarm()
411 struct rtc_time tm; in __rtc_set_alarm()
[all …]
H A Drtc-da9052.c56 static int da9052_read_alarm(struct da9052_rtc *rtc, struct rtc_time *rtc_tm) in da9052_read_alarm()
99 static int da9052_set_alarm(struct da9052_rtc *rtc, struct rtc_time *rtc_tm) in da9052_set_alarm()
153 static int da9052_rtc_read_time(struct device *dev, struct rtc_time *rtc_tm) in da9052_rtc_read_time()
196 static int da9052_rtc_set_time(struct device *dev, struct rtc_time *tm) in da9052_rtc_set_time()
224 struct rtc_time *tm = &alrm->time; in da9052_rtc_read_alarm()
240 struct rtc_time *tm = &alrm->time; in da9052_rtc_set_alarm()
H A Drtc-pl031.c116 struct rtc_time *tm, unsigned long *st_time, in pl031_stv2_tm_to_time()
128 struct rtc_time calc_tm; in pl031_stv2_tm_to_time()
150 struct rtc_time *tm) in pl031_stv2_time_to_tm()
166 static int pl031_stv2_read_time(struct device *dev, struct rtc_time *tm) in pl031_stv2_read_time()
176 static int pl031_stv2_set_time(struct device *dev, struct rtc_time *tm) in pl031_stv2_set_time()
243 static int pl031_read_time(struct device *dev, struct rtc_time *tm) in pl031_read_time()
252 static int pl031_set_time(struct device *dev, struct rtc_time *tm) in pl031_set_time()
H A Drtc-sirfsoc.c169 struct rtc_time *tm) in sirfsoc_rtc_read_time()
190 struct rtc_time *tm) in sirfsoc_rtc_set_time()
192 unsigned long rtc_time; in sirfsoc_rtc_set_time() local
196 rtc_time = rtc_tm_to_time64(tm); in sirfsoc_rtc_set_time()
198 rtcdrv->overflow_rtc = rtc_time >> (BITS_PER_LONG - RTC_SHIFT); in sirfsoc_rtc_set_time()
201 sirfsoc_rtc_writel(rtcdrv, RTC_CN, rtc_time << RTC_SHIFT); in sirfsoc_rtc_set_time()
H A Drtc-da9055.c56 static int da9055_read_alarm(struct da9055 *da9055, struct rtc_time *rtc_tm) in da9055_read_alarm()
77 static int da9055_set_alarm(struct da9055 *da9055, struct rtc_time *rtc_tm) in da9055_set_alarm()
125 static int da9055_rtc_read_time(struct device *dev, struct rtc_time *rtc_tm) in da9055_rtc_read_time()
159 static int da9055_rtc_set_time(struct device *dev, struct rtc_time *tm) in da9055_rtc_set_time()
179 struct rtc_time *tm = &alrm->time; in da9055_rtc_read_alarm()
195 struct rtc_time *tm = &alrm->time; in da9055_rtc_set_alarm()
H A Drtc-fake.c24 static int fake_rtc_read_time(struct device *dev, struct rtc_time *tm) in fake_rtc_read_time()
36 static int fake_rtc_set_time(struct device *dev, struct rtc_time *tm) in fake_rtc_set_time()
71 struct rtc_time tm = { in fake_rtc_probe()
/OK3568_Linux_fs/u-boot/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);
/OK3568_Linux_fs/kernel/include/linux/
H A Drtc.h24 extern int rtc_valid_tm(struct rtc_time *tm);
25 extern time64_t rtc_tm_to_time64(struct rtc_time *tm);
26 extern void rtc_time64_to_tm(time64_t time, struct rtc_time *tm);
27 ktime_t rtc_tm_to_ktime(struct rtc_time tm);
28 struct rtc_time rtc_ktime_to_tm(ktime_t kt);
33 static inline time64_t rtc_tm_sub(struct rtc_time *lhs, struct rtc_time *rhs) in rtc_tm_sub()
62 int (*read_time)(struct device *, struct rtc_time *);
63 int (*set_time)(struct device *, struct rtc_time *);
171 extern int rtc_read_time(struct rtc_device *rtc, struct rtc_time *tm);
172 extern int rtc_set_time(struct rtc_device *rtc, struct rtc_time *tm);
/OK3568_Linux_fs/prebuilts/gcc/linux-x86/aarch64/gcc-arm-10.3-2021.07-x86_64-aarch64-none-linux-gnu/aarch64-none-linux-gnu/libc/usr/include/linux/
H A Drtc.h21 struct rtc_time { struct
40 struct rtc_time time; /* time the alarm is set to */ argument
80 #define RTC_ALM_SET _IOW('p', 0x07, struct rtc_time) /* Set alarm time */
81 #define RTC_ALM_READ _IOR('p', 0x08, struct rtc_time) /* Read alarm time */
82 #define RTC_RD_TIME _IOR('p', 0x09, struct rtc_time) /* Read RTC time */
83 #define RTC_SET_TIME _IOW('p', 0x0a, struct rtc_time) /* Set RTC time */
/OK3568_Linux_fs/prebuilts/gcc/linux-x86/arm/gcc-arm-10.3-2021.07-x86_64-arm-none-linux-gnueabihf/arm-none-linux-gnueabihf/libc/usr/include/linux/
H A Drtc.h21 struct rtc_time { struct
40 struct rtc_time time; /* time the alarm is set to */ argument
80 #define RTC_ALM_SET _IOW('p', 0x07, struct rtc_time) /* Set alarm time */
81 #define RTC_ALM_READ _IOR('p', 0x08, struct rtc_time) /* Read alarm time */
82 #define RTC_RD_TIME _IOR('p', 0x09, struct rtc_time) /* Read RTC time */
83 #define RTC_SET_TIME _IOW('p', 0x0a, struct rtc_time) /* Set RTC time */
/OK3568_Linux_fs/kernel/include/uapi/linux/
H A Drtc.h24 struct rtc_time { struct
43 struct rtc_time time; /* time the alarm is set to */ argument
83 #define RTC_ALM_SET _IOW('p', 0x07, struct rtc_time) /* Set alarm time */
84 #define RTC_ALM_READ _IOR('p', 0x08, struct rtc_time) /* Read alarm time */
85 #define RTC_RD_TIME _IOR('p', 0x09, struct rtc_time) /* Read RTC time */
86 #define RTC_SET_TIME _IOW('p', 0x0a, struct rtc_time) /* Set RTC time */
/OK3568_Linux_fs/u-boot/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()
/OK3568_Linux_fs/kernel/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()
/OK3568_Linux_fs/kernel/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()
/OK3568_Linux_fs/u-boot/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 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()
/OK3568_Linux_fs/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()
/OK3568_Linux_fs/kernel/arch/powerpc/platforms/powermac/
H A Dpmac.h13 struct rtc_time;
19 extern void pmac_get_rtc_time(struct rtc_time *);
20 extern int pmac_set_rtc_time(struct rtc_time *);
/OK3568_Linux_fs/kernel/arch/powerpc/include/asm/
H A Drtas.h257 struct rtc_time;
259 extern void rtas_get_rtc_time(struct rtc_time *rtc_time);
260 extern int rtas_set_rtc_time(struct rtc_time *rtc_time);
/OK3568_Linux_fs/kernel/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()
/OK3568_Linux_fs/kernel/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()
/OK3568_Linux_fs/u-boot/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()

12345678910>>...13