rx8010             72 drivers/rtc/rtc-rx8010.c 	struct rx8010_data *rx8010 = i2c_get_clientdata(client);
rx8010             75 drivers/rtc/rtc-rx8010.c 	mutex_lock(&rx8010->rtc->ops_lock);
rx8010             80 drivers/rtc/rtc-rx8010.c 		mutex_unlock(&rx8010->rtc->ops_lock);
rx8010             89 drivers/rtc/rtc-rx8010.c 		rtc_update_irq(rx8010->rtc, 1, RTC_PF | RTC_IRQF);
rx8010             94 drivers/rtc/rtc-rx8010.c 		rtc_update_irq(rx8010->rtc, 1, RTC_AF | RTC_IRQF);
rx8010             99 drivers/rtc/rtc-rx8010.c 		rtc_update_irq(rx8010->rtc, 1, RTC_UF | RTC_IRQF);
rx8010            104 drivers/rtc/rtc-rx8010.c 	mutex_unlock(&rx8010->rtc->ops_lock);
rx8010            110 drivers/rtc/rtc-rx8010.c 	struct rx8010_data *rx8010 = dev_get_drvdata(dev);
rx8010            115 drivers/rtc/rtc-rx8010.c 	flagreg = i2c_smbus_read_byte_data(rx8010->client, RX8010_FLAG);
rx8010            124 drivers/rtc/rtc-rx8010.c 	err = i2c_smbus_read_i2c_block_data(rx8010->client, RX8010_SEC,
rx8010            142 drivers/rtc/rtc-rx8010.c 	struct rx8010_data *rx8010 = dev_get_drvdata(dev);
rx8010            151 drivers/rtc/rtc-rx8010.c 	ctrl = i2c_smbus_read_byte_data(rx8010->client, RX8010_CTRL);
rx8010            154 drivers/rtc/rtc-rx8010.c 	rx8010->ctrlreg = ctrl | RX8010_CTRL_STOP;
rx8010            155 drivers/rtc/rtc-rx8010.c 	ret = i2c_smbus_write_byte_data(rx8010->client, RX8010_CTRL,
rx8010            156 drivers/rtc/rtc-rx8010.c 					rx8010->ctrlreg);
rx8010            168 drivers/rtc/rtc-rx8010.c 	ret = i2c_smbus_write_i2c_block_data(rx8010->client,
rx8010            174 drivers/rtc/rtc-rx8010.c 	ctrl = i2c_smbus_read_byte_data(rx8010->client, RX8010_CTRL);
rx8010            177 drivers/rtc/rtc-rx8010.c 	rx8010->ctrlreg = ctrl & ~RX8010_CTRL_STOP;
rx8010            178 drivers/rtc/rtc-rx8010.c 	ret = i2c_smbus_write_byte_data(rx8010->client, RX8010_CTRL,
rx8010            179 drivers/rtc/rtc-rx8010.c 					rx8010->ctrlreg);
rx8010            183 drivers/rtc/rtc-rx8010.c 	flagreg = i2c_smbus_read_byte_data(rx8010->client, RX8010_FLAG);
rx8010            189 drivers/rtc/rtc-rx8010.c 		ret = i2c_smbus_write_byte_data(rx8010->client, RX8010_FLAG,
rx8010            197 drivers/rtc/rtc-rx8010.c 	struct rx8010_data *rx8010 = i2c_get_clientdata(client);
rx8010            218 drivers/rtc/rtc-rx8010.c 	err = i2c_smbus_read_i2c_block_data(rx8010->client, RX8010_FLAG,
rx8010            244 drivers/rtc/rtc-rx8010.c 	rx8010->ctrlreg = (ctrl[1] & ~RX8010_CTRL_TEST);
rx8010            251 drivers/rtc/rtc-rx8010.c 	struct rx8010_data *rx8010 = dev_get_drvdata(dev);
rx8010            252 drivers/rtc/rtc-rx8010.c 	struct i2c_client *client = rx8010->client;
rx8010            272 drivers/rtc/rtc-rx8010.c 	t->enabled = !!(rx8010->ctrlreg & RX8010_CTRL_AIE);
rx8010            281 drivers/rtc/rtc-rx8010.c 	struct rx8010_data *rx8010 = dev_get_drvdata(dev);
rx8010            291 drivers/rtc/rtc-rx8010.c 	if (rx8010->ctrlreg & (RX8010_CTRL_AIE | RX8010_CTRL_UIE)) {
rx8010            292 drivers/rtc/rtc-rx8010.c 		rx8010->ctrlreg &= ~(RX8010_CTRL_AIE | RX8010_CTRL_UIE);
rx8010            293 drivers/rtc/rtc-rx8010.c 		err = i2c_smbus_write_byte_data(rx8010->client, RX8010_CTRL,
rx8010            294 drivers/rtc/rtc-rx8010.c 						rx8010->ctrlreg);
rx8010            301 drivers/rtc/rtc-rx8010.c 	err = i2c_smbus_write_byte_data(rx8010->client, RX8010_FLAG, flagreg);
rx8010            309 drivers/rtc/rtc-rx8010.c 	err = i2c_smbus_write_i2c_block_data(rx8010->client, RX8010_ALMIN,
rx8010            319 drivers/rtc/rtc-rx8010.c 	err = i2c_smbus_write_byte_data(rx8010->client, RX8010_EXT, extreg);
rx8010            326 drivers/rtc/rtc-rx8010.c 	err = i2c_smbus_write_byte_data(rx8010->client, RX8010_ALWDAY,
rx8010            332 drivers/rtc/rtc-rx8010.c 		if (rx8010->rtc->uie_rtctimer.enabled)
rx8010            333 drivers/rtc/rtc-rx8010.c 			rx8010->ctrlreg |= RX8010_CTRL_UIE;
rx8010            334 drivers/rtc/rtc-rx8010.c 		if (rx8010->rtc->aie_timer.enabled)
rx8010            335 drivers/rtc/rtc-rx8010.c 			rx8010->ctrlreg |=
rx8010            338 drivers/rtc/rtc-rx8010.c 		err = i2c_smbus_write_byte_data(rx8010->client, RX8010_CTRL,
rx8010            339 drivers/rtc/rtc-rx8010.c 						rx8010->ctrlreg);
rx8010            351 drivers/rtc/rtc-rx8010.c 	struct rx8010_data *rx8010 = dev_get_drvdata(dev);
rx8010            356 drivers/rtc/rtc-rx8010.c 	ctrl = rx8010->ctrlreg;
rx8010            359 drivers/rtc/rtc-rx8010.c 		if (rx8010->rtc->uie_rtctimer.enabled)
rx8010            361 drivers/rtc/rtc-rx8010.c 		if (rx8010->rtc->aie_timer.enabled)
rx8010            364 drivers/rtc/rtc-rx8010.c 		if (!rx8010->rtc->uie_rtctimer.enabled)
rx8010            366 drivers/rtc/rtc-rx8010.c 		if (!rx8010->rtc->aie_timer.enabled)
rx8010            375 drivers/rtc/rtc-rx8010.c 	err = i2c_smbus_write_byte_data(rx8010->client, RX8010_FLAG, flagreg);
rx8010            379 drivers/rtc/rtc-rx8010.c 	if (ctrl != rx8010->ctrlreg) {
rx8010            380 drivers/rtc/rtc-rx8010.c 		rx8010->ctrlreg = ctrl;
rx8010            381 drivers/rtc/rtc-rx8010.c 		err = i2c_smbus_write_byte_data(rx8010->client, RX8010_CTRL,
rx8010            382 drivers/rtc/rtc-rx8010.c 						rx8010->ctrlreg);
rx8010            393 drivers/rtc/rtc-rx8010.c 	struct rx8010_data *rx8010 = dev_get_drvdata(dev);
rx8010            399 drivers/rtc/rtc-rx8010.c 		flagreg = i2c_smbus_read_byte_data(rx8010->client, RX8010_FLAG);
rx8010            410 drivers/rtc/rtc-rx8010.c 		flagreg = i2c_smbus_read_byte_data(rx8010->client, RX8010_FLAG);
rx8010            437 drivers/rtc/rtc-rx8010.c 	struct rx8010_data *rx8010;
rx8010            446 drivers/rtc/rtc-rx8010.c 	rx8010 = devm_kzalloc(&client->dev, sizeof(struct rx8010_data),
rx8010            448 drivers/rtc/rtc-rx8010.c 	if (!rx8010)
rx8010            451 drivers/rtc/rtc-rx8010.c 	rx8010->client = client;
rx8010            452 drivers/rtc/rtc-rx8010.c 	i2c_set_clientdata(client, rx8010);
rx8010            475 drivers/rtc/rtc-rx8010.c 	rx8010->rtc = devm_rtc_device_register(&client->dev, client->name,
rx8010            478 drivers/rtc/rtc-rx8010.c 	if (IS_ERR(rx8010->rtc)) {
rx8010            480 drivers/rtc/rtc-rx8010.c 		return PTR_ERR(rx8010->rtc);
rx8010            483 drivers/rtc/rtc-rx8010.c 	rx8010->rtc->max_user_freq = 1;