/Linux-v5.15/drivers/rtc/ |
D | rtc-ds1286.c | 182 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()
|
D | lib.c | 137 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()
|
D | rtc-wm8350.c | 54 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()
|
D | rtc-hym8563.c | 107 tm->tm_min = bcd2bin(buf[1] & HYM8563_MIN_MASK); in hym8563_rtc_read_time() 128 buf[1] = bin2bcd(tm->tm_min); in hym8563_rtc_set_time() 193 alm_tm->tm_min = (buf[0] & HYM8563_ALM_BIT_DISABLE) ? in hym8563_rtc_read_alarm() 228 alm_tm->tm_min++; in hym8563_rtc_set_alarm() 229 if (alm_tm->tm_min >= 60) { in hym8563_rtc_set_alarm() 230 alm_tm->tm_min = 0; in hym8563_rtc_set_alarm() 251 buf[0] = (alm_tm->tm_min < 60 && alm_tm->tm_min >= 0) ? in hym8563_rtc_set_alarm() 252 bin2bcd(alm_tm->tm_min) : HYM8563_ALM_BIT_DISABLE; in hym8563_rtc_set_alarm()
|
D | rtc-m41t94.c | 36 "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()
|
D | rtc-s35390a.c | 219 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() 318 buf[S35390A_ALRM_BYTE_MINS] = bin2bcd(alm->time.tm_min) | 0x80; in s35390a_rtc_set_alarm() 376 alm->time.tm_min = bcd2bin(buf[S35390A_ALRM_BYTE_MINS] & ~0x80); in s35390a_rtc_read_alarm() 382 __func__, alm->time.tm_min, alm->time.tm_hour, in s35390a_rtc_read_alarm()
|
D | rtc-spear.c | 173 tm->tm_min = bin2bcd(tm->tm_min); in tm2bcd() 183 tm->tm_min = bcd2bin(tm->tm_min); in bcd2tm() 210 tm->tm_min = (time >> MINUTE_SHIFT) & MIN_MASK; in spear_rtc_read_time() 236 time = (tm->tm_sec << SECOND_SHIFT) | (tm->tm_min << MINUTE_SHIFT) | in spear_rtc_set_time() 264 alm->time.tm_min = (time >> MINUTE_SHIFT) & MIN_MASK; in spear_rtc_read_alarm() 294 time = (alm->time.tm_sec << SECOND_SHIFT) | (alm->time.tm_min << in spear_rtc_set_alarm()
|
D | rtc-s3c.c | 142 rtc_tm->tm_min = readb(info->base + S3C2410_RTCMIN); in s3c_rtc_gettime() 160 rtc_tm->tm_min = bcd2bin(rtc_tm->tm_min); in s3c_rtc_gettime() 195 writeb(bin2bcd(tm->tm_min), info->base + S3C2410_RTCMIN); in s3c_rtc_settime() 218 alm_tm->tm_min = readb(info->base + S3C2410_ALMMIN); in s3c_rtc_getalarm() 237 alm_tm->tm_min = bcd2bin(alm_tm->tm_min); in s3c_rtc_getalarm() 277 if (tm->tm_min < 60 && tm->tm_min >= 0) { in s3c_rtc_setalarm() 279 writeb(bin2bcd(tm->tm_min), info->base + S3C2410_ALMMIN); in s3c_rtc_setalarm()
|
D | rtc-mc146818-lib.c | 60 time->tm_min = CMOS_READ(RTC_MINUTES); in mc146818_get_time() 95 time->tm_min = bcd2bin(time->tm_min); in mc146818_get_time() 139 min = time->tm_min; in mc146818_set_time()
|
D | rtc-pic32.c | 142 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()
|
D | rtc-fm3130.c | 118 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()
|
D | rtc-m41t93.c | 54 "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()
|
D | rtc-ntxec.c | 47 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()
|
D | rtc-m48t35.c | 70 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()
|
D | rtc-rx4581.c | 151 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()
|
D | rtc-pcf8563.c | 225 tm->tm_min = bcd2bin(buf[PCF8563_REG_MN] & 0x7F); in pcf8563_rtc_read_time() 238 tm->tm_sec, tm->tm_min, tm->tm_hour, in pcf8563_rtc_read_time() 253 tm->tm_sec, tm->tm_min, tm->tm_hour, in pcf8563_rtc_set_time() 258 buf[PCF8563_REG_MN] = bin2bcd(tm->tm_min); in pcf8563_rtc_set_time() 310 tm->time.tm_min = bcd2bin(buf[0] & 0x7F); in pcf8563_rtc_read_alarm() 320 " enabled=%d, pending=%d\n", __func__, tm->time.tm_min, in pcf8563_rtc_read_alarm() 343 tm->time.tm_min, tm->time.tm_hour, tm->time.tm_wday, in pcf8563_rtc_set_alarm() 346 buf[0] = bin2bcd(tm->time.tm_min); in pcf8563_rtc_set_alarm()
|
D | rtc-ds1511.c | 194 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()
|
D | rtc-mpc5121.c | 93 out_8(®s->minute_set, tm->tm_min); in mpc5121_rtc_update_smh() 154 tm->tm_min = in_8(®s->minute); in mpc5200_rtc_read_time() 218 alarm->time.tm_min++; in mpc5121_rtc_set_alarm() 219 if (alarm->time.tm_min >= 60) { in mpc5121_rtc_set_alarm() 220 alarm->time.tm_min = 0; in mpc5121_rtc_set_alarm() 231 out_8(®s->alm_min_set, alarm->time.tm_min); in mpc5121_rtc_set_alarm()
|
D | rtc-bq4802.c | 63 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()
|
D | rtc-isl12022.c | 137 tm->tm_min = bcd2bin(buf[ISL12022_REG_MN] & 0x7F); in isl12022_rtc_read_time() 147 tm->tm_sec, tm->tm_min, tm->tm_hour, in isl12022_rtc_read_time() 164 tm->tm_sec, tm->tm_min, tm->tm_hour, in isl12022_rtc_set_time() 206 buf[ISL12022_REG_MN] = bin2bcd(tm->tm_min); in isl12022_rtc_set_time()
|
D | rtc-stm32.c | 238 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()
|
/Linux-v5.15/tools/testing/selftests/rtc/ |
D | setdate.c | 50 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()
|
/Linux-v5.15/arch/powerpc/platforms/chrp/ |
D | time.c | 105 tm.tm_min = bin2bcd(tm.tm_min); in chrp_set_rtc_time() 112 chrp_cmos_clock_write(tm.tm_min,RTC_MINUTES); in chrp_set_rtc_time() 156 tm->tm_min = min; in chrp_get_rtc_time()
|
/Linux-v5.15/arch/powerpc/platforms/maple/ |
D | time.c | 55 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-v5.15/arch/m68k/atari/ |
D | time.c | 155 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()
|