Home
last modified time | relevance | path

Searched refs:tm (Results 1 – 25 of 62) sorted by relevance

123

/arch/powerpc/platforms/chrp/
A Dtime.c102 tm.tm_sec = bin2bcd(tm.tm_sec); in chrp_set_rtc_time()
103 tm.tm_min = bin2bcd(tm.tm_min); in chrp_set_rtc_time()
104 tm.tm_hour = bin2bcd(tm.tm_hour); in chrp_set_rtc_time()
105 tm.tm_mon = bin2bcd(tm.tm_mon); in chrp_set_rtc_time()
106 tm.tm_mday = bin2bcd(tm.tm_mday); in chrp_set_rtc_time()
107 tm.tm_year = bin2bcd(tm.tm_year); in chrp_set_rtc_time()
153 tm->tm_sec = sec; in chrp_get_rtc_time()
154 tm->tm_min = min; in chrp_get_rtc_time()
155 tm->tm_hour = hour; in chrp_get_rtc_time()
156 tm->tm_mday = day; in chrp_get_rtc_time()
[all …]
/arch/mips/sibyte/swarm/
A Drtc_m41t81.c141 struct rtc_time tm; in m41t81_set_time() local
154 tm.tm_sec = bin2bcd(tm.tm_sec); in m41t81_set_time()
157 tm.tm_min = bin2bcd(tm.tm_min); in m41t81_set_time()
160 tm.tm_hour = bin2bcd(tm.tm_hour); in m41t81_set_time()
165 if (tm.tm_wday == 0) tm.tm_wday = 7; in m41t81_set_time()
166 tm.tm_wday = bin2bcd(tm.tm_wday); in m41t81_set_time()
169 tm.tm_mday = bin2bcd(tm.tm_mday); in m41t81_set_time()
173 tm.tm_mon ++; in m41t81_set_time()
174 tm.tm_mon = bin2bcd(tm.tm_mon); in m41t81_set_time()
178 tm.tm_year %= 100; in m41t81_set_time()
[all …]
A Drtc_xicor1241.c110 struct rtc_time tm; in xicor_set_time() local
115 tm.tm_year += 1900; in xicor_set_time()
123 tm.tm_sec = bin2bcd(tm.tm_sec); in xicor_set_time()
126 tm.tm_min = bin2bcd(tm.tm_min); in xicor_set_time()
129 tm.tm_mday = bin2bcd(tm.tm_mday); in xicor_set_time()
133 tm.tm_mon ++; in xicor_set_time()
134 tm.tm_mon = bin2bcd(tm.tm_mon); in xicor_set_time()
139 tm.tm_year %= 100; in xicor_set_time()
147 tm.tm_hour = bin2bcd(tm.tm_hour); in xicor_set_time()
154 tm.tm_hour -= 12; in xicor_set_time()
[all …]
/arch/alpha/kernel/
A Drtc.c83 int ret = mc146818_get_time(tm, 10); in alpha_rtc_read_time()
94 int year = tm->tm_year; in alpha_rtc_read_time()
102 tm->tm_year = year; in alpha_rtc_read_time()
114 xtm = *tm; in alpha_rtc_set_time()
116 tm = &xtm; in alpha_rtc_set_time()
119 return mc146818_set_time(tm); in alpha_rtc_set_time()
154 struct rtc_time *tm; member
170 x.tm = tm; in remote_read_time()
174 return alpha_rtc_read_time(NULL, tm); in remote_read_time()
189 x.tm = tm; in remote_set_time()
[all …]
/arch/powerpc/platforms/powernv/
A Dopal-rtc.c22 static void __init opal_to_tm(u32 y_m_d, u64 h_m_s_ms, struct rtc_time *tm) in opal_to_tm() argument
24 tm->tm_year = ((bcd2bin(y_m_d >> 24) * 100) + in opal_to_tm()
26 tm->tm_mon = bcd2bin((y_m_d >> 8) & 0xff) - 1; in opal_to_tm()
27 tm->tm_mday = bcd2bin(y_m_d & 0xff); in opal_to_tm()
28 tm->tm_hour = bcd2bin((h_m_s_ms >> 56) & 0xff); in opal_to_tm()
29 tm->tm_min = bcd2bin((h_m_s_ms >> 48) & 0xff); in opal_to_tm()
30 tm->tm_sec = bcd2bin((h_m_s_ms >> 40) & 0xff); in opal_to_tm()
31 tm->tm_wday = -1; in opal_to_tm()
36 struct rtc_time tm; in opal_get_boot_time() local
60 opal_to_tm(y_m_d, h_m_s_ms, &tm); in opal_get_boot_time()
[all …]
/arch/s390/include/asm/
A Dscsw.h143 struct tm_scsw tm; member
246 return scsw->tm.key; in scsw_key()
261 return scsw->tm.eswf; in scsw_eswf()
276 return scsw->tm.cc; in scsw_cc()
291 return scsw->tm.ectl; in scsw_ectl()
306 return scsw->tm.pno; in scsw_pno()
321 return scsw->tm.fctl; in scsw_fctl()
336 return scsw->tm.actl; in scsw_actl()
351 return scsw->tm.stctl; in scsw_stctl()
738 if (!scsw->tm.fctl) in scsw_tm_is_valid_pno()
[all …]
/arch/powerpc/platforms/powermac/
A Dtime.c89 struct rtc_time tm; in smu_get_time() local
91 if (smu_get_rtc_time(&tm, 1)) in smu_get_time()
93 return rtc_tm_to_time64(&tm); in smu_get_time()
119 void pmac_get_rtc_time(struct rtc_time *tm) in pmac_get_rtc_time() argument
125 rtc_time64_to_tm(cuda_get_time(), tm); in pmac_get_rtc_time()
130 rtc_time64_to_tm(pmu_get_time(), tm); in pmac_get_rtc_time()
135 smu_get_rtc_time(tm, 1); in pmac_get_rtc_time()
143 int pmac_set_rtc_time(struct rtc_time *tm) in pmac_set_rtc_time() argument
148 return cuda_set_rtc_time(tm); in pmac_set_rtc_time()
152 return pmu_set_rtc_time(tm); in pmac_set_rtc_time()
[all …]
/arch/sh/boards/mach-sh03/
A Drtc.c41 static int sh03_rtc_gettimeofday(struct device *dev, struct rtc_time *tm) in sh03_rtc_gettimeofday() argument
79 tm->tm_sec = sec; in sh03_rtc_gettimeofday()
80 tm->tm_min = min; in sh03_rtc_gettimeofday()
81 tm->tm_hour = hour; in sh03_rtc_gettimeofday()
82 tm->tm_mday = day; in sh03_rtc_gettimeofday()
83 tm->tm_mon = mon; in sh03_rtc_gettimeofday()
84 tm->tm_year = year - 1900; in sh03_rtc_gettimeofday()
89 static int set_rtc_mmss(struct rtc_time *tm) in set_rtc_mmss() argument
101 real_seconds = tm->tm_sec; in set_rtc_mmss()
102 real_minutes = tm->tm_min; in set_rtc_mmss()
[all …]
/arch/powerpc/kernel/
A Drtas-rtc.c86 int rtas_set_rtc_time(struct rtc_time *tm) in rtas_set_rtc_time() argument
94 tm->tm_year + 1900, tm->tm_mon + 1, in rtas_set_rtc_time()
95 tm->tm_mday, tm->tm_hour, tm->tm_min, in rtas_set_rtc_time()
96 tm->tm_sec, 0); in rtas_set_rtc_time()
A Drtas-proc.c280 struct rtc_time tm; in ppc_rtas_poweron_write() local
288 rtc_time64_to_tm(nowtime, &tm); in ppc_rtas_poweron_write()
291 tm.tm_year + 1900, tm.tm_mon + 1, tm.tm_mday, in ppc_rtas_poweron_write()
292 tm.tm_hour, tm.tm_min, tm.tm_sec, 0 /* nano */); in ppc_rtas_poweron_write()
346 struct rtc_time tm; in ppc_rtas_clock_write() local
352 rtc_time64_to_tm(nowtime, &tm); in ppc_rtas_clock_write()
354 tm.tm_year + 1900, tm.tm_mon + 1, tm.tm_mday, in ppc_rtas_clock_write()
355 tm.tm_hour, tm.tm_min, tm.tm_sec, 0); in ppc_rtas_clock_write()
A Dtime.c738 struct rtc_time tm; in update_persistent_clock64() local
743 rtc_time64_to_tm(now.tv_sec + 1 + timezone_offset, &tm); in update_persistent_clock64()
745 return ppc_md.set_rtc_time(&tm); in update_persistent_clock64()
750 struct rtc_time tm; in __read_persistent_clock() local
770 ppc_md.get_rtc_time(&tm); in __read_persistent_clock()
772 ts->tv_sec = rtc_tm_to_time64(&tm); in __read_persistent_clock()
1019 static int rtc_generic_get_time(struct device *dev, struct rtc_time *tm) in rtc_generic_get_time() argument
1021 ppc_md.get_rtc_time(tm); in rtc_generic_get_time()
1025 static int rtc_generic_set_time(struct device *dev, struct rtc_time *tm) in rtc_generic_set_time() argument
1030 if (ppc_md.set_rtc_time(tm) < 0) in rtc_generic_set_time()
/arch/x86/kernel/
A Drtc.c38 struct rtc_time tm; in mach_set_cmos_time() local
41 rtc_time64_to_tm(nowtime, &tm); in mach_set_cmos_time()
42 if (!rtc_valid_tm(&tm)) { in mach_set_cmos_time()
43 retval = mc146818_set_time(&tm); in mach_set_cmos_time()
58 struct rtc_time tm; in mach_get_cmos_time() local
69 if (mc146818_get_time(&tm, 1000)) { in mach_get_cmos_time()
75 now->tv_sec = rtc_tm_to_time64(&tm); in mach_get_cmos_time()
/arch/mips/include/asm/
A Dmc146818-time.h17 struct rtc_time tm; in mc146818_get_cmos_time() local
19 if (mc146818_get_time(&tm, 1000)) { in mc146818_get_cmos_time()
24 return rtc_tm_to_time64(&tm); in mc146818_get_cmos_time()
/arch/arm/vfp/
A Dvfpdouble.c211 int tn, tm = 0; in vfp_propagate_nan() local
271 int ret, tm; in vfp_double_fsqrt() local
278 if (tm & VFP_NAN) in vfp_double_fsqrt()
296 if (tm & VFP_ZERO) in vfp_double_fsqrt()
443 int tm; in vfp_double_fcvts() local
511 int tm; in vfp_double_ftoui() local
522 if (tm & VFP_NAN) in vfp_double_ftoui()
590 int tm; in vfp_double_ftosi() local
688 int tn, tm; in vfp_double_fadd_nonnumber() local
1011 int tm, tn; in vfp_double_fdiv() local
[all …]
A Dvfpsingle.c219 int tn, tm = 0; in vfp_propagate_nan() local
319 int ret, tm; in vfp_single_fsqrt() local
326 if (tm & VFP_NAN) in vfp_single_fsqrt()
344 if (tm & VFP_ZERO) in vfp_single_fsqrt()
486 int tm; in vfp_single_fcvtd() local
552 int tm; in vfp_single_ftoui() local
564 if (tm & VFP_NAN) in vfp_single_ftoui()
632 int tm; in vfp_single_ftosi() local
734 int tn, tm; in vfp_single_fadd_nonnumber() local
1057 int tm, tn; in vfp_single_fdiv() local
[all …]
/arch/sh/boards/mach-dreamcast/
A Drtc.c33 static int aica_rtc_gettimeofday(struct device *dev, struct rtc_time *tm) in aica_rtc_gettimeofday() argument
49 rtc_time64_to_tm(t, tm); in aica_rtc_gettimeofday()
61 static int aica_rtc_settimeofday(struct device *dev, struct rtc_time *tm) in aica_rtc_settimeofday() argument
64 time64_t secs = rtc_tm_to_time64(tm); in aica_rtc_settimeofday()
/arch/parisc/kernel/
A Dtime.c119 static int rtc_generic_get_time(struct device *dev, struct rtc_time *tm) in rtc_generic_get_time() argument
123 memset(tm, 0, sizeof(*tm)); in rtc_generic_get_time()
128 rtc_time64_to_tm(tod_data.tod_sec, tm); in rtc_generic_get_time()
132 static int rtc_generic_set_time(struct device *dev, struct rtc_time *tm) in rtc_generic_set_time() argument
134 time64_t secs = rtc_tm_to_time64(tm); in rtc_generic_set_time()
/arch/m68k/kernel/
A Dtime.c94 static int rtc_generic_get_time(struct device *dev, struct rtc_time *tm) in rtc_generic_get_time() argument
96 mach_hwclk(0, 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() argument
102 if (mach_hwclk(1, tm) < 0) in rtc_generic_set_time()
/arch/powerpc/platforms/8xx/
A Dm8xx_setup.c138 int mpc8xx_set_rtc_time(struct rtc_time *tm) in mpc8xx_set_rtc_time() argument
142 time = rtc_tm_to_time64(tm); in mpc8xx_set_rtc_time()
151 void mpc8xx_get_rtc_time(struct rtc_time *tm) in mpc8xx_get_rtc_time() argument
157 rtc_time64_to_tm(data, tm); in mpc8xx_get_rtc_time()
A Dmpc8xx.h16 extern int mpc8xx_set_rtc_time(struct rtc_time *tm);
17 extern void mpc8xx_get_rtc_time(struct rtc_time *tm);
/arch/m68k/mac/
A Dmisc.c293 static void via_set_rtc_time(struct rtc_time *tm) in via_set_rtc_time() argument
302 time = mktime64(tm->tm_year + 1900, tm->tm_mon + 1, tm->tm_mday, in via_set_rtc_time()
303 tm->tm_hour, tm->tm_min, tm->tm_sec); in via_set_rtc_time()
/arch/parisc/math-emu/
A Dfpudispatch.c1158 u_int rm1, rm2, tm, ra, ta; /* operands */ local
1181 if (tm == 0)
1229 fpregs[tm] = mtmp.ints.i1;
1230 fpregs[tm+1] = mtmp.ints.i2;
1249 tm |= extru(ir,fptmpos-4,1); /* add right word offset */
1282 fpregs[tm] = mtmp.ints.i1;
1298 u_int rm1, rm2, tm, ra, ta; /* operands */ local
1319 if (tm == 0)
1336 fpregs[tm] = mtmp.ints.i1;
1337 fpregs[tm+1] = mtmp.ints.i2;
[all …]
/arch/powerpc/kvm/
A DMakefile55 tm.o
78 kvm-book3s_64-builtin-tm-objs-$(CONFIG_PPC_TRANSACTIONAL_MEM) += \
92 $(kvm-book3s_64-builtin-tm-objs-y) \
/arch/um/drivers/
A Drtc_kern.c33 static int uml_rtc_read_time(struct device *dev, struct rtc_time *tm) in uml_rtc_read_time() argument
39 rtc_time64_to_tm(timespec64_to_ktime(ts) / NSEC_PER_SEC, tm); in uml_rtc_read_time()
/arch/powerpc/kernel/ptrace/
A DMakefile17 obj-$(CONFIG_PPC_TRANSACTIONAL_MEM) += ptrace-tm.o

Completed in 50 milliseconds

123