Lines Matching refs:rwpf

19 struct v4l2_rect *vsp1_rwpf_get_crop(struct vsp1_rwpf *rwpf,
51 struct vsp1_rwpf *rwpf = to_rwpf(subdev);
55 RWPF_MIN_HEIGHT, rwpf->max_width,
56 rwpf->max_height);
63 struct vsp1_rwpf *rwpf = to_rwpf(subdev);
68 mutex_lock(&rwpf->entity.lock);
70 state = vsp1_entity_get_state(&rwpf->entity, sd_state, fmt->which);
82 format = vsp1_entity_get_pad_format(&rwpf->entity, state, fmt->pad);
96 RWPF_MIN_WIDTH, rwpf->max_width);
98 RWPF_MIN_HEIGHT, rwpf->max_height);
104 if (rwpf->entity.type == VSP1_ENTITY_RPF) {
108 crop = vsp1_rwpf_get_crop(rwpf, state);
116 format = vsp1_entity_get_pad_format(&rwpf->entity, state,
120 if (rwpf->flip.rotate) {
126 mutex_unlock(&rwpf->entity.lock);
134 struct vsp1_rwpf *rwpf = to_rwpf(subdev);
143 if (rwpf->entity.type == VSP1_ENTITY_WPF || sel->pad != RWPF_PAD_SINK)
146 mutex_lock(&rwpf->entity.lock);
148 state = vsp1_entity_get_state(&rwpf->entity, sd_state, sel->which);
156 sel->r = *vsp1_rwpf_get_crop(rwpf, state);
160 format = vsp1_entity_get_pad_format(&rwpf->entity, state,
174 mutex_unlock(&rwpf->entity.lock);
182 struct vsp1_rwpf *rwpf = to_rwpf(subdev);
192 if (rwpf->entity.type == VSP1_ENTITY_WPF || sel->pad != RWPF_PAD_SINK)
198 mutex_lock(&rwpf->entity.lock);
200 state = vsp1_entity_get_state(&rwpf->entity, sd_state, sel->which);
207 format = vsp1_entity_get_pad_format(&rwpf->entity, state,
228 crop = vsp1_rwpf_get_crop(rwpf, state);
232 format = vsp1_entity_get_pad_format(&rwpf->entity, state,
238 mutex_unlock(&rwpf->entity.lock);
261 struct vsp1_rwpf *rwpf =
266 rwpf->alpha = ctrl->val;
277 int vsp1_rwpf_init_ctrls(struct vsp1_rwpf *rwpf, unsigned int ncontrols)
279 v4l2_ctrl_handler_init(&rwpf->ctrls, ncontrols + 1);
280 v4l2_ctrl_new_std(&rwpf->ctrls, &vsp1_rwpf_ctrl_ops,
283 rwpf->entity.subdev.ctrl_handler = &rwpf->ctrls;
285 return rwpf->ctrls.error;