/linux-2.4.37.9/drivers/macintosh/ |
D | rtc.c | 34 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/ |
D | rtc.h | 20 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/ |
D | ds1286.c | 64 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 …]
|
D | ip27-rtc.c | 54 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()
|
D | efirtc.c | 104 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()
|
D | mips_rtc.c | 80 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()
|
D | rtc.c | 115 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 …]
|
D | ds1742.c | 104 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/ |
D | rtc.c | 31 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/ |
D | rtc.c | 95 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 …]
|
D | chrp_setup.c | 92 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/ |
D | ds1302.c | 299 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()
|
D | pcf8563.c | 108 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/ |
D | rtc.h | 13 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/ |
D | rtc.h | 13 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/ |
D | hp_sdc_rtc.c | 86 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/ |
D | rtc.c | 46 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/ |
D | rtc.h | 31 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/ |
D | rtc.c | 47 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/ |
D | rtc.h | 47 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/ |
D | mf.h | 33 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/ |
D | machdep.h | 22 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 *);
|
D | time.h | 31 struct rtc_time; 32 extern void to_tm(int tim, struct rtc_time * tm);
|
/linux-2.4.37.9/include/asm-cris/ |
D | rtc.h | 106 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/ |
D | m8260_setup.c | 94 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()
|