Lines Matching refs:rc5t583
40 struct rc5t583 *rc5t583 = dev_get_drvdata(dev->parent); in rc5t583_rtc_alarm_irq_enable() local
46 return regmap_update_bits(rc5t583->regmap, RC5T583_RTC_CTL1, SET_YAL, in rc5t583_rtc_alarm_irq_enable()
61 struct rc5t583 *rc5t583 = dev_get_drvdata(dev->parent); in rc5t583_rtc_read_time() local
65 ret = regmap_bulk_read(rc5t583->regmap, RC5T583_RTC_SEC, rtc_data, in rc5t583_rtc_read_time()
85 struct rc5t583 *rc5t583 = dev_get_drvdata(dev->parent); in rc5t583_rtc_set_time() local
97 ret = regmap_bulk_write(rc5t583->regmap, RC5T583_RTC_SEC, rtc_data, in rc5t583_rtc_set_time()
109 struct rc5t583 *rc5t583 = dev_get_drvdata(dev->parent); in rc5t583_rtc_read_alarm() local
114 ret = regmap_bulk_read(rc5t583->regmap, RC5T583_RTC_AY_MIN, alarm_data, in rc5t583_rtc_read_alarm()
128 ret = regmap_read(rc5t583->regmap, RC5T583_RTC_CTL1, &interrupt_enable); in rc5t583_rtc_read_alarm()
141 struct rc5t583 *rc5t583 = dev_get_drvdata(dev->parent); in rc5t583_rtc_set_alarm() local
155 ret = regmap_bulk_write(rc5t583->regmap, RC5T583_RTC_AY_MIN, alarm_data, in rc5t583_rtc_set_alarm()
171 struct rc5t583 *rc5t583 = dev_get_drvdata(dev->parent); in rc5t583_rtc_interrupt() local
177 ret = regmap_read(rc5t583->regmap, RC5T583_RTC_CTL2, &rtc_reg); in rc5t583_rtc_interrupt()
187 ret = regmap_write(rc5t583->regmap, RC5T583_RTC_CTL2, rtc_reg); in rc5t583_rtc_interrupt()
207 struct rc5t583 *rc5t583 = dev_get_drvdata(pdev->dev.parent); in rc5t583_rtc_probe() local
221 ret = regmap_write(rc5t583->regmap, RC5T583_RTC_CTL2, 0); in rc5t583_rtc_probe()
226 ret = regmap_write(rc5t583->regmap, RC5T583_RTC_ADJ, 0); in rc5t583_rtc_probe()
232 pmic_plat_data = dev_get_platdata(rc5t583->dev); in rc5t583_rtc_probe()
276 struct rc5t583 *rc5t583 = dev_get_drvdata(dev->parent); in rc5t583_rtc_suspend() local
281 ret = regmap_read(rc5t583->regmap, RC5T583_RTC_CTL1, in rc5t583_rtc_suspend()
288 struct rc5t583 *rc5t583 = dev_get_drvdata(dev->parent); in rc5t583_rtc_resume() local
292 return regmap_write(rc5t583->regmap, RC5T583_RTC_CTL1, in rc5t583_rtc_resume()