Lines Matching refs:line

36 static int vfe_disable_output(struct vfe_line *line)
38 struct vfe_device *vfe = to_vfe(line);
39 struct vfe_output *output = &line->output;
58 ops->reg_update(vfe, line->id);
68 if (line->id != VFE_LINE_PIX) {
70 vfe->ops_gen1->bus_disconnect_wm_from_rdi(vfe, output->wm_idx[0], line->id);
71 vfe->ops_gen1->enable_irq_wm_line(vfe, output->wm_idx[0], line->id, 0);
80 vfe->ops_gen1->enable_irq_pix_line(vfe, 0, line->id, 0);
82 vfe->ops_gen1->set_realign_cfg(vfe, line, 0);
95 * vfe_gen1_disable - Disable streaming on VFE line
96 * @line: VFE line
100 int vfe_gen1_disable(struct vfe_line *line)
102 struct vfe_device *vfe = to_vfe(line);
104 vfe_disable_output(line);
106 vfe_put_output(line);
122 struct vfe_line *line)
168 static int vfe_enable_output(struct vfe_line *line)
170 struct vfe_device *vfe = to_vfe(line);
171 struct vfe_output *output = &line->output;
183 sensor_pad = camss_find_sensor_pad(&line->subdev.entity);
196 ops->reg_update_clear(vfe, line->id);
237 vfe_output_init_addrs(vfe, output, 0, line);
239 if (line->id != VFE_LINE_PIX) {
241 vfe->ops_gen1->enable_irq_wm_line(vfe, output->wm_idx[0], line->id, 1);
242 vfe->ops_gen1->bus_connect_wm_to_rdi(vfe, output->wm_idx[0], line->id);
244 vfe->ops_gen1->set_rdi_cid(vfe, line->id, 0);
258 &line->video_out.active_fmt.fmt.pix_mp, i, 1);
262 vfe->ops_gen1->enable_irq_pix_line(vfe, 0, line->id, 1);
264 vfe->ops_gen1->set_camif_cfg(vfe, line);
265 vfe->ops_gen1->set_realign_cfg(vfe, line, 1);
267 vfe->ops_gen1->set_demux_cfg(vfe, line);
268 vfe->ops_gen1->set_scale_cfg(vfe, line);
269 vfe->ops_gen1->set_crop_cfg(vfe, line);
274 ops->reg_update(vfe, line->id);
281 static int vfe_get_output(struct vfe_line *line)
283 struct vfe_device *vfe = to_vfe(line);
285 struct v4l2_format *f = &line->video_out.active_fmt;
292 output = &line->output;
314 wm_idx = vfe_reserve_wm(vfe, line->id);
338 int vfe_gen1_enable(struct vfe_line *line)
340 struct vfe_device *vfe = to_vfe(line);
356 ret = vfe_get_output(line);
360 ret = vfe_enable_output(line);
369 vfe_put_output(line);
386 struct vfe_line *line)
405 struct vfe_line *line)
461 struct vfe_line *line)
473 vfe_output_update_pong_addr(vfe, output, 0, line);
475 vfe_output_update_ping_addr(vfe, output, 0, line);
490 vfe_output_init_addrs(vfe, output, 1, line);
521 * @line_id: VFE line
529 output = &vfe->line[line_id].output;
540 * @line_id: VFE line
545 struct vfe_line *line = &vfe->line[line_id];
551 output = &line->output;
598 vfe_output_init_addrs(vfe, output, 1, &vfe->line[line_id]);
628 output = &vfe->line[vfe->wm_output_map[wm]].output;
691 struct vfe_line *line = container_of(vid, struct vfe_line, video_out);
692 struct vfe_device *vfe = to_vfe(line);
696 output = &line->output;
700 vfe_buf_update_wm_on_new(vfe, output, buf, line);