Lines Matching full:pad

35 		 * sink pad.  in vsp1_entity_route_setup()
48 * sink pad. in vsp1_entity_route_setup()
131 * vsp1_entity_get_pad_format - Get a pad format from storage for an entity
134 * @pad: the pad number
136 * Return the format stored in the given configuration for an entity's pad. The
142 unsigned int pad) in vsp1_entity_get_pad_format() argument
144 return v4l2_subdev_state_get_format(sd_state, pad); in vsp1_entity_get_pad_format()
148 * vsp1_entity_get_pad_selection - Get a pad selection from storage for entity
151 * @pad: the pad number
155 * entity's pad. The configuration can be an ACTIVE or TRY configuration. The
161 unsigned int pad, unsigned int target) in vsp1_entity_get_pad_selection() argument
165 return v4l2_subdev_state_get_compose(sd_state, pad); in vsp1_entity_get_pad_selection()
167 return v4l2_subdev_state_get_crop(sd_state, pad); in vsp1_entity_get_pad_selection()
174 * vsp1_subdev_get_pad_format - Subdev pad get_fmt handler
179 * This function implements the subdev get_fmt pad operation. It can be used as
194 fmt->format = *vsp1_entity_get_pad_format(entity, state, fmt->pad); in vsp1_subdev_get_pad_format()
201 * vsp1_subdev_enum_mbus_code - Subdev pad enum_mbus_code handler
208 * This function implements the subdev enum_mbus_code pad operation for entities
210 * media bus codes on the sink pad and reports a source pad format identical to
211 * the sink pad.
220 if (code->pad == 0) { in vsp1_subdev_enum_mbus_code()
250 * vsp1_subdev_enum_frame_size - Subdev pad enum_frame_size handler
259 * This function implements the subdev enum_frame_size pad operation for
261 * minimum and maximum frame width and height on the sink pad, and a fixed
262 * source pad size identical to the sink pad.
279 format = vsp1_entity_get_pad_format(entity, state, fse->pad); in vsp1_subdev_enum_frame_size()
288 if (fse->pad == 0) { in vsp1_subdev_enum_frame_size()
295 * The size on the source pad are fixed and always identical to in vsp1_subdev_enum_frame_size()
296 * the size on the sink pad. in vsp1_subdev_enum_frame_size()
310 * vsp1_subdev_set_pad_format - Subdev pad set_fmt handler
321 * This function implements the subdev set_fmt pad operation for entities that
324 * supplied minimum and maximum, and propagates the sink pad format to the
325 * source pad.
349 format = vsp1_entity_get_pad_format(entity, state, fmt->pad); in vsp1_subdev_set_pad_format()
351 if (fmt->pad == entity->source_pad) { in vsp1_subdev_set_pad_format()
376 /* Propagate the format to the source pad. */ in vsp1_subdev_set_pad_format()
381 selection = vsp1_entity_get_pad_selection(entity, state, fmt->pad, in vsp1_subdev_set_pad_format()
388 selection = vsp1_entity_get_pad_selection(entity, state, fmt->pad, in vsp1_subdev_set_pad_format()
403 unsigned int pad; in vsp1_entity_init_state() local
405 /* Initialize all pad formats with default values. */ in vsp1_entity_init_state()
406 for (pad = 0; pad < subdev->entity.num_pads - 1; ++pad) { in vsp1_entity_init_state()
408 .pad = pad, in vsp1_entity_init_state()
413 v4l2_subdev_call(subdev, pad, set_fmt, sd_state, &format); in vsp1_entity_init_state()
501 * vsp1_entity_remote_pad - Find the pad at the remote end of a link
502 * @pad: Pad at the local end of the link
504 * Search for a remote pad connected to the given pad by iterating over all
505 * links originating or terminating at that pad until an enabled link is found.
514 * Return a pointer to the pad at the remote end of the first found enabled
517 struct media_pad *vsp1_entity_remote_pad(struct media_pad *pad) in vsp1_entity_remote_pad() argument
521 list_for_each_entry(link, &pad->entity->links, list) { in vsp1_entity_remote_pad()
528 if (link->sink == pad) in vsp1_entity_remote_pad()
531 if (link->source != pad) in vsp1_entity_remote_pad()
644 /* Single-pad entities only have a sink. */ in vsp1_entity_init()