Home
last modified time | relevance | path

Searched refs:rtc_time (Results 1 – 25 of 62) 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/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.c88 static void to_rtc_time(unsigned long now, struct rtc_time *tm) in to_rtc_time()
98 static unsigned long from_rtc_time(struct rtc_time *tm) in from_rtc_time()
125 static int cuda_set_rtc_time(struct rtc_time *tm) in cuda_set_rtc_time()
168 static int pmu_set_rtc_time(struct rtc_time *tm) in pmu_set_rtc_time()
193 struct rtc_time tm; in smu_get_time()
222 void pmac_get_rtc_time(struct rtc_time *tm) in pmac_get_rtc_time()
240 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.h177 struct rtc_time;
179 extern void rtas_get_rtc_time(struct rtc_time *rtc_time);
180 extern int rtas_set_rtc_time(struct rtc_time *rtc_time);
Dtime.h34 struct rtc_time;
35 extern void to_tm(int tim, struct rtc_time * tm);
36 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()
43 static inline int set_rtc_time(struct rtc_time *time) in set_rtc_time()
53 struct rtc_time h; in get_rtc_ss()
Dmachdep_mm.h9 struct rtc_time;
20 extern int (*mach_hwclk)(int, struct rtc_time*);
/arch/cris/arch-v10/drivers/
Dds1302.c203 get_rtc_time(struct rtc_time *rtc_tm) in get_rtc_time()
250 struct rtc_time rtc_tm; in rtc_ioctl()
252 memset(&rtc_tm, 0, sizeof (struct rtc_time)); in rtc_ioctl()
254 if (copy_to_user((struct rtc_time*)arg, &rtc_tm, sizeof(struct rtc_time))) in rtc_ioctl()
261 struct rtc_time rtc_tm; in rtc_ioctl()
268 if (copy_from_user(&rtc_tm, (struct rtc_time*)arg, sizeof(struct rtc_time))) in rtc_ioctl()
360 struct rtc_time tm; in print_rtc_status()
Dpcf8563.c110 get_rtc_time(struct rtc_time *tm) in get_rtc_time()
228 struct rtc_time tm; in pcf8563_ioctl()
234 if (copy_to_user((struct rtc_time *) arg, &tm, in pcf8563_ioctl()
249 struct rtc_time tm; in pcf8563_ioctl()
255 if (copy_from_user(&tm, (struct rtc_time *) arg, sizeof tm)) in pcf8563_ioctl()
/arch/powerpc/platforms/ps3/
Dtime.c30 static void _dump_tm(const struct rtc_time *tm, const char* func, int line) in _dump_tm()
45 struct rtc_time tm; in _dump_time()
77 int ps3_set_rtc_time(struct rtc_time *tm) in ps3_set_rtc_time()
86 void ps3_get_rtc_time(struct rtc_time *tm) in ps3_get_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.c81 int chrp_set_rtc_time(struct rtc_time *tmarg) in chrp_set_rtc_time()
84 struct rtc_time tm = *tmarg; in chrp_set_rtc_time()
125 void chrp_get_rtc_time(struct rtc_time *tm) in chrp_get_rtc_time()
/arch/powerpc/platforms/iseries/
Dsetup.h22 extern int iSeries_set_rtc_time(struct rtc_time *tm);
23 extern void iSeries_get_rtc_time(struct rtc_time *tm);
/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/cris/include/asm/
Drtc.h82 struct rtc_time { struct
97 #define RTC_RD_TIME _IOR(RTC_MAGIC, 0x09, struct rtc_time) argument
99 #define RTC_SET_TIME _IOW(RTC_MAGIC, 0x0a, struct rtc_time)
/arch/powerpc/kernel/
Drtas-rtc.c45 void rtas_get_rtc_time(struct rtc_time *rtc_tm) in rtas_get_rtc_time()
59 memset(rtc_tm, 0, sizeof(struct rtc_time)); in rtas_get_rtc_time()
82 int rtas_set_rtc_time(struct rtc_time *tm) in rtas_set_rtc_time()
/arch/ia64/sn/kernel/sn2/
Dtimer.c49 unsigned long start = rtc_time(); in ia64_sn_udelay()
53 while (time_before((unsigned long)rtc_time(), end)) in ia64_sn_udelay()
/arch/m68k/mvme16x/
Drtc.c45 struct rtc_time wtime; in rtc_ioctl()
54 memset(&wtime, 0, sizeof(struct rtc_time)); in rtc_ioctl()
71 struct rtc_time rtc_tm; in rtc_ioctl()
78 if (copy_from_user(&rtc_tm, argp, sizeof(struct rtc_time))) in rtc_ioctl()
/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, argp, sizeof(struct rtc_time))) in rtc_ioctl()
/arch/alpha/include/asm/
Dmachvec.h24 struct rtc_time;
98 unsigned int (*rtc_get_time)(struct rtc_time *);
99 int (*rtc_set_time)(struct 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/cris/arch-v32/drivers/
Dpcf8563.c106 get_rtc_time(struct rtc_time *tm) in get_rtc_time()
224 struct rtc_time tm; in pcf8563_ioctl()
230 if (copy_to_user((struct rtc_time *) arg, &tm, in pcf8563_ioctl()
245 struct rtc_time tm; in pcf8563_ioctl()
251 if (copy_from_user(&tm, (struct rtc_time *) arg, in pcf8563_ioctl()

123