Lines Matching full:pad

129  * @function: Internal signal pad/function to route to IO pin
687 * struct v4l2_subdev_pad_config - Used for storing subdev pad information.
693 * This structure only needs to be passed to the pad op if the 'which' field
709 * @pad: pad number
719 u32 pad; member
761 * This structure only needs to be passed to the pad op if the 'which' field
775 * struct v4l2_subdev_pad_ops - v4l2-subdev pad level operations
777 * @init_cfg: initialize the pad config to default values
822 * operation shall fail if the pad index it has been called on
829 * source pad. Subdevs that implement this operation must use the active
835 * source pad. Subdevs that implement this operation must use the active
875 int (*get_frame_desc)(struct v4l2_subdev *sd, unsigned int pad,
877 int (*set_frame_desc)(struct v4l2_subdev *sd, unsigned int pad,
879 int (*get_mbus_config)(struct v4l2_subdev *sd, unsigned int pad,
886 struct v4l2_subdev_state *state, u32 pad,
889 struct v4l2_subdev_state *state, u32 pad,
903 * @pad: pointer to &struct v4l2_subdev_pad_ops. Can be %NULL
913 const struct v4l2_subdev_pad_ops *pad; member
971 * - Legacy pad config is _not_ supported (state->pads is NULL)
973 * - Multiple streams per pad are supported
1152 * @pad: index of the pad in the &struct v4l2_subdev_state->pads array
1157 unsigned int pad) in v4l2_subdev_get_pad_format() argument
1161 if (WARN_ON(pad >= sd->entity.num_pads)) in v4l2_subdev_get_pad_format()
1162 pad = 0; in v4l2_subdev_get_pad_format()
1163 return &state->pads[pad].try_fmt; in v4l2_subdev_get_pad_format()
1172 * @pad: index of the pad in the &struct v4l2_subdev_state->pads array.
1177 unsigned int pad) in v4l2_subdev_get_pad_crop() argument
1181 if (WARN_ON(pad >= sd->entity.num_pads)) in v4l2_subdev_get_pad_crop()
1182 pad = 0; in v4l2_subdev_get_pad_crop()
1183 return &state->pads[pad].try_crop; in v4l2_subdev_get_pad_crop()
1192 * @pad: index of the pad in the &struct v4l2_subdev_state->pads array.
1197 unsigned int pad) in v4l2_subdev_get_pad_compose() argument
1201 if (WARN_ON(pad >= sd->entity.num_pads)) in v4l2_subdev_get_pad_compose()
1202 pad = 0; in v4l2_subdev_get_pad_compose()
1203 return &state->pads[pad].try_compose; in v4l2_subdev_get_pad_compose()
1210 #define v4l2_subdev_get_try_format(sd, state, pad) \ argument
1211 v4l2_subdev_get_pad_format(sd, state, pad)
1213 #define v4l2_subdev_get_try_crop(sd, state, pad) \ argument
1214 v4l2_subdev_get_pad_crop(sd, state, pad)
1216 #define v4l2_subdev_get_try_compose(sd, state, pad) \ argument
1217 v4l2_subdev_get_pad_compose(sd, state, pad)
1272 * v4l2_subdev_get_fwnode_pad_1_to_1 - Get pad number from a subdev fwnode
1273 * endpoint, assuming 1:1 port:pad
1279 * subdevices that map port numbers and pad indexes 1:1. If the endpoint
1321 * @pad0: pad number for the first pad
1322 * @pad1: pad number for the second pad
1544 * @pad: pad id
1547 * This returns a pointer to &struct v4l2_mbus_framefmt for the given pad +
1550 * If the state does not contain the given pad + stream, NULL is returned.
1554 unsigned int pad, u32 stream);
1559 * @pad: pad id
1562 * This returns a pointer to crop rectangle for the given pad + stream in the
1565 * If the state does not contain the given pad + stream, NULL is returned.
1569 unsigned int pad, u32 stream);
1575 * @pad: pad id
1578 * This returns a pointer to compose rectangle for the given pad + stream in the
1581 * If the state does not contain the given pad + stream, NULL is returned.
1585 unsigned int pad, u32 stream);
1590 * @pad: pad id
1592 * @other_pad: pointer used to return the opposite pad
1595 * This function uses the routing table to find the pad + stream which is
1596 * opposite the given pad + stream.
1604 u32 pad, u32 stream, u32 *other_pad,
1611 * @pad: pad id
1614 * This returns a pointer to &struct v4l2_mbus_framefmt for the pad + stream
1615 * that is opposite the given pad + stream in the subdev state.
1617 * If the state does not contain the given pad + stream, NULL is returned.
1621 u32 pad, u32 stream);
1624 * v4l2_subdev_state_xlate_streams() - Translate streams from one pad to another
1627 * @pad0: The first pad
1628 * @pad1: The second pad
1629 * @streams: Streams bitmask on the first pad
1656 * all streams from a sink pad must be routed to a single source pad
1658 * all streams on a source pad must originate from a single sink pad
1667 * all streams from a sink pad must be routed to a single source pad, and
1668 * that source pad shall not get routes from any other sink pad
1708 * v4l2_subdev_enable_streams() - Enable streams on a pad
1710 * @pad: The pad
1713 * This function enables streams on a source @pad of a subdevice. The pad is
1715 * @streams_mask bitmask. This allows enabling multiple streams on a pad at
1725 * operation, limited to subdevs that have a single source pad.
1730 * * -EINVAL: The pad index is invalid, or doesn't correspond to a source pad
1734 int v4l2_subdev_enable_streams(struct v4l2_subdev *sd, u32 pad,
1738 * v4l2_subdev_disable_streams() - Disable streams on a pad
1740 * @pad: The pad
1743 * This function disables streams on a source @pad of a subdevice. The pad is
1745 * @streams_mask bitmask. This allows disabling multiple streams on a pad at
1755 * operation, limited to subdevs that have a single source pad.
1760 * * -EINVAL: The pad index is invalid, or doesn't correspond to a source pad
1764 int v4l2_subdev_disable_streams(struct v4l2_subdev *sd, u32 pad,
1778 * This helper can only be used by subdevs that have a single source pad.