Lines Matching refs:pcf8563

62 struct pcf8563 {  struct
177 struct pcf8563 *pcf8563 = i2c_get_clientdata(dev_id); in pcf8563_irq() local
181 err = pcf8563_get_alarm_mode(pcf8563->client, NULL, &pending); in pcf8563_irq()
186 rtc_update_irq(pcf8563->rtc, 1, RTC_IRQF | RTC_AF); in pcf8563_irq()
187 pcf8563_set_alarm_mode(pcf8563->client, 1); in pcf8563_irq()
201 struct pcf8563 *pcf8563 = i2c_get_clientdata(client); in pcf8563_rtc_read_time() local
232 pcf8563->c_polarity = (buf[PCF8563_REG_MO] & PCF8563_MO_C) ? in pcf8563_rtc_read_time()
247 struct pcf8563 *pcf8563 = i2c_get_clientdata(client); in pcf8563_rtc_set_time() local
268 if (pcf8563->c_polarity ? (tm->tm_year >= 100) : (tm->tm_year < 100)) in pcf8563_rtc_set_time()
356 #define clkout_hw_to_pcf8563(_hw) container_of(_hw, struct pcf8563, clkout_hw)
368 struct pcf8563 *pcf8563 = clkout_hw_to_pcf8563(hw); in pcf8563_clkout_recalc_rate() local
369 struct i2c_client *client = pcf8563->client; in pcf8563_clkout_recalc_rate()
395 struct pcf8563 *pcf8563 = clkout_hw_to_pcf8563(hw); in pcf8563_clkout_set_rate() local
396 struct i2c_client *client = pcf8563->client; in pcf8563_clkout_set_rate()
419 struct pcf8563 *pcf8563 = clkout_hw_to_pcf8563(hw); in pcf8563_clkout_control() local
420 struct i2c_client *client = pcf8563->client; in pcf8563_clkout_control()
448 struct pcf8563 *pcf8563 = clkout_hw_to_pcf8563(hw); in pcf8563_clkout_is_prepared() local
449 struct i2c_client *client = pcf8563->client; in pcf8563_clkout_is_prepared()
468 static struct clk *pcf8563_clkout_register_clk(struct pcf8563 *pcf8563) in pcf8563_clkout_register_clk() argument
470 struct i2c_client *client = pcf8563->client; in pcf8563_clkout_register_clk()
488 pcf8563->clkout_hw.init = &init; in pcf8563_clkout_register_clk()
494 clk = devm_clk_register(&client->dev, &pcf8563->clkout_hw); in pcf8563_clkout_register_clk()
514 struct pcf8563 *pcf8563; in pcf8563_probe() local
523 pcf8563 = devm_kzalloc(&client->dev, sizeof(struct pcf8563), in pcf8563_probe()
525 if (!pcf8563) in pcf8563_probe()
528 i2c_set_clientdata(client, pcf8563); in pcf8563_probe()
529 pcf8563->client = client; in pcf8563_probe()
548 pcf8563->rtc = devm_rtc_allocate_device(&client->dev); in pcf8563_probe()
549 if (IS_ERR(pcf8563->rtc)) in pcf8563_probe()
550 return PTR_ERR(pcf8563->rtc); in pcf8563_probe()
552 pcf8563->rtc->ops = &pcf8563_rtc_ops; in pcf8563_probe()
554 set_bit(RTC_FEATURE_ALARM_RES_MINUTE, pcf8563->rtc->features); in pcf8563_probe()
555 clear_bit(RTC_FEATURE_UPDATE_INTERRUPT, pcf8563->rtc->features); in pcf8563_probe()
556 pcf8563->rtc->range_min = RTC_TIMESTAMP_BEGIN_2000; in pcf8563_probe()
557 pcf8563->rtc->range_max = RTC_TIMESTAMP_END_2099; in pcf8563_probe()
558 pcf8563->rtc->set_start_time = true; in pcf8563_probe()
572 err = devm_rtc_register_device(pcf8563->rtc); in pcf8563_probe()
578 pcf8563_clkout_register_clk(pcf8563); in pcf8563_probe()