Lines Matching refs:sel
1937 struct v4l2_subdev_selection *sel) in preview_get_selection() argument
1942 if (sel->pad != PREV_PAD_SINK) in preview_get_selection()
1945 switch (sel->target) { in preview_get_selection()
1947 sel->r.left = 0; in preview_get_selection()
1948 sel->r.top = 0; in preview_get_selection()
1949 sel->r.width = INT_MAX; in preview_get_selection()
1950 sel->r.height = INT_MAX; in preview_get_selection()
1953 sel->which); in preview_get_selection()
1954 preview_try_crop(prev, format, &sel->r); in preview_get_selection()
1958 sel->r = *__preview_get_crop(prev, cfg, sel->which); in preview_get_selection()
1980 struct v4l2_subdev_selection *sel) in preview_set_selection() argument
1985 if (sel->target != V4L2_SEL_TGT_CROP || in preview_set_selection()
1986 sel->pad != PREV_PAD_SINK) in preview_set_selection()
1997 if (sel->flags & V4L2_SEL_FLAG_KEEP_CONFIG) { in preview_set_selection()
1998 sel->r = *__preview_get_crop(prev, cfg, sel->which); in preview_set_selection()
2002 format = __preview_get_format(prev, cfg, PREV_PAD_SINK, sel->which); in preview_set_selection()
2003 preview_try_crop(prev, format, &sel->r); in preview_set_selection()
2004 *__preview_get_crop(prev, cfg, sel->which) = sel->r; in preview_set_selection()
2007 format = __preview_get_format(prev, cfg, PREV_PAD_SOURCE, sel->which); in preview_set_selection()
2008 preview_try_format(prev, cfg, PREV_PAD_SOURCE, format, sel->which); in preview_set_selection()