Lines Matching refs:rwpf
19 struct v4l2_rect *vsp1_rwpf_get_crop(struct vsp1_rwpf *rwpf, in vsp1_rwpf_get_crop() argument
22 return v4l2_subdev_get_try_crop(&rwpf->entity.subdev, config, in vsp1_rwpf_get_crop()
52 struct vsp1_rwpf *rwpf = to_rwpf(subdev); in vsp1_rwpf_enum_frame_size() local
55 RWPF_MIN_HEIGHT, rwpf->max_width, in vsp1_rwpf_enum_frame_size()
56 rwpf->max_height); in vsp1_rwpf_enum_frame_size()
63 struct vsp1_rwpf *rwpf = to_rwpf(subdev); in vsp1_rwpf_set_format() local
68 mutex_lock(&rwpf->entity.lock); in vsp1_rwpf_set_format()
70 config = vsp1_entity_get_pad_config(&rwpf->entity, cfg, fmt->which); in vsp1_rwpf_set_format()
82 format = vsp1_entity_get_pad_format(&rwpf->entity, config, fmt->pad); in vsp1_rwpf_set_format()
96 RWPF_MIN_WIDTH, rwpf->max_width); in vsp1_rwpf_set_format()
98 RWPF_MIN_HEIGHT, rwpf->max_height); in vsp1_rwpf_set_format()
104 if (rwpf->entity.type == VSP1_ENTITY_RPF) { in vsp1_rwpf_set_format()
108 crop = vsp1_rwpf_get_crop(rwpf, config); in vsp1_rwpf_set_format()
116 format = vsp1_entity_get_pad_format(&rwpf->entity, config, in vsp1_rwpf_set_format()
120 if (rwpf->flip.rotate) { in vsp1_rwpf_set_format()
126 mutex_unlock(&rwpf->entity.lock); in vsp1_rwpf_set_format()
134 struct vsp1_rwpf *rwpf = to_rwpf(subdev); in vsp1_rwpf_get_selection() local
143 if (rwpf->entity.type == VSP1_ENTITY_WPF || sel->pad != RWPF_PAD_SINK) in vsp1_rwpf_get_selection()
146 mutex_lock(&rwpf->entity.lock); in vsp1_rwpf_get_selection()
148 config = vsp1_entity_get_pad_config(&rwpf->entity, cfg, sel->which); in vsp1_rwpf_get_selection()
156 sel->r = *vsp1_rwpf_get_crop(rwpf, config); in vsp1_rwpf_get_selection()
160 format = vsp1_entity_get_pad_format(&rwpf->entity, config, in vsp1_rwpf_get_selection()
174 mutex_unlock(&rwpf->entity.lock); in vsp1_rwpf_get_selection()
182 struct vsp1_rwpf *rwpf = to_rwpf(subdev); in vsp1_rwpf_set_selection() local
192 if (rwpf->entity.type == VSP1_ENTITY_WPF || sel->pad != RWPF_PAD_SINK) in vsp1_rwpf_set_selection()
198 mutex_lock(&rwpf->entity.lock); in vsp1_rwpf_set_selection()
200 config = vsp1_entity_get_pad_config(&rwpf->entity, cfg, sel->which); in vsp1_rwpf_set_selection()
207 format = vsp1_entity_get_pad_format(&rwpf->entity, config, in vsp1_rwpf_set_selection()
228 crop = vsp1_rwpf_get_crop(rwpf, config); in vsp1_rwpf_set_selection()
232 format = vsp1_entity_get_pad_format(&rwpf->entity, config, in vsp1_rwpf_set_selection()
238 mutex_unlock(&rwpf->entity.lock); in vsp1_rwpf_set_selection()
258 struct vsp1_rwpf *rwpf = in vsp1_rwpf_s_ctrl() local
263 rwpf->alpha = ctrl->val; in vsp1_rwpf_s_ctrl()
274 int vsp1_rwpf_init_ctrls(struct vsp1_rwpf *rwpf, unsigned int ncontrols) in vsp1_rwpf_init_ctrls() argument
276 v4l2_ctrl_handler_init(&rwpf->ctrls, ncontrols + 1); in vsp1_rwpf_init_ctrls()
277 v4l2_ctrl_new_std(&rwpf->ctrls, &vsp1_rwpf_ctrl_ops, in vsp1_rwpf_init_ctrls()
280 rwpf->entity.subdev.ctrl_handler = &rwpf->ctrls; in vsp1_rwpf_init_ctrls()
282 return rwpf->ctrls.error; in vsp1_rwpf_init_ctrls()