Lines Matching +full:0 +full:x0f

73 	i = 0;  in hp_sdc_rtc_do_read_bbrtc()
77 tseq[i++] = 0x01; /* write i8042[0x70] */ in hp_sdc_rtc_do_read_bbrtc()
88 sema_init(&tsem, 0); in hp_sdc_rtc_do_read_bbrtc()
99 tseq[20] | tseq[27] | tseq[6] | tseq[13]) & 0x0f)) in hp_sdc_rtc_do_read_bbrtc()
102 memset(rtctm, 0, sizeof(struct rtc_time)); in hp_sdc_rtc_do_read_bbrtc()
103 rtctm->tm_year = (tseq[83] & 0x0f) + (tseq[90] & 0x0f) * 10; in hp_sdc_rtc_do_read_bbrtc()
104 rtctm->tm_mon = (tseq[69] & 0x0f) + (tseq[76] & 0x0f) * 10; in hp_sdc_rtc_do_read_bbrtc()
105 rtctm->tm_mday = (tseq[55] & 0x0f) + (tseq[62] & 0x0f) * 10; in hp_sdc_rtc_do_read_bbrtc()
106 rtctm->tm_wday = (tseq[48] & 0x0f); in hp_sdc_rtc_do_read_bbrtc()
107 rtctm->tm_hour = (tseq[34] & 0x0f) + (tseq[41] & 0x0f) * 10; in hp_sdc_rtc_do_read_bbrtc()
108 rtctm->tm_min = (tseq[20] & 0x0f) + (tseq[27] & 0x0f) * 10; in hp_sdc_rtc_do_read_bbrtc()
109 rtctm->tm_sec = (tseq[6] & 0x0f) + (tseq[13] & 0x0f) * 10; in hp_sdc_rtc_do_read_bbrtc()
111 return 0; in hp_sdc_rtc_do_read_bbrtc()
117 int i = 0; in hp_sdc_rtc_read_bbrtc()
132 return 0; in hp_sdc_rtc_read_bbrtc()
141 0, in hp_sdc_rtc_read_i8042timer()
142 HP_SDC_CMD_READ_T1, 2, 0, 0, in hp_sdc_rtc_read_i8042timer()
144 HP_SDC_CMD_READ_T2, 2, 0, 0, in hp_sdc_rtc_read_i8042timer()
146 HP_SDC_CMD_READ_T3, 2, 0, 0, in hp_sdc_rtc_read_i8042timer()
148 HP_SDC_CMD_READ_T4, 2, 0, 0, in hp_sdc_rtc_read_i8042timer()
150 HP_SDC_CMD_READ_T5, 2, 0, 0 in hp_sdc_rtc_read_i8042timer()
189 if (raw < 0) return -1; in hp_sdc_rtc_read_rt()
191 tenms = (uint32_t)raw & 0xffffff; in hp_sdc_rtc_read_rt()
192 days = (unsigned int)(raw >> 24) & 0xffff; in hp_sdc_rtc_read_rt()
197 return 0; in hp_sdc_rtc_read_rt()
207 if (raw < 0) return -1; in hp_sdc_rtc_read_fhs()
209 tenms = (unsigned int)raw & 0xffff; in hp_sdc_rtc_read_fhs()
214 return 0; in hp_sdc_rtc_read_fhs()
224 if (raw < 0) return -1; in hp_sdc_rtc_read_mt()
226 tenms = (uint32_t)raw & 0xffffff; in hp_sdc_rtc_read_mt()
231 return 0; in hp_sdc_rtc_read_mt()
241 if (raw < 0) return -1; in hp_sdc_rtc_read_dt()
243 tenms = (uint32_t)raw & 0xffffff; in hp_sdc_rtc_read_dt()
248 return 0; in hp_sdc_rtc_read_dt()
258 if (raw < 0) return -1; in hp_sdc_rtc_read_ct()
260 tenms = (uint32_t)raw & 0xffffff; in hp_sdc_rtc_read_ct()
265 return 0; in hp_sdc_rtc_read_ct()
275 memset(&tm, 0, sizeof(struct rtc_time)); in hp_sdc_rtc_proc_show()
342 return 0; in hp_sdc_rtc_proc_show()
361 proc_create_single("driver/rtc", 0, NULL, hp_sdc_rtc_proc_show); in hp_sdc_rtc_init()
366 return 0; in hp_sdc_rtc_init()