Home
last modified time | relevance | path

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

12

/rk3399_rockchip-uboot/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];
/rk3399_rockchip-uboot/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 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 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 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 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 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 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 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 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 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()
H A Disl1208.c90 tmp->tm_mon = bcd2bin (mon & 0x1F); in rtc_get()
97 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()
117 rtc_write (RTC_MON_REG_ADDR, bin2bcd (tmp->tm_mon)); in rtc_set()
H A Drv3029.c64 tmp->tm_mon = bcd2bin( buf[RV3029C2_W_MONTHS] & 0x1F ); in rtc_get()
72 tmp->tm_year, tmp->tm_mon, tmp->tm_mday, tmp->tm_wday, in rtc_get()
84 tmp->tm_year, tmp->tm_mon, tmp->tm_mday, tmp->tm_wday, in rtc_set()
98 buf[RV3029C2_W_MONTHS] = bin2bcd(tmp->tm_mon); in rtc_set()
H A Dm41t11.c90 tmp->tm_mon = bcd2bin (data[RTC_MONTH_ADDR]& 0x1F); in rtc_get()
116 tmp->tm_year, tmp->tm_mon, tmp->tm_mday, tmp->tm_wday, in rtc_get()
127 tmp->tm_year, tmp->tm_mon, tmp->tm_mday, tmp->tm_wday, in rtc_set()
134 data[RTC_MONTH_ADDR] = bin2bcd(tmp->tm_mon); in rtc_set()
H A Dmcfrtc.c48 tmp->tm_year, tmp->tm_mon, tmp->tm_mday, tmp->tm_wday, in rtc_get()
70 tmp->tm_year, tmp->tm_mon, tmp->tm_mday, tmp->tm_wday, in rtc_set()
80 months = tmp->tm_mon - 1; in rtc_set()
H A Dds1337.c108 tmp->tm_mon = bcd2bin (mon_cent & 0x1F); in rtc_get()
115 tmp->tm_year, tmp->tm_mon, tmp->tm_mday, tmp->tm_wday, in rtc_get()
130 tmp->tm_year, tmp->tm_mon, tmp->tm_mday, tmp->tm_wday, in rtc_set()
136 rtc_write (RTC_MON_REG_ADDR, bin2bcd (tmp->tm_mon) | century); in rtc_set()
H A Dds164x.c87 tmp->tm_mon = bcd2bin( mon & 0x1F ); in rtc_get()
97 tmp->tm_year, tmp->tm_mon, tmp->tm_mday, tmp->tm_wday, in rtc_get()
110 tmp->tm_year, tmp->tm_mon, tmp->tm_mday, tmp->tm_wday, in rtc_set()
117 rtc_write( RTC_MONTH, bin2bcd( tmp->tm_mon )); in rtc_set()
H A Dds1556.c88 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()
110 tmp->tm_year, tmp->tm_mon, tmp->tm_mday, tmp->tm_wday, in rtc_set()
117 rtc_write( RTC_MONTH, bin2bcd( tmp->tm_mon )); in rtc_set()
H A Dds1374.c129 tm->tm_year, tm->tm_mon, tm->tm_mday, tm->tm_wday, in rtc_get()
144 tmp->tm_year, tmp->tm_mon, tmp->tm_mday, tmp->tm_wday, in rtc_set()
193 tmp.tm_mon = 1; in rtc_reset()
202 tmp.tm_year, tmp.tm_mon, tmp.tm_mday, in rtc_reset()
H A Dds174x.c85 tmp->tm_mon = bcd2bin( mon & 0x1F ); in rtc_get()
96 tmp->tm_year, tmp->tm_mon, tmp->tm_mday, tmp->tm_wday, in rtc_get()
107 tmp->tm_year, tmp->tm_mon, tmp->tm_mday, tmp->tm_wday, in rtc_set()
114 rtc_write( RTC_MONTH, bin2bcd( tmp->tm_mon )); in rtc_set()
/rk3399_rockchip-uboot/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()

12