Lines Matching refs:sel
1933 struct v4l2_subdev_selection *sel) in preview_get_selection() argument
1938 if (sel->pad != PREV_PAD_SINK) in preview_get_selection()
1941 switch (sel->target) { in preview_get_selection()
1943 sel->r.left = 0; in preview_get_selection()
1944 sel->r.top = 0; in preview_get_selection()
1945 sel->r.width = INT_MAX; in preview_get_selection()
1946 sel->r.height = INT_MAX; in preview_get_selection()
1949 sel->which); in preview_get_selection()
1950 preview_try_crop(prev, format, &sel->r); in preview_get_selection()
1954 sel->r = *__preview_get_crop(prev, cfg, sel->which); in preview_get_selection()
1976 struct v4l2_subdev_selection *sel) in preview_set_selection() argument
1981 if (sel->target != V4L2_SEL_TGT_CROP || in preview_set_selection()
1982 sel->pad != PREV_PAD_SINK) in preview_set_selection()
1993 if (sel->flags & V4L2_SEL_FLAG_KEEP_CONFIG) { in preview_set_selection()
1994 sel->r = *__preview_get_crop(prev, cfg, sel->which); in preview_set_selection()
1998 format = __preview_get_format(prev, cfg, PREV_PAD_SINK, sel->which); in preview_set_selection()
1999 preview_try_crop(prev, format, &sel->r); in preview_set_selection()
2000 *__preview_get_crop(prev, cfg, sel->which) = sel->r; in preview_set_selection()
2003 format = __preview_get_format(prev, cfg, PREV_PAD_SOURCE, sel->which); in preview_set_selection()
2004 preview_try_format(prev, cfg, PREV_PAD_SOURCE, format, sel->which); in preview_set_selection()