Lines Matching refs:rtctm
66 static int hp_sdc_rtc_do_read_bbrtc (struct rtc_time *rtctm)
102 memset(rtctm, 0, sizeof(struct rtc_time));
103 rtctm->tm_year = (tseq[83] & 0x0f) + (tseq[90] & 0x0f) * 10;
104 rtctm->tm_mon = (tseq[69] & 0x0f) + (tseq[76] & 0x0f) * 10;
105 rtctm->tm_mday = (tseq[55] & 0x0f) + (tseq[62] & 0x0f) * 10;
106 rtctm->tm_wday = (tseq[48] & 0x0f);
107 rtctm->tm_hour = (tseq[34] & 0x0f) + (tseq[41] & 0x0f) * 10;
108 rtctm->tm_min = (tseq[20] & 0x0f) + (tseq[27] & 0x0f) * 10;
109 rtctm->tm_sec = (tseq[6] & 0x0f) + (tseq[13] & 0x0f) * 10;
114 static int hp_sdc_rtc_read_bbrtc (struct rtc_time *rtctm)
130 memcpy(rtctm, &tm, sizeof(struct rtc_time));