Home
last modified time | relevance | path

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

/openbmc/linux/drivers/media/test-drivers/vivid/
H A Dvivid-touch-cap.c261 unsigned int test_pattern, test_pat_idx, rand; in vivid_fillbuff_tch() local
267 test_pat_idx = buf->vb.sequence % TCH_SEQ_COUNT; in vivid_fillbuff_tch()
271 if (test_pat_idx >= TCH_PATTERN_COUNT) in vivid_fillbuff_tch()
274 if (test_pat_idx == 0) in vivid_fillbuff_tch()
280 if (test_pat_idx == 2) in vivid_fillbuff_tch()
284 if (test_pat_idx == 2 || test_pat_idx == 4) in vivid_fillbuff_tch()
288 if (test_pat_idx == 2 || test_pat_idx == 4 || test_pat_idx == 6) in vivid_fillbuff_tch()
294 test_pat_idx * in vivid_fillbuff_tch()
300 offset_x = ((TCH_PATTERN_COUNT - 1 - test_pat_idx) * x) / in vivid_fillbuff_tch()
312 offset_x = (test_pat_idx * x) / TCH_PATTERN_COUNT; in vivid_fillbuff_tch()
[all …]