Lines Matching defs:format

217  * @format: Active V4L2 formats on each pad
218 * @default_format: Default V4L2 format
238 struct v4l2_mbus_framefmt format;
313 /* This returns the data type for a media bus format else 0 */
691 return &xcsi2rxss->format;
698 * xcsi2rxss_init_cfg - Initialise the pad format config to default
702 * This function is used to initialize the pad format with the default
711 struct v4l2_mbus_framefmt *format;
716 format = v4l2_subdev_get_try_format(sd, cfg, i);
717 *format = xcsi2rxss->default_format;
725 * xcsi2rxss_get_format - Get the pad format
728 * @fmt: Pointer to pad level media bus format
730 * This function is used to get the pad format information.
741 fmt->format = *__xcsi2rxss_get_pad_format(xcsi2rxss, cfg, fmt->pad,
749 * xcsi2rxss_set_format - This is used to set the pad format
752 * @fmt: Pointer to pad level media bus format
754 * This function is used to set the pad format. Since the pad format is fixed
755 * in hardware, it can't be modified on run time. So when a format set is
756 * requested by application, all parameters except the format type is saved
757 * for the pad and the original pad format is sent back to the application.
772 * Only the format->code parameter matters for CSI as the
773 * CSI format cannot be changed at runtime.
774 * Ensure that format to set is copied to over to CSI pad format
779 /* only sink pad format can be updated */
781 fmt->format = *__format;
787 * RAW8 is supported in all datatypes. So if requested media bus format
789 * other RAW, YUV422 8/10 or RGB888, set appropriate media bus format.
791 dt = xcsi2rxss_get_dt(fmt->format.code);
793 dev_dbg(xcsi2rxss->dev, "Unsupported media bus format");
794 /* set the default format for the data type */
795 fmt->format.code = xcsi2rxss_get_nth_mbus(xcsi2rxss->datatype,
799 *__format = fmt->format;
806 * xcsi2rxss_enum_mbus_code - Handle pixel format enumeration
888 ret = of_property_read_u32(node, "xlnx,csi-pxl-format",
891 dev_err(dev, "missing xlnx,csi-pxl-format property\n");
914 dev_dbg(dev, "enable csi v2 for this pixel format");
921 dev_err(dev, "invalid csi-pxl-format property!\n");
1036 /* Initialize the default format */
1043 xcsi2rxss->format = xcsi2rxss->default_format;