Lines Matching full:pad

35 		 * sink pad.  in vsp1_entity_route_setup()
48 * sink pad. in vsp1_entity_route_setup()
104 * vsp1_entity_get_pad_config - Get the pad configuration for an entity
112 * Return the pad configuration requested by the which argument. The TRY
132 * vsp1_entity_get_pad_format - Get a pad format from storage for an entity
135 * @pad: the pad number
137 * Return the format stored in the given configuration for an entity's pad. The
143 unsigned int pad) in vsp1_entity_get_pad_format() argument
145 return v4l2_subdev_get_try_format(&entity->subdev, sd_state, pad); in vsp1_entity_get_pad_format()
149 * vsp1_entity_get_pad_selection - Get a pad selection from storage for entity
152 * @pad: the pad number
156 * entity's pad. The configuration can be an ACTIVE or TRY configuration. The
162 unsigned int pad, unsigned int target) in vsp1_entity_get_pad_selection() argument
167 pad); in vsp1_entity_get_pad_selection()
170 pad); in vsp1_entity_get_pad_selection()
179 * @cfg: V4L2 subdev pad configuration
181 * Initialize all pad formats with default values in the given pad config. This
182 * function can be used as a handler for the subdev pad::init_cfg operation.
188 unsigned int pad; in vsp1_entity_init_cfg() local
190 for (pad = 0; pad < subdev->entity.num_pads - 1; ++pad) { in vsp1_entity_init_cfg()
193 format.pad = pad; in vsp1_entity_init_cfg()
197 v4l2_subdev_call(subdev, pad, set_fmt, sd_state, &format); in vsp1_entity_init_cfg()
204 * vsp1_subdev_get_pad_format - Subdev pad get_fmt handler
206 * @cfg: V4L2 subdev pad configuration
209 * This function implements the subdev get_fmt pad operation. It can be used as
224 fmt->format = *vsp1_entity_get_pad_format(entity, config, fmt->pad); in vsp1_subdev_get_pad_format()
231 * vsp1_subdev_enum_mbus_code - Subdev pad enum_mbus_code handler
233 * @cfg: V4L2 subdev pad configuration
238 * This function implements the subdev enum_mbus_code pad operation for entities
240 * media bus codes on the sink pad and reports a source pad format identical to
241 * the sink pad.
250 if (code->pad == 0) { in vsp1_subdev_enum_mbus_code()
281 * vsp1_subdev_enum_frame_size - Subdev pad enum_frame_size handler
283 * @cfg: V4L2 subdev pad configuration
290 * This function implements the subdev enum_frame_size pad operation for
292 * minimum and maximum frame width and height on the sink pad, and a fixed
293 * source pad size identical to the sink pad.
310 format = vsp1_entity_get_pad_format(entity, config, fse->pad); in vsp1_subdev_enum_frame_size()
319 if (fse->pad == 0) { in vsp1_subdev_enum_frame_size()
326 * The size on the source pad are fixed and always identical to in vsp1_subdev_enum_frame_size()
327 * the size on the sink pad. in vsp1_subdev_enum_frame_size()
341 * vsp1_subdev_set_pad_format - Subdev pad set_fmt handler
343 * @cfg: V4L2 subdev pad configuration
352 * This function implements the subdev set_fmt pad operation for entities that
355 * supplied minimum and maximum, and propagates the sink pad format to the
356 * source pad.
380 format = vsp1_entity_get_pad_format(entity, config, fmt->pad); in vsp1_subdev_set_pad_format()
382 if (fmt->pad == entity->source_pad) { in vsp1_subdev_set_pad_format()
407 /* Propagate the format to the source pad. */ in vsp1_subdev_set_pad_format()
412 selection = vsp1_entity_get_pad_selection(entity, config, fmt->pad, in vsp1_subdev_set_pad_format()
419 selection = vsp1_entity_get_pad_selection(entity, config, fmt->pad, in vsp1_subdev_set_pad_format()
509 * vsp1_entity_remote_pad - Find the pad at the remote end of a link
510 * @pad: Pad at the local end of the link
512 * Search for a remote pad connected to the given pad by iterating over all
513 * links originating or terminating at that pad until an enabled link is found.
522 * Return a pointer to the pad at the remote end of the first found enabled
525 struct media_pad *vsp1_entity_remote_pad(struct media_pad *pad) in vsp1_entity_remote_pad() argument
529 list_for_each_entry(link, &pad->entity->links, list) { in vsp1_entity_remote_pad()
536 if (link->sink == pad) in vsp1_entity_remote_pad()
539 if (link->source != pad) in vsp1_entity_remote_pad()
652 /* Single-pad entities only have a sink. */ in vsp1_entity_init()
676 * Allocate the pad configuration to store formats and selection in vsp1_entity_init()