Lines Matching full:pad
30 fh->pad = v4l2_subdev_alloc_pad_config(sd); in subdev_fh_init()
31 if (fh->pad == NULL) in subdev_fh_init()
40 v4l2_subdev_free_pad_config(fh->pad); in subdev_fh_free()
41 fh->pad = NULL; in subdev_fh_free()
134 static inline int check_pad(struct v4l2_subdev *sd, u32 pad) in check_pad() argument
138 if (pad >= sd->entity.num_pads) in check_pad()
143 /* allow pad 0 on subdevices not registered as media entities */ in check_pad()
144 if (pad > 0) in check_pad()
164 return check_which(format->which) ? : check_pad(sd, format->pad) ? : in check_format()
173 sd->ops->pad->get_fmt(sd, cfg, format); in call_get_fmt()
181 sd->ops->pad->set_fmt(sd, cfg, format); in call_set_fmt()
191 return check_which(code->which) ? : check_pad(sd, code->pad) ? : in call_enum_mbus_code()
193 sd->ops->pad->enum_mbus_code(sd, cfg, code); in call_enum_mbus_code()
203 return check_which(fse->which) ? : check_pad(sd, fse->pad) ? : in call_enum_frame_size()
205 sd->ops->pad->enum_frame_size(sd, cfg, fse); in call_enum_frame_size()
214 return check_pad(sd, fi->pad); in check_frame_interval()
238 return check_which(fie->which) ? : check_pad(sd, fie->pad) ? : in call_enum_frame_interval()
240 sd->ops->pad->enum_frame_interval(sd, cfg, fie); in call_enum_frame_interval()
250 return check_which(sel->which) ? : check_pad(sd, sel->pad) ? : in check_selection()
259 sd->ops->pad->get_selection(sd, cfg, sel); in call_get_selection()
267 sd->ops->pad->set_selection(sd, cfg, sel); in call_set_selection()
279 return check_pad(sd, edid->pad); in check_edid()
284 return check_edid(sd, edid) ? : sd->ops->pad->get_edid(sd, edid); in call_get_edid()
289 return check_edid(sd, edid) ? : sd->ops->pad->set_edid(sd, edid); in call_set_edid()
298 return check_pad(sd, cap->pad) ? : in call_dv_timings_cap()
299 sd->ops->pad->dv_timings_cap(sd, cap); in call_dv_timings_cap()
308 return check_pad(sd, dvt->pad) ? : in call_enum_dv_timings()
309 sd->ops->pad->enum_dv_timings(sd, dvt); in call_enum_dv_timings()
312 static int call_get_mbus_config(struct v4l2_subdev *sd, unsigned int pad, in call_get_mbus_config() argument
315 return check_pad(sd, pad) ? : in call_get_mbus_config()
316 sd->ops->pad->get_mbus_config(sd, pad, config); in call_get_mbus_config()
319 static int call_set_mbus_config(struct v4l2_subdev *sd, unsigned int pad, in call_set_mbus_config() argument
322 return check_pad(sd, pad) ? : in call_set_mbus_config()
323 sd->ops->pad->get_mbus_config(sd, pad, config); in call_set_mbus_config()
348 .pad = &v4l2_subdev_call_pad_wrappers,
509 return v4l2_subdev_call(sd, pad, get_fmt, subdev_fh->pad, format); in subdev_do_ioctl()
520 return v4l2_subdev_call(sd, pad, set_fmt, subdev_fh->pad, format); in subdev_do_ioctl()
530 sel.pad = crop->pad; in subdev_do_ioctl()
534 sd, pad, get_selection, subdev_fh->pad, &sel); in subdev_do_ioctl()
551 sel.pad = crop->pad; in subdev_do_ioctl()
556 sd, pad, set_selection, subdev_fh->pad, &sel); in subdev_do_ioctl()
567 return v4l2_subdev_call(sd, pad, enum_mbus_code, subdev_fh->pad, in subdev_do_ioctl()
575 return v4l2_subdev_call(sd, pad, enum_frame_size, subdev_fh->pad, in subdev_do_ioctl()
600 return v4l2_subdev_call(sd, pad, enum_frame_interval, subdev_fh->pad, in subdev_do_ioctl()
609 sd, pad, get_selection, subdev_fh->pad, sel); in subdev_do_ioctl()
620 sd, pad, set_selection, subdev_fh->pad, sel); in subdev_do_ioctl()
626 return v4l2_subdev_call(sd, pad, get_edid, edid); in subdev_do_ioctl()
632 return v4l2_subdev_call(sd, pad, set_edid, edid); in subdev_do_ioctl()
638 return v4l2_subdev_call(sd, pad, dv_timings_cap, cap); in subdev_do_ioctl()
644 return v4l2_subdev_call(sd, pad, enum_dv_timings, dvt); in subdev_do_ioctl()
814 v4l2_subdev_link_validate_get_format(struct media_pad *pad, in v4l2_subdev_link_validate_get_format() argument
817 if (is_media_entity_v4l2_subdev(pad->entity)) { in v4l2_subdev_link_validate_get_format()
819 media_entity_to_v4l2_subdev(pad->entity); in v4l2_subdev_link_validate_get_format()
822 fmt->pad = pad->index; in v4l2_subdev_link_validate_get_format()
823 return v4l2_subdev_call(sd, pad, get_fmt, NULL, fmt); in v4l2_subdev_link_validate_get_format()
826 WARN(pad->entity->function != MEDIA_ENT_F_IO_V4L, in v4l2_subdev_link_validate_get_format()
828 pad->entity->function, pad->entity->name); in v4l2_subdev_link_validate_get_format()
851 rval = v4l2_subdev_call(sink, pad, link_validate, link, in v4l2_subdev_link_validate()
875 ret = v4l2_subdev_call(sd, pad, init_cfg, cfg); in v4l2_subdev_alloc_pad_config()