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
106 * @cfg: the TRY pad configuration
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, cfg, 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
166 return v4l2_subdev_get_try_compose(&entity->subdev, cfg, pad); in vsp1_entity_get_pad_selection()
168 return v4l2_subdev_get_try_crop(&entity->subdev, cfg, pad); in vsp1_entity_get_pad_selection()
177 * @cfg: V4L2 subdev pad configuration
179 * Initialize all pad formats with default values in the given pad config. This
180 * function can be used as a handler for the subdev pad::init_cfg operation.
186 unsigned int pad; in vsp1_entity_init_cfg() local
188 for (pad = 0; pad < subdev->entity.num_pads - 1; ++pad) { in vsp1_entity_init_cfg()
191 format.pad = pad; in vsp1_entity_init_cfg()
195 v4l2_subdev_call(subdev, pad, set_fmt, cfg, &format); in vsp1_entity_init_cfg()
202 * vsp1_subdev_get_pad_format - Subdev pad get_fmt handler
204 * @cfg: V4L2 subdev pad configuration
207 * This function implements the subdev get_fmt pad operation. It can be used as
222 fmt->format = *vsp1_entity_get_pad_format(entity, config, fmt->pad); in vsp1_subdev_get_pad_format()
229 * vsp1_subdev_enum_mbus_code - Subdev pad enum_mbus_code handler
231 * @cfg: V4L2 subdev pad configuration
236 * This function implements the subdev enum_mbus_code pad operation for entities
238 * media bus codes on the sink pad and reports a source pad format identical to
239 * the sink pad.
248 if (code->pad == 0) { in vsp1_subdev_enum_mbus_code()
278 * vsp1_subdev_enum_frame_size - Subdev pad enum_frame_size handler
280 * @cfg: V4L2 subdev pad configuration
287 * This function implements the subdev enum_frame_size pad operation for
289 * minimum and maximum frame width and height on the sink pad, and a fixed
290 * source pad size identical to the sink pad.
307 format = vsp1_entity_get_pad_format(entity, config, fse->pad); in vsp1_subdev_enum_frame_size()
316 if (fse->pad == 0) { in vsp1_subdev_enum_frame_size()
323 * The size on the source pad are fixed and always identical to in vsp1_subdev_enum_frame_size()
324 * the size on the sink pad. in vsp1_subdev_enum_frame_size()
338 * vsp1_subdev_set_pad_format - Subdev pad set_fmt handler
340 * @cfg: V4L2 subdev pad configuration
349 * This function implements the subdev set_fmt pad operation for entities that
352 * supplied minimum and maximum, and propagates the sink pad format to the
353 * source pad.
377 format = vsp1_entity_get_pad_format(entity, config, fmt->pad); in vsp1_subdev_set_pad_format()
379 if (fmt->pad == entity->source_pad) { in vsp1_subdev_set_pad_format()
404 /* Propagate the format to the source pad. */ in vsp1_subdev_set_pad_format()
409 selection = vsp1_entity_get_pad_selection(entity, config, fmt->pad, in vsp1_subdev_set_pad_format()
416 selection = vsp1_entity_get_pad_selection(entity, config, fmt->pad, in vsp1_subdev_set_pad_format()
506 * vsp1_entity_remote_pad - Find the pad at the remote end of a link
507 * @pad: Pad at the local end of the link
509 * Search for a remote pad connected to the given pad by iterating over all
510 * links originating or terminating at that pad until an enabled link is found.
519 * Return a pointer to the pad at the remote end of the first found enabled
522 struct media_pad *vsp1_entity_remote_pad(struct media_pad *pad) in vsp1_entity_remote_pad() argument
526 list_for_each_entry(link, &pad->entity->links, list) { in vsp1_entity_remote_pad()
533 if (link->sink == pad) in vsp1_entity_remote_pad()
536 if (link->source != pad) in vsp1_entity_remote_pad()
648 /* Single-pad entities only have a sink. */ in vsp1_entity_init()
672 * Allocate the pad configuration to store formats and selection in vsp1_entity_init()