Lines Matching refs:pcf8563

59 struct pcf8563 {  struct
172 struct pcf8563 *pcf8563 = i2c_get_clientdata(dev_id); in pcf8563_irq() local
176 err = pcf8563_get_alarm_mode(pcf8563->client, NULL, &pending); in pcf8563_irq()
181 rtc_update_irq(pcf8563->rtc, 1, RTC_IRQF | RTC_AF); in pcf8563_irq()
182 pcf8563_set_alarm_mode(pcf8563->client, 1); in pcf8563_irq()
195 struct pcf8563 *pcf8563 = i2c_get_clientdata(client); in pcf8563_get_datetime() local
204 pcf8563->voltage_low = 1; in pcf8563_get_datetime()
228 pcf8563->c_polarity = (buf[PCF8563_REG_MO] & PCF8563_MO_C) ? in pcf8563_get_datetime()
248 struct pcf8563 *pcf8563 = i2c_get_clientdata(client); in pcf8563_set_datetime() local
269 if (pcf8563->c_polarity ? (tm->tm_year >= 100) : (tm->tm_year < 100)) in pcf8563_set_datetime()
281 struct pcf8563 *pcf8563 = i2c_get_clientdata(to_i2c_client(dev)); in pcf8563_rtc_ioctl() local
286 if (pcf8563->voltage_low) in pcf8563_rtc_ioctl()
289 if (copy_to_user((void __user *)arg, &pcf8563->voltage_low, in pcf8563_rtc_ioctl()
305 pcf8563->voltage_low = 0; in pcf8563_rtc_ioctl()
410 struct pcf8563 *pcf8563; in pcf8563_probe() local
420 pcf8563 = devm_kzalloc(&client->dev, sizeof(struct pcf8563), in pcf8563_probe()
422 if (!pcf8563) in pcf8563_probe()
427 i2c_set_clientdata(client, pcf8563); in pcf8563_probe()
428 pcf8563->client = client; in pcf8563_probe()
447 pcf8563->rtc = devm_rtc_device_register(&client->dev, in pcf8563_probe()
451 if (IS_ERR(pcf8563->rtc)) in pcf8563_probe()
452 return PTR_ERR(pcf8563->rtc); in pcf8563_probe()
458 pcf8563->rtc->name, client); in pcf8563_probe()
468 pcf8563->rtc->uie_unsupported = 1; in pcf8563_probe()