Lines Matching refs:decoder
83 struct saa7110 *decoder = to_saa7110(sd); in saa7110_write() local
85 decoder->reg[reg] = value; in saa7110_write()
92 struct saa7110 *decoder = to_saa7110(sd); in saa7110_write_block() local
106 memcpy(decoder->reg + reg, data + 1, len - 1); in saa7110_write_block()
164 struct saa7110 *decoder = to_saa7110(sd); in saa7110_selmux() local
175 decoder->input = chan; in saa7110_selmux()
193 struct saa7110 *decoder = to_saa7110(sd); in determine_norm() local
198 saa7110_selmux(sd, decoder->input); in determine_norm()
199 prepare_to_wait(&decoder->wq, &wait, TASK_UNINTERRUPTIBLE); in determine_norm()
201 finish_wait(&decoder->wq, &wait); in determine_norm()
234 prepare_to_wait(&decoder->wq, &wait, TASK_UNINTERRUPTIBLE); in determine_norm()
236 finish_wait(&decoder->wq, &wait); in determine_norm()
250 struct saa7110 *decoder = to_saa7110(sd); in saa7110_g_input_status() local
255 status, (unsigned long long)decoder->norm); in saa7110_g_input_status()
273 struct saa7110 *decoder = to_saa7110(sd); in saa7110_s_std() local
275 if (decoder->norm != std) { in saa7110_s_std()
276 decoder->norm = std; in saa7110_s_std()
306 struct saa7110 *decoder = to_saa7110(sd); in saa7110_s_routing() local
312 if (decoder->input != input) { in saa7110_s_routing()
321 struct saa7110 *decoder = to_saa7110(sd); in saa7110_s_stream() local
323 if (decoder->enable != enable) { in saa7110_s_stream()
324 decoder->enable = enable; in saa7110_s_stream()
377 struct saa7110 *decoder; in saa7110_probe() local
389 decoder = devm_kzalloc(&client->dev, sizeof(*decoder), GFP_KERNEL); in saa7110_probe()
390 if (!decoder) in saa7110_probe()
392 sd = &decoder->sd; in saa7110_probe()
394 decoder->norm = V4L2_STD_PAL; in saa7110_probe()
395 decoder->input = 0; in saa7110_probe()
396 decoder->enable = 1; in saa7110_probe()
397 v4l2_ctrl_handler_init(&decoder->hdl, 2); in saa7110_probe()
398 v4l2_ctrl_new_std(&decoder->hdl, &saa7110_ctrl_ops, in saa7110_probe()
400 v4l2_ctrl_new_std(&decoder->hdl, &saa7110_ctrl_ops, in saa7110_probe()
402 v4l2_ctrl_new_std(&decoder->hdl, &saa7110_ctrl_ops, in saa7110_probe()
404 v4l2_ctrl_new_std(&decoder->hdl, &saa7110_ctrl_ops, in saa7110_probe()
406 sd->ctrl_handler = &decoder->hdl; in saa7110_probe()
407 if (decoder->hdl.error) { in saa7110_probe()
408 int err = decoder->hdl.error; in saa7110_probe()
410 v4l2_ctrl_handler_free(&decoder->hdl); in saa7110_probe()
413 v4l2_ctrl_handler_setup(&decoder->hdl); in saa7110_probe()
415 init_waitqueue_head(&decoder->wq); in saa7110_probe()
447 struct saa7110 *decoder = to_saa7110(sd); in saa7110_remove() local
450 v4l2_ctrl_handler_free(&decoder->hdl); in saa7110_remove()