Lines Matching full:format
102 * csiphy_get_bpp - map media bus format to bits per pixel
105 * @code: media bus format code
118 WARN(1, "Unknown format\n"); in csiphy_get_bpp()
313 * __csiphy_get_format - Get pointer to format structure
316 * @pad: pad from which format is requested
317 * @which: TRY or ACTIVE format
319 * Return pointer to TRY or ACTIVE format structure
334 * csiphy_try_format - Handle try format by pad subdev method
337 * @pad: pad on which format is requested
338 * @fmt: pointer to v4l2 format structure
339 * @which: wanted subdev format
351 /* Set format on sink pad */ in csiphy_try_format()
370 /* Set and return a format same as sink pad */ in csiphy_try_format()
381 * csiphy_enum_mbus_code - Handle pixel format enumeration
392 struct v4l2_mbus_framefmt *format; in csiphy_enum_mbus_code() local
403 format = __csiphy_get_format(csiphy, sd_state, in csiphy_enum_mbus_code()
407 code->code = format->code; in csiphy_enum_mbus_code()
425 struct v4l2_mbus_framefmt format; in csiphy_enum_frame_size() local
430 format.code = fse->code; in csiphy_enum_frame_size()
431 format.width = 1; in csiphy_enum_frame_size()
432 format.height = 1; in csiphy_enum_frame_size()
433 csiphy_try_format(csiphy, sd_state, fse->pad, &format, fse->which); in csiphy_enum_frame_size()
434 fse->min_width = format.width; in csiphy_enum_frame_size()
435 fse->min_height = format.height; in csiphy_enum_frame_size()
437 if (format.code != fse->code) in csiphy_enum_frame_size()
440 format.code = fse->code; in csiphy_enum_frame_size()
441 format.width = -1; in csiphy_enum_frame_size()
442 format.height = -1; in csiphy_enum_frame_size()
443 csiphy_try_format(csiphy, sd_state, fse->pad, &format, fse->which); in csiphy_enum_frame_size()
444 fse->max_width = format.width; in csiphy_enum_frame_size()
445 fse->max_height = format.height; in csiphy_enum_frame_size()
451 * csiphy_get_format - Handle get format by pads subdev method
454 * @fmt: pointer to v4l2 subdev format structure
463 struct v4l2_mbus_framefmt *format; in csiphy_get_format() local
465 format = __csiphy_get_format(csiphy, sd_state, fmt->pad, fmt->which); in csiphy_get_format()
466 if (format == NULL) in csiphy_get_format()
469 fmt->format = *format; in csiphy_get_format()
475 * csiphy_set_format - Handle set format by pads subdev method
478 * @fmt: pointer to v4l2 subdev format structure
487 struct v4l2_mbus_framefmt *format; in csiphy_set_format() local
489 format = __csiphy_get_format(csiphy, sd_state, fmt->pad, fmt->which); in csiphy_set_format()
490 if (format == NULL) in csiphy_set_format()
493 csiphy_try_format(csiphy, sd_state, fmt->pad, &fmt->format, in csiphy_set_format()
495 *format = fmt->format; in csiphy_set_format()
497 /* Propagate the format from sink to source */ in csiphy_set_format()
499 format = __csiphy_get_format(csiphy, sd_state, in csiphy_set_format()
503 *format = fmt->format; in csiphy_set_format()
505 format, in csiphy_set_format()
524 struct v4l2_subdev_format format = { in csiphy_init_formats() local
528 .format = { in csiphy_init_formats()
535 return csiphy_set_format(sd, fh ? fh->state : NULL, &format); in csiphy_init_formats()
538 static bool csiphy_match_clock_name(const char *clock_name, const char *format, in csiphy_match_clock_name() argument
543 snprintf(name, sizeof(name), format, index); in csiphy_match_clock_name()
777 dev_err(dev, "Failed to init format: %d\n", ret); in msm_csiphy_register_entity()