Lines Matching full:format
77 * csiphy_get_bpp - map media bus format to bits per pixel
80 * @code: media bus format code
93 WARN(1, "Unknown format\n"); in csiphy_get_bpp()
311 * __csiphy_get_format - Get pointer to format structure
314 * @pad: pad from which format is requested
315 * @which: TRY or ACTIVE format
317 * Return pointer to TRY or ACTIVE format structure
332 * csiphy_try_format - Handle try format by pad subdev method
335 * @pad: pad on which format is requested
336 * @fmt: pointer to v4l2 format structure
337 * @which: wanted subdev format
349 /* Set format on sink pad */ in csiphy_try_format()
368 /* Set and return a format same as sink pad */ in csiphy_try_format()
378 * csiphy_enum_mbus_code - Handle pixel format enumeration
389 struct v4l2_mbus_framefmt *format; in csiphy_enum_mbus_code() local
400 format = __csiphy_get_format(csiphy, cfg, MSM_CSIPHY_PAD_SINK, in csiphy_enum_mbus_code()
403 code->code = format->code; in csiphy_enum_mbus_code()
421 struct v4l2_mbus_framefmt format; in csiphy_enum_frame_size() local
426 format.code = fse->code; in csiphy_enum_frame_size()
427 format.width = 1; in csiphy_enum_frame_size()
428 format.height = 1; in csiphy_enum_frame_size()
429 csiphy_try_format(csiphy, cfg, fse->pad, &format, fse->which); in csiphy_enum_frame_size()
430 fse->min_width = format.width; in csiphy_enum_frame_size()
431 fse->min_height = format.height; in csiphy_enum_frame_size()
433 if (format.code != fse->code) in csiphy_enum_frame_size()
436 format.code = fse->code; in csiphy_enum_frame_size()
437 format.width = -1; in csiphy_enum_frame_size()
438 format.height = -1; in csiphy_enum_frame_size()
439 csiphy_try_format(csiphy, cfg, fse->pad, &format, fse->which); in csiphy_enum_frame_size()
440 fse->max_width = format.width; in csiphy_enum_frame_size()
441 fse->max_height = format.height; in csiphy_enum_frame_size()
447 * csiphy_get_format - Handle get format by pads subdev method
450 * @fmt: pointer to v4l2 subdev format structure
459 struct v4l2_mbus_framefmt *format; in csiphy_get_format() local
461 format = __csiphy_get_format(csiphy, cfg, fmt->pad, fmt->which); in csiphy_get_format()
462 if (format == NULL) in csiphy_get_format()
465 fmt->format = *format; in csiphy_get_format()
471 * csiphy_set_format - Handle set format by pads subdev method
474 * @fmt: pointer to v4l2 subdev format structure
483 struct v4l2_mbus_framefmt *format; in csiphy_set_format() local
485 format = __csiphy_get_format(csiphy, cfg, fmt->pad, fmt->which); in csiphy_set_format()
486 if (format == NULL) in csiphy_set_format()
489 csiphy_try_format(csiphy, cfg, fmt->pad, &fmt->format, fmt->which); in csiphy_set_format()
490 *format = fmt->format; in csiphy_set_format()
492 /* Propagate the format from sink to source */ in csiphy_set_format()
494 format = __csiphy_get_format(csiphy, cfg, MSM_CSIPHY_PAD_SRC, in csiphy_set_format()
497 *format = fmt->format; in csiphy_set_format()
498 csiphy_try_format(csiphy, cfg, MSM_CSIPHY_PAD_SRC, format, in csiphy_set_format()
517 struct v4l2_subdev_format format = { in csiphy_init_formats() local
521 .format = { in csiphy_init_formats()
528 return csiphy_set_format(sd, fh ? fh->pad : NULL, &format); in csiphy_init_formats()
735 dev_err(dev, "Failed to init format: %d\n", ret); in msm_csiphy_register_entity()