Lines Matching defs:tch_buf
207 static void vivid_fill_buff_noise(__s16 *tch_buf, int size)
216 tch_buf[i] = 0;
218 tch_buf[i] = (rand / 10) % 7 - 3;
228 __s16 *tch_buf,
235 tch_buf[index] = offset + get_random_pressure();
238 tch_buf[index - 1] = offset + get_random_pressure();
240 tch_buf[index + 1] = offset + get_random_pressure();
242 tch_buf[index - f->width] = offset + get_random_pressure();
244 tch_buf[index + f->width] = offset + get_random_pressure();
247 tch_buf[index - 1 - f->width] = offset + get_random_pressure();
249 tch_buf[index + 1 - f->width] = offset + get_random_pressure();
251 tch_buf[index - 1 + f->width] = offset + get_random_pressure();
253 tch_buf[index + 1 + f->width] = offset + get_random_pressure();
263 __s16 *tch_buf = vb2_plane_vaddr(&buf->vb.vb2_buf, 0);
269 vivid_fill_buff_noise(tch_buf, size);
281 vivid_tch_buf_set(f, tch_buf, rand % size);
285 vivid_tch_buf_set(f, tch_buf, rand % size);
289 vivid_tch_buf_set(f, tch_buf, rand % size);
292 vivid_tch_buf_set(f, tch_buf,
304 vivid_tch_buf_set(f, tch_buf,
306 vivid_tch_buf_set(f, tch_buf,
314 vivid_tch_buf_set(f, tch_buf,
316 vivid_tch_buf_set(f, tch_buf,
322 tch_buf[x + f->width * y] = VIVID_MIN_PRESSURE +
331 vivid_tch_buf_set(f, tch_buf,
339 tch_buf[x] = (__force s16)__cpu_to_le16((u16)tch_buf[x]);