Lines Matching refs:pad
585 u32 *code, u32 *fourcc, int pad) in fimc_capture_try_format() argument
597 if (code && ctx->s_frame.fmt && pad == FIMC_SD_PAD_SOURCE && in fimc_capture_try_format()
601 if (fourcc && *fourcc != V4L2_PIX_FMT_JPEG && pad == FIMC_SD_PAD_SOURCE) in fimc_capture_try_format()
604 if (pad == FIMC_SD_PAD_SINK_FIFO) in fimc_capture_try_format()
616 if (pad != FIMC_SD_PAD_SOURCE) { in fimc_capture_try_format()
654 pad, code ? *code : 0, *width, *height, in fimc_capture_try_format()
759 struct media_pad *pad = &me->pads[0]; in fimc_pipeline_get_head() local
761 while (!(pad->flags & MEDIA_PAD_FL_SOURCE)) { in fimc_pipeline_get_head()
762 pad = media_entity_remote_pad(pad); in fimc_pipeline_get_head()
763 if (!pad) in fimc_pipeline_get_head()
765 me = pad->entity; in fimc_pipeline_get_head()
766 pad = &me->pads[0]; in fimc_pipeline_get_head()
792 struct media_pad *pad; in fimc_pipeline_try_format() local
821 sfmt.pad = 0; in fimc_pipeline_try_format()
822 ret = v4l2_subdev_call(sd, pad, set_fmt, NULL, &sfmt); in fimc_pipeline_try_format()
827 sfmt.pad = me->num_pads - 1; in fimc_pipeline_try_format()
829 ret = v4l2_subdev_call(sd, pad, set_fmt, NULL, in fimc_pipeline_try_format()
835 pad = media_entity_remote_pad(&me->pads[sfmt.pad]); in fimc_pipeline_try_format()
836 if (!pad) in fimc_pipeline_try_format()
838 me = pad->entity; in fimc_pipeline_try_format()
880 int pad; in fimc_get_sensor_frame_desc() local
885 pad = sensor->entity.num_pads - 1; in fimc_get_sensor_frame_desc()
887 ret = v4l2_subdev_call(sensor, pad, set_frame_desc, pad, &fd); in fimc_get_sensor_frame_desc()
889 ret = v4l2_subdev_call(sensor, pad, get_frame_desc, pad, &fd); in fimc_get_sensor_frame_desc()
1155 sink_fmt.pad = sink_pad->index; in fimc_pipeline_validate()
1157 ret = v4l2_subdev_call(sd, pad, get_fmt, NULL, &sink_fmt); in fimc_pipeline_validate()
1164 src_fmt.pad = src_pad->index; in fimc_pipeline_validate()
1166 ret = v4l2_subdev_call(sd, pad, get_fmt, NULL, &src_fmt); in fimc_pipeline_validate()
1507 mf = v4l2_subdev_get_try_format(sd, cfg, fmt->pad); in fimc_subdev_get_fmt()
1515 switch (fmt->pad) { in fimc_subdev_get_fmt()
1550 fmt->pad, mf->code, mf->width, mf->height); in fimc_subdev_set_fmt()
1552 if (fmt->pad == FIMC_SD_PAD_SOURCE && vb2_is_busy(&vc->vbq)) in fimc_subdev_set_fmt()
1557 &mf->code, NULL, fmt->pad); in fimc_subdev_set_fmt()
1562 mf = v4l2_subdev_get_try_format(sd, cfg, fmt->pad); in fimc_subdev_set_fmt()
1574 if (fmt->pad == FIMC_SD_PAD_SOURCE) { in fimc_subdev_set_fmt()
1586 if (fmt->pad == FIMC_SD_PAD_SINK_FIFO) in fimc_subdev_set_fmt()
1588 else if (fmt->pad == FIMC_SD_PAD_SINK_CAM) in fimc_subdev_set_fmt()
1594 if (!(fmt->pad == FIMC_SD_PAD_SOURCE && (ctx->state & FIMC_COMPOSE))) in fimc_subdev_set_fmt()
1597 if (fmt->pad != FIMC_SD_PAD_SOURCE) in fimc_subdev_set_fmt()
1614 if (sel->pad == FIMC_SD_PAD_SOURCE) in fimc_subdev_get_selection()
1631 try_sel = v4l2_subdev_get_try_crop(sd, cfg, sel->pad); in fimc_subdev_get_selection()
1634 try_sel = v4l2_subdev_get_try_compose(sd, cfg, sel->pad); in fimc_subdev_get_selection()
1652 sel->pad, r->left, r->top, r->width, r->height, in fimc_subdev_get_selection()
1670 if (sel->pad == FIMC_SD_PAD_SOURCE) in fimc_subdev_set_selection()
1678 try_sel = v4l2_subdev_get_try_crop(sd, cfg, sel->pad); in fimc_subdev_set_selection()
1681 try_sel = v4l2_subdev_get_try_compose(sd, cfg, sel->pad); in fimc_subdev_set_selection()
1716 .pad = &fimc_subdev_pad_ops,