Lines Matching refs:m48t86_readb

47 static unsigned char m48t86_readb(struct device *dev, unsigned long addr)  in m48t86_readb()  function
71 reg = m48t86_readb(dev, M48T86_B); in m48t86_rtc_read_time()
75 tm->tm_sec = m48t86_readb(dev, M48T86_SEC); in m48t86_rtc_read_time()
76 tm->tm_min = m48t86_readb(dev, M48T86_MIN); in m48t86_rtc_read_time()
77 tm->tm_hour = m48t86_readb(dev, M48T86_HOUR) & 0x3f; in m48t86_rtc_read_time()
78 tm->tm_mday = m48t86_readb(dev, M48T86_DOM); in m48t86_rtc_read_time()
80 tm->tm_mon = m48t86_readb(dev, M48T86_MONTH) - 1; in m48t86_rtc_read_time()
81 tm->tm_year = m48t86_readb(dev, M48T86_YEAR) + 100; in m48t86_rtc_read_time()
82 tm->tm_wday = m48t86_readb(dev, M48T86_DOW); in m48t86_rtc_read_time()
85 tm->tm_sec = bcd2bin(m48t86_readb(dev, M48T86_SEC)); in m48t86_rtc_read_time()
86 tm->tm_min = bcd2bin(m48t86_readb(dev, M48T86_MIN)); in m48t86_rtc_read_time()
87 tm->tm_hour = bcd2bin(m48t86_readb(dev, M48T86_HOUR) & in m48t86_rtc_read_time()
89 tm->tm_mday = bcd2bin(m48t86_readb(dev, M48T86_DOM)); in m48t86_rtc_read_time()
91 tm->tm_mon = bcd2bin(m48t86_readb(dev, M48T86_MONTH)) - 1; in m48t86_rtc_read_time()
92 tm->tm_year = bcd2bin(m48t86_readb(dev, M48T86_YEAR)) + 100; in m48t86_rtc_read_time()
93 tm->tm_wday = bcd2bin(m48t86_readb(dev, M48T86_DOW)); in m48t86_rtc_read_time()
98 if (m48t86_readb(dev, M48T86_HOUR) & 0x80) in m48t86_rtc_read_time()
108 reg = m48t86_readb(dev, M48T86_B); in m48t86_rtc_set_time()
145 reg = m48t86_readb(dev, M48T86_B); in m48t86_rtc_proc()
150 reg = m48t86_readb(dev, M48T86_D); in m48t86_rtc_proc()
171 ((u8 *)buf)[i] = m48t86_readb(dev, M48T86_NVRAM(off + i)); in m48t86_nvram_read()
201 tmp0 = m48t86_readb(&pdev->dev, offset0); in m48t86_verify_chip()
202 tmp1 = m48t86_readb(&pdev->dev, offset1); in m48t86_verify_chip()
206 if (m48t86_readb(&pdev->dev, offset1) == 0x55) { in m48t86_verify_chip()
208 if (m48t86_readb(&pdev->dev, offset1) == 0xaa && in m48t86_verify_chip()
209 m48t86_readb(&pdev->dev, offset0) == 0x00) { in m48t86_verify_chip()
266 reg = m48t86_readb(&pdev->dev, M48T86_D); in m48t86_rtc_probe()