Lines Matching refs:pad
136 static inline int check_pad(struct v4l2_subdev *sd, u32 pad) in check_pad() argument
140 if (pad >= sd->entity.num_pads) in check_pad()
146 if (pad > 0) in check_pad()
166 return check_which(format->which) ? : check_pad(sd, format->pad) ? : in check_format()
175 sd->ops->pad->get_fmt(sd, state, format); in call_get_fmt()
183 sd->ops->pad->set_fmt(sd, state, format); in call_set_fmt()
193 return check_which(code->which) ? : check_pad(sd, code->pad) ? : in call_enum_mbus_code()
195 sd->ops->pad->enum_mbus_code(sd, state, code); in call_enum_mbus_code()
205 return check_which(fse->which) ? : check_pad(sd, fse->pad) ? : in call_enum_frame_size()
207 sd->ops->pad->enum_frame_size(sd, state, fse); in call_enum_frame_size()
216 return check_pad(sd, fi->pad); in check_frame_interval()
240 return check_which(fie->which) ? : check_pad(sd, fie->pad) ? : in call_enum_frame_interval()
242 sd->ops->pad->enum_frame_interval(sd, state, fie); in call_enum_frame_interval()
252 return check_which(sel->which) ? : check_pad(sd, sel->pad) ? : in check_selection()
261 sd->ops->pad->get_selection(sd, state, sel); in call_get_selection()
269 sd->ops->pad->set_selection(sd, state, sel); in call_set_selection()
281 return check_pad(sd, edid->pad); in check_edid()
286 return check_edid(sd, edid) ? : sd->ops->pad->get_edid(sd, edid); in call_get_edid()
291 return check_edid(sd, edid) ? : sd->ops->pad->set_edid(sd, edid); in call_set_edid()
300 return check_pad(sd, cap->pad) ? : in call_dv_timings_cap()
301 sd->ops->pad->dv_timings_cap(sd, cap); in call_dv_timings_cap()
310 return check_pad(sd, dvt->pad) ? : in call_enum_dv_timings()
311 sd->ops->pad->enum_dv_timings(sd, dvt); in call_enum_dv_timings()
314 static int call_get_mbus_config(struct v4l2_subdev *sd, unsigned int pad, in call_get_mbus_config() argument
317 return check_pad(sd, pad) ? : in call_get_mbus_config()
318 sd->ops->pad->get_mbus_config(sd, pad, config); in call_get_mbus_config()
321 static int call_set_mbus_config(struct v4l2_subdev *sd, unsigned int pad, in call_set_mbus_config() argument
324 return check_pad(sd, pad) ? : in call_set_mbus_config()
325 sd->ops->pad->get_mbus_config(sd, pad, config); in call_set_mbus_config()
350 .pad = &v4l2_subdev_call_pad_wrappers,
487 return v4l2_subdev_call(sd, pad, get_fmt, subdev_fh->state, format); in subdev_do_ioctl()
498 return v4l2_subdev_call(sd, pad, set_fmt, subdev_fh->state, format); in subdev_do_ioctl()
508 sel.pad = crop->pad; in subdev_do_ioctl()
512 sd, pad, get_selection, subdev_fh->state, &sel); in subdev_do_ioctl()
529 sel.pad = crop->pad; in subdev_do_ioctl()
534 sd, pad, set_selection, subdev_fh->state, &sel); in subdev_do_ioctl()
545 return v4l2_subdev_call(sd, pad, enum_mbus_code, subdev_fh->state, in subdev_do_ioctl()
553 return v4l2_subdev_call(sd, pad, enum_frame_size, subdev_fh->state, in subdev_do_ioctl()
578 return v4l2_subdev_call(sd, pad, enum_frame_interval, subdev_fh->state, in subdev_do_ioctl()
587 sd, pad, get_selection, subdev_fh->state, sel); in subdev_do_ioctl()
598 sd, pad, set_selection, subdev_fh->state, sel); in subdev_do_ioctl()
604 return v4l2_subdev_call(sd, pad, get_edid, edid); in subdev_do_ioctl()
610 return v4l2_subdev_call(sd, pad, set_edid, edid); in subdev_do_ioctl()
616 return v4l2_subdev_call(sd, pad, dv_timings_cap, cap); in subdev_do_ioctl()
622 return v4l2_subdev_call(sd, pad, enum_dv_timings, dvt); in subdev_do_ioctl()
826 v4l2_subdev_link_validate_get_format(struct media_pad *pad, in v4l2_subdev_link_validate_get_format() argument
829 if (is_media_entity_v4l2_subdev(pad->entity)) { in v4l2_subdev_link_validate_get_format()
831 media_entity_to_v4l2_subdev(pad->entity); in v4l2_subdev_link_validate_get_format()
834 fmt->pad = pad->index; in v4l2_subdev_link_validate_get_format()
835 return v4l2_subdev_call(sd, pad, get_fmt, NULL, fmt); in v4l2_subdev_link_validate_get_format()
838 WARN(pad->entity->function != MEDIA_ENT_F_IO_V4L, in v4l2_subdev_link_validate_get_format()
840 pad->entity->function, pad->entity->name); in v4l2_subdev_link_validate_get_format()
863 rval = v4l2_subdev_call(sink, pad, link_validate, link, in v4l2_subdev_link_validate()
892 ret = v4l2_subdev_call(sd, pad, init_cfg, state); in v4l2_subdev_alloc_state()