Lines Matching full: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()
145 /* allow pad 0 on subdevices not registered as media entities */ 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()
323 * Create state-management wrapper for pad ops dealing with subdev state. The
383 .pad = &v4l2_subdev_call_pad_wrappers,
558 return v4l2_subdev_call(sd, pad, get_fmt, state, format); in subdev_do_ioctl()
569 return v4l2_subdev_call(sd, pad, set_fmt, state, format); in subdev_do_ioctl()
579 sel.pad = crop->pad; in subdev_do_ioctl()
583 sd, pad, get_selection, state, &sel); in subdev_do_ioctl()
600 sel.pad = crop->pad; in subdev_do_ioctl()
605 sd, pad, set_selection, state, &sel); in subdev_do_ioctl()
616 return v4l2_subdev_call(sd, pad, enum_mbus_code, state, in subdev_do_ioctl()
624 return v4l2_subdev_call(sd, pad, enum_frame_size, state, in subdev_do_ioctl()
649 return v4l2_subdev_call(sd, pad, enum_frame_interval, state, in subdev_do_ioctl()
658 sd, pad, get_selection, state, sel); in subdev_do_ioctl()
669 sd, pad, set_selection, state, sel); in subdev_do_ioctl()
675 return v4l2_subdev_call(sd, pad, get_edid, edid); in subdev_do_ioctl()
681 return v4l2_subdev_call(sd, pad, set_edid, edid); in subdev_do_ioctl()
687 return v4l2_subdev_call(sd, pad, dv_timings_cap, cap); in subdev_do_ioctl()
693 return v4l2_subdev_call(sd, pad, enum_dv_timings, dvt); in subdev_do_ioctl()
913 v4l2_subdev_link_validate_get_format(struct media_pad *pad, in v4l2_subdev_link_validate_get_format() argument
916 if (is_media_entity_v4l2_subdev(pad->entity)) { in v4l2_subdev_link_validate_get_format()
918 media_entity_to_v4l2_subdev(pad->entity); in v4l2_subdev_link_validate_get_format()
921 fmt->pad = pad->index; in v4l2_subdev_link_validate_get_format()
922 return v4l2_subdev_call_state_active(sd, pad, get_fmt, fmt); in v4l2_subdev_link_validate_get_format()
925 WARN(pad->entity->function != MEDIA_ENT_F_IO_V4L, in v4l2_subdev_link_validate_get_format()
927 pad->entity->function, pad->entity->name); in v4l2_subdev_link_validate_get_format()
950 rval = v4l2_subdev_call(sink, pad, link_validate, link, in v4l2_subdev_link_validate()
991 ret = v4l2_subdev_call(sd, pad, init_cfg, state); in __v4l2_subdev_state_alloc()
1050 if (format->pad >= sd->entity.num_pads) in v4l2_subdev_get_fmt()
1053 fmt = v4l2_subdev_get_pad_format(sd, state, format->pad); in v4l2_subdev_get_fmt()