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()
309 * __csiphy_get_format - Get pointer to format structure
312 * @pad: pad from which format is requested
313 * @which: TRY or ACTIVE format
315 * Return pointer to TRY or ACTIVE format structure
330 * csiphy_try_format - Handle try format by pad subdev method
333 * @pad: pad on which format is requested
334 * @fmt: pointer to v4l2 format structure
335 * @which: wanted subdev format
347 /* Set format on sink pad */ in csiphy_try_format()
366 /* Set and return a format same as sink pad */ in csiphy_try_format()
376 * csiphy_enum_mbus_code - Handle pixel format enumeration
387 struct v4l2_mbus_framefmt *format; in csiphy_enum_mbus_code() local
398 format = __csiphy_get_format(csiphy, cfg, MSM_CSIPHY_PAD_SINK, in csiphy_enum_mbus_code()
401 code->code = format->code; in csiphy_enum_mbus_code()
419 struct v4l2_mbus_framefmt format; in csiphy_enum_frame_size() local
424 format.code = fse->code; in csiphy_enum_frame_size()
425 format.width = 1; in csiphy_enum_frame_size()
426 format.height = 1; in csiphy_enum_frame_size()
427 csiphy_try_format(csiphy, cfg, fse->pad, &format, fse->which); in csiphy_enum_frame_size()
428 fse->min_width = format.width; in csiphy_enum_frame_size()
429 fse->min_height = format.height; in csiphy_enum_frame_size()
431 if (format.code != fse->code) in csiphy_enum_frame_size()
434 format.code = fse->code; in csiphy_enum_frame_size()
435 format.width = -1; in csiphy_enum_frame_size()
436 format.height = -1; in csiphy_enum_frame_size()
437 csiphy_try_format(csiphy, cfg, fse->pad, &format, fse->which); in csiphy_enum_frame_size()
438 fse->max_width = format.width; in csiphy_enum_frame_size()
439 fse->max_height = format.height; in csiphy_enum_frame_size()
445 * csiphy_get_format - Handle get format by pads subdev method
448 * @fmt: pointer to v4l2 subdev format structure
457 struct v4l2_mbus_framefmt *format; in csiphy_get_format() local
459 format = __csiphy_get_format(csiphy, cfg, fmt->pad, fmt->which); in csiphy_get_format()
460 if (format == NULL) in csiphy_get_format()
463 fmt->format = *format; in csiphy_get_format()
469 * csiphy_set_format - Handle set format by pads subdev method
472 * @fmt: pointer to v4l2 subdev format structure
481 struct v4l2_mbus_framefmt *format; in csiphy_set_format() local
483 format = __csiphy_get_format(csiphy, cfg, fmt->pad, fmt->which); in csiphy_set_format()
484 if (format == NULL) in csiphy_set_format()
487 csiphy_try_format(csiphy, cfg, fmt->pad, &fmt->format, fmt->which); in csiphy_set_format()
488 *format = fmt->format; in csiphy_set_format()
490 /* Propagate the format from sink to source */ in csiphy_set_format()
492 format = __csiphy_get_format(csiphy, cfg, MSM_CSIPHY_PAD_SRC, in csiphy_set_format()
495 *format = fmt->format; in csiphy_set_format()
496 csiphy_try_format(csiphy, cfg, MSM_CSIPHY_PAD_SRC, format, in csiphy_set_format()
515 struct v4l2_subdev_format format = { in csiphy_init_formats() local
519 .format = { in csiphy_init_formats()
526 return csiphy_set_format(sd, fh ? fh->pad : NULL, &format); in csiphy_init_formats()
733 dev_err(dev, "Failed to init format: %d\n", ret); in msm_csiphy_register_entity()