/Linux-v4.19/drivers/rtc/ |
D | rtc-mv.c | 49 static int mv_rtc_set_time(struct device *dev, struct rtc_time *tm) in mv_rtc_set_time() 69 static int mv_rtc_read_time(struct device *dev, struct rtc_time *tm) in mv_rtc_read_time() 73 u32 rtc_time, rtc_date; in mv_rtc_read_time() local 76 rtc_time = readl(ioaddr + RTC_TIME_REG_OFFS); in mv_rtc_read_time() 79 second = rtc_time & 0x7f; in mv_rtc_read_time() 80 minute = (rtc_time >> RTC_MINUTES_OFFS) & 0x7f; in mv_rtc_read_time() 81 hour = (rtc_time >> RTC_HOURS_OFFS) & 0x3f; /* assume 24 hour mode */ in mv_rtc_read_time() 82 wday = (rtc_time >> RTC_WDAY_OFFS) & 0x7; in mv_rtc_read_time() 104 u32 rtc_time, rtc_date; in mv_rtc_read_alarm() local 107 rtc_time = readl(ioaddr + RTC_ALARM_TIME_REG_OFFS); in mv_rtc_read_alarm() [all …]
|
D | rtc-lib.c | 53 void rtc_time64_to_tm(time64_t time, struct rtc_time *tm) in rtc_time64_to_tm() 98 int rtc_valid_tm(struct rtc_time *tm) in rtc_valid_tm() 117 time64_t rtc_tm_to_time64(struct rtc_time *tm) in rtc_tm_to_time64() 127 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()
|
D | interface.c | 26 static void rtc_add_offset(struct rtc_device *rtc, struct rtc_time *tm) in rtc_add_offset() 49 static void rtc_subtract_offset(struct rtc_device *rtc, struct rtc_time *tm) in rtc_subtract_offset() 70 static int rtc_valid_range(struct rtc_device *rtc, struct rtc_time *tm) in rtc_valid_range() 87 static int __rtc_read_time(struct rtc_device *rtc, struct rtc_time *tm) in __rtc_read_time() 95 memset(tm, 0, sizeof(struct rtc_time)); in __rtc_read_time() 112 int rtc_read_time(struct rtc_device *rtc, struct rtc_time *tm) in rtc_read_time() 128 int rtc_set_time(struct rtc_device *rtc, struct rtc_time *tm) in rtc_set_time() 206 struct rtc_time before, now; in __rtc_read_alarm() 259 memcpy(&before, &now, sizeof(struct rtc_time)); in __rtc_read_alarm() 406 struct rtc_time tm; in __rtc_set_alarm() [all …]
|
D | rtc-da9052.c | 61 static int da9052_read_alarm(struct da9052_rtc *rtc, struct rtc_time *rtc_tm) in da9052_read_alarm() 104 static int da9052_set_alarm(struct da9052_rtc *rtc, struct rtc_time *rtc_tm) in da9052_set_alarm() 160 static int da9052_rtc_read_time(struct device *dev, struct rtc_time *rtc_tm) in da9052_rtc_read_time() 203 static int da9052_rtc_set_time(struct device *dev, struct rtc_time *tm) in da9052_rtc_set_time() 231 struct rtc_time *tm = &alrm->time; in da9052_rtc_read_alarm() 247 struct rtc_time *tm = &alrm->time; in da9052_rtc_set_alarm()
|
D | rtc-sirfsoc.c | 170 struct rtc_time *tm) in sirfsoc_rtc_read_time() 191 struct rtc_time *tm) in sirfsoc_rtc_set_time() 193 unsigned long rtc_time; in sirfsoc_rtc_set_time() local 197 rtc_tm_to_time(tm, &rtc_time); in sirfsoc_rtc_set_time() 199 rtcdrv->overflow_rtc = rtc_time >> (BITS_PER_LONG - RTC_SHIFT); in sirfsoc_rtc_set_time() 202 sirfsoc_rtc_writel(rtcdrv, RTC_CN, rtc_time << RTC_SHIFT); in sirfsoc_rtc_set_time()
|
D | rtc-da9055.c | 61 static int da9055_read_alarm(struct da9055 *da9055, struct rtc_time *rtc_tm) in da9055_read_alarm() 82 static int da9055_set_alarm(struct da9055 *da9055, struct rtc_time *rtc_tm) in da9055_set_alarm() 130 static int da9055_rtc_read_time(struct device *dev, struct rtc_time *rtc_tm) in da9055_rtc_read_time() 164 static int da9055_rtc_set_time(struct device *dev, struct rtc_time *tm) in da9055_rtc_set_time() 184 struct rtc_time *tm = &alrm->time; in da9055_rtc_read_alarm() 200 struct rtc_time *tm = &alrm->time; in da9055_rtc_set_alarm()
|
D | rtc-pl031.c | 118 struct rtc_time *tm, unsigned long *st_time, in pl031_stv2_tm_to_time() 131 struct rtc_time calc_tm; in pl031_stv2_tm_to_time() 154 struct rtc_time *tm) in pl031_stv2_time_to_tm() 170 static int pl031_stv2_read_time(struct device *dev, struct rtc_time *tm) in pl031_stv2_read_time() 180 static int pl031_stv2_set_time(struct device *dev, struct rtc_time *tm) in pl031_stv2_set_time() 251 static int pl031_read_time(struct device *dev, struct rtc_time *tm) in pl031_read_time() 260 static int pl031_set_time(struct device *dev, struct rtc_time *tm) in pl031_set_time()
|
/Linux-v4.19/include/linux/ |
D | rtc.h | 23 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() 37 static inline void rtc_time_to_tm(unsigned long time, struct rtc_time *tm) in rtc_time_to_tm() 42 static inline int rtc_tm_to_time(struct rtc_time *tm, unsigned long *time) in rtc_tm_to_time() 77 int (*read_time)(struct device *, struct rtc_time *); 78 int (*set_time)(struct device *, struct rtc_time *); [all …]
|
/Linux-v4.19/include/uapi/linux/ |
D | rtc.h | 21 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 */
|
/Linux-v4.19/arch/alpha/kernel/ |
D | rtc.c | 81 alpha_rtc_read_time(struct device *dev, struct rtc_time *tm) in alpha_rtc_read_time() 104 alpha_rtc_set_time(struct device *dev, struct rtc_time *tm) in alpha_rtc_set_time() 106 struct rtc_time xtm; in alpha_rtc_set_time() 149 struct rtc_time *tm; 161 remote_read_time(struct device *dev, struct rtc_time *tm) in remote_read_time() 180 remote_set_time(struct device *dev, struct rtc_time *tm) in remote_set_time()
|
/Linux-v4.19/drivers/char/ |
D | efirtc.c | 102 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()
|
D | rtc.c | 147 static void rtc_get_rtc_time(struct rtc_time *rtc_tm); 153 static void get_rtc_alm_time(struct rtc_time *alm_tm); 387 struct rtc_time wtime; in rtc_do_ioctl() 474 memset(&wtime, 0, sizeof(struct rtc_time)); in rtc_do_ioctl() 486 struct rtc_time alm_tm; in rtc_do_ioctl() 488 if (copy_from_user(&alm_tm, (struct rtc_time __user *)arg, in rtc_do_ioctl() 489 sizeof(struct rtc_time))) in rtc_do_ioctl() 529 memset(&wtime, 0, sizeof(struct rtc_time)); in rtc_do_ioctl() 535 struct rtc_time rtc_tm; in rtc_do_ioctl() 546 if (copy_from_user(&rtc_tm, (struct rtc_time __user *)arg, in rtc_do_ioctl() [all …]
|
/Linux-v4.19/drivers/input/misc/ |
D | hp_sdc_rtc.c | 84 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() 435 struct rtc_time tm; in hp_sdc_rtc_proc_show() 438 memset(&tm, 0, sizeof(struct rtc_time)); in hp_sdc_rtc_proc_show() 519 struct rtc_time wtime; in hp_sdc_rtc_ioctl() [all …]
|
/Linux-v4.19/arch/powerpc/platforms/powermac/ |
D | pmac.h | 13 struct rtc_time; 19 extern void pmac_get_rtc_time(struct rtc_time *); 20 extern int pmac_set_rtc_time(struct rtc_time *);
|
D | time.c | 116 static int cuda_set_rtc_time(struct rtc_time *tm) in cuda_set_rtc_time() 163 static int pmu_set_rtc_time(struct rtc_time *tm) in pmu_set_rtc_time() 188 struct rtc_time tm; in smu_get_time() 217 void pmac_get_rtc_time(struct rtc_time *tm) in pmac_get_rtc_time() 235 int pmac_set_rtc_time(struct rtc_time *tm) in pmac_set_rtc_time()
|
/Linux-v4.19/arch/m68k/mvme16x/ |
D | rtc.c | 42 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()
|
/Linux-v4.19/arch/powerpc/platforms/chrp/ |
D | chrp.h | 7 extern void chrp_get_rtc_time(struct rtc_time *); 8 extern int chrp_set_rtc_time(struct rtc_time *);
|
/Linux-v4.19/arch/m68k/bvme6000/ |
D | rtc.c | 44 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()
|
/Linux-v4.19/arch/powerpc/platforms/8xx/ |
D | mpc8xx.h | 16 extern int mpc8xx_set_rtc_time(struct rtc_time *tm); 17 extern void mpc8xx_get_rtc_time(struct rtc_time *tm);
|
/Linux-v4.19/arch/powerpc/kernel/ |
D | rtas-rtc.c | 48 void rtas_get_rtc_time(struct rtc_time *rtc_tm) in rtas_get_rtc_time() 62 memset(rtc_tm, 0, sizeof(struct rtc_time)); in rtas_get_rtc_time() 87 int rtas_set_rtc_time(struct rtc_time *tm) in rtas_set_rtc_time()
|
/Linux-v4.19/arch/powerpc/platforms/maple/ |
D | maple.h | 7 extern int maple_set_rtc_time(struct rtc_time *tm); 8 extern void maple_get_rtc_time(struct rtc_time *tm);
|
/Linux-v4.19/arch/m68k/kernel/ |
D | time.c | 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()
|
/Linux-v4.19/arch/powerpc/include/asm/ |
D | rtas.h | 363 struct rtc_time; 365 extern void rtas_get_rtc_time(struct rtc_time *rtc_time); 366 extern int rtas_set_rtc_time(struct rtc_time *rtc_time);
|
/Linux-v4.19/arch/m68k/include/asm/ |
D | machdep.h | 11 struct rtc_time; 21 extern int (*mach_hwclk)(int, struct rtc_time*);
|
/Linux-v4.19/arch/ia64/sn/kernel/sn2/ |
D | timer.c | 47 unsigned long start = rtc_time(); in ia64_sn_udelay() 51 while (time_before((unsigned long)rtc_time(), end)) in ia64_sn_udelay()
|