Lines Matching refs:rx8025
74 { "rx8025", model_rx_8025 },
180 struct rx8025_data *rx8025 = i2c_get_clientdata(client);
183 rtc_lock(rx8025->rtc);
188 xstp = rx8025_is_osc_stopped(rx8025->model, status);
196 rtc_update_irq(rx8025->rtc, 1, RTC_PF | RTC_IRQF);
203 rx8025->ctrl1 & ~RX8025_BIT_CTRL1_DALE))
205 rtc_update_irq(rx8025->rtc, 1, RTC_AF | RTC_IRQF);
209 rtc_unlock(rx8025->rtc);
217 struct rx8025_data *rx8025 = dev_get_drvdata(dev);
233 if (rx8025->is_24)
251 struct rx8025_data *rx8025 = dev_get_drvdata(dev);
261 if (rx8025->is_24)
283 struct rx8025_data *rx8025 = i2c_get_clientdata(client);
294 rx8025->ctrl1 = ctrl[0] & ~RX8025_BIT_CTRL1_TEST;
312 if (rx8025->model == model_rx_8035) {
317 rx8025->is_24 = (hour_reg & RX8035_BIT_HOUR_1224);
319 rx8025->is_24 = (ctrl[1] & RX8025_BIT_CTRL1_1224);
329 struct rx8025_data *rx8025 = dev_get_drvdata(dev);
347 if (rx8025->is_24)
354 t->enabled = !!(rx8025->ctrl1 & RX8025_BIT_CTRL1_DALE);
363 struct rx8025_data *rx8025 = dev_get_drvdata(dev);
368 if (rx8025->is_24)
376 if (rx8025->ctrl1 & RX8025_BIT_CTRL1_DALE) {
377 rx8025->ctrl1 &= ~RX8025_BIT_CTRL1_DALE;
379 rx8025->ctrl1);
388 rx8025->ctrl1 |= RX8025_BIT_CTRL1_DALE;
390 rx8025->ctrl1);
401 struct rx8025_data *rx8025 = dev_get_drvdata(dev);
405 ctrl1 = rx8025->ctrl1;
411 if (ctrl1 != rx8025->ctrl1) {
412 rx8025->ctrl1 = ctrl1;
414 rx8025->ctrl1);
527 struct rx8025_data *rx8025;
537 rx8025 = devm_kzalloc(&client->dev, sizeof(*rx8025), GFP_KERNEL);
538 if (!rx8025)
541 i2c_set_clientdata(client, rx8025);
544 rx8025->model = id->driver_data;
550 rx8025->rtc = devm_rtc_allocate_device(&client->dev);
551 if (IS_ERR(rx8025->rtc))
552 return PTR_ERR(rx8025->rtc);
554 rx8025->rtc->ops = &rx8025_rtc_ops;
555 rx8025->rtc->range_min = RTC_TIMESTAMP_BEGIN_1900;
556 rx8025->rtc->range_max = RTC_TIMESTAMP_END_2099;
563 "rx8025", client);
565 clear_bit(RTC_FEATURE_ALARM, rx8025->rtc->features);
568 rx8025->rtc->max_user_freq = 1;
570 set_bit(RTC_FEATURE_ALARM_RES_MINUTE, rx8025->rtc->features);
571 clear_bit(RTC_FEATURE_UPDATE_INTERRUPT, rx8025->rtc->features);
573 err = rtc_add_group(rx8025->rtc, &rx8025_attr_group);
577 return devm_rtc_register_device(rx8025->rtc);
582 .name = "rtc-rx8025",