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, sd_state, in vsp1_rwpf_get_crop()
52 struct vsp1_rwpf *rwpf = to_rwpf(subdev); in vsp1_rwpf_enum_frame_size() local
56 RWPF_MIN_HEIGHT, rwpf->max_width, in vsp1_rwpf_enum_frame_size()
57 rwpf->max_height); in vsp1_rwpf_enum_frame_size()
64 struct vsp1_rwpf *rwpf = to_rwpf(subdev); in vsp1_rwpf_set_format() local
69 mutex_lock(&rwpf->entity.lock); in vsp1_rwpf_set_format()
71 config = vsp1_entity_get_pad_config(&rwpf->entity, sd_state, in vsp1_rwpf_set_format()
84 format = vsp1_entity_get_pad_format(&rwpf->entity, config, fmt->pad); in vsp1_rwpf_set_format()
98 RWPF_MIN_WIDTH, rwpf->max_width); in vsp1_rwpf_set_format()
100 RWPF_MIN_HEIGHT, rwpf->max_height); in vsp1_rwpf_set_format()
106 if (rwpf->entity.type == VSP1_ENTITY_RPF) { in vsp1_rwpf_set_format()
110 crop = vsp1_rwpf_get_crop(rwpf, config); in vsp1_rwpf_set_format()
118 format = vsp1_entity_get_pad_format(&rwpf->entity, config, in vsp1_rwpf_set_format()
122 if (rwpf->flip.rotate) { in vsp1_rwpf_set_format()
128 mutex_unlock(&rwpf->entity.lock); in vsp1_rwpf_set_format()
136 struct vsp1_rwpf *rwpf = to_rwpf(subdev); in vsp1_rwpf_get_selection() local
145 if (rwpf->entity.type == VSP1_ENTITY_WPF || sel->pad != RWPF_PAD_SINK) in vsp1_rwpf_get_selection()
148 mutex_lock(&rwpf->entity.lock); in vsp1_rwpf_get_selection()
150 config = vsp1_entity_get_pad_config(&rwpf->entity, sd_state, in vsp1_rwpf_get_selection()
159 sel->r = *vsp1_rwpf_get_crop(rwpf, config); in vsp1_rwpf_get_selection()
163 format = vsp1_entity_get_pad_format(&rwpf->entity, config, in vsp1_rwpf_get_selection()
177 mutex_unlock(&rwpf->entity.lock); in vsp1_rwpf_get_selection()
185 struct vsp1_rwpf *rwpf = to_rwpf(subdev); in vsp1_rwpf_set_selection() local
195 if (rwpf->entity.type == VSP1_ENTITY_WPF || sel->pad != RWPF_PAD_SINK) in vsp1_rwpf_set_selection()
201 mutex_lock(&rwpf->entity.lock); in vsp1_rwpf_set_selection()
203 config = vsp1_entity_get_pad_config(&rwpf->entity, sd_state, in vsp1_rwpf_set_selection()
211 format = vsp1_entity_get_pad_format(&rwpf->entity, config, in vsp1_rwpf_set_selection()
232 crop = vsp1_rwpf_get_crop(rwpf, config); in vsp1_rwpf_set_selection()
236 format = vsp1_entity_get_pad_format(&rwpf->entity, config, in vsp1_rwpf_set_selection()
242 mutex_unlock(&rwpf->entity.lock); in vsp1_rwpf_set_selection()
266 struct vsp1_rwpf *rwpf = in vsp1_rwpf_s_ctrl() local
271 rwpf->alpha = ctrl->val; in vsp1_rwpf_s_ctrl()
282 int vsp1_rwpf_init_ctrls(struct vsp1_rwpf *rwpf, unsigned int ncontrols) in vsp1_rwpf_init_ctrls() argument
284 v4l2_ctrl_handler_init(&rwpf->ctrls, ncontrols + 1); in vsp1_rwpf_init_ctrls()
285 v4l2_ctrl_new_std(&rwpf->ctrls, &vsp1_rwpf_ctrl_ops, in vsp1_rwpf_init_ctrls()
288 rwpf->entity.subdev.ctrl_handler = &rwpf->ctrls; in vsp1_rwpf_init_ctrls()
290 return rwpf->ctrls.error; in vsp1_rwpf_init_ctrls()