pcf2127 94 drivers/rtc/rtc-pcf2127.c struct pcf2127 *pcf2127 = dev_get_drvdata(dev); pcf2127 102 drivers/rtc/rtc-pcf2127.c ret = regmap_bulk_read(pcf2127->regmap, PCF2127_REG_CTRL3, pcf2127 154 drivers/rtc/rtc-pcf2127.c struct pcf2127 *pcf2127 = dev_get_drvdata(dev); pcf2127 178 drivers/rtc/rtc-pcf2127.c err = regmap_bulk_write(pcf2127->regmap, PCF2127_REG_SC, buf, i); pcf2127 192 drivers/rtc/rtc-pcf2127.c struct pcf2127 *pcf2127 = dev_get_drvdata(dev); pcf2127 198 drivers/rtc/rtc-pcf2127.c ret = regmap_read(pcf2127->regmap, PCF2127_REG_CTRL3, &touser); pcf2127 224 drivers/rtc/rtc-pcf2127.c struct pcf2127 *pcf2127 = priv; pcf2127 228 drivers/rtc/rtc-pcf2127.c ret = regmap_bulk_write(pcf2127->regmap, PCF2127_REG_RAM_ADDR_MSB, pcf2127 233 drivers/rtc/rtc-pcf2127.c ret = regmap_bulk_read(pcf2127->regmap, PCF2127_REG_RAM_RD_CMD, pcf2127 242 drivers/rtc/rtc-pcf2127.c struct pcf2127 *pcf2127 = priv; pcf2127 246 drivers/rtc/rtc-pcf2127.c ret = regmap_bulk_write(pcf2127->regmap, PCF2127_REG_RAM_ADDR_MSB, pcf2127 251 drivers/rtc/rtc-pcf2127.c ret = regmap_bulk_write(pcf2127->regmap, PCF2127_REG_RAM_WRT_CMD, pcf2127 261 drivers/rtc/rtc-pcf2127.c struct pcf2127 *pcf2127 = watchdog_get_drvdata(wdd); pcf2127 263 drivers/rtc/rtc-pcf2127.c return regmap_write(pcf2127->regmap, PCF2127_REG_WD_VAL, wdd->timeout); pcf2127 295 drivers/rtc/rtc-pcf2127.c struct pcf2127 *pcf2127 = watchdog_get_drvdata(wdd); pcf2127 297 drivers/rtc/rtc-pcf2127.c return regmap_write(pcf2127->regmap, PCF2127_REG_WD_VAL, pcf2127 331 drivers/rtc/rtc-pcf2127.c struct pcf2127 *pcf2127 = dev_get_drvdata(dev->parent); pcf2127 334 drivers/rtc/rtc-pcf2127.c ret = regmap_update_bits(pcf2127->regmap, PCF2127_REG_CTRL1, pcf2127 341 drivers/rtc/rtc-pcf2127.c ret = regmap_update_bits(pcf2127->regmap, PCF2127_REG_CTRL2, pcf2127 348 drivers/rtc/rtc-pcf2127.c ret = pcf2127_wdt_active_ping(&pcf2127->wdd); pcf2127 358 drivers/rtc/rtc-pcf2127.c struct pcf2127 *pcf2127 = dev_get_drvdata(dev->parent); pcf2127 363 drivers/rtc/rtc-pcf2127.c ret = regmap_bulk_read(pcf2127->regmap, PCF2127_REG_CTRL1, data, pcf2127 379 drivers/rtc/rtc-pcf2127.c ret = pcf2127_wdt_active_ping(&pcf2127->wdd); pcf2127 419 drivers/rtc/rtc-pcf2127.c struct pcf2127 *pcf2127; pcf2127 424 drivers/rtc/rtc-pcf2127.c pcf2127 = devm_kzalloc(dev, sizeof(*pcf2127), GFP_KERNEL); pcf2127 425 drivers/rtc/rtc-pcf2127.c if (!pcf2127) pcf2127 428 drivers/rtc/rtc-pcf2127.c pcf2127->regmap = regmap; pcf2127 430 drivers/rtc/rtc-pcf2127.c dev_set_drvdata(dev, pcf2127); pcf2127 432 drivers/rtc/rtc-pcf2127.c pcf2127->rtc = devm_rtc_allocate_device(dev); pcf2127 433 drivers/rtc/rtc-pcf2127.c if (IS_ERR(pcf2127->rtc)) pcf2127 434 drivers/rtc/rtc-pcf2127.c return PTR_ERR(pcf2127->rtc); pcf2127 436 drivers/rtc/rtc-pcf2127.c pcf2127->rtc->ops = &pcf2127_rtc_ops; pcf2127 438 drivers/rtc/rtc-pcf2127.c pcf2127->wdd.parent = dev; pcf2127 439 drivers/rtc/rtc-pcf2127.c pcf2127->wdd.info = &pcf2127_wdt_info; pcf2127 440 drivers/rtc/rtc-pcf2127.c pcf2127->wdd.ops = &pcf2127_watchdog_ops; pcf2127 441 drivers/rtc/rtc-pcf2127.c pcf2127->wdd.min_timeout = PCF2127_WD_VAL_MIN; pcf2127 442 drivers/rtc/rtc-pcf2127.c pcf2127->wdd.max_timeout = PCF2127_WD_VAL_MAX; pcf2127 443 drivers/rtc/rtc-pcf2127.c pcf2127->wdd.timeout = PCF2127_WD_VAL_DEFAULT; pcf2127 444 drivers/rtc/rtc-pcf2127.c pcf2127->wdd.min_hw_heartbeat_ms = 500; pcf2127 446 drivers/rtc/rtc-pcf2127.c watchdog_set_drvdata(&pcf2127->wdd, pcf2127); pcf2127 450 drivers/rtc/rtc-pcf2127.c .priv = pcf2127, pcf2127 456 drivers/rtc/rtc-pcf2127.c ret = rtc_nvmem_register(pcf2127->rtc, &nvmem_cfg); pcf2127 465 drivers/rtc/rtc-pcf2127.c ret = regmap_update_bits(pcf2127->regmap, PCF2127_REG_WD_CTL, pcf2127 479 drivers/rtc/rtc-pcf2127.c ret = devm_watchdog_register_device(dev, &pcf2127->wdd); pcf2127 490 drivers/rtc/rtc-pcf2127.c ret = regmap_update_bits(pcf2127->regmap, PCF2127_REG_CTRL3, pcf2127 505 drivers/rtc/rtc-pcf2127.c ret = regmap_update_bits(pcf2127->regmap, PCF2127_REG_TS_CTRL, pcf2127 520 drivers/rtc/rtc-pcf2127.c ret = regmap_update_bits(pcf2127->regmap, PCF2127_REG_CTRL2, pcf2127 529 drivers/rtc/rtc-pcf2127.c ret = rtc_add_group(pcf2127->rtc, &pcf2127_attr_group); pcf2127 536 drivers/rtc/rtc-pcf2127.c return rtc_register_device(pcf2127->rtc);