Lines Matching refs:calc_parity
166 static u8 calc_parity(u8 val) in calc_parity() function
182 packet[0] = calc_parity(0x07); in vivid_vbi_gen_set_time_of_day()
183 packet[1] = calc_parity(0x01); in vivid_vbi_gen_set_time_of_day()
184 packet[2] = calc_parity(0x40 | tm.tm_min); in vivid_vbi_gen_set_time_of_day()
185 packet[3] = calc_parity(0x40 | tm.tm_hour); in vivid_vbi_gen_set_time_of_day()
186 packet[4] = calc_parity(0x40 | tm.tm_mday); in vivid_vbi_gen_set_time_of_day()
189 packet[4] = calc_parity(0x60 | tm.tm_mday); in vivid_vbi_gen_set_time_of_day()
190 packet[5] = calc_parity(0x40 | (1 + tm.tm_mon)); in vivid_vbi_gen_set_time_of_day()
191 packet[6] = calc_parity(0x40 | (1 + tm.tm_wday)); in vivid_vbi_gen_set_time_of_day()
192 packet[7] = calc_parity(0x40 | ((tm.tm_year - 90) & 0x3f)); in vivid_vbi_gen_set_time_of_day()
193 packet[8] = calc_parity(0x0f); in vivid_vbi_gen_set_time_of_day()
196 packet[9] = calc_parity(0x100 - checksum); in vivid_vbi_gen_set_time_of_day()
197 packet[10] = calc_parity(0x07); in vivid_vbi_gen_set_time_of_day()
198 packet[11] = calc_parity(0x04); in vivid_vbi_gen_set_time_of_day()
200 packet[12] = calc_parity(0x40 | ((sys_tz.tz_minuteswest / 60) & 0x1f)); in vivid_vbi_gen_set_time_of_day()
202 packet[12] = calc_parity(0x40 | ((24 + sys_tz.tz_minuteswest / 60) & 0x1f)); in vivid_vbi_gen_set_time_of_day()
203 packet[13] = calc_parity(0); in vivid_vbi_gen_set_time_of_day()
204 packet[14] = calc_parity(0x0f); in vivid_vbi_gen_set_time_of_day()
207 packet[15] = calc_parity(0x100 - checksum); in vivid_vbi_gen_set_time_of_day()
242 packet[i] = calc_parity(packet[i]); in vivid_vbi_gen_teletext()
285 data0->data[0] = calc_parity(vivid_cc_sequence1[2 * frame]); in vivid_vbi_gen_sliced()
286 data0->data[1] = calc_parity(vivid_cc_sequence1[2 * frame + 1]); in vivid_vbi_gen_sliced()
289 data0->data[0] = calc_parity(vivid_cc_sequence2[2 * frame]); in vivid_vbi_gen_sliced()
290 data0->data[1] = calc_parity(vivid_cc_sequence2[2 * frame + 1]); in vivid_vbi_gen_sliced()
292 data0->data[0] = calc_parity(0); in vivid_vbi_gen_sliced()
293 data0->data[1] = calc_parity(0); in vivid_vbi_gen_sliced()
306 data1->data[0] = calc_parity(0); in vivid_vbi_gen_sliced()
307 data1->data[1] = calc_parity(0); in vivid_vbi_gen_sliced()