Lines Matching refs:buf
52 unsigned char buf[25];
74 crc1 += w->buf[i] & 7;
75 crc2 += (w->buf[i] & 8) >> 3;
77 if ((w->buf[10] & 7) != (crc1 & 7))
79 if (((w->buf[10] & 8) >> 3) != (((crc1 >> 3) + crc2) & 1))
82 crc1 += w->buf[i] & 7;
83 crc2 += (w->buf[i] & 8) >> 3;
85 if ((w->buf[23] & 7) != (crc1 & 7))
87 if (((w->buf[23] & 8) >> 3) != (((crc1 >> 3) + crc2) & 1))
89 val1 = ((w->buf[0] & 7) * 256 + w->buf[1] * 16 + w->buf[2]) >> 2;
90 val1 *= ((w->buf[0] >> 2) & 2) - 1; /* sign */
91 val2 = (w->buf[2] & 1) << 8 | (w->buf[3] << 4) | w->buf[4];
92 val2 *= (w->buf[2] & 2) - 1; /* sign */
93 val3 = ((w->buf[5] & 7) * 256 + w->buf[6] * 16 + w->buf[7]) >> 2;
94 val3 *= ((w->buf[5] >> 2) & 2) - 1; /* sign */
95 val4 = (w->buf[7] & 1) << 8 | (w->buf[8] << 4) | w->buf[9];
96 val4 *= (w->buf[7] & 2) - 1; /* sign */
97 val5 = ((w->buf[11] & 7) * 256 + w->buf[12] * 16 + w->buf[13]) >> 2;
98 val5 *= ((w->buf[11] >> 2) & 2) - 1; /* sign */
99 val6 = (w->buf[13] & 1) << 8 | (w->buf[14] << 4) | w->buf[15];
100 val6 *= (w->buf[13] & 2) - 1; /* sign */
101 val7 = ((w->buf[16] & 7) * 256 + w->buf[17] * 16 + w->buf[18]) >> 2;
102 val7 *= ((w->buf[16] >> 2) & 2) - 1; /*sign */
103 val8 = (w->buf[18] & 1) << 8 | (w->buf[19] << 4) | w->buf[20];
104 val8 *= (w->buf[18] & 2) - 1; /*sign */
106 magic = (w->buf[21] << 4) | w->buf[22];
107 magic_bit = (w->buf[24] & 8) >> 3;
145 w->buf[w->counter] = 8;
148 w->buf[w->counter] = 0;
160 w->buf[w->counter++] |= (pulse_time & 7);