Home
last modified time | relevance | path

Searched refs:tm_min (Results 1 – 25 of 177) sorted by relevance

12345678

/linux-6.1.9/drivers/rtc/
Drtc-ds1286.c182 tm->tm_min = ds1286_rtc_read(priv, RTC_MINUTES); in ds1286_read_time()
192 tm->tm_min = bcd2bin(tm->tm_min); in ds1286_read_time()
225 min = tm->tm_min; in ds1286_set_time()
272 alm->time.tm_min = ds1286_rtc_read(priv, RTC_MINUTES_ALARM) & 0x7f; in ds1286_read_alarm()
278 alm->time.tm_min = bcd2bin(alm->time.tm_min); in ds1286_read_alarm()
290 min = alm->time.tm_min; in ds1286_set_alarm()
Dlib.c137 tm->tm_min = secs / 60; in rtc_time64_to_tm()
138 tm->tm_sec = secs - tm->tm_min * 60; in rtc_time64_to_tm()
156 ((unsigned int)tm->tm_min) >= 60 || in rtc_valid_tm()
171 tm->tm_mday, tm->tm_hour, tm->tm_min, tm->tm_sec); in rtc_tm_to_time64()
Drtc-wm8350.c54 tm->tm_min = (time1[0] & WM8350_RTC_MINS_MASK) in wm8350_rtc_readtime()
98 time[0] |= tm->tm_min << WM8350_RTC_MINS_SHIFT; in wm8350_rtc_settime()
154 tm->tm_min = time[0] & WM8350_RTC_ALMMINS_MASK; in wm8350_rtc_readalarm()
155 if (tm->tm_min == WM8350_RTC_ALMMINS_MASK) in wm8350_rtc_readalarm()
156 tm->tm_min = -1; in wm8350_rtc_readalarm()
158 tm->tm_min >>= WM8350_RTC_ALMMINS_SHIFT; in wm8350_rtc_readalarm()
257 if (tm->tm_min != -1) in wm8350_rtc_setalarm()
258 time[0] |= tm->tm_min << WM8350_RTC_ALMMINS_SHIFT; in wm8350_rtc_setalarm()
Drtc-optee.c24 u32 tm_min; member
84 tm->tm_min = optee_tm->tm_min; in optee_rtc_readtime()
105 optee_tm.tm_min = tm->tm_min; in optee_rtc_settime()
224 rtc->range_min = mktime64(tm->tm_year, tm->tm_mon, tm->tm_mday, tm->tm_hour, tm->tm_min, in optee_rtc_read_info()
227 rtc->range_max = mktime64(tm->tm_year, tm->tm_mon, tm->tm_mday, tm->tm_hour, tm->tm_min, in optee_rtc_read_info()
Drtc-m41t94.c36 "write", tm->tm_sec, tm->tm_min, in m41t94_set_time()
42 buf[M41T94_REG_MINUTES] = bin2bcd(tm->tm_min); in m41t94_set_time()
83 tm->tm_min = bcd2bin(spi_w8r8(spi, M41T94_REG_MINUTES)); in m41t94_read_time()
95 "read", tm->tm_sec, tm->tm_min, in m41t94_read_time()
Drtc-spear.c173 tm->tm_min = bin2bcd(tm->tm_min); in tm2bcd()
183 tm->tm_min = bcd2bin(tm->tm_min); in bcd2tm()
212 tm->tm_min = (time >> MINUTE_SHIFT) & MIN_MASK; in spear_rtc_read_time()
238 time = (tm->tm_sec << SECOND_SHIFT) | (tm->tm_min << MINUTE_SHIFT) | in spear_rtc_set_time()
266 alm->time.tm_min = (time >> MINUTE_SHIFT) & MIN_MASK; in spear_rtc_read_alarm()
296 time = (alm->time.tm_sec << SECOND_SHIFT) | (alm->time.tm_min << in spear_rtc_set_alarm()
Drtc-s35390a.c219 tm->tm_min, tm->tm_hour, tm->tm_mday, tm->tm_mon, tm->tm_year, in s35390a_rtc_set_time()
230 buf[S35390A_BYTE_MINS] = bin2bcd(tm->tm_min); in s35390a_rtc_set_time()
261 tm->tm_min = bcd2bin(buf[S35390A_BYTE_MINS]); in s35390a_rtc_read_time()
270 tm->tm_min, tm->tm_hour, tm->tm_mday, tm->tm_mon, tm->tm_year, in s35390a_rtc_read_time()
285 alm->time.tm_min, alm->time.tm_hour, alm->time.tm_mday, in s35390a_rtc_set_alarm()
315 buf[S35390A_ALRM_BYTE_MINS] = bin2bcd(alm->time.tm_min) | 0x80; in s35390a_rtc_set_alarm()
373 alm->time.tm_min = bcd2bin(buf[S35390A_ALRM_BYTE_MINS] & ~0x80); in s35390a_rtc_read_alarm()
379 __func__, alm->time.tm_min, alm->time.tm_hour, in s35390a_rtc_read_alarm()
Drtc-rzn1.c70 tm->tm_min = readl(rtc->base + RZN1_RTC_MINC); in rzn1_rtc_get_time_snapshot()
110 tm->tm_min = bcd2bin(tm->tm_min); in rzn1_rtc_read_time()
127 tm->tm_min = bin2bcd(tm->tm_min); in rzn1_rtc_set_time()
148 writel(tm->tm_min, rtc->base + RZN1_RTC_MIN); in rzn1_rtc_set_time()
201 tm->tm_min = bcd2bin(min); in rzn1_rtc_read_alarm()
239 writel(bin2bcd(tm->tm_min), rtc->base + RZN1_RTC_ALM); in rzn1_rtc_set_alarm()
Drtc-pic32.c142 rtc_tm->tm_min = readb(base + PIC32_RTCMIN); in pic32_rtc_gettime()
157 rtc_tm->tm_min = bcd2bin(rtc_tm->tm_min); in pic32_rtc_gettime()
180 writeb(bin2bcd(tm->tm_min), base + PIC32_RTCMIN); in pic32_rtc_settime()
199 alm_tm->tm_min = readb(base + PIC32_ALRMMIN); in pic32_rtc_getalarm()
212 alm_tm->tm_min = bcd2bin(alm_tm->tm_min); in pic32_rtc_getalarm()
Drtc-fm3130.c118 t->tm_min = bcd2bin(fm3130->regs[FM3130_RTC_MINUTES] & 0x7f); in fm3130_get_time()
131 "read", t->tm_sec, t->tm_min, in fm3130_get_time()
147 "write", t->tm_sec, t->tm_min, in fm3130_set_time()
153 buf[FM3130_RTC_MINUTES] = bin2bcd(t->tm_min); in fm3130_set_time()
212 tm->tm_min = bcd2bin(fm3130->regs[FM3130_ALARM_MINUTES] & 0x7F); in fm3130_read_alarm()
222 "read alarm", tm->tm_sec, tm->tm_min, in fm3130_read_alarm()
247 "write alarm", tm->tm_sec, tm->tm_min, in fm3130_set_alarm()
255 (tm->tm_min != -1) ? bin2bcd(tm->tm_min) : 0x80; in fm3130_set_alarm()
Drtc-s3c.c141 tm->tm_min = readb(info->base + S3C2410_RTCMIN); in s3c_rtc_read_time()
161 tm->tm_min = bcd2bin(tm->tm_min); in s3c_rtc_read_time()
180 writeb(bin2bcd(tm->tm_min), info->base + S3C2410_RTCMIN); in s3c_rtc_write_time()
237 alm_tm->tm_min = readb(info->base + S3C2410_ALMMIN); in s3c_rtc_getalarm()
256 alm_tm->tm_min = bcd2bin(alm_tm->tm_min); in s3c_rtc_getalarm()
296 if (tm->tm_min < 60 && tm->tm_min >= 0) { in s3c_rtc_setalarm()
298 writeb(bin2bcd(tm->tm_min), info->base + S3C2410_ALMMIN); in s3c_rtc_setalarm()
Drtc-m41t93.c54 "write", tm->tm_sec, tm->tm_min, in m41t93_set_time()
89 data[M41T93_REG_MIN] = bin2bcd(tm->tm_min); in m41t93_set_time()
144 tm->tm_min = bcd2bin(buf[M41T93_REG_MIN]); in m41t93_get_time()
155 "read", tm->tm_sec, tm->tm_min, in m41t93_get_time()
Drtc-ntxec.c47 tm->tm_min = value >> 8; in ntxec_read_time()
73 if (tm->tm_min != value >> 8 || tm->tm_sec != (value & 0xff)) in ntxec_read_time()
96 { NTXEC_REG_WRITE_MINUTE, ntxec_reg8(tm->tm_min) }, in ntxec_set_time()
Drtc-m48t35.c70 tm->tm_min = readb(&priv->reg->min); in m48t35_read_time()
79 tm->tm_min = bcd2bin(tm->tm_min); in m48t35_read_time()
108 min = tm->tm_min; in m48t35_set_time()
Drtc-mc146818-lib.c113 p->time->tm_min = CMOS_READ(RTC_MINUTES); in mc146818_get_time_callback()
147 time->tm_min = bcd2bin(time->tm_min); in mc146818_get_time()
206 min = time->tm_min; in mc146818_set_time()
Drtc-rx4581.c151 tm->tm_min = bcd2bin(date[RX4581_REG_MN] & 0x7F); in rx4581_get_datetime()
164 tm->tm_sec, tm->tm_min, tm->tm_hour, in rx4581_get_datetime()
179 tm->tm_sec, tm->tm_min, tm->tm_hour, in rx4581_set_datetime()
185 buf[RX4581_REG_MN+1] = bin2bcd(tm->tm_min); in rx4581_set_datetime()
Drtc-ds1511.c194 min = rtc_tm->tm_min; in ds1511_rtc_set_time()
242 rtc_tm->tm_min = rtc_read(RTC_MIN) & 0x7f; in ds1511_rtc_read_time()
254 rtc_tm->tm_min = bcd2bin(rtc_tm->tm_min); in ds1511_rtc_read_time()
315 pdata->alrm_min = alrm->time.tm_min; in ds1511_rtc_set_alarm()
334 alrm->time.tm_min = pdata->alrm_min < 0 ? 0 : pdata->alrm_min; in ds1511_rtc_read_alarm()
Drtc-bq4802.c63 tm->tm_min = p->read(p, 0x02); in bq4802_read_time()
76 tm->tm_min = bcd2bin(tm->tm_min); in bq4802_read_time()
106 min = tm->tm_min; in bq4802_set_time()
Drtc-stm32.c238 tm->tm_min = bin2bcd(tm->tm_min); in tm2bcd()
256 tm->tm_min = bcd2bin(tm->tm_min); in bcd2tm()
281 tm->tm_min = (tr & STM32_RTC_TR_MIN) >> STM32_RTC_TR_MIN_SHIFT; in stm32_rtc_read_time()
307 ((tm->tm_min << STM32_RTC_TR_MIN_SHIFT) & STM32_RTC_TR_MIN) | in stm32_rtc_set_time()
382 tm->tm_min = -1; in stm32_rtc_read_alarm()
384 tm->tm_min = (alrmar & STM32_RTC_ALRMXR_MIN) >> in stm32_rtc_read_alarm()
458 ((tm->tm_hour == cur_hour) && (tm->tm_min > cur_min)) || in stm32_rtc_valid_alrm()
459 ((tm->tm_hour == cur_hour) && (tm->tm_min == cur_min) && in stm32_rtc_valid_alrm()
493 alrmar |= (tm->tm_min << STM32_RTC_ALRMXR_MIN_SHIFT) & in stm32_rtc_set_alarm()
Drtc-mv.c53 (bin2bcd(tm->tm_min) << RTC_MINUTES_OFFS) | in mv_rtc_set_time()
86 tm->tm_min = bcd2bin(minute); in mv_rtc_read_time()
117 alm->time.tm_min = bcd2bin(minute); in mv_rtc_read_alarm()
139 if (alm->time.tm_min >= 0) in mv_rtc_set_alarm()
140 rtc_reg |= (RTC_ALARM_VALID | bin2bcd(alm->time.tm_min)) in mv_rtc_set_alarm()
/linux-6.1.9/tools/testing/selftests/rtc/
Dsetdate.c50 sscanf(time, "%d:%d:%d", &new.tm_hour, &new.tm_min, &new.tm_sec); in main()
54 new.tm_hour, new.tm_min, new.tm_sec); in main()
73 current.tm_hour, current.tm_min, current.tm_sec); in main()
Drtctest.c51 rtc_tm.tm_hour, rtc_tm.tm_min, rtc_tm.tm_sec); in TEST_F()
58 .tm_min = rtc_time->tm_min, in rtc_time_to_timestamp()
203 tm.tm_hour, tm.tm_min, tm.tm_sec); in TEST_F()
261 alarm.time.tm_min, alarm.time.tm_sec); in TEST_F()
305 tm.tm_hour, tm.tm_min, tm.tm_sec);
363 alarm.time.tm_min, alarm.time.tm_sec);
/linux-6.1.9/arch/powerpc/platforms/chrp/
Dtime.c103 tm.tm_min = bin2bcd(tm.tm_min); in chrp_set_rtc_time()
110 chrp_cmos_clock_write(tm.tm_min,RTC_MINUTES); in chrp_set_rtc_time()
154 tm->tm_min = min; in chrp_get_rtc_time()
/linux-6.1.9/arch/powerpc/platforms/maple/
Dtime.c55 tm->tm_min = maple_clock_read(RTC_MINUTES); in maple_get_rtc_time()
65 tm->tm_min = bcd2bin(tm->tm_min); in maple_get_rtc_time()
93 min = tm->tm_min; in maple_set_rtc_time()
/linux-6.1.9/arch/m68k/atari/
Dtime.c155 val.min_ones = t->tm_min % 10; in atari_mste_hwclk()
156 val.min_tens = t->tm_min / 10; in atari_mste_hwclk()
182 t->tm_min = val.min_ones + val.min_tens * 10; in atari_mste_hwclk()
213 min = t->tm_min; in atari_tt_hwclk()
310 t->tm_min = min; in atari_tt_hwclk()

12345678