Lines Matching refs:sel
2227 struct v4l2_subdev_selection *sel) in ccdc_get_selection() argument
2232 if (sel->pad != CCDC_PAD_SOURCE_OF) in ccdc_get_selection()
2235 switch (sel->target) { in ccdc_get_selection()
2237 sel->r.left = 0; in ccdc_get_selection()
2238 sel->r.top = 0; in ccdc_get_selection()
2239 sel->r.width = INT_MAX; in ccdc_get_selection()
2240 sel->r.height = INT_MAX; in ccdc_get_selection()
2242 format = __ccdc_get_format(ccdc, cfg, CCDC_PAD_SINK, sel->which); in ccdc_get_selection()
2243 ccdc_try_crop(ccdc, format, &sel->r); in ccdc_get_selection()
2247 sel->r = *__ccdc_get_crop(ccdc, cfg, sel->which); in ccdc_get_selection()
2269 struct v4l2_subdev_selection *sel) in ccdc_set_selection() argument
2274 if (sel->target != V4L2_SEL_TGT_CROP || in ccdc_set_selection()
2275 sel->pad != CCDC_PAD_SOURCE_OF) in ccdc_set_selection()
2286 if (sel->flags & V4L2_SEL_FLAG_KEEP_CONFIG) { in ccdc_set_selection()
2287 sel->r = *__ccdc_get_crop(ccdc, cfg, sel->which); in ccdc_set_selection()
2291 format = __ccdc_get_format(ccdc, cfg, CCDC_PAD_SINK, sel->which); in ccdc_set_selection()
2292 ccdc_try_crop(ccdc, format, &sel->r); in ccdc_set_selection()
2293 *__ccdc_get_crop(ccdc, cfg, sel->which) = sel->r; in ccdc_set_selection()
2296 format = __ccdc_get_format(ccdc, cfg, CCDC_PAD_SOURCE_OF, sel->which); in ccdc_set_selection()
2297 ccdc_try_format(ccdc, cfg, CCDC_PAD_SOURCE_OF, format, sel->which); in ccdc_set_selection()