Lines Matching refs:FM3130_RTC_CONTROL

15 #define FM3130_RTC_CONTROL	(0x0)  macro
69 fm3130->regs[FM3130_RTC_CONTROL] = in fm3130_rtc_mode()
70 i2c_smbus_read_byte_data(fm3130->client, 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()
227 fm3130->regs[FM3130_RTC_CONTROL] = in fm3130_read_alarm()
228 i2c_smbus_read_byte_data(fm3130->client, 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()
278 fm3130->regs[FM3130_RTC_CONTROL] = in fm3130_set_alarm()
279 i2c_smbus_read_byte_data(fm3130->client, FM3130_RTC_CONTROL); in fm3130_set_alarm()
283 i2c_smbus_write_byte_data(fm3130->client, FM3130_RTC_CONTROL, in fm3130_set_alarm()
284 (fm3130->regs[FM3130_RTC_CONTROL] & in fm3130_set_alarm()
288 i2c_smbus_write_byte_data(fm3130->client, 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()
307 i2c_smbus_read_byte_data(fm3130->client, 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()
396 fm3130->regs[FM3130_RTC_CONTROL] = in fm3130_probe()
397 i2c_smbus_read_byte_data(client, FM3130_RTC_CONTROL); in fm3130_probe()
402 if (fm3130->regs[FM3130_RTC_CONTROL] & FM3130_RTC_CONTROL_BIT_CAL) { in fm3130_probe()
403 i2c_smbus_write_byte_data(client, FM3130_RTC_CONTROL, 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()
412 i2c_smbus_write_byte_data(client, FM3130_RTC_CONTROL, in fm3130_probe()
413 fm3130->regs[FM3130_RTC_CONTROL] & in fm3130_probe()
426 if (fm3130->regs[FM3130_RTC_CONTROL] & FM3130_RTC_CONTROL_BIT_LB) { in fm3130_probe()
427 i2c_smbus_write_byte_data(client, FM3130_RTC_CONTROL, 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()
435 i2c_smbus_write_byte_data(client, FM3130_RTC_CONTROL, in fm3130_probe()
436 fm3130->regs[FM3130_RTC_CONTROL] & in fm3130_probe()