Lines Matching refs:pad

581 						u32 *code, u32 *fourcc, int pad)  in fimc_capture_try_format()  argument
593 if (code && ctx->s_frame.fmt && pad == FIMC_SD_PAD_SOURCE && in fimc_capture_try_format()
597 if (fourcc && *fourcc != V4L2_PIX_FMT_JPEG && pad == FIMC_SD_PAD_SOURCE) in fimc_capture_try_format()
600 if (pad == FIMC_SD_PAD_SINK_FIFO) in fimc_capture_try_format()
612 if (pad != FIMC_SD_PAD_SOURCE) { in fimc_capture_try_format()
650 pad, code ? *code : 0, *width, *height, in fimc_capture_try_format()
755 struct media_pad *pad = &me->pads[0]; in fimc_pipeline_get_head() local
757 while (!(pad->flags & MEDIA_PAD_FL_SOURCE)) { in fimc_pipeline_get_head()
758 pad = media_entity_remote_pad(pad); in fimc_pipeline_get_head()
759 if (!pad) in fimc_pipeline_get_head()
761 me = pad->entity; in fimc_pipeline_get_head()
762 pad = &me->pads[0]; in fimc_pipeline_get_head()
788 struct media_pad *pad; in fimc_pipeline_try_format() local
817 sfmt.pad = 0; in fimc_pipeline_try_format()
818 ret = v4l2_subdev_call(sd, pad, set_fmt, NULL, &sfmt); in fimc_pipeline_try_format()
823 sfmt.pad = me->num_pads - 1; in fimc_pipeline_try_format()
825 ret = v4l2_subdev_call(sd, pad, set_fmt, NULL, in fimc_pipeline_try_format()
831 pad = media_entity_remote_pad(&me->pads[sfmt.pad]); in fimc_pipeline_try_format()
832 if (!pad) in fimc_pipeline_try_format()
834 me = pad->entity; in fimc_pipeline_try_format()
876 int pad; in fimc_get_sensor_frame_desc() local
881 pad = sensor->entity.num_pads - 1; in fimc_get_sensor_frame_desc()
883 ret = v4l2_subdev_call(sensor, pad, set_frame_desc, pad, &fd); in fimc_get_sensor_frame_desc()
885 ret = v4l2_subdev_call(sensor, pad, get_frame_desc, pad, &fd); in fimc_get_sensor_frame_desc()
1151 sink_fmt.pad = sink_pad->index; in fimc_pipeline_validate()
1153 ret = v4l2_subdev_call(sd, pad, get_fmt, NULL, &sink_fmt); in fimc_pipeline_validate()
1160 src_fmt.pad = src_pad->index; in fimc_pipeline_validate()
1162 ret = v4l2_subdev_call(sd, pad, get_fmt, NULL, &src_fmt); in fimc_pipeline_validate()
1504 mf = v4l2_subdev_get_try_format(sd, cfg, fmt->pad); in fimc_subdev_get_fmt()
1512 switch (fmt->pad) { in fimc_subdev_get_fmt()
1547 fmt->pad, mf->code, mf->width, mf->height); in fimc_subdev_set_fmt()
1549 if (fmt->pad == FIMC_SD_PAD_SOURCE && vb2_is_busy(&vc->vbq)) in fimc_subdev_set_fmt()
1554 &mf->code, NULL, fmt->pad); in fimc_subdev_set_fmt()
1559 mf = v4l2_subdev_get_try_format(sd, cfg, fmt->pad); in fimc_subdev_set_fmt()
1571 if (fmt->pad == FIMC_SD_PAD_SOURCE) { in fimc_subdev_set_fmt()
1583 if (fmt->pad == FIMC_SD_PAD_SINK_FIFO) in fimc_subdev_set_fmt()
1585 else if (fmt->pad == FIMC_SD_PAD_SINK_CAM) in fimc_subdev_set_fmt()
1591 if (!(fmt->pad == FIMC_SD_PAD_SOURCE && (ctx->state & FIMC_COMPOSE))) in fimc_subdev_set_fmt()
1594 if (fmt->pad != FIMC_SD_PAD_SOURCE) in fimc_subdev_set_fmt()
1611 if (sel->pad == FIMC_SD_PAD_SOURCE) in fimc_subdev_get_selection()
1628 try_sel = v4l2_subdev_get_try_crop(sd, cfg, sel->pad); in fimc_subdev_get_selection()
1631 try_sel = v4l2_subdev_get_try_compose(sd, cfg, sel->pad); in fimc_subdev_get_selection()
1649 sel->pad, r->left, r->top, r->width, r->height, in fimc_subdev_get_selection()
1667 if (sel->pad == FIMC_SD_PAD_SOURCE) in fimc_subdev_set_selection()
1675 try_sel = v4l2_subdev_get_try_crop(sd, cfg, sel->pad); in fimc_subdev_set_selection()
1678 try_sel = v4l2_subdev_get_try_compose(sd, cfg, sel->pad); in fimc_subdev_set_selection()
1713 .pad = &fimc_subdev_pad_ops,