Home
last modified time | relevance | path

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

123

/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()
Dbeat.h30 int beat_set_rtc_time(struct rtc_time *);
31 void beat_get_rtc_time(struct rtc_time *);
/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 *);
/arch/powerpc/platforms/powermac/
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 *);
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()
/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.h333 struct rtc_time;
335 extern void rtas_get_rtc_time(struct rtc_time *rtc_time);
336 extern int rtas_set_rtc_time(struct rtc_time *rtc_time);
Dtime.h28 struct rtc_time;
29 extern void to_tm(int tim, struct rtc_time * tm);
30 extern void GregorianDay(struct rtc_time *tm);
/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()
Dmachdep.h10 struct rtc_time;
20 extern int (*mach_hwclk)(int, struct rtc_time*);
/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. */
/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 *);
Dtime.c85 int chrp_set_rtc_time(struct rtc_time *tmarg) in chrp_set_rtc_time()
88 struct rtc_time tm = *tmarg; in chrp_set_rtc_time()
129 void chrp_get_rtc_time(struct rtc_time *tm) in chrp_get_rtc_time()
/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);
/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);
/arch/alpha/kernel/
Drtc.c82 alpha_rtc_read_time(struct device *dev, struct rtc_time *tm) in alpha_rtc_read_time()
105 alpha_rtc_set_time(struct device *dev, struct rtc_time *tm) in alpha_rtc_set_time()
107 struct rtc_time xtm; in alpha_rtc_set_time()
228 struct rtc_time *tm;
241 remote_read_time(struct device *dev, struct rtc_time *tm) in remote_read_time()
260 remote_set_time(struct device *dev, struct rtc_time *tm) in remote_set_time()
/arch/powerpc/platforms/powernv/
Dopal-rtc.c23 static void opal_to_tm(u32 y_m_d, u64 h_m_s_ms, struct rtc_time *tm) in opal_to_tm()
38 struct rtc_time tm; in opal_get_boot_time()
69 void opal_get_rtc_time(struct rtc_time *tm) in opal_get_rtc_time()
91 int opal_set_rtc_time(struct rtc_time *tm) in opal_set_rtc_time()
/arch/ia64/sn/kernel/sn2/
Dtimer.c46 unsigned long start = rtc_time(); in ia64_sn_udelay()
50 while (time_before((unsigned long)rtc_time(), end)) in ia64_sn_udelay()
/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()
/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()
/arch/parisc/include/asm/
Drtc.h47 static inline unsigned int get_rtc_time(struct rtc_time *wtime) in get_rtc_time()
99 static int set_rtc_time(struct rtc_time *wtime) in set_rtc_time()
115 struct rtc_time h; in get_rtc_ss()
/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()
/arch/sh/kernel/
Dtime.c53 unsigned int get_rtc_time(struct rtc_time *tm) in get_rtc_time()
66 int set_rtc_time(struct rtc_time *tm) in set_rtc_time()
/arch/powerpc/platforms/ps3/
Dtime.c32 static void _dump_tm(const struct rtc_time *tm, const char* func, int line) in _dump_tm()
47 struct rtc_time tm; in _dump_time()
/arch/ia64/include/asm/sn/
Dclksupport.h26 #define rtc_time() (*RTC_COUNTER_ADDR) macro

123