Home
last modified time | relevance | path

Searched refs:sd_fmt (Results 1 – 8 of 8) sorted by relevance

/linux-6.1.9/drivers/media/pci/cobalt/
Dcobalt-v4l2.c149 struct v4l2_subdev_format sd_fmt = { in cobalt_enable_output() local
161 sd_fmt.format.colorspace = s->colorspace; in cobalt_enable_output()
162 sd_fmt.format.xfer_func = s->xfer_func; in cobalt_enable_output()
163 sd_fmt.format.ycbcr_enc = s->ycbcr_enc; in cobalt_enable_output()
164 sd_fmt.format.quantization = s->quantization; in cobalt_enable_output()
165 sd_fmt.format.width = bt->width; in cobalt_enable_output()
166 sd_fmt.format.height = bt->height; in cobalt_enable_output()
171 sd_fmt.format.code = MEDIA_BUS_FMT_UYVY8_1X16; in cobalt_enable_output()
174 sd_fmt.format.code = MEDIA_BUS_FMT_RGB888_1X24; in cobalt_enable_output()
177 v4l2_subdev_call(s->sd, pad, set_fmt, NULL, &sd_fmt); in cobalt_enable_output()
[all …]
Dcobalt-driver.c493 struct v4l2_subdev_format sd_fmt = { in cobalt_subdevs_init() local
528 &sd_fmt); in cobalt_subdevs_init()
575 struct v4l2_subdev_format sd_fmt = { in cobalt_subdevs_hsma_init() local
612 &sd_fmt); in cobalt_subdevs_hsma_init()
/linux-6.1.9/drivers/media/platform/ti/cal/
Dcal-video.c120 struct v4l2_subdev_format sd_fmt; in __subdev_get_format() local
121 struct v4l2_mbus_framefmt *mbus_fmt = &sd_fmt.format; in __subdev_get_format()
124 sd_fmt.which = V4L2_SUBDEV_FORMAT_ACTIVE; in __subdev_get_format()
125 sd_fmt.pad = 0; in __subdev_get_format()
127 ret = v4l2_subdev_call(ctx->phy->source, pad, get_fmt, NULL, &sd_fmt); in __subdev_get_format()
142 struct v4l2_subdev_format sd_fmt; in __subdev_set_format() local
143 struct v4l2_mbus_framefmt *mbus_fmt = &sd_fmt.format; in __subdev_set_format()
146 sd_fmt.which = V4L2_SUBDEV_FORMAT_ACTIVE; in __subdev_set_format()
147 sd_fmt.pad = 0; in __subdev_set_format()
150 ret = v4l2_subdev_call(ctx->phy->source, pad, set_fmt, NULL, &sd_fmt); in __subdev_set_format()
[all …]
/linux-6.1.9/drivers/media/test-drivers/vimc/
Dvimc-common.c244 struct v4l2_subdev_format sd_fmt; in vimc_get_pix_format() local
248 sd_fmt.which = V4L2_SUBDEV_FORMAT_ACTIVE; in vimc_get_pix_format()
249 sd_fmt.pad = pad->index; in vimc_get_pix_format()
251 ret = v4l2_subdev_call(sd, pad, get_fmt, NULL, &sd_fmt); in vimc_get_pix_format()
255 v4l2_fill_pix_format(fmt, &sd_fmt.format); in vimc_get_pix_format()
256 pix_map = vimc_pix_map_by_code(sd_fmt.format.code); in vimc_get_pix_format()
/linux-6.1.9/drivers/media/platform/st/stm32/
Dstm32-dcmi.c998 const struct dcmi_format *sd_fmt; in dcmi_try_fmt() local
1007 sd_fmt = find_format_by_fourcc(dcmi, pix->pixelformat); in dcmi_try_fmt()
1008 if (!sd_fmt) { in dcmi_try_fmt()
1012 sd_fmt = dcmi->sd_formats[dcmi->num_of_sd_formats - 1]; in dcmi_try_fmt()
1013 pix->pixelformat = sd_fmt->fourcc; in dcmi_try_fmt()
1034 v4l2_fill_mbus_format(&format.format, pix, sd_fmt->mbus_code); in dcmi_try_fmt()
1069 pix->bytesperline = pix->width * sd_fmt->bpp; in dcmi_try_fmt()
1073 *sd_format = sd_fmt; in dcmi_try_fmt()
1180 const struct dcmi_format *sd_fmt; in dcmi_set_sensor_format() local
1186 sd_fmt = find_format_by_fourcc(dcmi, pix->pixelformat); in dcmi_set_sensor_format()
[all …]
/linux-6.1.9/drivers/media/platform/atmel/
Datmel-isc-base.c859 struct isc_format *sd_fmt = NULL, *direct_fmt = NULL; in isc_try_fmt() local
878 sd_fmt = isc->user_formats[i]; in isc_try_fmt()
890 if (direct_fmt && sd_fmt && sensor_preferred) in isc_try_fmt()
891 sd_fmt = direct_fmt; in isc_try_fmt()
894 if (direct_fmt && !sd_fmt) in isc_try_fmt()
895 sd_fmt = direct_fmt; in isc_try_fmt()
900 if (sd_fmt == direct_fmt) in isc_try_fmt()
907 if (!sd_fmt && !direct_fmt) { in isc_try_fmt()
908 sd_fmt = isc->user_formats[isc->num_user_formats - 1]; in isc_try_fmt()
911 (char *)&pixfmt->pixelformat, (char *)&sd_fmt->fourcc); in isc_try_fmt()
[all …]
/linux-6.1.9/drivers/media/platform/rockchip/rkisp1/
Drkisp1-capture.c1276 struct v4l2_subdev_format sd_fmt = { in rkisp1_capture_link_validate() local
1282 ret = v4l2_subdev_call(sd, pad, get_fmt, NULL, &sd_fmt); in rkisp1_capture_link_validate()
1286 if (sd_fmt.format.height != cap->pix.fmt.height || in rkisp1_capture_link_validate()
1287 sd_fmt.format.width != cap->pix.fmt.width || in rkisp1_capture_link_validate()
1288 sd_fmt.format.code != fmt->mbus) { in rkisp1_capture_link_validate()
1293 sd_fmt.format.code, sd_fmt.format.width, in rkisp1_capture_link_validate()
1294 sd_fmt.format.height, fmt->mbus, cap->pix.fmt.width, in rkisp1_capture_link_validate()
/linux-6.1.9/drivers/media/platform/ti/am437x/
Dam437x-vpfe.c1288 struct v4l2_subdev_format sd_fmt; in __subdev_get_format() local
1289 struct v4l2_mbus_framefmt *mbus_fmt = &sd_fmt.format; in __subdev_get_format()
1292 sd_fmt.which = V4L2_SUBDEV_FORMAT_ACTIVE; in __subdev_get_format()
1293 sd_fmt.pad = 0; in __subdev_get_format()
1295 ret = v4l2_subdev_call(sd, pad, get_fmt, NULL, &sd_fmt); in __subdev_get_format()
1312 struct v4l2_subdev_format sd_fmt; in __subdev_set_format() local
1313 struct v4l2_mbus_framefmt *mbus_fmt = &sd_fmt.format; in __subdev_set_format()
1316 sd_fmt.which = V4L2_SUBDEV_FORMAT_ACTIVE; in __subdev_set_format()
1317 sd_fmt.pad = 0; in __subdev_set_format()
1320 ret = v4l2_subdev_call(sd, pad, set_fmt, NULL, &sd_fmt); in __subdev_set_format()