Lines Matching full:sel
547 struct v4l2_subdev_selection *sel) in mxc_isi_pipe_get_selection() argument
553 switch (sel->target) { in mxc_isi_pipe_get_selection()
555 if (sel->pad != MXC_ISI_PIPE_PAD_SINK) in mxc_isi_pipe_get_selection()
562 sel->r.left = 0; in mxc_isi_pipe_get_selection()
563 sel->r.top = 0; in mxc_isi_pipe_get_selection()
564 sel->r.width = format->width; in mxc_isi_pipe_get_selection()
565 sel->r.height = format->height; in mxc_isi_pipe_get_selection()
569 if (sel->pad != MXC_ISI_PIPE_PAD_SOURCE) in mxc_isi_pipe_get_selection()
576 sel->r = *rect; in mxc_isi_pipe_get_selection()
580 if (sel->pad != MXC_ISI_PIPE_PAD_SOURCE) in mxc_isi_pipe_get_selection()
584 rect = mxc_isi_pipe_get_pad_crop(pipe, state, sel->pad); in mxc_isi_pipe_get_selection()
585 sel->r = *rect; in mxc_isi_pipe_get_selection()
589 if (sel->pad != MXC_ISI_PIPE_PAD_SINK) in mxc_isi_pipe_get_selection()
593 rect = mxc_isi_pipe_get_pad_compose(pipe, state, sel->pad); in mxc_isi_pipe_get_selection()
594 sel->r = *rect; in mxc_isi_pipe_get_selection()
606 struct v4l2_subdev_selection *sel) in mxc_isi_pipe_set_selection() argument
612 switch (sel->target) { in mxc_isi_pipe_set_selection()
614 if (sel->pad != MXC_ISI_PIPE_PAD_SOURCE) in mxc_isi_pipe_set_selection()
621 sel->r.left = clamp_t(s32, sel->r.left, 0, rect->width - 1); in mxc_isi_pipe_set_selection()
622 sel->r.top = clamp_t(s32, sel->r.top, 0, rect->height - 1); in mxc_isi_pipe_set_selection()
623 sel->r.width = clamp(sel->r.width, MXC_ISI_MIN_WIDTH, in mxc_isi_pipe_set_selection()
624 rect->width - sel->r.left); in mxc_isi_pipe_set_selection()
625 sel->r.height = clamp(sel->r.height, MXC_ISI_MIN_HEIGHT, in mxc_isi_pipe_set_selection()
626 rect->height - sel->r.top); in mxc_isi_pipe_set_selection()
630 *rect = sel->r; in mxc_isi_pipe_set_selection()
635 format->width = sel->r.width; in mxc_isi_pipe_set_selection()
636 format->height = sel->r.height; in mxc_isi_pipe_set_selection()
640 if (sel->pad != MXC_ISI_PIPE_PAD_SINK) in mxc_isi_pipe_set_selection()
648 sel->r.left = 0; in mxc_isi_pipe_set_selection()
649 sel->r.top = 0; in mxc_isi_pipe_set_selection()
650 sel->r.width = clamp(sel->r.width, MXC_ISI_MIN_WIDTH, in mxc_isi_pipe_set_selection()
652 sel->r.height = clamp(sel->r.height, MXC_ISI_MIN_HEIGHT, in mxc_isi_pipe_set_selection()
657 *rect = sel->r; in mxc_isi_pipe_set_selection()
664 rect->width = sel->r.width; in mxc_isi_pipe_set_selection()
665 rect->height = sel->r.height; in mxc_isi_pipe_set_selection()
669 format->width = sel->r.width; in mxc_isi_pipe_set_selection()
670 format->height = sel->r.height; in mxc_isi_pipe_set_selection()
678 sel->target, sel->r.left, sel->r.top, sel->r.width, in mxc_isi_pipe_set_selection()
679 sel->r.height); in mxc_isi_pipe_set_selection()