Lines Matching refs:decoder
79 struct saa7110 *decoder = to_saa7110(sd); in saa7110_write() local
81 decoder->reg[reg] = value; in saa7110_write()
88 struct saa7110 *decoder = to_saa7110(sd); in saa7110_write_block() local
102 memcpy(decoder->reg + reg, data + 1, len - 1); in saa7110_write_block()
160 struct saa7110 *decoder = to_saa7110(sd); in saa7110_selmux() local
171 decoder->input = chan; in saa7110_selmux()
189 struct saa7110 *decoder = to_saa7110(sd); in determine_norm() local
194 saa7110_selmux(sd, decoder->input); in determine_norm()
195 prepare_to_wait(&decoder->wq, &wait, TASK_UNINTERRUPTIBLE); in determine_norm()
197 finish_wait(&decoder->wq, &wait); in determine_norm()
230 prepare_to_wait(&decoder->wq, &wait, TASK_UNINTERRUPTIBLE); in determine_norm()
232 finish_wait(&decoder->wq, &wait); in determine_norm()
246 struct saa7110 *decoder = to_saa7110(sd); in saa7110_g_input_status() local
251 status, (unsigned long long)decoder->norm); in saa7110_g_input_status()
269 struct saa7110 *decoder = to_saa7110(sd); in saa7110_s_std() local
271 if (decoder->norm != std) { in saa7110_s_std()
272 decoder->norm = std; in saa7110_s_std()
302 struct saa7110 *decoder = to_saa7110(sd); in saa7110_s_routing() local
308 if (decoder->input != input) { in saa7110_s_routing()
317 struct saa7110 *decoder = to_saa7110(sd); in saa7110_s_stream() local
319 if (decoder->enable != enable) { in saa7110_s_stream()
320 decoder->enable = enable; in saa7110_s_stream()
373 struct saa7110 *decoder; in saa7110_probe() local
385 decoder = devm_kzalloc(&client->dev, sizeof(*decoder), GFP_KERNEL); in saa7110_probe()
386 if (!decoder) in saa7110_probe()
388 sd = &decoder->sd; in saa7110_probe()
390 decoder->norm = V4L2_STD_PAL; in saa7110_probe()
391 decoder->input = 0; in saa7110_probe()
392 decoder->enable = 1; in saa7110_probe()
393 v4l2_ctrl_handler_init(&decoder->hdl, 2); in saa7110_probe()
394 v4l2_ctrl_new_std(&decoder->hdl, &saa7110_ctrl_ops, in saa7110_probe()
396 v4l2_ctrl_new_std(&decoder->hdl, &saa7110_ctrl_ops, 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 sd->ctrl_handler = &decoder->hdl; in saa7110_probe()
403 if (decoder->hdl.error) { in saa7110_probe()
404 int err = decoder->hdl.error; in saa7110_probe()
406 v4l2_ctrl_handler_free(&decoder->hdl); in saa7110_probe()
409 v4l2_ctrl_handler_setup(&decoder->hdl); in saa7110_probe()
411 init_waitqueue_head(&decoder->wq); in saa7110_probe()
443 struct saa7110 *decoder = to_saa7110(sd); in saa7110_remove() local
446 v4l2_ctrl_handler_free(&decoder->hdl); in saa7110_remove()