Lines Matching refs:tseq

88 	uint8_t tseq[91];  in hp_sdc_rtc_do_read_bbrtc()  local
93 tseq[i++] = HP_SDC_ACT_DATAREG | in hp_sdc_rtc_do_read_bbrtc()
95 tseq[i++] = 0x01; /* write i8042[0x70] */ in hp_sdc_rtc_do_read_bbrtc()
96 tseq[i] = i / 7; /* BBRTC reg address */ in hp_sdc_rtc_do_read_bbrtc()
98 tseq[i++] = HP_SDC_CMD_DO_RTCR; /* Trigger command */ in hp_sdc_rtc_do_read_bbrtc()
99 tseq[i++] = 2; /* expect 1 stat/dat pair back. */ in hp_sdc_rtc_do_read_bbrtc()
102 tseq[84] |= HP_SDC_ACT_SEMAPHORE; in hp_sdc_rtc_do_read_bbrtc()
104 t.seq = tseq; in hp_sdc_rtc_do_read_bbrtc()
115 if (!((tseq[83] | tseq[90] | tseq[69] | tseq[76] | in hp_sdc_rtc_do_read_bbrtc()
116 tseq[55] | tseq[62] | tseq[34] | tseq[41] | in hp_sdc_rtc_do_read_bbrtc()
117 tseq[20] | tseq[27] | tseq[6] | tseq[13]) & 0x0f)) in hp_sdc_rtc_do_read_bbrtc()
121 rtctm->tm_year = (tseq[83] & 0x0f) + (tseq[90] & 0x0f) * 10; in hp_sdc_rtc_do_read_bbrtc()
122 rtctm->tm_mon = (tseq[69] & 0x0f) + (tseq[76] & 0x0f) * 10; in hp_sdc_rtc_do_read_bbrtc()
123 rtctm->tm_mday = (tseq[55] & 0x0f) + (tseq[62] & 0x0f) * 10; in hp_sdc_rtc_do_read_bbrtc()
124 rtctm->tm_wday = (tseq[48] & 0x0f); in hp_sdc_rtc_do_read_bbrtc()
125 rtctm->tm_hour = (tseq[34] & 0x0f) + (tseq[41] & 0x0f) * 10; in hp_sdc_rtc_do_read_bbrtc()
126 rtctm->tm_min = (tseq[20] & 0x0f) + (tseq[27] & 0x0f) * 10; in hp_sdc_rtc_do_read_bbrtc()
127 rtctm->tm_sec = (tseq[6] & 0x0f) + (tseq[13] & 0x0f) * 10; in hp_sdc_rtc_do_read_bbrtc()
157 uint8_t tseq[26] = { in hp_sdc_rtc_read_i8042timer() local
173 tseq[1] = loadcmd; in hp_sdc_rtc_read_i8042timer()
174 tseq[t.endidx - 4] |= HP_SDC_ACT_SEMAPHORE; /* numreg assumed > 1 */ in hp_sdc_rtc_read_i8042timer()
176 t.seq = tseq; in hp_sdc_rtc_read_i8042timer()
194 return (tseq[5] | in hp_sdc_rtc_read_i8042timer()
195 ((uint64_t)(tseq[10]) << 8) | ((uint64_t)(tseq[15]) << 16) | in hp_sdc_rtc_read_i8042timer()
196 ((uint64_t)(tseq[20]) << 24) | ((uint64_t)(tseq[25]) << 32)); in hp_sdc_rtc_read_i8042timer()
294 uint8_t tseq[11] = {
315 tseq[3] = (uint8_t)(tenms & 0xff);
316 tseq[4] = (uint8_t)((tenms >> 8) & 0xff);
317 tseq[5] = (uint8_t)((tenms >> 16) & 0xff);
319 tseq[9] = (uint8_t)(days & 0xff);
320 tseq[10] = (uint8_t)((days >> 8) & 0xff);
322 t.seq = tseq;
333 uint8_t tseq[5] = {
346 tseq[3] = (uint8_t)(tenms & 0xff);
347 tseq[4] = (uint8_t)((tenms >> 8) & 0xff);
349 t.seq = tseq;
373 uint8_t tseq[6] = {
386 tseq[1] = setcmd;
387 tseq[3] = (uint8_t)(tenms & 0xff);
388 tseq[4] = (uint8_t)((tenms >> 8) & 0xff);
389 tseq[5] = (uint8_t)((tenms >> 16) & 0xff);
391 t.seq = tseq;