• Home
  • Raw
  • Download

Lines Matching refs:regs

48 	u8			regs[15];  member
69 fm3130->regs[FM3130_RTC_CONTROL] = in fm3130_rtc_mode()
73 fm3130->regs[FM3130_RTC_CONTROL] &= in fm3130_rtc_mode()
78 fm3130->regs[FM3130_RTC_CONTROL] |= FM3130_RTC_CONTROL_BIT_WRITE; in fm3130_rtc_mode()
81 fm3130->regs[FM3130_RTC_CONTROL] |= FM3130_RTC_CONTROL_BIT_READ; in fm3130_rtc_mode()
89 FM3130_RTC_CONTROL, fm3130->regs[FM3130_RTC_CONTROL]); in fm3130_rtc_mode()
115 dev_dbg(dev, "%s: %15ph\n", "read", fm3130->regs); in fm3130_get_time()
117 t->tm_sec = bcd2bin(fm3130->regs[FM3130_RTC_SECONDS] & 0x7f); in fm3130_get_time()
118 t->tm_min = bcd2bin(fm3130->regs[FM3130_RTC_MINUTES] & 0x7f); in fm3130_get_time()
119 tmp = fm3130->regs[FM3130_RTC_HOURS] & 0x3f; in fm3130_get_time()
121 t->tm_wday = bcd2bin(fm3130->regs[FM3130_RTC_DAY] & 0x07) - 1; in fm3130_get_time()
122 t->tm_mday = bcd2bin(fm3130->regs[FM3130_RTC_DATE] & 0x3f); in fm3130_get_time()
123 tmp = fm3130->regs[FM3130_RTC_MONTHS] & 0x1f; in fm3130_get_time()
127 t->tm_year = bcd2bin(fm3130->regs[FM3130_RTC_YEARS]) + 100; in fm3130_get_time()
143 u8 *buf = fm3130->regs; in fm3130_set_time()
171 fm3130->regs[FM3130_RTC_SECONDS + i]); in fm3130_set_time()
205 fm3130->regs[FM3130_ALARM_SECONDS], in fm3130_read_alarm()
206 fm3130->regs[FM3130_ALARM_MINUTES], in fm3130_read_alarm()
207 fm3130->regs[FM3130_ALARM_HOURS], in fm3130_read_alarm()
208 fm3130->regs[FM3130_ALARM_DATE], in fm3130_read_alarm()
209 fm3130->regs[FM3130_ALARM_MONTHS]); in fm3130_read_alarm()
211 tm->tm_sec = bcd2bin(fm3130->regs[FM3130_ALARM_SECONDS] & 0x7F); in fm3130_read_alarm()
212 tm->tm_min = bcd2bin(fm3130->regs[FM3130_ALARM_MINUTES] & 0x7F); in fm3130_read_alarm()
213 tm->tm_hour = bcd2bin(fm3130->regs[FM3130_ALARM_HOURS] & 0x3F); in fm3130_read_alarm()
214 tm->tm_mday = bcd2bin(fm3130->regs[FM3130_ALARM_DATE] & 0x3F); in fm3130_read_alarm()
215 tm->tm_mon = bcd2bin(fm3130->regs[FM3130_ALARM_MONTHS] & 0x1F); in fm3130_read_alarm()
227 fm3130->regs[FM3130_RTC_CONTROL] = in fm3130_read_alarm()
230 if ((fm3130->regs[FM3130_RTC_CONTROL] & FM3130_RTC_CONTROL_BIT_AEN) && in fm3130_read_alarm()
231 (~fm3130->regs[FM3130_RTC_CONTROL] & in fm3130_read_alarm()
251 fm3130->regs[FM3130_ALARM_SECONDS] = in fm3130_set_alarm()
254 fm3130->regs[FM3130_ALARM_MINUTES] = in fm3130_set_alarm()
257 fm3130->regs[FM3130_ALARM_HOURS] = in fm3130_set_alarm()
260 fm3130->regs[FM3130_ALARM_DATE] = in fm3130_set_alarm()
263 fm3130->regs[FM3130_ALARM_MONTHS] = in fm3130_set_alarm()
267 fm3130->regs[FM3130_ALARM_SECONDS], in fm3130_set_alarm()
268 fm3130->regs[FM3130_ALARM_MINUTES], in fm3130_set_alarm()
269 fm3130->regs[FM3130_ALARM_HOURS], in fm3130_set_alarm()
270 fm3130->regs[FM3130_ALARM_DATE], in fm3130_set_alarm()
271 fm3130->regs[FM3130_ALARM_MONTHS]); in fm3130_set_alarm()
276 fm3130->regs[FM3130_ALARM_SECONDS + i]); in fm3130_set_alarm()
278 fm3130->regs[FM3130_RTC_CONTROL] = in fm3130_set_alarm()
284 (fm3130->regs[FM3130_RTC_CONTROL] & in fm3130_set_alarm()
289 fm3130->regs[FM3130_RTC_CONTROL] & in fm3130_set_alarm()
306 fm3130->regs[FM3130_RTC_CONTROL] = in fm3130_alarm_irq_enable()
310 enabled, fm3130->regs[FM3130_RTC_CONTROL]); in fm3130_alarm_irq_enable()
315 FM3130_RTC_CONTROL, fm3130->regs[FM3130_RTC_CONTROL] & in fm3130_alarm_irq_enable()
321 FM3130_RTC_CONTROL, (fm3130->regs[FM3130_RTC_CONTROL] & in fm3130_alarm_irq_enable()
373 fm3130->msg[1].buf = &fm3130->regs[FM3130_RTC_SECONDS]; in fm3130_probe()
384 fm3130->msg[3].buf = &fm3130->regs[FM3130_ALARM_SECONDS]; in fm3130_probe()
396 fm3130->regs[FM3130_RTC_CONTROL] = in fm3130_probe()
398 fm3130->regs[FM3130_CAL_CONTROL] = in fm3130_probe()
402 if (fm3130->regs[FM3130_RTC_CONTROL] & FM3130_RTC_CONTROL_BIT_CAL) { in fm3130_probe()
404 fm3130->regs[FM3130_RTC_CONTROL] & in fm3130_probe()
410 if (fm3130->regs[FM3130_RTC_CONTROL] & FM3130_RTC_CONTROL_BIT_WRITE || in fm3130_probe()
411 fm3130->regs[FM3130_RTC_CONTROL] & FM3130_RTC_CONTROL_BIT_READ) { in fm3130_probe()
413 fm3130->regs[FM3130_RTC_CONTROL] & in fm3130_probe()
420 if (fm3130->regs[FM3130_CAL_CONTROL] & FM3130_CAL_CONTROL_BIT_nOSCEN) in fm3130_probe()
422 fm3130->regs[FM3130_CAL_CONTROL] & in fm3130_probe()
426 if (fm3130->regs[FM3130_RTC_CONTROL] & FM3130_RTC_CONTROL_BIT_LB) { in fm3130_probe()
428 fm3130->regs[FM3130_RTC_CONTROL] & in fm3130_probe()
434 if (fm3130->regs[FM3130_RTC_CONTROL] & FM3130_RTC_CONTROL_BIT_POR) { in fm3130_probe()
436 fm3130->regs[FM3130_RTC_CONTROL] & in fm3130_probe()
444 tmp = bcd2bin(fm3130->regs[FM3130_RTC_SECONDS] & 0x7f); in fm3130_probe()
448 tmp = bcd2bin(fm3130->regs[FM3130_RTC_MINUTES] & 0x7f); in fm3130_probe()
452 tmp = bcd2bin(fm3130->regs[FM3130_RTC_HOURS] & 0x3f); in fm3130_probe()
456 tmp = bcd2bin(fm3130->regs[FM3130_RTC_DATE] & 0x3f); in fm3130_probe()
460 tmp = bcd2bin(fm3130->regs[FM3130_RTC_MONTHS] & 0x1f); in fm3130_probe()
469 tmp = bcd2bin(fm3130->regs[FM3130_RTC_SECONDS] & 0x7f); in fm3130_probe()
473 tmp = bcd2bin(fm3130->regs[FM3130_RTC_MINUTES] & 0x7f); in fm3130_probe()
477 tmp = bcd2bin(fm3130->regs[FM3130_RTC_HOURS] & 0x3f); in fm3130_probe()
481 tmp = bcd2bin(fm3130->regs[FM3130_RTC_DAY] & 0x7); in fm3130_probe()
485 tmp = bcd2bin(fm3130->regs[FM3130_RTC_DATE] & 0x3f); in fm3130_probe()
489 tmp = bcd2bin(fm3130->regs[FM3130_RTC_MONTHS] & 0x1f); in fm3130_probe()
499 fm3130->regs); in fm3130_probe()