rtcreg             41 drivers/rtc/rtc-tx4939.c 	struct tx4939_rtc_reg __iomem *rtcreg;
rtcreg             45 drivers/rtc/rtc-tx4939.c static int tx4939_rtc_cmd(struct tx4939_rtc_reg __iomem *rtcreg, int cmd)
rtcreg             49 drivers/rtc/rtc-tx4939.c 	__raw_writel(cmd, &rtcreg->ctl);
rtcreg             51 drivers/rtc/rtc-tx4939.c 	while (__raw_readl(&rtcreg->ctl) & TX4939_RTCCTL_BUSY) {
rtcreg             63 drivers/rtc/rtc-tx4939.c 	struct tx4939_rtc_reg __iomem *rtcreg = pdata->rtcreg;
rtcreg             75 drivers/rtc/rtc-tx4939.c 	__raw_writel(0, &rtcreg->adr);
rtcreg             77 drivers/rtc/rtc-tx4939.c 		__raw_writel(buf[i], &rtcreg->dat);
rtcreg             78 drivers/rtc/rtc-tx4939.c 	ret = tx4939_rtc_cmd(rtcreg,
rtcreg             80 drivers/rtc/rtc-tx4939.c 			     (__raw_readl(&rtcreg->ctl) & TX4939_RTCCTL_ALME));
rtcreg             88 drivers/rtc/rtc-tx4939.c 	struct tx4939_rtc_reg __iomem *rtcreg = pdata->rtcreg;
rtcreg             94 drivers/rtc/rtc-tx4939.c 	ret = tx4939_rtc_cmd(rtcreg,
rtcreg             96 drivers/rtc/rtc-tx4939.c 			     (__raw_readl(&rtcreg->ctl) & TX4939_RTCCTL_ALME));
rtcreg            101 drivers/rtc/rtc-tx4939.c 	__raw_writel(2, &rtcreg->adr);
rtcreg            103 drivers/rtc/rtc-tx4939.c 		buf[i] = __raw_readl(&rtcreg->dat);
rtcreg            114 drivers/rtc/rtc-tx4939.c 	struct tx4939_rtc_reg __iomem *rtcreg = pdata->rtcreg;
rtcreg            127 drivers/rtc/rtc-tx4939.c 	__raw_writel(0, &rtcreg->adr);
rtcreg            129 drivers/rtc/rtc-tx4939.c 		__raw_writel(buf[i], &rtcreg->dat);
rtcreg            130 drivers/rtc/rtc-tx4939.c 	ret = tx4939_rtc_cmd(rtcreg, TX4939_RTCCTL_COMMAND_SETALARM |
rtcreg            139 drivers/rtc/rtc-tx4939.c 	struct tx4939_rtc_reg __iomem *rtcreg = pdata->rtcreg;
rtcreg            146 drivers/rtc/rtc-tx4939.c 	ret = tx4939_rtc_cmd(rtcreg,
rtcreg            148 drivers/rtc/rtc-tx4939.c 			     (__raw_readl(&rtcreg->ctl) & TX4939_RTCCTL_ALME));
rtcreg            153 drivers/rtc/rtc-tx4939.c 	__raw_writel(2, &rtcreg->adr);
rtcreg            155 drivers/rtc/rtc-tx4939.c 		buf[i] = __raw_readl(&rtcreg->dat);
rtcreg            156 drivers/rtc/rtc-tx4939.c 	ctl = __raw_readl(&rtcreg->ctl);
rtcreg            171 drivers/rtc/rtc-tx4939.c 	tx4939_rtc_cmd(pdata->rtcreg,
rtcreg            181 drivers/rtc/rtc-tx4939.c 	struct tx4939_rtc_reg __iomem *rtcreg = pdata->rtcreg;
rtcreg            185 drivers/rtc/rtc-tx4939.c 	if (__raw_readl(&rtcreg->ctl) & TX4939_RTCCTL_ALMD) {
rtcreg            187 drivers/rtc/rtc-tx4939.c 		tx4939_rtc_cmd(rtcreg, TX4939_RTCCTL_COMMAND_NOP);
rtcreg            207 drivers/rtc/rtc-tx4939.c 	struct tx4939_rtc_reg __iomem *rtcreg = pdata->rtcreg;
rtcreg            212 drivers/rtc/rtc-tx4939.c 		__raw_writel(pos++, &rtcreg->adr);
rtcreg            213 drivers/rtc/rtc-tx4939.c 		*buf++ = __raw_readl(&rtcreg->dat);
rtcreg            223 drivers/rtc/rtc-tx4939.c 	struct tx4939_rtc_reg __iomem *rtcreg = pdata->rtcreg;
rtcreg            228 drivers/rtc/rtc-tx4939.c 		__raw_writel(pos++, &rtcreg->adr);
rtcreg            229 drivers/rtc/rtc-tx4939.c 		__raw_writel(*buf++, &rtcreg->dat);
rtcreg            257 drivers/rtc/rtc-tx4939.c 	pdata->rtcreg = devm_ioremap_resource(&pdev->dev, res);
rtcreg            258 drivers/rtc/rtc-tx4939.c 	if (IS_ERR(pdata->rtcreg))
rtcreg            259 drivers/rtc/rtc-tx4939.c 		return PTR_ERR(pdata->rtcreg);
rtcreg            262 drivers/rtc/rtc-tx4939.c 	tx4939_rtc_cmd(pdata->rtcreg, TX4939_RTCCTL_COMMAND_NOP);
rtcreg            289 drivers/rtc/rtc-tx4939.c 	tx4939_rtc_cmd(pdata->rtcreg, TX4939_RTCCTL_COMMAND_NOP);