Lines Matching refs:format
128 struct v4l2_mbus_framefmt format; member
254 return &mt9t001->format; in __mt9t001_get_pad_format()
280 struct v4l2_mbus_framefmt *format = &mt9t001->format; in mt9t001_s_stream() local
298 hratio = DIV_ROUND_CLOSEST(crop->width, format->width); in mt9t001_s_stream()
299 vratio = DIV_ROUND_CLOSEST(crop->height, format->height); in mt9t001_s_stream()
357 struct v4l2_subdev_format *format) in mt9t001_get_format() argument
361 format->format = *__mt9t001_get_pad_format(mt9t001, cfg, format->pad, in mt9t001_get_format()
362 format->which); in mt9t001_get_format()
368 struct v4l2_subdev_format *format) in mt9t001_set_format() argument
378 __crop = __mt9t001_get_pad_crop(mt9t001, cfg, format->pad, in mt9t001_set_format()
379 format->which); in mt9t001_set_format()
382 width = clamp_t(unsigned int, ALIGN(format->format.width, 2), in mt9t001_set_format()
386 height = clamp_t(unsigned int, ALIGN(format->format.height, 2), in mt9t001_set_format()
394 __format = __mt9t001_get_pad_format(mt9t001, cfg, format->pad, in mt9t001_set_format()
395 format->which); in mt9t001_set_format()
399 format->format = *__format; in mt9t001_set_format()
790 struct v4l2_mbus_framefmt *format; in mt9t001_open() local
799 format = v4l2_subdev_get_try_format(subdev, fh->pad, 0); in mt9t001_open()
800 format->code = MEDIA_BUS_FMT_SGRBG10_1X10; in mt9t001_open()
801 format->width = MT9T001_WINDOW_WIDTH_DEF + 1; in mt9t001_open()
802 format->height = MT9T001_WINDOW_HEIGHT_DEF + 1; in mt9t001_open()
803 format->field = V4L2_FIELD_NONE; in mt9t001_open()
804 format->colorspace = V4L2_COLORSPACE_SRGB; in mt9t001_open()
925 mt9t001->format.code = MEDIA_BUS_FMT_SGRBG10_1X10; in mt9t001_probe()
926 mt9t001->format.width = MT9T001_WINDOW_WIDTH_DEF + 1; in mt9t001_probe()
927 mt9t001->format.height = MT9T001_WINDOW_HEIGHT_DEF + 1; in mt9t001_probe()
928 mt9t001->format.field = V4L2_FIELD_NONE; in mt9t001_probe()
929 mt9t001->format.colorspace = V4L2_COLORSPACE_SRGB; in mt9t001_probe()