pcf85363          122 drivers/rtc/rtc-pcf85363.c 	struct pcf85363 *pcf85363 = dev_get_drvdata(dev);
pcf85363          127 drivers/rtc/rtc-pcf85363.c 	ret = regmap_bulk_read(pcf85363->regmap, DT_100THS, buf, len);
pcf85363          151 drivers/rtc/rtc-pcf85363.c 	struct pcf85363 *pcf85363 = dev_get_drvdata(dev);
pcf85363          168 drivers/rtc/rtc-pcf85363.c 	ret = regmap_bulk_write(pcf85363->regmap, CTRL_STOP_EN,
pcf85363          173 drivers/rtc/rtc-pcf85363.c 	ret = regmap_bulk_write(pcf85363->regmap, DT_100THS,
pcf85363          178 drivers/rtc/rtc-pcf85363.c 	return regmap_write(pcf85363->regmap, CTRL_STOP_EN, 0);
pcf85363          183 drivers/rtc/rtc-pcf85363.c 	struct pcf85363 *pcf85363 = dev_get_drvdata(dev);
pcf85363          188 drivers/rtc/rtc-pcf85363.c 	ret = regmap_bulk_read(pcf85363->regmap, DT_SECOND_ALM1, buf,
pcf85363          199 drivers/rtc/rtc-pcf85363.c 	ret = regmap_read(pcf85363->regmap, CTRL_INTA_EN, &val);
pcf85363          208 drivers/rtc/rtc-pcf85363.c static int _pcf85363_rtc_alarm_irq_enable(struct pcf85363 *pcf85363, unsigned
pcf85363          215 drivers/rtc/rtc-pcf85363.c 	ret = regmap_update_bits(pcf85363->regmap, DT_ALARM_EN, alarm_flags,
pcf85363          220 drivers/rtc/rtc-pcf85363.c 	ret = regmap_update_bits(pcf85363->regmap, CTRL_INTA_EN,
pcf85363          227 drivers/rtc/rtc-pcf85363.c 	return regmap_update_bits(pcf85363->regmap, CTRL_FLAGS, FLAGS_A1F, 0);
pcf85363          233 drivers/rtc/rtc-pcf85363.c 	struct pcf85363 *pcf85363 = dev_get_drvdata(dev);
pcf85363          235 drivers/rtc/rtc-pcf85363.c 	return _pcf85363_rtc_alarm_irq_enable(pcf85363, enabled);
pcf85363          240 drivers/rtc/rtc-pcf85363.c 	struct pcf85363 *pcf85363 = dev_get_drvdata(dev);
pcf85363          254 drivers/rtc/rtc-pcf85363.c 	ret = _pcf85363_rtc_alarm_irq_enable(pcf85363, 0);
pcf85363          258 drivers/rtc/rtc-pcf85363.c 	ret = regmap_bulk_write(pcf85363->regmap, DT_SECOND_ALM1, buf,
pcf85363          263 drivers/rtc/rtc-pcf85363.c 	return _pcf85363_rtc_alarm_irq_enable(pcf85363, alrm->enabled);
pcf85363          268 drivers/rtc/rtc-pcf85363.c 	struct pcf85363 *pcf85363 = i2c_get_clientdata(dev_id);
pcf85363          272 drivers/rtc/rtc-pcf85363.c 	err = regmap_read(pcf85363->regmap, CTRL_FLAGS, &flags);
pcf85363          277 drivers/rtc/rtc-pcf85363.c 		rtc_update_irq(pcf85363->rtc, 1, RTC_IRQF | RTC_AF);
pcf85363          278 drivers/rtc/rtc-pcf85363.c 		regmap_update_bits(pcf85363->regmap, CTRL_FLAGS, FLAGS_A1F, 0);
pcf85363          301 drivers/rtc/rtc-pcf85363.c 	struct pcf85363 *pcf85363 = priv;
pcf85363          303 drivers/rtc/rtc-pcf85363.c 	return regmap_bulk_read(pcf85363->regmap, CTRL_RAM + offset,
pcf85363          310 drivers/rtc/rtc-pcf85363.c 	struct pcf85363 *pcf85363 = priv;
pcf85363          312 drivers/rtc/rtc-pcf85363.c 	return regmap_bulk_write(pcf85363->regmap, CTRL_RAM + offset,
pcf85363          319 drivers/rtc/rtc-pcf85363.c 	struct pcf85363 *pcf85363 = priv;
pcf85363          323 drivers/rtc/rtc-pcf85363.c 	ret = regmap_read(pcf85363->regmap, CTRL_RAMBYTE, &tmp_val);
pcf85363          332 drivers/rtc/rtc-pcf85363.c 	struct pcf85363 *pcf85363 = priv;
pcf85363          336 drivers/rtc/rtc-pcf85363.c 	return regmap_write(pcf85363->regmap, CTRL_RAMBYTE,
pcf85363          361 drivers/rtc/rtc-pcf85363.c 	struct pcf85363 *pcf85363;
pcf85363          386 drivers/rtc/rtc-pcf85363.c 	pcf85363 = devm_kzalloc(&client->dev, sizeof(struct pcf85363),
pcf85363          388 drivers/rtc/rtc-pcf85363.c 	if (!pcf85363)
pcf85363          391 drivers/rtc/rtc-pcf85363.c 	pcf85363->regmap = devm_regmap_init_i2c(client, &config->regmap);
pcf85363          392 drivers/rtc/rtc-pcf85363.c 	if (IS_ERR(pcf85363->regmap)) {
pcf85363          394 drivers/rtc/rtc-pcf85363.c 		return PTR_ERR(pcf85363->regmap);
pcf85363          397 drivers/rtc/rtc-pcf85363.c 	i2c_set_clientdata(client, pcf85363);
pcf85363          399 drivers/rtc/rtc-pcf85363.c 	pcf85363->rtc = devm_rtc_allocate_device(&client->dev);
pcf85363          400 drivers/rtc/rtc-pcf85363.c 	if (IS_ERR(pcf85363->rtc))
pcf85363          401 drivers/rtc/rtc-pcf85363.c 		return PTR_ERR(pcf85363->rtc);
pcf85363          403 drivers/rtc/rtc-pcf85363.c 	pcf85363->rtc->ops = &rtc_ops;
pcf85363          404 drivers/rtc/rtc-pcf85363.c 	pcf85363->rtc->range_min = RTC_TIMESTAMP_BEGIN_2000;
pcf85363          405 drivers/rtc/rtc-pcf85363.c 	pcf85363->rtc->range_max = RTC_TIMESTAMP_END_2099;
pcf85363          408 drivers/rtc/rtc-pcf85363.c 		regmap_write(pcf85363->regmap, CTRL_FLAGS, 0);
pcf85363          409 drivers/rtc/rtc-pcf85363.c 		regmap_update_bits(pcf85363->regmap, CTRL_PIN_IO,
pcf85363          418 drivers/rtc/rtc-pcf85363.c 			pcf85363->rtc->ops = &rtc_ops_alarm;
pcf85363          421 drivers/rtc/rtc-pcf85363.c 	ret = rtc_register_device(pcf85363->rtc);
pcf85363          424 drivers/rtc/rtc-pcf85363.c 		nvmem_cfg[i].priv = pcf85363;
pcf85363          425 drivers/rtc/rtc-pcf85363.c 		rtc_nvmem_register(pcf85363->rtc, &nvmem_cfg[i]);