/linux-6.6.21/drivers/rtc/ |
D | rtc-msm6242.c | 124 tm->tm_hour = (msm6242_read(priv, MSM6242_HOUR10) & in msm6242_read_time() 140 if (!pm && tm->tm_hour == 12) in msm6242_read_time() 141 tm->tm_hour = 0; in msm6242_read_time() 142 else if (pm && tm->tm_hour != 12) in msm6242_read_time() 143 tm->tm_hour += 12; in msm6242_read_time() 162 msm6242_write(priv, tm->tm_hour / 10, MSM6242_HOUR10); in msm6242_set_time() 163 else if (tm->tm_hour >= 12) in msm6242_set_time() 164 msm6242_write(priv, MSM6242_HOUR10_PM + (tm->tm_hour - 12) / 10, in msm6242_set_time() 167 msm6242_write(priv, tm->tm_hour / 10, MSM6242_HOUR10); in msm6242_set_time() 168 msm6242_write(priv, tm->tm_hour % 10, MSM6242_HOUR1); in msm6242_set_time()
|
D | rtc-rs5c348.c | 88 txp[RS5C348_REG_HOURS] = bin2bcd(tm->tm_hour); in rs5c348_rtc_set_time() 91 txp[RS5C348_REG_HOURS] = bin2bcd((tm->tm_hour + 11) % 12 + 1) | in rs5c348_rtc_set_time() 92 (tm->tm_hour >= 12 ? RS5C348_BIT_PM : 0); in rs5c348_rtc_set_time() 139 tm->tm_hour = bcd2bin(rxbuf[RS5C348_REG_HOURS] & RS5C348_HOURS_MASK); in rs5c348_rtc_read_time() 142 tm->tm_hour -= 20; in rs5c348_rtc_read_time() 143 tm->tm_hour %= 12; in rs5c348_rtc_read_time() 144 tm->tm_hour += 12; in rs5c348_rtc_read_time() 146 tm->tm_hour %= 12; in rs5c348_rtc_read_time()
|
D | rtc-ds1216.c | 90 tm->tm_hour = bcd2bin(regs.hour & 0x1f); in ds1216_rtc_read_time() 92 tm->tm_hour += 12; in ds1216_rtc_read_time() 94 tm->tm_hour = bcd2bin(regs.hour & 0x3f); in ds1216_rtc_read_time() 117 if (regs.hour && tm->tm_hour > 12) { in ds1216_rtc_set_time() 119 tm->tm_hour -= 12; in ds1216_rtc_set_time() 121 regs.hour |= bin2bcd(tm->tm_hour); in ds1216_rtc_set_time()
|
D | rtc-moxart.c | 162 ((tm->tm_hour / 10) << 4) | in moxart_rtc_set_time() 163 (tm->tm_hour % 10)); in moxart_rtc_set_time() 180 tm->tm_hour, tm->tm_min, tm->tm_sec); in moxart_rtc_set_time() 200 tm->tm_hour = (((v & 0x10) >> 4) * 10) + (v & 0x0F); in moxart_rtc_read_time() 202 tm->tm_hour += 12; in moxart_rtc_read_time() 203 if (tm->tm_hour >= 24) in moxart_rtc_read_time() 204 tm->tm_hour = 0; in moxart_rtc_read_time() 207 tm->tm_hour = (((v & 0x30) >> 4) * 10) + (v & 0x0F); in moxart_rtc_read_time()
|
D | rtc-max8907.c | 65 tm->tm_hour = bcd2bin(regs[RTC_HOUR] & 0x01f); in regs_to_tm() 66 if (tm->tm_hour == 12) in regs_to_tm() 67 tm->tm_hour = 0; in regs_to_tm() 69 tm->tm_hour += 12; in regs_to_tm() 71 tm->tm_hour = bcd2bin(regs[RTC_HOUR] & 0x03f); in regs_to_tm() 88 regs[RTC_HOUR] = bin2bcd(tm->tm_hour); in tm_to_regs()
|
D | rtc-ds1286.c | 183 tm->tm_hour = ds1286_rtc_read(priv, RTC_HOURS) & 0x3f; in ds1286_read_time() 193 tm->tm_hour = bcd2bin(tm->tm_hour); in ds1286_read_time() 224 hrs = tm->tm_hour; in ds1286_set_time() 273 alm->time.tm_hour = ds1286_rtc_read(priv, RTC_HOURS_ALARM) & 0x1f; in ds1286_read_alarm() 279 alm->time.tm_hour = bcd2bin(alm->time.tm_hour); in ds1286_read_alarm() 289 hrs = alm->time.tm_hour; in ds1286_set_alarm()
|
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() 229 buf[S35390A_BYTE_HOURS] = s35390a_hr2reg(s35390a, tm->tm_hour); in s35390a_rtc_set_time() 260 tm->tm_hour = s35390a_reg2hr(s35390a, buf[S35390A_BYTE_HOURS]); in s35390a_rtc_read_time() 268 tm->tm_min, tm->tm_hour, tm->tm_mday, tm->tm_mon, tm->tm_year, in s35390a_rtc_read_time() 283 alm->time.tm_min, alm->time.tm_hour, alm->time.tm_mday, in s35390a_rtc_set_alarm() 312 alm->time.tm_hour) | 0x80; in s35390a_rtc_set_alarm() 315 if (alm->time.tm_hour >= 12) in s35390a_rtc_set_alarm() 366 alm->time.tm_hour = in s35390a_rtc_read_alarm() 377 __func__, alm->time.tm_min, alm->time.tm_hour, in s35390a_rtc_read_alarm()
|
D | lib.c | 135 tm->tm_hour = secs / 3600; in rtc_time64_to_tm() 136 secs -= tm->tm_hour * 3600; in rtc_time64_to_tm() 155 ((unsigned int)tm->tm_hour) >= 24 || in rtc_valid_tm() 171 tm->tm_mday, tm->tm_hour, tm->tm_min, tm->tm_sec); in rtc_tm_to_time64()
|
D | rtc-rx8025.c | 234 dt->tm_hour = bcd2bin(date[RX8025_REG_HOUR] & 0x3f); in rx8025_get_time() 236 dt->tm_hour = bcd2bin(date[RX8025_REG_HOUR] & 0x1f) % 12 in rx8025_get_time() 262 date[RX8025_REG_HOUR] = bin2bcd(dt->tm_hour); in rx8025_set_time() 264 date[RX8025_REG_HOUR] = (dt->tm_hour >= 12 ? 0x20 : 0) in rx8025_set_time() 265 | bin2bcd((dt->tm_hour + 11) % 12 + 1); in rx8025_set_time() 348 t->time.tm_hour = bcd2bin(ald[1] & 0x3f); in rx8025_read_alarm() 350 t->time.tm_hour = bcd2bin(ald[1] & 0x1f) % 12 in rx8025_read_alarm() 369 ald[1] = bin2bcd(t->time.tm_hour); in rx8025_set_alarm() 371 ald[1] = (t->time.tm_hour >= 12 ? 0x20 : 0) in rx8025_set_alarm() 372 | bin2bcd((t->time.tm_hour + 11) % 12 + 1); in rx8025_set_alarm()
|
D | rtc-rc5t619.c | 150 tm->tm_hour = bcd2bin(buff[2]); in rc5t619_rtc_read_time() 152 tm->tm_hour = rtc5t619_12hour_bcd2bin(buff[2]); in rc5t619_rtc_read_time() 191 buff[2] = bin2bcd(tm->tm_hour); in rc5t619_rtc_set_time() 193 buff[2] = rtc5t619_12hour_bin2bcd(tm->tm_hour); in rc5t619_rtc_set_time() 259 alrm->time.tm_hour = bcd2bin(buff[2]); in rc5t619_rtc_read_alarm() 261 alrm->time.tm_hour = rtc5t619_12hour_bcd2bin(buff[2]); in rc5t619_rtc_read_alarm() 304 buff[2] = bin2bcd(alrm->time.tm_hour); in rc5t619_rtc_set_alarm() 306 buff[2] = rtc5t619_12hour_bin2bcd(alrm->time.tm_hour); in rc5t619_rtc_set_alarm()
|
D | rtc-optee.c | 25 u32 tm_hour; member 85 tm->tm_hour = optee_tm->tm_hour; in optee_rtc_readtime() 106 optee_tm.tm_hour = tm->tm_hour; 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()
|
D | rtc-m41t94.c | 37 tm->tm_hour, tm->tm_mday, in m41t94_set_time() 43 buf[M41T94_REG_HOURS] = bin2bcd(tm->tm_hour); in m41t94_set_time() 85 tm->tm_hour = bcd2bin(hour & 0x3f); in m41t94_read_time() 96 tm->tm_hour, tm->tm_mday, in m41t94_read_time()
|
D | rtc-rzn1.c | 71 tm->tm_hour = readl(rtc->base + RZN1_RTC_HOURC); in rzn1_rtc_get_time_snapshot() 111 tm->tm_hour = bcd2bin(tm->tm_hour); in rzn1_rtc_read_time() 128 tm->tm_hour = bin2bcd(tm->tm_hour); in rzn1_rtc_set_time() 149 writel(tm->tm_hour, rtc->base + RZN1_RTC_HOUR); in rzn1_rtc_set_time() 202 tm->tm_hour = bcd2bin(hour); in rzn1_rtc_read_alarm() 240 writel(bin2bcd(tm->tm_hour), rtc->base + RZN1_RTC_ALH); in rzn1_rtc_set_alarm()
|
D | rtc-spear.c | 174 tm->tm_hour = bin2bcd(tm->tm_hour); in tm2bcd() 184 tm->tm_hour = bcd2bin(tm->tm_hour); in bcd2tm() 213 tm->tm_hour = (time >> HOUR_SHIFT) & HOUR_MASK; in spear_rtc_read_time() 239 (tm->tm_hour << HOUR_SHIFT); in spear_rtc_set_time() 267 alm->time.tm_hour = (time >> HOUR_SHIFT) & HOUR_MASK; in spear_rtc_read_alarm() 297 MINUTE_SHIFT) | (alm->time.tm_hour << HOUR_SHIFT); in spear_rtc_set_alarm()
|
D | rtc-s3c.c | 141 tm->tm_hour = readb(info->base + S3C2410_RTCHOUR); in s3c_rtc_read_time() 161 tm->tm_hour = bcd2bin(tm->tm_hour); in s3c_rtc_read_time() 180 writeb(bin2bcd(tm->tm_hour), info->base + S3C2410_RTCHOUR); in s3c_rtc_write_time() 237 alm_tm->tm_hour = readb(info->base + S3C2410_ALMHOUR); in s3c_rtc_getalarm() 258 alm_tm->tm_hour = bcd2bin(alm_tm->tm_hour); in s3c_rtc_getalarm() 300 if (tm->tm_hour < 24 && tm->tm_hour >= 0) { in s3c_rtc_setalarm() 302 writeb(bin2bcd(tm->tm_hour), info->base + S3C2410_ALMHOUR); in s3c_rtc_setalarm()
|
D | rtc-wm8350.c | 57 tm->tm_hour = time1[1] & WM8350_RTC_HRS_MASK; in wm8350_rtc_readtime() 99 time[1] = tm->tm_hour; in wm8350_rtc_settime() 160 tm->tm_hour = time[1] & WM8350_RTC_ALMHRS_MASK; in wm8350_rtc_readalarm() 161 if (tm->tm_hour == WM8350_RTC_ALMHRS_MASK) in wm8350_rtc_readalarm() 162 tm->tm_hour = -1; in wm8350_rtc_readalarm() 262 if (tm->tm_hour != -1) in wm8350_rtc_setalarm() 263 time[1] |= tm->tm_hour; in wm8350_rtc_setalarm()
|
D | rtc-pic32.c | 141 rtc_tm->tm_hour = readb(base + PIC32_RTCHOUR); in pic32_rtc_gettime() 158 rtc_tm->tm_hour = bcd2bin(rtc_tm->tm_hour); in pic32_rtc_gettime() 181 writeb(bin2bcd(tm->tm_hour), base + PIC32_RTCHOUR); in pic32_rtc_settime() 200 alm_tm->tm_hour = readb(base + PIC32_ALRMHOUR); in pic32_rtc_getalarm() 213 alm_tm->tm_hour = bcd2bin(alm_tm->tm_hour); in pic32_rtc_getalarm()
|
D | rtc-fm3130.c | 120 t->tm_hour = bcd2bin(tmp); in fm3130_get_time() 132 t->tm_hour, t->tm_mday, in fm3130_get_time() 148 t->tm_hour, t->tm_mday, in fm3130_set_time() 154 buf[FM3130_RTC_HOURS] = bin2bcd(t->tm_hour); in fm3130_set_time() 213 tm->tm_hour = bcd2bin(fm3130->regs[FM3130_ALARM_HOURS] & 0x3F); in fm3130_read_alarm() 223 tm->tm_hour, tm->tm_mday, in fm3130_read_alarm() 248 tm->tm_hour, tm->tm_mday, in fm3130_set_alarm() 258 (tm->tm_hour != -1) ? bin2bcd(tm->tm_hour) : 0x80; in fm3130_set_alarm()
|
D | rtc-sd3078.c | 108 tm->tm_hour = bcd2bin(rtc_data[SD3078_REG_HR] & 0x3F); in sd3078_rtc_read_time() 110 tm->tm_hour = bcd2bin(rtc_data[SD3078_REG_HR] & 0x1F) + 12; in sd3078_rtc_read_time() 112 tm->tm_hour = bcd2bin(rtc_data[SD3078_REG_HR] & 0x1F); in sd3078_rtc_read_time() 131 rtc_data[SD3078_REG_HR] = bin2bcd(tm->tm_hour) | 0x80; in sd3078_rtc_set_time()
|
/linux-6.6.21/arch/mips/sibyte/swarm/ |
D | rtc_xicor1241.c | 147 tm.tm_hour = bin2bcd(tm.tm_hour); in xicor_set_time() 148 tmp = (tmp & ~0x3f) | (tm.tm_hour & 0x3f); in xicor_set_time() 152 if (tm.tm_hour >= 12) { in xicor_set_time() 154 tm.tm_hour -= 12; in xicor_set_time() 156 tm.tm_hour = bin2bcd(tm.tm_hour); in xicor_set_time() 157 tmp |= tm.tm_hour; in xicor_set_time()
|
D | rtc_m41t81.c | 160 tm.tm_hour = bin2bcd(tm.tm_hour); in m41t81_set_time() 161 tm.tm_hour = (tm.tm_hour & 0x3f) | (m41t81_read(M41T81REG_HR) & 0xc0); in m41t81_set_time() 162 m41t81_write(M41T81REG_HR, tm.tm_hour); in m41t81_set_time()
|
/linux-6.6.21/samples/pfsm/ |
D | pfsm-wakeup.c | 60 rtc_tm.tm_hour, rtc_tm.tm_min, rtc_tm.tm_sec); in main() 70 rtc_tm.tm_hour++; in main() 72 if (rtc_tm.tm_hour == 24) in main() 73 rtc_tm.tm_hour = 0; in main()
|
/linux-6.6.21/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-6.6.21/arch/powerpc/platforms/chrp/ |
D | time.c | 104 tm.tm_hour = bin2bcd(tm.tm_hour); in chrp_set_rtc_time() 111 chrp_cmos_clock_write(tm.tm_hour,RTC_HOURS); in chrp_set_rtc_time() 155 tm->tm_hour = hour; in chrp_get_rtc_time()
|
/linux-6.6.21/arch/powerpc/platforms/maple/ |
D | time.c | 56 tm->tm_hour = maple_clock_read(RTC_HOURS); in maple_get_rtc_time() 66 tm->tm_hour = bcd2bin(tm->tm_hour); in maple_get_rtc_time() 94 hour = tm->tm_hour; in maple_set_rtc_time()
|