Home
last modified time | relevance | path

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

12345678

/linux-3.4.99/include/linux/
Drtc.h20 struct rtc_time { struct
39 struct rtc_time time; /* time the alarm is set to */ argument
79 #define RTC_ALM_SET _IOW('p', 0x07, struct rtc_time) /* Set alarm time */
80 #define RTC_ALM_READ _IOR('p', 0x08, struct rtc_time) /* Read alarm time */
81 #define RTC_RD_TIME _IOR('p', 0x09, struct rtc_time) /* Read RTC time */
82 #define RTC_SET_TIME _IOW('p', 0x0a, struct rtc_time) /* Set RTC time */
110 extern int rtc_valid_tm(struct rtc_time *tm);
111 extern int rtc_tm_to_time(struct rtc_time *tm, unsigned long *time);
112 extern void rtc_time_to_tm(unsigned long time, struct rtc_time *tm);
113 ktime_t rtc_tm_to_ktime(struct rtc_time tm);
[all …]
/linux-3.4.99/drivers/rtc/
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 hours 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 …]
Drtc-lib.c51 void rtc_time_to_tm(unsigned long time, struct rtc_time *tm) in rtc_time_to_tm()
96 int rtc_valid_tm(struct rtc_time *tm) in rtc_valid_tm()
114 int rtc_tm_to_time(struct rtc_time *tm, unsigned long *time) in rtc_tm_to_time()
125 ktime_t rtc_tm_to_ktime(struct rtc_time tm) in rtc_tm_to_ktime()
136 struct rtc_time rtc_ktime_to_tm(ktime_t kt) in rtc_ktime_to_tm()
139 struct rtc_time ret; in rtc_ktime_to_tm()
Drtc-da9052.c69 static int da9052_read_alarm(struct da9052 *da9052, struct rtc_time *rtc_tm) in da9052_read_alarm()
92 static int da9052_set_alarm(struct da9052 *da9052, struct rtc_time *rtc_tm) in da9052_set_alarm()
136 static int da9052_rtc_read_time(struct device *dev, struct rtc_time *rtc_tm) in da9052_rtc_read_time()
164 static int da9052_rtc_set_time(struct device *dev, struct rtc_time *tm) in da9052_rtc_set_time()
184 struct rtc_time *tm = &alrm->time; in da9052_rtc_read_alarm()
200 struct rtc_time *tm = &alrm->time; in da9052_rtc_set_alarm()
/linux-3.4.99/arch/powerpc/platforms/cell/
Dbeat.c58 int beat_set_rtc_time(struct rtc_time *rtc_time) in beat_set_rtc_time() argument
61 tim = mktime(rtc_time->tm_year+1900, in beat_set_rtc_time()
62 rtc_time->tm_mon+1, rtc_time->tm_mday, in beat_set_rtc_time()
63 rtc_time->tm_hour, rtc_time->tm_min, rtc_time->tm_sec); in beat_set_rtc_time()
69 void beat_get_rtc_time(struct rtc_time *rtc_time) in beat_get_rtc_time() argument
75 to_tm(tim, rtc_time); in beat_get_rtc_time()
76 rtc_time->tm_year -= 1900; in beat_get_rtc_time()
77 rtc_time->tm_mon -= 1; in beat_get_rtc_time()
/linux-3.4.99/drivers/char/
Dds1302.c119 get_rtc_time(struct rtc_time *rtc_tm) in get_rtc_time()
164 struct rtc_time rtc_tm; in rtc_ioctl()
166 memset(&rtc_tm, 0, sizeof (struct rtc_time)); in rtc_ioctl()
170 if (copy_to_user((struct rtc_time*)arg, &rtc_tm, sizeof(struct rtc_time))) in rtc_ioctl()
177 struct rtc_time rtc_tm; in rtc_ioctl()
184 if (copy_from_user(&rtc_tm, (struct rtc_time*)arg, sizeof(struct rtc_time))) in rtc_ioctl()
265 struct rtc_time tm; in get_rtc_status()
Defirtc.c102 convert_to_efi_time(struct rtc_time *wtime, efi_time_t *eft) in convert_to_efi_time()
117 convert_from_efi_time(efi_time_t *eft, struct rtc_time *wtime) in convert_from_efi_time()
154 struct rtc_time wtime; in efi_rtc_ioctl()
189 sizeof (struct rtc_time)) ? - EFAULT : 0; in efi_rtc_ioctl()
195 if (copy_from_user(&wtime, (struct rtc_time __user *)arg, in efi_rtc_ioctl()
196 sizeof(struct rtc_time)) ) in efi_rtc_ioctl()
216 || copy_from_user(&wtime, &ewp->time, sizeof(struct rtc_time)) ) in efi_rtc_ioctl()
252 sizeof(struct rtc_time)) ? -EFAULT : 0; in efi_rtc_ioctl()
/linux-3.4.99/arch/sh/include/asm/
Drtc.h16 struct rtc_time;
17 unsigned int get_rtc_time(struct rtc_time *);
18 int set_rtc_time(struct rtc_time *);
/linux-3.4.99/arch/cris/arch-v10/drivers/
Dds1302.c204 get_rtc_time(struct rtc_time *rtc_tm) in get_rtc_time()
249 struct rtc_time rtc_tm; in rtc_ioctl()
251 memset(&rtc_tm, 0, sizeof (struct rtc_time)); in rtc_ioctl()
253 if (copy_to_user((struct rtc_time*)arg, &rtc_tm, sizeof(struct rtc_time))) in rtc_ioctl()
260 struct rtc_time rtc_tm; in rtc_ioctl()
267 if (copy_from_user(&rtc_tm, (struct rtc_time*)arg, sizeof(struct rtc_time))) in rtc_ioctl()
370 struct rtc_time tm; in print_rtc_status()
/linux-3.4.99/arch/powerpc/platforms/powermac/
Dtime.c87 static void to_rtc_time(unsigned long now, struct rtc_time *tm) in to_rtc_time()
97 static unsigned long from_rtc_time(struct rtc_time *tm) in from_rtc_time()
124 static int cuda_set_rtc_time(struct rtc_time *tm) in cuda_set_rtc_time()
167 static int pmu_set_rtc_time(struct rtc_time *tm) in pmu_set_rtc_time()
192 struct rtc_time tm; in smu_get_time()
221 void pmac_get_rtc_time(struct rtc_time *tm) in pmac_get_rtc_time()
239 int pmac_set_rtc_time(struct rtc_time *tm) in pmac_set_rtc_time()
Dpmac.h12 struct rtc_time;
18 extern void pmac_get_rtc_time(struct rtc_time *);
19 extern int pmac_set_rtc_time(struct rtc_time *);
/linux-3.4.99/arch/powerpc/include/asm/
Drtc.h45 static inline unsigned int get_rtc_time(struct rtc_time *time) in get_rtc_time()
53 static inline int set_rtc_time(struct rtc_time *time) in set_rtc_time()
62 struct rtc_time h; in get_rtc_ss()
Drtas.h269 struct rtc_time;
271 extern void rtas_get_rtc_time(struct rtc_time *rtc_time);
272 extern int rtas_set_rtc_time(struct rtc_time *rtc_time);
/linux-3.4.99/arch/m68k/include/asm/
Drtc.h31 static inline unsigned int get_rtc_time(struct rtc_time *time) in get_rtc_time()
44 static inline int set_rtc_time(struct rtc_time *time) in set_rtc_time()
56 struct rtc_time h; in get_rtc_ss()
/linux-3.4.99/drivers/input/misc/
Dhp_sdc_rtc.c86 static int hp_sdc_rtc_do_read_bbrtc (struct rtc_time *rtctm) in hp_sdc_rtc_do_read_bbrtc()
120 memset(rtctm, 0, sizeof(struct rtc_time)); in hp_sdc_rtc_do_read_bbrtc()
132 static int hp_sdc_rtc_read_bbrtc (struct rtc_time *rtctm) in hp_sdc_rtc_read_bbrtc()
134 struct rtc_time tm, tm_last; in hp_sdc_rtc_read_bbrtc()
142 while (memcmp(&tm, &tm_last, sizeof(struct rtc_time))) { in hp_sdc_rtc_read_bbrtc()
144 memcpy(&tm_last, &tm, sizeof(struct rtc_time)); in hp_sdc_rtc_read_bbrtc()
148 memcpy(rtctm, &tm, sizeof(struct rtc_time)); in hp_sdc_rtc_read_bbrtc()
426 struct rtc_time tm; in hp_sdc_rtc_proc_output()
429 memset(&tm, 0, sizeof(struct rtc_time)); in hp_sdc_rtc_proc_output()
524 struct rtc_time wtime; in hp_sdc_rtc_ioctl()
[all …]
/linux-3.4.99/arch/m32r/include/asm/
Drtc.h46 struct rtc_time { struct
60 #define RTC_RD_TIME _IOR(RTC_MAGIC, 0x09, struct rtc_time) /* Read RTC time. */ argument
61 #define RTC_SET_TIME _IOW(RTC_MAGIC, 0x0a, struct rtc_time) /* Set RTC time. */
/linux-3.4.99/arch/powerpc/platforms/powernv/
Dopal-rtc.c22 static void opal_to_tm(u32 y_m_d, u64 h_m_s_ms, struct rtc_time *tm) in opal_to_tm()
37 struct rtc_time tm; in opal_get_boot_time()
56 void opal_get_rtc_time(struct rtc_time *tm) in opal_get_rtc_time()
74 int opal_set_rtc_time(struct rtc_time *tm) in opal_set_rtc_time()
/linux-3.4.99/arch/m68k/mvme16x/
Drtc.c41 struct rtc_time wtime; in rtc_ioctl()
50 memset(&wtime, 0, sizeof(struct rtc_time)); in rtc_ioctl()
67 struct rtc_time rtc_tm; in rtc_ioctl()
74 if (copy_from_user(&rtc_tm, argp, sizeof(struct rtc_time))) in rtc_ioctl()
/linux-3.4.99/arch/powerpc/platforms/chrp/
Dchrp.h6 extern void chrp_get_rtc_time(struct rtc_time *);
7 extern int chrp_set_rtc_time(struct rtc_time *);
/linux-3.4.99/arch/cris/include/asm/
Drtc.h82 struct rtc_time { struct
97 #define RTC_RD_TIME _IOR(RTC_MAGIC, 0x09, struct rtc_time) argument
99 #define RTC_SET_TIME _IOW(RTC_MAGIC, 0x0a, struct rtc_time)
/linux-3.4.99/arch/powerpc/platforms/8xx/
Dmpc8xx.h16 extern int mpc8xx_set_rtc_time(struct rtc_time *tm);
17 extern void mpc8xx_get_rtc_time(struct rtc_time *tm);
/linux-3.4.99/arch/powerpc/platforms/maple/
Dmaple.h6 extern int maple_set_rtc_time(struct rtc_time *tm);
7 extern void maple_get_rtc_time(struct rtc_time *tm);
/linux-3.4.99/arch/m68k/bvme6000/
Drtc.c43 struct rtc_time wtime; in rtc_ioctl()
53 memset(&wtime, 0, sizeof(struct rtc_time)); in rtc_ioctl()
72 struct rtc_time rtc_tm; in rtc_ioctl()
79 if (copy_from_user(&rtc_tm, argp, sizeof(struct rtc_time))) in rtc_ioctl()
/linux-3.4.99/arch/powerpc/kernel/
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()
/linux-3.4.99/arch/alpha/include/asm/
Dmachvec.h24 struct rtc_time;
98 unsigned int (*rtc_get_time)(struct rtc_time *);
99 int (*rtc_set_time)(struct rtc_time *);

12345678