Home
last modified time | relevance | path

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

12

/rk3399_rockchip-uboot/drivers/rtc/
H A Dds1307.c128 tmp->tm_min = bcd2bin (min & 0x7F); in rtc_get()
139 tmp->tm_hour, tmp->tm_min, tmp->tm_sec); in rtc_get()
152 tmp->tm_hour, tmp->tm_min, tmp->tm_sec); in rtc_set()
167 rtc_write (RTC_MIN_REG_ADDR, bin2bcd (tmp->tm_min)); in rtc_set()
196 tmp.tm_min = 0; in rtc_reset()
203 tmp.tm_hour, tmp.tm_min, tmp.tm_sec); in rtc_reset()
238 tm->tm_hour, tm->tm_min, tm->tm_sec); in ds1307_rtc_set()
248 buf[RTC_MIN_REG_ADDR] = bin2bcd(tm->tm_min); in ds1307_rtc_set()
303 tm->tm_min = bcd2bin(buf[RTC_MIN_REG_ADDR] & 0x7F); in ds1307_rtc_get()
316 tm->tm_hour, tm->tm_min, tm->tm_sec); in ds1307_rtc_get()
[all …]
H A Drs5c372.c122 dt->tm_min = bcd2bin(buf[2]); in rs5c372_convert_to_time()
148 printf("rs5c372_convert_to_time: min = %d\n", dt->tm_min); in rs5c372_convert_to_time()
201 printf("rtc_set: tm_min = %d\n", tmp->tm_min); in rtc_set()
215 buf[2] = bin2bcd(tmp->tm_min); in rtc_set()
269 tmp.tm_min = 0; in rtc_reset()
276 tmp.tm_hour, tmp.tm_min, tmp.tm_sec); in rtc_reset()
H A Drx8025.c120 tmp->tm_min = bcd2bin (min & 0x7F); in rtc_get()
135 tmp->tm_hour, tmp->tm_min, tmp->tm_sec); in rtc_get()
147 tmp->tm_hour, tmp->tm_min, tmp->tm_sec); in rtc_set()
157 rtc_write (RTC_MIN_REG_ADDR, bin2bcd (tmp->tm_min)); in rtc_set()
186 tmp.tm_min = 0; in rtc_reset()
193 tmp.tm_hour, tmp.tm_min, tmp.tm_sec); in rtc_reset()
H A Dmax6900.c68 tmp->tm_min = bcd2bin (min & 0x7F); in rtc_get()
79 tmp->tm_hour, tmp->tm_min, tmp->tm_sec); in rtc_get()
89 tmp->tm_hour, tmp->tm_min, tmp->tm_sec); in rtc_set()
99 rtc_write (0x82, bin2bcd(tmp->tm_min )); in rtc_set()
H A Dsandbox_rtc.c21 time->tm_min = dm_i2c_reg_read(dev, REG_MIN); in sandbox_rtc_get()
22 if (time->tm_min < 0) in sandbox_rtc_get()
23 return time->tm_min; in sandbox_rtc_get()
51 ret = dm_i2c_reg_write(dev, REG_MIN, time->tm_min); in sandbox_rtc_set()
H A Dpcf8563.c55 tmp->tm_min = bcd2bin (min & 0x7F); in rtc_get()
66 tmp->tm_hour, tmp->tm_min, tmp->tm_sec); in rtc_get()
77 tmp->tm_hour, tmp->tm_min, tmp->tm_sec); in rtc_set()
87 rtc_write (0x03, bin2bcd(tmp->tm_min )); in rtc_set()
H A Ddavinci.c42 tmp->tm_min = bcd2bin(min & 0x7F); in rtc_get()
53 tmp->tm_hour, tmp->tm_min, tmp->tm_sec); in rtc_get()
64 tmp->tm_hour, tmp->tm_min, tmp->tm_sec); in rtc_set()
71 writel(bin2bcd(tmp->tm_min), &rtc->minutes); in rtc_set()
H A Dm41t62.c68 tm->tm_min = bcd2bin(buf[M41T62_REG_MIN] & 0x7f); in rtc_get()
81 tm->tm_sec, tm->tm_min, tm->tm_hour, in rtc_get()
93 tm->tm_hour, tm->tm_min, tm->tm_sec); in rtc_set()
102 bin2bcd(tm->tm_min) | (buf[M41T62_REG_MIN] & ~0x7f); in rtc_set()
H A Dpt7c4338.c90 tmp->tm_min = bcd2bin(min & 0x7F); in rtc_get()
100 tmp->tm_hour, tmp->tm_min, tmp->tm_sec); in rtc_get()
110 tmp->tm_hour, tmp->tm_min, tmp->tm_sec); in rtc_set()
117 rtc_write(RTC_MIN_REG_ADDR, bin2bcd(tmp->tm_min)); in rtc_set()
H A Dm48t35ax.c56 tmp->tm_min = bcd2bin (min & 0x7F); in rtc_get()
67 tmp->tm_hour, tmp->tm_min, tmp->tm_sec); in rtc_get()
79 tmp->tm_hour, tmp->tm_min, tmp->tm_sec); in rtc_set()
94 rtc_write (0x02, bin2bcd(tmp->tm_min )); in rtc_set()
H A Dx1205.c103 tm->tm_min = bcd2bin(buf[CCR_MIN]); in rtc_get()
114 tm->tm_sec, tm->tm_min, tm->tm_hour, in rtc_get()
127 tm->tm_hour, tm->tm_min, tm->tm_sec); in rtc_set()
130 buf[CCR_MIN] = bin2bcd(tm->tm_min); in rtc_set()
H A Dds1306.c84 tmp->tm_min = bcd2bin (soft_spi_read ()); /* Read minutes */ in rtc_get()
117 tmp->tm_hour, tmp->tm_min, tmp->tm_sec); in rtc_get()
153 soft_spi_send (bin2bcd (tmp->tm_min)); /* Send Minutes */ in rtc_set()
191 tmp->tm_hour, tmp->tm_min, tmp->tm_sec); in rtc_set()
329 tmp->tm_min = bcd2bin (min & 0x7F); /* convert Minutes */ in rtc_get()
348 tmp->tm_hour, tmp->tm_min, tmp->tm_sec); in rtc_get()
371 tmp->tm_hour, tmp->tm_min, tmp->tm_sec); in rtc_set()
374 rtc_write (RTC_MINUTES, bin2bcd (tmp->tm_min)); in rtc_set()
H A Dds3231.c91 tmp->tm_min = bcd2bin (min & 0x7F); in rtc_get()
102 tmp->tm_hour, tmp->tm_min, tmp->tm_sec); in rtc_get()
117 tmp->tm_hour, tmp->tm_min, tmp->tm_sec); in rtc_set()
127 rtc_write (RTC_MIN_REG_ADDR, bin2bcd (tmp->tm_min)); in rtc_set()
H A Disl1208.c87 tmp->tm_min = bcd2bin (min & 0x7F); in rtc_get()
98 tmp->tm_hour, tmp->tm_min, tmp->tm_sec); in rtc_get()
110 tmp->tm_hour, tmp->tm_min, tmp->tm_sec); in rtc_set()
121 rtc_write (RTC_MIN_REG_ADDR, bin2bcd (tmp->tm_min)); in rtc_set()
H A Drv3029.c53 tmp->tm_min = bcd2bin( buf[RV3029C2_W_MINUTES] & 0x7f); in rtc_get()
73 tmp->tm_hour, tmp->tm_min, tmp->tm_sec ); in rtc_get()
85 tmp->tm_hour, tmp->tm_min, tmp->tm_sec); in rtc_set()
92 buf[RV3029C2_W_MINUTES] = bin2bcd(tmp->tm_min); in rtc_set()
H A Dm41t11.c87 tmp->tm_min = bcd2bin (data[RTC_MIN_ADDR] & 0x7F); in rtc_get()
117 tmp->tm_hour, tmp->tm_min, tmp->tm_sec); in rtc_get()
128 tmp->tm_hour, tmp->tm_min, tmp->tm_sec); in rtc_set()
131 data[RTC_MIN_ADDR] = bin2bcd(tmp->tm_min); in rtc_set()
H A Dmcfrtc.c49 tmp->tm_hour, tmp->tm_min, tmp->tm_sec); in rtc_get()
71 tmp->tm_hour, tmp->tm_min, tmp->tm_sec); in rtc_set()
91 rtc->hourmin = (tmp->tm_hour << 8) | tmp->tm_min; in rtc_set()
H A Dds1337.c105 tmp->tm_min = bcd2bin (min & 0x7F); in rtc_get()
116 tmp->tm_hour, tmp->tm_min, tmp->tm_sec); in rtc_get()
131 tmp->tm_hour, tmp->tm_min, tmp->tm_sec); in rtc_set()
141 rtc_write (RTC_MIN_REG_ADDR, bin2bcd (tmp->tm_min)); in rtc_set()
H A Dds164x.c84 tmp->tm_min = bcd2bin( min & 0x7F ); in rtc_get()
98 tmp->tm_hour, tmp->tm_min, tmp->tm_sec ); in rtc_get()
111 tmp->tm_hour, tmp->tm_min, tmp->tm_sec); in rtc_set()
122 rtc_write( RTC_MINUTES, bin2bcd( tmp->tm_min )); in rtc_set()
H A Dds1556.c85 tmp->tm_min = bcd2bin( min & 0x7F ); in rtc_get()
100 tmp->tm_hour, tmp->tm_min, tmp->tm_sec ); in rtc_get()
111 tmp->tm_hour, tmp->tm_min, tmp->tm_sec); in rtc_set()
122 rtc_write( RTC_MINUTES, bin2bcd( tmp->tm_min )); in rtc_set()
H A Dds1374.c130 tm->tm_hour, tm->tm_min, tm->tm_sec); in rtc_get()
145 tmp->tm_hour, tmp->tm_min, tmp->tm_sec); in rtc_set()
196 tmp.tm_min = 0; in rtc_reset()
203 tmp.tm_hour, tmp.tm_min, tmp.tm_sec); in rtc_reset()
H A Dds174x.c82 tmp->tm_min = bcd2bin( min & 0x7F ); in rtc_get()
97 tmp->tm_hour, tmp->tm_min, tmp->tm_sec ); in rtc_get()
108 tmp->tm_hour, tmp->tm_min, tmp->tm_sec); in rtc_set()
119 rtc_write( RTC_MINUTES, bin2bcd( tmp->tm_min )); in rtc_set()
H A Dpcf2127.c35 buf[i++] = bin2bcd(tm->tm_min); in pcf2127_rtc_set()
68 tm->tm_min = bcd2bin(buf[PCF2127_REG_MN] & 0x7F); in pcf2127_rtc_get()
81 tm->tm_hour, tm->tm_min, tm->tm_sec); in pcf2127_rtc_get()
H A Dmk48t59.c109 tmp->tm_min = bcd2bin (min & 0x7F); in rtc_get()
124 tmp->tm_hour, tmp->tm_min, tmp->tm_sec); in rtc_get()
137 tmp->tm_hour, tmp->tm_min, tmp->tm_sec); in rtc_set()
150 rtc_write (RTC_MINUTES, bin2bcd(tmp->tm_min )); in rtc_set()
H A Dm41t60.c157 tmp->tm_min = bcd2bin(data[RTC_MIN] & 0x7F); in rtc_get()
168 tmp->tm_hour, tmp->tm_min, tmp->tm_sec); in rtc_get()
182 tmp->tm_hour, tmp->tm_min, tmp->tm_sec); in rtc_set()
185 data[RTC_MIN] = (data[RTC_MIN] & 0X80) | (bin2bcd(tmp->tm_min) & 0X7F); in rtc_set()

12