Lines Matching +full:10 +full:v

150 				  (((tm->tm_year - 100) / 10) << 4) |  in moxart_rtc_set_time()
151 ((tm->tm_year - 100) % 10)); in moxart_rtc_set_time()
154 (((tm->tm_mon + 1) / 10) << 4) | in moxart_rtc_set_time()
155 ((tm->tm_mon + 1) % 10)); in moxart_rtc_set_time()
158 ((tm->tm_mday / 10) << 4) | in moxart_rtc_set_time()
159 (tm->tm_mday % 10)); in moxart_rtc_set_time()
162 ((tm->tm_hour / 10) << 4) | in moxart_rtc_set_time()
163 (tm->tm_hour % 10)); in moxart_rtc_set_time()
166 ((tm->tm_min / 10) << 4) | in moxart_rtc_set_time()
167 (tm->tm_min % 10)); in moxart_rtc_set_time()
170 ((tm->tm_sec / 10) << 4) | in moxart_rtc_set_time()
171 (tm->tm_sec % 10)); in moxart_rtc_set_time()
188 unsigned char v; in moxart_rtc_read_time() local
192 v = moxart_rtc_read_register(dev, GPIO_RTC_SECONDS_R); in moxart_rtc_read_time()
193 tm->tm_sec = (((v & 0x70) >> 4) * 10) + (v & 0x0F); in moxart_rtc_read_time()
195 v = moxart_rtc_read_register(dev, GPIO_RTC_MINUTES_R); in moxart_rtc_read_time()
196 tm->tm_min = (((v & 0x70) >> 4) * 10) + (v & 0x0F); in moxart_rtc_read_time()
198 v = moxart_rtc_read_register(dev, GPIO_RTC_HOURS_R); in moxart_rtc_read_time()
199 if (v & 0x80) { /* 12-hour mode */ in moxart_rtc_read_time()
200 tm->tm_hour = (((v & 0x10) >> 4) * 10) + (v & 0x0F); in moxart_rtc_read_time()
201 if (v & 0x20) { /* PM mode */ in moxart_rtc_read_time()
207 tm->tm_hour = (((v & 0x30) >> 4) * 10) + (v & 0x0F); in moxart_rtc_read_time()
210 v = moxart_rtc_read_register(dev, GPIO_RTC_DATE_R); in moxart_rtc_read_time()
211 tm->tm_mday = (((v & 0x30) >> 4) * 10) + (v & 0x0F); in moxart_rtc_read_time()
213 v = moxart_rtc_read_register(dev, GPIO_RTC_MONTH_R); in moxart_rtc_read_time()
214 tm->tm_mon = (((v & 0x10) >> 4) * 10) + (v & 0x0F); in moxart_rtc_read_time()
217 v = moxart_rtc_read_register(dev, GPIO_RTC_YEAR_R); in moxart_rtc_read_time()
218 tm->tm_year = (((v & 0xF0) >> 4) * 10) + (v & 0x0F); in moxart_rtc_read_time()
223 v = moxart_rtc_read_register(dev, GPIO_RTC_DAY_R); in moxart_rtc_read_time()
224 tm->tm_wday = (v & 0x0f) - 1; in moxart_rtc_read_time()