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.
187 unsigned int pad; in vsp1_entity_init_cfg() local
189 for (pad = 0; pad < subdev->entity.num_pads - 1; ++pad) { in vsp1_entity_init_cfg()
191 .pad = pad, in vsp1_entity_init_cfg()
196 v4l2_subdev_call(subdev, pad, set_fmt, sd_state, &format); in vsp1_entity_init_cfg()
203 * vsp1_subdev_get_pad_format - Subdev pad get_fmt handler
205 * @cfg: V4L2 subdev pad configuration
208 * This function implements the subdev get_fmt pad operation. It can be used as
223 fmt->format = *vsp1_entity_get_pad_format(entity, config, fmt->pad); in vsp1_subdev_get_pad_format()
230 * vsp1_subdev_enum_mbus_code - Subdev pad enum_mbus_code handler
232 * @cfg: V4L2 subdev pad configuration
237 * This function implements the subdev enum_mbus_code pad operation for entities
239 * media bus codes on the sink pad and reports a source pad format identical to
240 * the sink pad.
249 if (code->pad == 0) { in vsp1_subdev_enum_mbus_code()
280 * vsp1_subdev_enum_frame_size - Subdev pad enum_frame_size handler
282 * @cfg: V4L2 subdev pad configuration
289 * This function implements the subdev enum_frame_size pad operation for
291 * minimum and maximum frame width and height on the sink pad, and a fixed
292 * source pad size identical to the sink pad.
309 format = vsp1_entity_get_pad_format(entity, config, fse->pad); in vsp1_subdev_enum_frame_size()
318 if (fse->pad == 0) { in vsp1_subdev_enum_frame_size()
325 * The size on the source pad are fixed and always identical to in vsp1_subdev_enum_frame_size()
326 * the size on the sink pad. in vsp1_subdev_enum_frame_size()
340 * vsp1_subdev_set_pad_format - Subdev pad set_fmt handler
342 * @cfg: V4L2 subdev pad configuration
351 * This function implements the subdev set_fmt pad operation for entities that
354 * supplied minimum and maximum, and propagates the sink pad format to the
355 * source pad.
379 format = vsp1_entity_get_pad_format(entity, config, fmt->pad); in vsp1_subdev_set_pad_format()
381 if (fmt->pad == entity->source_pad) { in vsp1_subdev_set_pad_format()
406 /* Propagate the format to the source pad. */ in vsp1_subdev_set_pad_format()
411 selection = vsp1_entity_get_pad_selection(entity, config, fmt->pad, in vsp1_subdev_set_pad_format()
418 selection = vsp1_entity_get_pad_selection(entity, config, fmt->pad, in vsp1_subdev_set_pad_format()
508 * vsp1_entity_remote_pad - Find the pad at the remote end of a link
509 * @pad: Pad at the local end of the link
511 * Search for a remote pad connected to the given pad by iterating over all
512 * links originating or terminating at that pad until an enabled link is found.
521 * Return a pointer to the pad at the remote end of the first found enabled
524 struct media_pad *vsp1_entity_remote_pad(struct media_pad *pad) in vsp1_entity_remote_pad() argument
528 list_for_each_entry(link, &pad->entity->links, list) { in vsp1_entity_remote_pad()
535 if (link->sink == pad) in vsp1_entity_remote_pad()
538 if (link->source != pad) in vsp1_entity_remote_pad()
651 /* Single-pad entities only have a sink. */ in vsp1_entity_init()
675 * Allocate the pad configuration to store formats and selection in vsp1_entity_init()