Home
last modified time | relevance | path

Searched refs:tm_mon (Results 1 – 25 of 261) sorted by relevance

1234567891011

/OK3568_Linux_fs/u-boot/drivers/rtc/
H A Dds1307.c131 tmp->tm_mon = bcd2bin (mon & 0x1F); in rtc_get()
138 tmp->tm_year, tmp->tm_mon, tmp->tm_mday, tmp->tm_wday, in rtc_get()
151 tmp->tm_year, tmp->tm_mon, tmp->tm_mday, tmp->tm_wday, in rtc_set()
158 rtc_write (RTC_MON_REG_ADDR, bin2bcd (tmp->tm_mon)); in rtc_set()
193 tmp.tm_mon = 1; in rtc_reset()
202 tmp.tm_year, tmp.tm_mon, tmp.tm_mday, in rtc_reset()
237 tm->tm_year, tm->tm_mon, tm->tm_mday, tm->tm_wday, in ds1307_rtc_set()
244 buf[RTC_MON_REG_ADDR] = bin2bcd(tm->tm_mon); in ds1307_rtc_set()
306 tm->tm_mon = bcd2bin(buf[RTC_MON_REG_ADDR] & 0x1F); in ds1307_rtc_get()
315 tm->tm_year, tm->tm_mon, tm->tm_mday, tm->tm_wday, in ds1307_rtc_get()
[all …]
H A Drx8025.c127 tmp->tm_mon = bcd2bin (mon & 0x1F); in rtc_get()
134 tmp->tm_year, tmp->tm_mon, tmp->tm_mday, tmp->tm_wday, in rtc_get()
146 tmp->tm_year, tmp->tm_mon, tmp->tm_mday, tmp->tm_wday, in rtc_set()
153 rtc_write (RTC_MON_REG_ADDR, bin2bcd (tmp->tm_mon)); in rtc_set()
183 tmp.tm_mon = 1; in rtc_reset()
192 tmp.tm_year, tmp.tm_mon, tmp.tm_mday, in rtc_reset()
H A Drs5c372.c132 dt->tm_mon = bcd2bin(buf[6]); in rs5c372_convert_to_time()
145 printf("rs5c372_convert_to_time: mon = %d\n", dt->tm_mon); in rs5c372_convert_to_time()
198 printf("rtc_set: tm_mon = %d\n", tmp->tm_mon); in rtc_set()
232 buf[6] = bin2bcd(tmp->tm_mon); in rtc_set()
264 tmp.tm_mon = 1; in rtc_reset()
275 tmp.tm_year, tmp.tm_mon, tmp.tm_mday, in rtc_reset()
H A Dds1306.c104 tmp->tm_mon = bcd2bin (soft_spi_read ()); /* Read Month */ in rtc_get()
116 tmp->tm_year, tmp->tm_mon, tmp->tm_mday, tmp->tm_wday, in rtc_get()
157 soft_spi_send (bin2bcd (tmp->tm_mon)); /* Send Month */ in rtc_set()
190 tmp->tm_year, tmp->tm_mon, tmp->tm_mday, tmp->tm_wday, in rtc_set()
340 tmp->tm_mon = bcd2bin (mon & 0x1F); /* convert Month */ in rtc_get()
347 tmp->tm_year, tmp->tm_mon, tmp->tm_mday, tmp->tm_wday, in rtc_get()
370 tmp->tm_year, tmp->tm_mon, tmp->tm_mday, tmp->tm_wday, in rtc_set()
378 rtc_write (RTC_MONTH, bin2bcd (tmp->tm_mon)); in rtc_set()
H A Ddate.c55 tm->tm_mon > 2) { in rtc_calc_weekday()
62 day += last_year * 365 + leaps_to_date + month_offset[tm->tm_mon - 1] + in rtc_calc_weekday()
93 tm->tm_mon = i; in rtc_to_tm()
126 int mon = tm->tm_mon; in rtc_mktime()
H A Dmax6900.c71 tmp->tm_mon = bcd2bin (mon & 0x1F); in rtc_get()
78 tmp->tm_year, tmp->tm_mon, tmp->tm_mday, tmp->tm_wday, in rtc_get()
88 tmp->tm_year, tmp->tm_mon, tmp->tm_mday, tmp->tm_wday, in rtc_set()
96 rtc_write (0x88, bin2bcd(tmp->tm_mon)); in rtc_set()
H A Dpcf8563.c58 tmp->tm_mon = bcd2bin (mon_cent & 0x1F); in rtc_get()
65 tmp->tm_year, tmp->tm_mon, tmp->tm_mday, tmp->tm_wday, in rtc_get()
76 tmp->tm_year, tmp->tm_mon, tmp->tm_mday, tmp->tm_wday, in rtc_set()
82 rtc_write (0x07, bin2bcd(tmp->tm_mon) | century); in rtc_set()
H A Dsandbox_rtc.c30 time->tm_mon = dm_i2c_reg_read(dev, REG_MON); in sandbox_rtc_get()
31 if (time->tm_mon < 0) in sandbox_rtc_get()
32 return time->tm_mon; in sandbox_rtc_get()
60 ret = dm_i2c_reg_write(dev, REG_MON, time->tm_mon); in sandbox_rtc_set()
H A Ddavinci.c45 tmp->tm_mon = bcd2bin(mon_cent & 0x1F); in rtc_get()
52 tmp->tm_year, tmp->tm_mon, tmp->tm_mday, tmp->tm_wday, in rtc_get()
63 tmp->tm_year, tmp->tm_mon, tmp->tm_mday, tmp->tm_wday, in rtc_set()
66 writel(bin2bcd(tmp->tm_mon), &rtc->month); in rtc_set()
H A Dm41t62.c72 tm->tm_mon = bcd2bin(buf[M41T62_REG_MON] & 0x1f); in rtc_get()
82 tm->tm_mday, tm->tm_mon, tm->tm_year, tm->tm_wday); in rtc_get()
92 tm->tm_year, tm->tm_mon, tm->tm_mday, tm->tm_wday, in rtc_set()
110 bin2bcd(tm->tm_mon) | (buf[M41T62_REG_MON] & ~0x1f); in rtc_set()
H A Dpt7c4338.c93 tmp->tm_mon = bcd2bin(mon & 0x1F); in rtc_get()
99 tmp->tm_year, tmp->tm_mon, tmp->tm_mday, tmp->tm_wday, in rtc_get()
109 tmp->tm_year, tmp->tm_mon, tmp->tm_mday, tmp->tm_wday, in rtc_set()
113 rtc_write(RTC_MON_REG_ADDR, bin2bcd(tmp->tm_mon)); in rtc_set()
H A Dm48t35ax.c59 tmp->tm_mon = bcd2bin (month & 0x1F); in rtc_get()
66 tmp->tm_year, tmp->tm_mon, tmp->tm_mday, tmp->tm_wday, in rtc_get()
78 tmp->tm_year, tmp->tm_mon, tmp->tm_mday, tmp->tm_wday, in rtc_set()
87 rtc_write (0x06, bin2bcd(tmp->tm_mon)); in rtc_set()
H A Dx1205.c106 tm->tm_mon = bcd2bin(buf[CCR_MONTH]); /* mon is 0-11 */ in rtc_get()
115 tm->tm_mday, tm->tm_mon, tm->tm_year, tm->tm_wday); in rtc_get()
126 tm->tm_year, tm->tm_mon, tm->tm_mday, tm->tm_wday, in rtc_set()
138 buf[CCR_MONTH] = bin2bcd(tm->tm_mon); in rtc_set()
H A Dds3231.c94 tmp->tm_mon = bcd2bin (mon_cent & 0x1F); in rtc_get()
101 tmp->tm_year, tmp->tm_mon, tmp->tm_mday, tmp->tm_wday, in rtc_get()
116 tmp->tm_year, tmp->tm_mon, tmp->tm_mday, tmp->tm_wday, in rtc_set()
122 rtc_write (RTC_MON_REG_ADDR, bin2bcd (tmp->tm_mon) | century); in rtc_set()
/OK3568_Linux_fs/u-boot/include/linux/
H A Dtime.h33 int tm_mon; /* Month. [0-11] */ member
63 mon_name[tim_p->tm_mon],
133 for (res->tm_mon = 0; days >= ip[res->tm_mon]; ++res->tm_mon)
134 days -= ip[res->tm_mon];
/OK3568_Linux_fs/kernel/drivers/rtc/
H A Drtc-wm8350.c62 tm->tm_mon = ((time1[2] & WM8350_RTC_MTH_MASK) in wm8350_rtc_readtime()
71 tm->tm_yday = rtc_year_days(tm->tm_mday, tm->tm_mon, in wm8350_rtc_readtime()
102 time[2] |= (tm->tm_mon + 1) << WM8350_RTC_MTH_SHIFT; in wm8350_rtc_settime()
168 tm->tm_mon = time[2] & WM8350_RTC_ALMMTH_MASK; in wm8350_rtc_readalarm()
169 if (tm->tm_mon == WM8350_RTC_ALMMTH_MASK) in wm8350_rtc_readalarm()
170 tm->tm_mon = -1; in wm8350_rtc_readalarm()
172 tm->tm_mon = (tm->tm_mon >> WM8350_RTC_ALMMTH_SHIFT) - 1; in wm8350_rtc_readalarm()
277 if (tm->tm_mon != -1) in wm8350_rtc_setalarm()
278 time[2] |= (tm->tm_mon + 1) << WM8350_RTC_ALMMTH_SHIFT; in wm8350_rtc_setalarm()
H A Drtc-fm3130.c124 t->tm_mon = bcd2bin(tmp) - 1; in fm3130_get_time()
133 t->tm_mon, t->tm_year, t->tm_wday); in fm3130_get_time()
149 t->tm_mon, t->tm_year, t->tm_wday); in fm3130_set_time()
157 buf[FM3130_RTC_MONTHS] = bin2bcd(t->tm_mon + 1); in fm3130_set_time()
215 tm->tm_mon = bcd2bin(fm3130->regs[FM3130_ALARM_MONTHS] & 0x1F); in fm3130_read_alarm()
217 if (tm->tm_mon > 0) in fm3130_read_alarm()
218 tm->tm_mon -= 1; /* RTC is 1-12, tm_mon is 0-11 */ in fm3130_read_alarm()
224 tm->tm_mon, tm->tm_year, tm->tm_wday); in fm3130_read_alarm()
249 tm->tm_mon, tm->tm_year, tm->tm_wday); in fm3130_set_alarm()
264 (tm->tm_mon != -1) ? bin2bcd(tm->tm_mon + 1) : 0x80; in fm3130_set_alarm()
H A Drtc-mt6397.c78 tm->tm_mon = data[RTC_OFFSET_MTH]; in __mtk_rtc_read_time()
106 tm->tm_mon--; in mtk_rtc_read_time()
126 tm->tm_mon++; in mtk_rtc_set_time()
132 data[RTC_OFFSET_MTH] = tm->tm_mon; in mtk_rtc_set_time()
178 tm->tm_mon = data[RTC_OFFSET_MTH] & RTC_AL_MTH_MASK; in mtk_rtc_read_alarm()
182 tm->tm_mon--; in mtk_rtc_read_alarm()
198 tm->tm_mon++; in mtk_rtc_set_alarm()
215 (tm->tm_mon & RTC_AL_MTH_MASK)); in mtk_rtc_set_alarm()
H A Drtc-moxart.c151 (((tm->tm_mon + 1) / 10) << 4) | in moxart_rtc_set_time()
152 ((tm->tm_mon + 1) % 10)); in moxart_rtc_set_time()
176 __func__, tm->tm_year, tm->tm_mon, tm->tm_mday, in moxart_rtc_set_time()
211 tm->tm_mon = (((v & 0x10) >> 4) * 10) + (v & 0x0F); in moxart_rtc_read_time()
212 tm->tm_mon--; in moxart_rtc_read_time()
222 tm->tm_yday = day_of_year[tm->tm_mon]; in moxart_rtc_read_time()
224 if (tm->tm_mon >= 2) { in moxart_rtc_read_time()
H A Dlib.c79 tm->tm_mon = month; in rtc_time64_to_tm()
98 ((unsigned int)tm->tm_mon) >= 12 || in rtc_valid_tm()
100 tm->tm_mday > rtc_month_days(tm->tm_mon, in rtc_valid_tm()
117 return mktime64(((unsigned int)tm->tm_year + 1900), tm->tm_mon + 1, in rtc_tm_to_time64()
H A Drtc-spear.c179 tm->tm_mon = bin2bcd(tm->tm_mon + 1); in tm2bcd()
189 tm->tm_mon = bcd2bin(tm->tm_mon) - 1; in bcd2tm()
216 tm->tm_mon = (date >> MONTH_SHIFT) & MONTH_MASK; in spear_rtc_read_time()
241 date = (tm->tm_mday << MDAY_SHIFT) | (tm->tm_mon << MONTH_SHIFT) | in spear_rtc_set_time()
270 alm->time.tm_mon = (date >> MONTH_SHIFT) & MONTH_MASK; in spear_rtc_read_alarm()
299 date = (alm->time.tm_mday << MDAY_SHIFT) | (alm->time.tm_mon << in spear_rtc_set_alarm()
H A Drtc-m48t35.c73 tm->tm_mon = readb(&priv->reg->month); in m48t35_read_time()
82 tm->tm_mon = bcd2bin(tm->tm_mon); in m48t35_read_time()
93 tm->tm_mon--; in m48t35_read_time()
105 mon = tm->tm_mon + 1; /* tm_mon starts at zero */ in m48t35_set_time()
/OK3568_Linux_fs/kernel/tools/testing/selftests/rtc/
H A Dsetdate.c47 sscanf(date, "%d-%d-%d", &new.tm_mday, &new.tm_mon, &new.tm_year); in main()
48 new.tm_mon -= 1; in main()
53 new.tm_mday, new.tm_mon + 1, new.tm_year + 1900, in main()
72 current.tm_mday, current.tm_mon + 1, current.tm_year + 1900, in main()
/OK3568_Linux_fs/u-boot/post/drivers/
H A Drtc.c122 tm.tm_mon = i + 1; in rtc_post_test()
140 if (tm.tm_mon == i + 1) { in rtc_post_test()
153 tm.tm_mon = i + 1; in rtc_post_test()
172 if (tm.tm_mon == i + 1) { in rtc_post_test()
/OK3568_Linux_fs/kernel/arch/powerpc/platforms/chrp/
H A Dtime.c107 tm.tm_mon = bin2bcd(tm.tm_mon); in chrp_set_rtc_time()
114 chrp_cmos_clock_write(tm.tm_mon,RTC_MONTH); in chrp_set_rtc_time()
159 tm->tm_mon = mon; in chrp_get_rtc_time()

1234567891011