Lines Matching refs:decoder

264 	struct tvp5150 *decoder = to_tvp5150(sd);  in tvp5150_selmux()  local
269 if ((decoder->dev_id == 0x5150 && decoder->rom_ver == 0x0400) || in tvp5150_selmux()
270 (decoder->dev_id == 0x5151 && decoder->rom_ver == 0x0100)) { in tvp5150_selmux()
271 if (!decoder->enable) in tvp5150_selmux()
275 switch (decoder->input) { in tvp5150_selmux()
288 decoder->input, decoder->output, in tvp5150_selmux()
307 if (decoder->input == TVP5150_SVIDEO) in tvp5150_selmux()
663 struct tvp5150 *decoder = to_tvp5150(sd); in tvp5150_set_vbi() local
664 v4l2_std_id std = decoder->norm; in tvp5150_set_vbi()
706 struct tvp5150 *decoder = to_tvp5150(sd); in tvp5150_get_vbi() local
707 v4l2_std_id std = decoder->norm; in tvp5150_get_vbi()
742 struct tvp5150 *decoder = to_tvp5150(sd); in tvp5150_set_std() local
745 decoder->norm = std; in tvp5150_set_std()
772 struct tvp5150 *decoder = to_tvp5150(sd); in tvp5150_s_std() local
774 if (decoder->norm == std) in tvp5150_s_std()
779 decoder->rect.height = TVP5150_V_MAX_525_60; in tvp5150_s_std()
781 decoder->rect.height = TVP5150_V_MAX_OTHERS; in tvp5150_s_std()
789 struct tvp5150 *decoder = to_tvp5150(sd); in tvp5150_reset() local
804 v4l2_ctrl_handler_setup(&decoder->hdl); in tvp5150_reset()
806 tvp5150_set_std(sd, decoder->norm); in tvp5150_reset()
808 if (decoder->mbus_type == V4L2_MBUS_PARALLEL) in tvp5150_reset()
817 struct tvp5150 *decoder = to_tvp5150(sd); in tvp5150_s_ctrl() local
833 decoder->enable = ctrl->val ? false : true; in tvp5150_s_ctrl()
867 struct tvp5150 *decoder = to_tvp5150(sd); in tvp5150_fill_fmt() local
874 f->width = decoder->rect.width; in tvp5150_fill_fmt()
875 f->height = decoder->rect.height / 2; in tvp5150_fill_fmt()
890 struct tvp5150 *decoder = to_tvp5150(sd); in tvp5150_set_selection() local
910 if (decoder->norm == V4L2_STD_ALL) in tvp5150_set_selection()
913 std = decoder->norm; in tvp5150_set_selection()
937 decoder->rect = rect; in tvp5150_set_selection()
946 struct tvp5150 *decoder = container_of(sd, struct tvp5150, sd); in tvp5150_get_selection() local
960 if (decoder->norm == V4L2_STD_ALL) in tvp5150_get_selection()
963 std = decoder->norm; in tvp5150_get_selection()
970 sel->r = decoder->rect; in tvp5150_get_selection()
980 struct tvp5150 *decoder = to_tvp5150(sd); in tvp5150_g_mbus_config() local
982 cfg->type = decoder->mbus_type; in tvp5150_g_mbus_config()
1007 struct tvp5150 *decoder = to_tvp5150(sd); in tvp5150_enum_frame_size() local
1013 fse->min_width = decoder->rect.width; in tvp5150_enum_frame_size()
1014 fse->max_width = decoder->rect.width; in tvp5150_enum_frame_size()
1015 fse->min_height = decoder->rect.height / 2; in tvp5150_enum_frame_size()
1016 fse->max_height = decoder->rect.height / 2; in tvp5150_enum_frame_size()
1031 struct tvp5150 *decoder = to_tvp5150(sd); in tvp5150_link_setup() local
1035 if (remote->entity == &decoder->input_ent[i]) in tvp5150_link_setup()
1043 decoder->input = i; in tvp5150_link_setup()
1061 struct tvp5150 *decoder = to_tvp5150(sd); in tvp5150_s_stream() local
1078 if (decoder->mbus_type == V4L2_MBUS_PARALLEL) in tvp5150_s_stream()
1090 struct tvp5150 *decoder = to_tvp5150(sd); in tvp5150_s_routing() local
1092 decoder->input = input; in tvp5150_s_routing()
1093 decoder->output = output; in tvp5150_s_routing()
1096 decoder->enable = false; in tvp5150_s_routing()
1098 decoder->enable = true; in tvp5150_s_routing()
1198 struct tvp5150 *decoder = to_tvp5150(sd); in tvp5150_registered() local
1203 struct media_entity *input = &decoder->input_ent[i]; in tvp5150_registered()
1204 struct media_pad *pad = &decoder->input_pad[i]; in tvp5150_registered()
1209 decoder->input_pad[i].flags = MEDIA_PAD_FL_SOURCE; in tvp5150_registered()
1363 static int tvp5150_parse_dt(struct tvp5150 *decoder, struct device_node *np) in tvp5150_parse_dt() argument
1394 decoder->mbus_type = bus_cfg.bus_type; in tvp5150_parse_dt()
1405 dev_err(decoder->sd.dev, in tvp5150_parse_dt()
1416 input = &decoder->input_ent[input_type]; in tvp5150_parse_dt()
1420 dev_err(decoder->sd.dev, in tvp5150_parse_dt()
1441 dev_err(decoder->sd.dev, in tvp5150_parse_dt()
1572 struct tvp5150 *decoder = to_tvp5150(sd); in tvp5150_remove() local
1579 v4l2_ctrl_handler_free(&decoder->hdl); in tvp5150_remove()