/linux-6.6.21/drivers/rtc/ |
D | rtc-mv.c | 46 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 …]
|
D | lib.c | 52 void rtc_time64_to_tm(time64_t time, struct rtc_time *tm) in rtc_time64_to_tm() 147 int rtc_valid_tm(struct rtc_time *tm) in rtc_valid_tm() 168 time64_t rtc_tm_to_time64(struct rtc_time *tm) in rtc_tm_to_time64() 178 ktime_t rtc_tm_to_ktime(struct rtc_time tm) in rtc_tm_to_ktime() 187 struct rtc_time rtc_ktime_to_tm(ktime_t kt) in rtc_ktime_to_tm() 190 struct rtc_time ret; in rtc_ktime_to_tm()
|
D | interface.c | 23 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 …]
|
D | rtc-da9052.c | 56 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()
|
D | rtc-bd70528.c | 56 static inline void tmday2rtc(struct rtc_time *t, struct bd70528_rtc_day *d) in tmday2rtc() 66 static inline void tm2rtc(struct rtc_time *t, struct bd70528_rtc_data *r) in tm2rtc() 88 static inline void rtc2tm(struct bd70528_rtc_data *r, struct rtc_time *t) in rtc2tm() 160 static int bd71828_set_time(struct device *dev, struct rtc_time *t) in bd71828_set_time() 182 static int bd70528_get_time(struct device *dev, struct rtc_time *t) in bd70528_get_time() 304 struct rtc_time t; in bd70528_probe()
|
D | rtc-da9055.c | 56 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()
|
D | rtc-pl031.c | 116 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()
|
D | rtc-mxc.c | 68 struct rtc_time g_rtc_alarm; 152 static void rtc_update_alarm(struct device *dev, struct rtc_time *alrm) in rtc_update_alarm() 224 static int mxc_rtc_read_time(struct device *dev, struct rtc_time *tm) in mxc_rtc_read_time() 241 static int mxc_rtc_set_time(struct device *dev, struct rtc_time *tm) in mxc_rtc_set_time() 278 memcpy(&pdata->g_rtc_alarm, &alrm->time, sizeof(struct rtc_time)); in mxc_rtc_set_alarm() 318 struct rtc_time tm; in mxc_rtc_probe()
|
D | rtc-88pm80x.c | 76 static void rtc_next_alarm_time(struct rtc_time *next, struct rtc_time *now, in rtc_next_alarm_time() 77 struct rtc_time *alrm) in rtc_next_alarm_time() 99 static int pm80x_rtc_read_time(struct device *dev, struct rtc_time *tm) in pm80x_rtc_read_time() 120 static int pm80x_rtc_set_time(struct device *dev, struct rtc_time *tm) in pm80x_rtc_set_time() 173 struct rtc_time now_tm, alarm_tm; in pm80x_rtc_set_alarm()
|
D | rtc-mt7622.c | 152 static void mtk_rtc_get_alarm_or_time(struct mtk_rtc *hw, struct rtc_time *tm, in mtk_rtc_get_alarm_or_time() 184 static void mtk_rtc_set_alarm_or_time(struct mtk_rtc *hw, struct rtc_time *tm, in mtk_rtc_set_alarm_or_time() 220 static int mtk_rtc_gettime(struct device *dev, struct rtc_time *tm) in mtk_rtc_gettime() 229 static int mtk_rtc_settime(struct device *dev, struct rtc_time *tm) in mtk_rtc_settime() 250 struct rtc_time *alrm_tm = &wkalrm->time; in mtk_rtc_getalarm() 263 struct rtc_time *alrm_tm = &wkalrm->time; in mtk_rtc_setalarm()
|
/linux-6.6.21/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() 61 int (*read_time)(struct device *, struct rtc_time *); 62 int (*set_time)(struct device *, struct rtc_time *); 187 extern int rtc_read_time(struct rtc_device *rtc, struct rtc_time *tm); 188 extern int rtc_set_time(struct rtc_device *rtc, struct rtc_time *tm);
|
/linux-6.6.21/include/uapi/linux/ |
D | rtc.h | 25 struct rtc_time { struct 44 struct rtc_time time; /* time the alarm is set to */ argument 95 #define RTC_ALM_SET _IOW('p', 0x07, struct rtc_time) /* Set alarm time */ 96 #define RTC_ALM_READ _IOR('p', 0x08, struct rtc_time) /* Read alarm time */ 97 #define RTC_RD_TIME _IOR('p', 0x09, struct rtc_time) /* Read RTC time */ 98 #define RTC_SET_TIME _IOW('p', 0x0a, struct rtc_time) /* Set RTC time */
|
/linux-6.6.21/drivers/input/misc/ |
D | hp_sdc_rtc.c | 66 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()
|
/linux-6.6.21/tools/testing/selftests/rtc/ |
D | rtctest.c | 42 struct rtc_time rtc_tm; in TEST_F() 57 static time_t rtc_time_to_timestamp(struct rtc_time *rtc_time) in rtc_time_to_timestamp() argument 60 .tm_sec = rtc_time->tm_sec, in rtc_time_to_timestamp() 61 .tm_min = rtc_time->tm_min, in rtc_time_to_timestamp() 62 .tm_hour = rtc_time->tm_hour, in rtc_time_to_timestamp() 63 .tm_mday = rtc_time->tm_mday, in rtc_time_to_timestamp() 64 .tm_mon = rtc_time->tm_mon, in rtc_time_to_timestamp() 65 .tm_year = rtc_time->tm_year, in rtc_time_to_timestamp() 88 struct rtc_time rtc_tm; 196 struct rtc_time tm; in TEST_F() [all …]
|
/linux-6.6.21/arch/alpha/kernel/ |
D | rtc.c | 81 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()
|
/linux-6.6.21/arch/powerpc/platforms/powermac/ |
D | pmac.h | 15 struct rtc_time; 23 extern void pmac_get_rtc_time(struct rtc_time *); 24 extern int pmac_set_rtc_time(struct rtc_time *);
|
/linux-6.6.21/arch/m68k/kernel/ |
D | time.c | 67 int (*mach_hwclk) (int, struct rtc_time*); 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-6.6.21/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-6.6.21/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-6.6.21/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-6.6.21/arch/powerpc/kernel/ |
D | rtas-rtc.c | 47 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-6.6.21/arch/m68k/68000/ |
D | m68328.h | 4 struct rtc_time; 5 int m68328_hwclk(int set, struct rtc_time *t);
|
/linux-6.6.21/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-6.6.21/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-6.6.21/arch/m68k/include/asm/ |
D | machdep.h | 11 struct rtc_time; 21 extern int (*mach_hwclk)(int, struct rtc_time*);
|