Home
last modified time | relevance | path

Searched refs:calc_parity (Results 1 – 1 of 1) sorted by relevance

/linux-5.19.10/drivers/media/test-drivers/vivid/
Dvivid-vbi-gen.c166 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()
[all …]