Home
last modified time | relevance | path

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

1234

/linux-2.4.37.9/drivers/macintosh/
Drtc.c34 void get_rtc_time(struct rtc_time *t) in get_rtc_time()
47 void set_rtc_time(struct rtc_time *t) in set_rtc_time()
60 struct rtc_time rtc_tm; in rtc_ioctl()
67 memset(&rtc_tm, 0, sizeof(struct rtc_time)); in rtc_ioctl()
70 if (copy_to_user((struct rtc_time*)arg, &rtc_tm, sizeof(struct rtc_time))) in rtc_ioctl()
84 if (copy_from_user(&rtc_tm, (struct rtc_time*)arg, sizeof(struct rtc_time))) in rtc_ioctl()
/linux-2.4.37.9/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 */
/linux-2.4.37.9/drivers/char/
Dds1286.c64 void ds1286_get_alm_time (struct rtc_time *alm_tm);
65 void ds1286_get_time(struct rtc_time *rtc_tm);
66 int ds1286_set_time(struct rtc_time *rtc_tm);
102 struct rtc_time wtime; in ds1286_ioctl()
176 memset(&wtime, 0, sizeof(struct rtc_time)); in ds1286_ioctl()
188 struct rtc_time alm_tm; in ds1286_ioctl()
193 if (copy_from_user(&alm_tm, (struct rtc_time*)arg, in ds1286_ioctl()
194 sizeof(struct rtc_time))) in ds1286_ioctl()
219 memset(&wtime, 0, sizeof(struct rtc_time)); in ds1286_ioctl()
225 struct rtc_time rtc_tm; in ds1286_ioctl()
[all …]
Dip27-rtc.c54 static void get_rtc_time(struct rtc_time *rtc_tm);
81 struct rtc_time wtime; in rtc_ioctl()
86 memset(&wtime, 0, sizeof(struct rtc_time)); in rtc_ioctl()
92 struct rtc_time rtc_tm; in rtc_ioctl()
99 if (copy_from_user(&rtc_tm, (struct rtc_time*)arg, in rtc_ioctl()
100 sizeof(struct rtc_time))) in rtc_ioctl()
252 struct rtc_time tm; in rtc_get_status()
289 static void get_rtc_time(struct rtc_time *rtc_tm) in get_rtc_time()
Defirtc.c104 convert_to_efi_time(struct rtc_time *wtime, efi_time_t *eft) in convert_to_efi_time()
119 convert_from_efi_time(efi_time_t *eft, struct rtc_time *wtime) in convert_from_efi_time()
121 memset(wtime, 0, sizeof(struct rtc_time)); in convert_from_efi_time()
157 struct rtc_time wtime; in efi_rtc_ioctl()
192 return copy_to_user((void *)arg, &wtime, sizeof (struct rtc_time)) ? - EFAULT : 0; in efi_rtc_ioctl()
198 if (copy_from_user(&wtime, (struct rtc_time *)arg, sizeof(struct rtc_time)) ) in efi_rtc_ioctl()
218 || copy_from_user(&wtime, &ewp->time, sizeof(struct rtc_time)) ) in efi_rtc_ioctl()
253 return copy_to_user((void *)&ewp->time, &wtime, sizeof(struct rtc_time)) ? -EFAULT : 0; in efi_rtc_ioctl()
Dmips_rtc.c80 struct rtc_time rtc_tm; in rtc_ioctl()
85 memset(&rtc_tm, 0, sizeof(struct rtc_time)); in rtc_ioctl()
96 (struct rtc_time *) arg, in rtc_ioctl()
97 sizeof(struct rtc_time))) in rtc_ioctl()
184 struct rtc_time tm; in rtc_proc_output()
Drtc.c115 static void get_rtc_time (struct rtc_time *rtc_tm);
116 static void get_rtc_alm_time (struct rtc_time *alm_tm);
299 struct rtc_time wtime; in rtc_ioctl()
379 memset(&wtime, 0, sizeof(struct rtc_time)); in rtc_ioctl()
391 struct rtc_time alm_tm; in rtc_ioctl()
393 if (copy_from_user(&alm_tm, (struct rtc_time*)arg, in rtc_ioctl()
394 sizeof(struct rtc_time))) in rtc_ioctl()
423 memset(&wtime, 0, sizeof(struct rtc_time)); in rtc_ioctl()
429 struct rtc_time rtc_tm; in rtc_ioctl()
440 if (copy_from_user(&rtc_tm, (struct rtc_time*)arg, in rtc_ioctl()
[all …]
Dds1742.c104 extern void to_tm(unsigned long tim, struct rtc_time * tm);
128 struct rtc_time tm; in rtc_ds1742_set_time()
215 struct rtc_time tm; in get_ds1742_status()
261 struct rtc_time rtc_tm; in ds1742_ioctl()
276 (struct rtc_time *) arg, in ds1742_ioctl()
277 sizeof(struct rtc_time))) in ds1742_ioctl()
/linux-2.4.37.9/drivers/sbus/char/
Drtc.c31 void get_rtc_time(struct rtc_time *t) in get_rtc_time()
58 void set_rtc_time(struct rtc_time *t) in set_rtc_time()
87 struct rtc_time rtc_tm; in rtc_ioctl()
92 memset(&rtc_tm, 0, sizeof(struct rtc_time)); in rtc_ioctl()
95 if (copy_to_user((struct rtc_time*)arg, &rtc_tm, sizeof(struct rtc_time))) in rtc_ioctl()
105 if (copy_from_user(&rtc_tm, (struct rtc_time*)arg, sizeof(struct rtc_time))) in rtc_ioctl()
/linux-2.4.37.9/arch/ppc64/kernel/
Drtc.c95 struct rtc_time wtime; in rtc_ioctl()
100 memset(&wtime, 0, sizeof(struct rtc_time)); in rtc_ioctl()
106 struct rtc_time rtc_tm; in rtc_ioctl()
113 if (copy_from_user(&rtc_tm, (struct rtc_time*)arg, in rtc_ioctl()
114 sizeof(struct rtc_time))) in rtc_ioctl()
226 struct rtc_time tm; in rtc_proc_output()
267 void iSeries_get_rtc_time(struct rtc_time *rtc_tm) in iSeries_get_rtc_time()
279 void pSeries_get_boot_time(struct rtc_time *rtc_tm) in pSeries_get_boot_time()
314 void pSeries_get_rtc_time(struct rtc_time *rtc_tm) in pSeries_get_rtc_time()
349 int pSeries_set_rtc_time(struct rtc_time *tm) in pSeries_set_rtc_time()
[all …]
Dchrp_setup.c92 extern void pSeries_get_boot_time(struct rtc_time *rtc_time);
93 extern void pSeries_get_rtc_time(struct rtc_time *rtc_time);
94 extern int pSeries_set_rtc_time(struct rtc_time *rtc_time);
/linux-2.4.37.9/arch/cris/drivers/
Dds1302.c299 get_rtc_time(struct rtc_time *rtc_tm) in get_rtc_time()
347 struct rtc_time rtc_tm; in rtc_ioctl()
349 memset(&rtc_tm, 0, sizeof (struct rtc_time)); in rtc_ioctl()
351 if (copy_to_user((struct rtc_time*)arg, &rtc_tm, sizeof(struct rtc_time))) in rtc_ioctl()
358 struct rtc_time rtc_tm; in rtc_ioctl()
365 if (copy_from_user(&rtc_tm, (struct rtc_time*)arg, sizeof(struct rtc_time))) in rtc_ioctl()
458 struct rtc_time tm; in print_rtc_status()
Dpcf8563.c108 get_rtc_time(struct rtc_time *tm) in get_rtc_time()
221 struct rtc_time tm; in pcf8563_ioctl()
223 memset(&tm, 0, sizeof (struct rtc_time)); in pcf8563_ioctl()
226 if (copy_to_user((struct rtc_time *) arg, &tm, sizeof tm)) { in pcf8563_ioctl()
241 struct rtc_time tm; in pcf8563_ioctl()
246 if (copy_from_user(&tm, (struct rtc_time *) arg, sizeof tm)) in pcf8563_ioctl()
/linux-2.4.37.9/include/asm-sparc/
Drtc.h13 struct rtc_time struct
24 #define RTCGET _IOR('p', 20, struct rtc_time) argument
25 #define RTCSET _IOW('p', 21, struct rtc_time)
/linux-2.4.37.9/include/asm-sparc64/
Drtc.h13 struct rtc_time struct
24 #define RTCGET _IOR('p', 20, struct rtc_time) argument
25 #define RTCSET _IOW('p', 21, struct rtc_time)
/linux-2.4.37.9/drivers/hil/
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()
444 struct rtc_time tm; in hp_sdc_rtc_proc_output()
447 memset(&tm, 0, sizeof(struct rtc_time)); in hp_sdc_rtc_proc_output()
542 struct rtc_time wtime; in hp_sdc_rtc_ioctl()
[all …]
/linux-2.4.37.9/arch/m68k/mvme16x/
Drtc.c46 struct rtc_time wtime; in rtc_ioctl()
55 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, (struct rtc_time*)arg, in rtc_ioctl()
80 sizeof(struct rtc_time))) in rtc_ioctl()
/linux-2.4.37.9/include/asm-m68k/
Drtc.h31 static inline unsigned int get_rtc_time(struct rtc_time *time) in get_rtc_time()
43 static inline int set_rtc_time(struct rtc_time *time) in set_rtc_time()
53 struct rtc_time h; in get_rtc_ss()
/linux-2.4.37.9/arch/m68k/bvme6000/
Drtc.c47 struct rtc_time wtime; in rtc_ioctl()
57 memset(&wtime, 0, sizeof(struct rtc_time)); in rtc_ioctl()
76 struct rtc_time rtc_tm; in rtc_ioctl()
83 if (copy_from_user(&rtc_tm, (struct rtc_time*)arg, in rtc_ioctl()
84 sizeof(struct rtc_time))) in rtc_ioctl()
/linux-2.4.37.9/include/asm-ppc/
Drtc.h47 static inline unsigned int get_rtc_time(struct rtc_time *time) in get_rtc_time()
64 static inline int set_rtc_time(struct rtc_time *time) in set_rtc_time()
82 struct rtc_time h; in get_rtc_ss()
/linux-2.4.37.9/include/asm-ppc64/iSeries/
Dmf.h33 struct rtc_time;
79 extern int mf_getRtc( struct rtc_time * tm );
81 extern int mf_setRtc( struct rtc_time * tm );
/linux-2.4.37.9/include/asm-ppc64/
Dmachdep.h22 struct rtc_time;
79 int (*set_rtc_time)(struct rtc_time *);
80 void (*get_rtc_time)(struct rtc_time *);
81 void (*get_boot_time)(struct rtc_time *);
Dtime.h31 struct rtc_time;
32 extern void to_tm(int tim, struct rtc_time * tm);
/linux-2.4.37.9/include/asm-cris/
Drtc.h106 struct rtc_time { struct
120 #define RTC_RD_TIME _IOR(RTC_MAGIC, 0x09, struct rtc_time) /* Read RTC time. */ argument
121 #define RTC_SET_TIME _IOW(RTC_MAGIC, 0x0a, struct rtc_time) /* Set RTC time. */
/linux-2.4.37.9/arch/ppc/kernel/
Dm8260_setup.c94 static uint rtc_time; variable
99 rtc_time = time; in m8260_set_rtc_time()
109 return((unsigned long)rtc_time); in m8260_get_rtc_time()

1234