Lines Matching refs:rwpf
48 struct vsp1_rwpf *rwpf = to_rwpf(subdev); in vsp1_rwpf_enum_frame_size() local
51 format = vsp1_entity_get_pad_format(&rwpf->entity, cfg, fse->pad, in vsp1_rwpf_enum_frame_size()
59 fse->max_width = rwpf->max_width; in vsp1_rwpf_enum_frame_size()
61 fse->max_height = rwpf->max_height; in vsp1_rwpf_enum_frame_size()
76 vsp1_rwpf_get_crop(struct vsp1_rwpf *rwpf, struct v4l2_subdev_pad_config *cfg, u32 which) in vsp1_rwpf_get_crop() argument
80 return v4l2_subdev_get_try_crop(&rwpf->entity.subdev, cfg, RWPF_PAD_SINK); in vsp1_rwpf_get_crop()
82 return &rwpf->crop; in vsp1_rwpf_get_crop()
91 struct vsp1_rwpf *rwpf = to_rwpf(subdev); in vsp1_rwpf_get_format() local
93 fmt->format = *vsp1_entity_get_pad_format(&rwpf->entity, cfg, fmt->pad, in vsp1_rwpf_get_format()
102 struct vsp1_rwpf *rwpf = to_rwpf(subdev); in vsp1_rwpf_set_format() local
111 format = vsp1_entity_get_pad_format(&rwpf->entity, cfg, fmt->pad, in vsp1_rwpf_set_format()
125 RWPF_MIN_WIDTH, rwpf->max_width); in vsp1_rwpf_set_format()
127 RWPF_MIN_HEIGHT, rwpf->max_height); in vsp1_rwpf_set_format()
134 crop = vsp1_rwpf_get_crop(rwpf, cfg, fmt->which); in vsp1_rwpf_set_format()
141 format = vsp1_entity_get_pad_format(&rwpf->entity, cfg, RWPF_PAD_SOURCE, in vsp1_rwpf_set_format()
152 struct vsp1_rwpf *rwpf = to_rwpf(subdev); in vsp1_rwpf_get_selection() local
161 sel->r = *vsp1_rwpf_get_crop(rwpf, cfg, sel->which); in vsp1_rwpf_get_selection()
165 format = vsp1_entity_get_pad_format(&rwpf->entity, cfg, in vsp1_rwpf_get_selection()
184 struct vsp1_rwpf *rwpf = to_rwpf(subdev); in vsp1_rwpf_set_selection() local
198 format = vsp1_entity_get_pad_format(&rwpf->entity, cfg, RWPF_PAD_SINK, in vsp1_rwpf_set_selection()
213 if (rwpf->entity.type == VSP1_ENTITY_WPF) { in vsp1_rwpf_set_selection()
222 crop = vsp1_rwpf_get_crop(rwpf, cfg, sel->which); in vsp1_rwpf_set_selection()
226 format = vsp1_entity_get_pad_format(&rwpf->entity, cfg, RWPF_PAD_SOURCE, in vsp1_rwpf_set_selection()