Lines Matching full:line
167 static u32 vfe_src_pad_code(struct vfe_line *line, u32 sink_code, in vfe_src_pad_code() argument
170 struct vfe_device *vfe = to_vfe(line); in vfe_src_pad_code()
309 struct vfe_output *output = &vfe->line[i].output; in vfe_init_outputs()
390 int vfe_put_output(struct vfe_line *line) in vfe_put_output() argument
392 struct vfe_device *vfe = to_vfe(line); in vfe_put_output()
393 struct vfe_output *output = &line->output; in vfe_put_output()
443 ret = camss_get_pixel_clock(&vfe->line[i].subdev.entity, in vfe_set_clock_rates()
465 struct vfe_line *l = &vfe->line[j]; in vfe_set_clock_rates()
526 ret = camss_get_pixel_clock(&vfe->line[i].subdev.entity, in vfe_check_clock_rates()
547 struct vfe_line *l = &vfe->line[j]; in vfe_check_clock_rates()
672 struct vfe_line *line = container_of(vid, struct vfe_line, video_out); in vfe_flush_buffers() local
673 struct vfe_device *vfe = to_vfe(line); in vfe_flush_buffers()
677 output = &line->output; in vfe_flush_buffers()
708 struct vfe_line *line = v4l2_get_subdevdata(sd); in vfe_set_power() local
709 struct vfe_device *vfe = to_vfe(line); in vfe_set_power()
736 struct vfe_line *line = v4l2_get_subdevdata(sd); in vfe_set_stream() local
737 struct vfe_device *vfe = to_vfe(line); in vfe_set_stream()
741 ret = vfe->ops->vfe_enable(line); in vfe_set_stream()
746 ret = vfe->ops->vfe_disable(line); in vfe_set_stream()
757 * @line: VFE line
765 __vfe_get_format(struct vfe_line *line, in __vfe_get_format() argument
771 return v4l2_subdev_get_try_format(&line->subdev, sd_state, in __vfe_get_format()
774 return &line->fmt[pad]; in __vfe_get_format()
779 * @line: VFE line
786 __vfe_get_compose(struct vfe_line *line, in __vfe_get_compose() argument
791 return v4l2_subdev_get_try_compose(&line->subdev, sd_state, in __vfe_get_compose()
794 return &line->compose; in __vfe_get_compose()
799 * @line: VFE line
806 __vfe_get_crop(struct vfe_line *line, in __vfe_get_crop() argument
811 return v4l2_subdev_get_try_crop(&line->subdev, sd_state, in __vfe_get_crop()
814 return &line->crop; in __vfe_get_crop()
819 * @line: VFE line
825 static void vfe_try_format(struct vfe_line *line, in vfe_try_format() argument
838 for (i = 0; i < line->nformats; i++) in vfe_try_format()
839 if (fmt->code == line->formats[i].code) in vfe_try_format()
843 if (i >= line->nformats) in vfe_try_format()
858 *fmt = *__vfe_get_format(line, sd_state, MSM_VFE_PAD_SINK, in vfe_try_format()
861 fmt->code = vfe_src_pad_code(line, fmt->code, 0, code); in vfe_try_format()
863 if (line->id == VFE_LINE_PIX) { in vfe_try_format()
866 rect = __vfe_get_crop(line, sd_state, which); in vfe_try_format()
880 * @line: VFE line
885 static void vfe_try_compose(struct vfe_line *line, in vfe_try_compose() argument
892 fmt = __vfe_get_format(line, sd_state, MSM_VFE_PAD_SINK, which); in vfe_try_compose()
919 * @line: VFE line
924 static void vfe_try_crop(struct vfe_line *line, in vfe_try_crop() argument
931 compose = __vfe_get_compose(line, sd_state, which); in vfe_try_crop()
945 /* wm in line based mode writes multiple of 16 horizontally */ in vfe_try_crop()
972 struct vfe_line *line = v4l2_get_subdevdata(sd); in vfe_enum_mbus_code() local
975 if (code->index >= line->nformats) in vfe_enum_mbus_code()
978 code->code = line->formats[code->index].code; in vfe_enum_mbus_code()
982 sink_fmt = __vfe_get_format(line, sd_state, MSM_VFE_PAD_SINK, in vfe_enum_mbus_code()
985 code->code = vfe_src_pad_code(line, sink_fmt->code, in vfe_enum_mbus_code()
1006 struct vfe_line *line = v4l2_get_subdevdata(sd); in vfe_enum_frame_size() local
1015 vfe_try_format(line, sd_state, fse->pad, &format, fse->which); in vfe_enum_frame_size()
1025 vfe_try_format(line, sd_state, fse->pad, &format, fse->which); in vfe_enum_frame_size()
1044 struct vfe_line *line = v4l2_get_subdevdata(sd); in vfe_get_format() local
1047 format = __vfe_get_format(line, sd_state, fmt->pad, fmt->which); in vfe_get_format()
1072 struct vfe_line *line = v4l2_get_subdevdata(sd); in vfe_set_format() local
1075 format = __vfe_get_format(line, sd_state, fmt->pad, fmt->which); in vfe_set_format()
1079 vfe_try_format(line, sd_state, fmt->pad, &fmt->format, fmt->which); in vfe_set_format()
1087 format = __vfe_get_format(line, sd_state, MSM_VFE_PAD_SRC, in vfe_set_format()
1091 vfe_try_format(line, sd_state, MSM_VFE_PAD_SRC, format, in vfe_set_format()
1094 if (line->id != VFE_LINE_PIX) in vfe_set_format()
1123 struct vfe_line *line = v4l2_get_subdevdata(sd); in vfe_get_selection() local
1128 if (line->id != VFE_LINE_PIX) in vfe_get_selection()
1146 rect = __vfe_get_compose(line, sd_state, sel->which); in vfe_get_selection()
1158 rect = __vfe_get_compose(line, sd_state, sel->which); in vfe_get_selection()
1168 rect = __vfe_get_crop(line, sd_state, sel->which); in vfe_get_selection()
1193 struct vfe_line *line = v4l2_get_subdevdata(sd); in vfe_set_selection() local
1197 if (line->id != VFE_LINE_PIX) in vfe_set_selection()
1204 rect = __vfe_get_compose(line, sd_state, sel->which); in vfe_set_selection()
1208 vfe_try_compose(line, sd_state, &sel->r, sel->which); in vfe_set_selection()
1221 rect = __vfe_get_crop(line, sd_state, sel->which); in vfe_set_selection()
1225 vfe_try_crop(line, sd_state, &sel->r, sel->which); in vfe_set_selection()
1385 struct vfe_line *l = &vfe->line[i]; in msm_vfe_subdev_init()
1432 struct vfe_line *line; in msm_vfe_get_vfe_id() local
1436 line = v4l2_get_subdevdata(sd); in msm_vfe_get_vfe_id()
1437 vfe = to_vfe(line); in msm_vfe_get_vfe_id()
1443 * msm_vfe_get_vfe_line_id - Get VFE line id by media entity
1445 * @id: Return VFE line id here
1450 struct vfe_line *line; in msm_vfe_get_vfe_line_id() local
1453 line = v4l2_get_subdevdata(sd); in msm_vfe_get_vfe_line_id()
1455 *id = line->id; in msm_vfe_get_vfe_line_id()
1535 sd = &vfe->line[i].subdev; in msm_vfe_register_entities()
1536 pads = vfe->line[i].pads; in msm_vfe_register_entities()
1537 video_out = &vfe->line[i].video_out; in msm_vfe_register_entities()
1549 v4l2_set_subdevdata(sd, &vfe->line[i]); in msm_vfe_register_entities()
1617 sd = &vfe->line[i].subdev; in msm_vfe_register_entities()
1618 video_out = &vfe->line[i].video_out; in msm_vfe_register_entities()
1640 struct v4l2_subdev *sd = &vfe->line[i].subdev; in msm_vfe_unregister_entities()
1641 struct camss_video *video_out = &vfe->line[i].video_out; in msm_vfe_unregister_entities()