Home
last modified time | relevance | path

Searched refs:mf (Results 1 – 89 of 89) sorted by relevance

/linux-4.4.14/drivers/media/platform/soc_camera/
Dsoc_scale_crop.c222 struct v4l2_mbus_framefmt *mf = &format->format; in client_set_fmt() local
223 unsigned int width = mf->width, height = mf->height, tmp_w, tmp_h; in client_set_fmt()
234 dev_geo(dev, "camera scaled to %ux%u\n", mf->width, mf->height); in client_set_fmt()
236 if (width == mf->width && height == mf->height) { in client_set_fmt()
258 tmp_w = mf->width; in client_set_fmt()
259 tmp_h = mf->height; in client_set_fmt()
266 mf->width = tmp_w; in client_set_fmt()
267 mf->height = tmp_h; in client_set_fmt()
272 mf->width, mf->height); in client_set_fmt()
308 struct v4l2_mbus_framefmt *mf, in soc_camera_client_scale() argument
[all …]
Drcar_vin.c1364 struct v4l2_mbus_framefmt *mf = &fmt.format; in rcar_vin_get_formats() local
1379 rect.width = mf->width; in rcar_vin_get_formats()
1380 rect.height = mf->height; in rcar_vin_get_formats()
1390 if (mf->width <= VIN_MAX_WIDTH && in rcar_vin_get_formats()
1391 mf->height <= VIN_MAX_HEIGHT) in rcar_vin_get_formats()
1394 mf->width = 1280 >> shift; in rcar_vin_get_formats()
1395 mf->height = 960 >> shift; in rcar_vin_get_formats()
1407 mf->width, mf->height); in rcar_vin_get_formats()
1411 dev_dbg(dev, "camera fmt %ux%u\n", mf->width, mf->height); in rcar_vin_get_formats()
1422 cam->width = mf->width; in rcar_vin_get_formats()
[all …]
Dsh_mobile_csi2.c54 struct v4l2_mbus_framefmt *mf = &format->format; in sh_csi2_set_fmt() local
60 if (mf->width > 8188) in sh_csi2_set_fmt()
61 mf->width = 8188; in sh_csi2_set_fmt()
62 else if (mf->width & 1) in sh_csi2_set_fmt()
63 mf->width &= ~1; in sh_csi2_set_fmt()
67 switch (mf->code) { in sh_csi2_set_fmt()
76 mf->code = MEDIA_BUS_FMT_YUYV8_2X8; in sh_csi2_set_fmt()
80 switch (mf->code) { in sh_csi2_set_fmt()
89 mf->code = MEDIA_BUS_FMT_SBGGR8_1X8; in sh_csi2_set_fmt()
95 cfg->try_fmt = *mf; in sh_csi2_set_fmt()
[all …]
Dsh_mobile_ceu_camera.c1090 struct v4l2_mbus_framefmt *mf = &fmt.format; in sh_mobile_ceu_get_formats() local
1119 while ((mf->width > pcdev->max_width || in sh_mobile_ceu_get_formats()
1120 mf->height > pcdev->max_height) && shift < 4) { in sh_mobile_ceu_get_formats()
1122 mf->width = 2560 >> shift; in sh_mobile_ceu_get_formats()
1123 mf->height = 1920 >> shift; in sh_mobile_ceu_get_formats()
1134 mf->width, mf->height); in sh_mobile_ceu_get_formats()
1138 dev_geo(dev, "camera fmt %ux%u\n", mf->width, mf->height); in sh_mobile_ceu_get_formats()
1148 cam->width = mf->width; in sh_mobile_ceu_get_formats()
1149 cam->height = mf->height; in sh_mobile_ceu_get_formats()
1237 struct v4l2_mbus_framefmt *mf = &fmt.format; in sh_mobile_ceu_set_crop() local
[all …]
Dmx3_camera.c814 struct v4l2_mbus_framefmt *mf = &fmt.format; in mx3_camera_set_crop() local
829 if (mf->code != icd->current_fmt->code) in mx3_camera_set_crop()
832 if (mf->width & 7) { in mx3_camera_set_crop()
834 stride_align(&mf->width); in mx3_camera_set_crop()
840 if (mf->width != icd->user_width || mf->height != icd->user_height) in mx3_camera_set_crop()
841 configure_geometry(mx3_cam, mf->width, mf->height, in mx3_camera_set_crop()
845 mf->width, mf->height); in mx3_camera_set_crop()
847 icd->user_width = mf->width; in mx3_camera_set_crop()
848 icd->user_height = mf->height; in mx3_camera_set_crop()
864 struct v4l2_mbus_framefmt *mf = &format.format; in mx3_camera_set_fmt() local
[all …]
Dmx2_camera.c920 struct v4l2_mbus_framefmt *mf = &fmt.format; in mx2_camera_set_crop() local
936 mf->width, mf->height); in mx2_camera_set_crop()
938 icd->user_width = mf->width; in mx2_camera_set_crop()
939 icd->user_height = mf->height; in mx2_camera_set_crop()
1135 struct v4l2_mbus_framefmt *mf = &format.format; in mx2_camera_set_fmt() local
1148 mf->width = pix->width; in mx2_camera_set_fmt()
1149 mf->height = pix->height; in mx2_camera_set_fmt()
1150 mf->field = pix->field; in mx2_camera_set_fmt()
1151 mf->colorspace = pix->colorspace; in mx2_camera_set_fmt()
1152 mf->code = xlate->code; in mx2_camera_set_fmt()
[all …]
Domap1_camera.c1191 struct v4l2_mbus_framefmt *mf = &format->format; in set_format() local
1199 if (mf->code != xlate->code) { in set_format()
1204 bytes_per_line = soc_mbus_bytes_per_line(mf->width, xlate->host_fmt); in set_format()
1211 if (!is_dma_aligned(bytes_per_line, mf->height, pcdev->vb_mode)) { in set_format()
1213 __func__, mf->width, mf->height); in set_format()
1231 struct v4l2_mbus_framefmt *mf = &fmt.format; in omap1_cam_set_crop() local
1247 ret = dma_align(&mf->width, &mf->height, xlate->host_fmt, pcdev->vb_mode, in omap1_cam_set_crop()
1251 __func__, mf->width, mf->height, in omap1_cam_set_crop()
1265 icd->user_width = mf->width; in omap1_cam_set_crop()
1266 icd->user_height = mf->height; in omap1_cam_set_crop()
[all …]
Dsoc_mediabus.c388 int soc_mbus_samples_per_pixel(const struct soc_mbus_pixelfmt *mf, in soc_mbus_samples_per_pixel() argument
391 switch (mf->packing) { in soc_mbus_samples_per_pixel()
419 s32 soc_mbus_bytes_per_line(u32 width, const struct soc_mbus_pixelfmt *mf) in soc_mbus_bytes_per_line() argument
421 if (mf->layout != SOC_MBUS_LAYOUT_PACKED) in soc_mbus_bytes_per_line()
422 return width * mf->bits_per_sample / 8; in soc_mbus_bytes_per_line()
424 switch (mf->packing) { in soc_mbus_bytes_per_line()
426 return width * mf->bits_per_sample / 8; in soc_mbus_bytes_per_line()
442 s32 soc_mbus_image_size(const struct soc_mbus_pixelfmt *mf, in soc_mbus_image_size() argument
445 if (mf->layout == SOC_MBUS_LAYOUT_PACKED) in soc_mbus_image_size()
448 switch (mf->packing) { in soc_mbus_image_size()
Dsoc_camera_platform.c44 struct v4l2_mbus_framefmt *mf = &format->format; in soc_camera_platform_fill_fmt() local
46 mf->width = p->format.width; in soc_camera_platform_fill_fmt()
47 mf->height = p->format.height; in soc_camera_platform_fill_fmt()
48 mf->code = p->format.code; in soc_camera_platform_fill_fmt()
49 mf->colorspace = p->format.colorspace; in soc_camera_platform_fill_fmt()
50 mf->field = p->format.field; in soc_camera_platform_fill_fmt()
Datmel-isi.c509 struct v4l2_mbus_framefmt *mf = &format.format; in isi_camera_set_fmt() local
526 mf->width = pix->width; in isi_camera_set_fmt()
527 mf->height = pix->height; in isi_camera_set_fmt()
528 mf->field = pix->field; in isi_camera_set_fmt()
529 mf->colorspace = pix->colorspace; in isi_camera_set_fmt()
530 mf->code = xlate->code; in isi_camera_set_fmt()
536 if (mf->code != xlate->code) in isi_camera_set_fmt()
539 pix->width = mf->width; in isi_camera_set_fmt()
540 pix->height = mf->height; in isi_camera_set_fmt()
541 pix->field = mf->field; in isi_camera_set_fmt()
[all …]
Dpxa_camera.c1355 struct v4l2_mbus_framefmt *mf = &fmt.format; in pxa_camera_set_crop() local
1378 if (pxa_camera_check_frame(mf->width, mf->height)) { in pxa_camera_set_crop()
1383 v4l_bound_align_image(&mf->width, 48, 2048, 1, in pxa_camera_set_crop()
1384 &mf->height, 32, 2048, 0, in pxa_camera_set_crop()
1390 if (pxa_camera_check_frame(mf->width, mf->height)) { in pxa_camera_set_crop()
1407 icd->user_width = mf->width; in pxa_camera_set_crop()
1408 icd->user_height = mf->height; in pxa_camera_set_crop()
1431 struct v4l2_mbus_framefmt *mf = &format.format; in pxa_camera_set_fmt() local
1445 mf->width = pix->width; in pxa_camera_set_fmt()
1446 mf->height = pix->height; in pxa_camera_set_fmt()
[all …]
Dsoc_scale_crop.h39 struct v4l2_mbus_framefmt *mf,
44 const struct v4l2_pix_format *pix, struct v4l2_mbus_framefmt *mf,
Dsoc_camera.c1305 struct v4l2_mbus_framefmt *mf = &fmt.format; in soc_camera_probe_finish() local
1336 icd->user_width = mf->width; in soc_camera_probe_finish()
1337 icd->user_height = mf->height; in soc_camera_probe_finish()
1338 icd->colorspace = mf->colorspace; in soc_camera_probe_finish()
1339 icd->field = mf->field; in soc_camera_probe_finish()
/linux-4.4.14/drivers/media/platform/exynos4-is/
Dfimc-isp.c132 struct v4l2_mbus_framefmt *mf = &fmt->format; in fimc_isp_subdev_get_fmt() local
135 *mf = *v4l2_subdev_get_try_format(sd, cfg, fmt->pad); in fimc_isp_subdev_get_fmt()
139 mf->colorspace = V4L2_COLORSPACE_SRGB; in fimc_isp_subdev_get_fmt()
145 *mf = isp->sink_fmt; in fimc_isp_subdev_get_fmt()
148 *mf = isp->src_fmt; in fimc_isp_subdev_get_fmt()
151 mf->colorspace = V4L2_COLORSPACE_JPEG; in fimc_isp_subdev_get_fmt()
152 mf->code = MEDIA_BUS_FMT_YUV10_1X30; in fimc_isp_subdev_get_fmt()
159 fmt->pad, mf->code, mf->width, mf->height); in fimc_isp_subdev_get_fmt()
168 struct v4l2_mbus_framefmt *mf = &fmt->format; in __isp_subdev_try_format() local
171 mf->colorspace = V4L2_COLORSPACE_SRGB; in __isp_subdev_try_format()
[all …]
Dmipi-csis.c283 struct v4l2_mbus_framefmt *mf) in find_csis_format() argument
288 if (mf->code == s5pcsis_formats[i].code) in find_csis_format()
334 struct v4l2_mbus_framefmt *mf = &state->format; in __s5pcsis_set_format() local
338 mf->code, mf->width, mf->height); in __s5pcsis_set_format()
346 val = (mf->width << 16) | mf->height; in __s5pcsis_set_format()
554 struct v4l2_mbus_framefmt *mf) in s5pcsis_try_format() argument
558 csis_fmt = find_csis_format(mf); in s5pcsis_try_format()
562 mf->code = csis_fmt->code; in s5pcsis_try_format()
563 v4l_bound_align_image(&mf->width, 1, CSIS_MAX_PIX_WIDTH, in s5pcsis_try_format()
565 &mf->height, 1, CSIS_MAX_PIX_HEIGHT, 1, in s5pcsis_try_format()
[all …]
Dfimc-capture.c785 struct v4l2_mbus_framefmt *mf = &sfmt.format; in fimc_pipeline_try_format() local
802 ffmt = fimc_find_format(NULL, mf->code != 0 ? &mf->code : NULL, in fimc_pipeline_try_format()
811 mf->code = tfmt->code = ffmt->mbus_code; in fimc_pipeline_try_format()
824 mf->code = tfmt->code; in fimc_pipeline_try_format()
837 if (mf->code != tfmt->code) in fimc_pipeline_try_format()
841 tfmt->width = mf->width; in fimc_pipeline_try_format()
842 tfmt->height = mf->height; in fimc_pipeline_try_format()
848 mf->code = ffmt->mbus_code; in fimc_pipeline_try_format()
849 if (mf->width != tfmt->width || mf->height != tfmt->height) in fimc_pipeline_try_format()
851 tfmt->code = mf->code; in fimc_pipeline_try_format()
[all …]
Dfimc-lite.c572 struct v4l2_mbus_framefmt *mf = &format->format; in fimc_lite_subdev_try_fmt() local
576 v4l_bound_align_image(&mf->width, 8, dd->max_width, in fimc_lite_subdev_try_fmt()
578 &mf->height, 0, dd->max_height, 0, 0); in fimc_lite_subdev_try_fmt()
580 fmt = fimc_lite_find_format(NULL, &mf->code, 0, 0); in fimc_lite_subdev_try_fmt()
584 mf->colorspace = fmt->colorspace; in fimc_lite_subdev_try_fmt()
585 mf->code = fmt->mbus_code; in fimc_lite_subdev_try_fmt()
595 mf->code = sink_fmt->code; in fimc_lite_subdev_try_fmt()
596 mf->colorspace = sink_fmt->colorspace; in fimc_lite_subdev_try_fmt()
601 mf->code = sink->fmt->mbus_code; in fimc_lite_subdev_try_fmt()
602 mf->colorspace = sink->fmt->colorspace; in fimc_lite_subdev_try_fmt()
[all …]
Dfimc-is-param.c210 void __is_get_frame_size(struct fimc_is *is, struct v4l2_mbus_framefmt *mf) in __is_get_frame_size() argument
215 mf->width = isp->otf_input.width; in __is_get_frame_size()
216 mf->height = isp->otf_input.height; in __is_get_frame_size()
219 void __is_set_frame_size(struct fimc_is *is, struct v4l2_mbus_framefmt *mf) in __is_set_frame_size() argument
231 isp->otf_input.width = mf->width; in __is_set_frame_size()
232 isp->otf_input.height = mf->height; in __is_set_frame_size()
233 isp->otf_output.width = mf->width; in __is_set_frame_size()
234 isp->otf_output.height = mf->height; in __is_set_frame_size()
236 drc->otf_input.width = mf->width; in __is_set_frame_size()
237 drc->otf_input.height = mf->height; in __is_set_frame_size()
[all …]
Dfimc-is-param.h1000 void __is_get_frame_size(struct fimc_is *is, struct v4l2_mbus_framefmt *mf);
1001 void __is_set_frame_size(struct fimc_is *is, struct v4l2_mbus_framefmt *mf);
/linux-4.4.14/drivers/media/i2c/
Ds5k6a3.c90 struct v4l2_mbus_framefmt *mf) in find_sensor_format() argument
95 if (mf->code == s5k6a3_formats[i].code) in find_sensor_format()
112 static void s5k6a3_try_format(struct v4l2_mbus_framefmt *mf) in s5k6a3_try_format() argument
116 fmt = find_sensor_format(mf); in s5k6a3_try_format()
117 mf->code = fmt->code; in s5k6a3_try_format()
118 mf->field = V4L2_FIELD_NONE; in s5k6a3_try_format()
119 v4l_bound_align_image(&mf->width, S5K6A3_SENSOR_MIN_WIDTH, in s5k6a3_try_format()
121 &mf->height, S5K6A3_SENSOR_MIN_HEIGHT, in s5k6a3_try_format()
140 struct v4l2_mbus_framefmt *mf; in s5k6a3_set_fmt() local
144 mf = __s5k6a3_get_format(sensor, cfg, fmt->pad, fmt->which); in s5k6a3_set_fmt()
[all …]
Dnoon010pc30.c362 static int noon010_try_frame_size(struct v4l2_mbus_framefmt *mf, in noon010_try_frame_size() argument
371 int err = abs(fsize->width - mf->width) in noon010_try_frame_size()
372 + abs(fsize->height - mf->height); in noon010_try_frame_size()
381 mf->width = match->width; in noon010_try_frame_size()
382 mf->height = match->height; in noon010_try_frame_size()
510 struct v4l2_mbus_framefmt *mf; in noon010_get_fmt() local
514 mf = v4l2_subdev_get_try_format(sd, cfg, 0); in noon010_get_fmt()
515 fmt->format = *mf; in noon010_get_fmt()
519 mf = &fmt->format; in noon010_get_fmt()
522 mf->width = info->curr_win->width; in noon010_get_fmt()
[all …]
Dsr030pc30.c398 static int sr030pc30_try_frame_size(struct v4l2_mbus_framefmt *mf) in sr030pc30_try_frame_size() argument
405 int err = abs(fsize->width - mf->width) in sr030pc30_try_frame_size()
406 + abs(fsize->height - mf->height); in sr030pc30_try_frame_size()
414 mf->width = match->width; in sr030pc30_try_frame_size()
415 mf->height = match->height; in sr030pc30_try_frame_size()
490 struct v4l2_mbus_framefmt *mf; in sr030pc30_get_fmt() local
496 mf = &format->format; in sr030pc30_get_fmt()
501 mf->width = info->curr_win->width; in sr030pc30_get_fmt()
502 mf->height = info->curr_win->height; in sr030pc30_get_fmt()
503 mf->code = info->curr_fmt->code; in sr030pc30_get_fmt()
[all …]
Dadv7170.c280 struct v4l2_mbus_framefmt *mf = &format->format; in adv7170_get_fmt() local
287 mf->code = MEDIA_BUS_FMT_UYVY8_1X16; in adv7170_get_fmt()
289 mf->code = MEDIA_BUS_FMT_UYVY8_2X8; in adv7170_get_fmt()
291 mf->colorspace = V4L2_COLORSPACE_SMPTE170M; in adv7170_get_fmt()
292 mf->width = 0; in adv7170_get_fmt()
293 mf->height = 0; in adv7170_get_fmt()
294 mf->field = V4L2_FIELD_ANY; in adv7170_get_fmt()
303 struct v4l2_mbus_framefmt *mf = &format->format; in adv7170_set_fmt() local
310 switch (mf->code) { in adv7170_set_fmt()
321 "illegal v4l2_mbus_framefmt code: %d\n", mf->code); in adv7170_set_fmt()
Ds5k4ecgx.c505 static int s5k4ecgx_try_frame_size(struct v4l2_mbus_framefmt *mf, in s5k4ecgx_try_frame_size() argument
514 int err = abs(fsize->size.width - mf->width) in s5k4ecgx_try_frame_size()
515 + abs(fsize->size.height - mf->height); in s5k4ecgx_try_frame_size()
523 mf->width = match->size.width; in s5k4ecgx_try_frame_size()
524 mf->height = match->size.height; in s5k4ecgx_try_frame_size()
548 struct v4l2_mbus_framefmt *mf; in s5k4ecgx_get_fmt() local
552 mf = v4l2_subdev_get_try_format(sd, cfg, 0); in s5k4ecgx_get_fmt()
553 fmt->format = *mf; in s5k4ecgx_get_fmt()
558 mf = &fmt->format; in s5k4ecgx_get_fmt()
561 mf->width = priv->curr_frmsize->size.width; in s5k4ecgx_get_fmt()
[all …]
Dadv7175.c318 struct v4l2_mbus_framefmt *mf = &format->format; in adv7175_get_fmt() local
325 mf->code = MEDIA_BUS_FMT_UYVY8_1X16; in adv7175_get_fmt()
327 mf->code = MEDIA_BUS_FMT_UYVY8_2X8; in adv7175_get_fmt()
329 mf->colorspace = V4L2_COLORSPACE_SMPTE170M; in adv7175_get_fmt()
330 mf->width = 0; in adv7175_get_fmt()
331 mf->height = 0; in adv7175_get_fmt()
332 mf->field = V4L2_FIELD_ANY; in adv7175_get_fmt()
341 struct v4l2_mbus_framefmt *mf = &format->format; in adv7175_set_fmt() local
348 switch (mf->code) { in adv7175_set_fmt()
359 "illegal v4l2_mbus_framefmt code: %d\n", mf->code); in adv7175_set_fmt()
Ds5k5baf.c742 static int s5k5baf_find_pixfmt(struct v4l2_mbus_framefmt *mf) in s5k5baf_find_pixfmt() argument
747 if (mf->colorspace != s5k5baf_formats[i].colorspace) in s5k5baf_find_pixfmt()
749 if (mf->code == s5k5baf_formats[i].code) in s5k5baf_find_pixfmt()
1254 static void s5k5baf_try_cis_format(struct v4l2_mbus_framefmt *mf) in s5k5baf_try_cis_format() argument
1256 mf->width = S5K5BAF_CIS_WIDTH; in s5k5baf_try_cis_format()
1257 mf->height = S5K5BAF_CIS_HEIGHT; in s5k5baf_try_cis_format()
1258 mf->code = MEDIA_BUS_FMT_FIXED; in s5k5baf_try_cis_format()
1259 mf->colorspace = V4L2_COLORSPACE_JPEG; in s5k5baf_try_cis_format()
1260 mf->field = V4L2_FIELD_NONE; in s5k5baf_try_cis_format()
1263 static int s5k5baf_try_isp_format(struct v4l2_mbus_framefmt *mf) in s5k5baf_try_isp_format() argument
[all …]
Dak881x.c100 struct v4l2_mbus_framefmt *mf = &format->format; in ak881x_fill_fmt() local
107 v4l_bound_align_image(&mf->width, 0, 720, 2, in ak881x_fill_fmt()
108 &mf->height, 0, ak881x->lines, 1, 0); in ak881x_fill_fmt()
109 mf->field = V4L2_FIELD_INTERLACED; in ak881x_fill_fmt()
110 mf->code = MEDIA_BUS_FMT_YUYV8_2X8; in ak881x_fill_fmt()
111 mf->colorspace = V4L2_COLORSPACE_SMPTE170M; in ak881x_fill_fmt()
Ds5k6aa.c620 struct v4l2_mbus_framefmt *mf) in s5k6aa_get_pixfmt_index() argument
625 if (mf->colorspace == s5k6aa_formats[i].colorspace && in s5k6aa_get_pixfmt_index()
626 mf->code == s5k6aa_formats[i].code) in s5k6aa_get_pixfmt_index()
1070 struct v4l2_mbus_framefmt *mf) in s5k6aa_try_format() argument
1074 v4l_bound_align_image(&mf->width, S5K6AA_WIN_WIDTH_MIN, in s5k6aa_try_format()
1076 &mf->height, S5K6AA_WIN_HEIGHT_MIN, in s5k6aa_try_format()
1079 if (mf->colorspace != V4L2_COLORSPACE_JPEG && in s5k6aa_try_format()
1080 mf->colorspace != V4L2_COLORSPACE_REC709) in s5k6aa_try_format()
1081 mf->colorspace = V4L2_COLORSPACE_JPEG; in s5k6aa_try_format()
1083 index = s5k6aa_get_pixfmt_index(s5k6aa, mf); in s5k6aa_try_format()
[all …]
Dov9650.c1060 static void ov965x_get_default_format(struct v4l2_mbus_framefmt *mf) in ov965x_get_default_format() argument
1062 mf->width = ov965x_framesizes[0].width; in ov965x_get_default_format()
1063 mf->height = ov965x_framesizes[0].height; in ov965x_get_default_format()
1064 mf->colorspace = ov965x_formats[0].colorspace; in ov965x_get_default_format()
1065 mf->code = ov965x_formats[0].code; in ov965x_get_default_format()
1066 mf->field = V4L2_FIELD_NONE; in ov965x_get_default_format()
1171 struct v4l2_mbus_framefmt *mf; in ov965x_get_fmt() local
1174 mf = v4l2_subdev_get_try_format(sd, cfg, 0); in ov965x_get_fmt()
1175 fmt->format = *mf; in ov965x_get_fmt()
1186 static void __ov965x_try_frame_size(struct v4l2_mbus_framefmt *mf, in __ov965x_try_frame_size() argument
[all …]
Dov2659.c1050 struct v4l2_mbus_framefmt *mf; in ov2659_get_fmt() local
1052 mf = v4l2_subdev_get_try_format(sd, cfg, 0); in ov2659_get_fmt()
1054 fmt->format = *mf; in ov2659_get_fmt()
1073 static void __ov2659_try_frame_size(struct v4l2_mbus_framefmt *mf, in __ov2659_try_frame_size() argument
1082 int err = abs(fsize->width - mf->width) in __ov2659_try_frame_size()
1083 + abs(fsize->height - mf->height); in __ov2659_try_frame_size()
1094 mf->width = match->width; in __ov2659_try_frame_size()
1095 mf->height = match->height; in __ov2659_try_frame_size()
1107 struct v4l2_mbus_framefmt *mf = &fmt->format; in ov2659_set_fmt() local
1114 __ov2659_try_frame_size(mf, &size); in ov2659_set_fmt()
[all …]
/linux-4.4.14/drivers/media/i2c/soc_camera/
Dtw9910.c724 struct v4l2_mbus_framefmt *mf = &format->format; in tw9910_get_fmt() local
737 mf->width = priv->scale->width; in tw9910_get_fmt()
738 mf->height = priv->scale->height; in tw9910_get_fmt()
739 mf->code = MEDIA_BUS_FMT_UYVY8_2X8; in tw9910_get_fmt()
740 mf->colorspace = V4L2_COLORSPACE_SMPTE170M; in tw9910_get_fmt()
741 mf->field = V4L2_FIELD_INTERLACED_BT; in tw9910_get_fmt()
747 struct v4l2_mbus_framefmt *mf) in tw9910_s_fmt() argument
749 u32 width = mf->width, height = mf->height; in tw9910_s_fmt()
752 WARN_ON(mf->field != V4L2_FIELD_ANY && in tw9910_s_fmt()
753 mf->field != V4L2_FIELD_INTERLACED_BT); in tw9910_s_fmt()
[all …]
Dimx074.c160 struct v4l2_mbus_framefmt *mf = &format->format; in imx074_set_fmt() local
161 const struct imx074_datafmt *fmt = imx074_find_datafmt(mf->code); in imx074_set_fmt()
168 dev_dbg(sd->v4l2_dev->dev, "%s(%u)\n", __func__, mf->code); in imx074_set_fmt()
174 mf->code = imx074_colour_fmts[0].code; in imx074_set_fmt()
175 mf->colorspace = imx074_colour_fmts[0].colorspace; in imx074_set_fmt()
178 mf->width = IMX074_WIDTH; in imx074_set_fmt()
179 mf->height = IMX074_HEIGHT; in imx074_set_fmt()
180 mf->field = V4L2_FIELD_NONE; in imx074_set_fmt()
183 priv->fmt = imx074_find_datafmt(mf->code); in imx074_set_fmt()
185 cfg->try_fmt = *mf; in imx074_set_fmt()
[all …]
Dmt9m001.c259 struct v4l2_mbus_framefmt *mf = &format->format; in mt9m001_get_fmt() local
264 mf->width = mt9m001->rect.width; in mt9m001_get_fmt()
265 mf->height = mt9m001->rect.height; in mt9m001_get_fmt()
266 mf->code = mt9m001->fmt->code; in mt9m001_get_fmt()
267 mf->colorspace = mt9m001->fmt->colorspace; in mt9m001_get_fmt()
268 mf->field = V4L2_FIELD_NONE; in mt9m001_get_fmt()
274 struct v4l2_mbus_framefmt *mf) in mt9m001_s_fmt() argument
282 .width = mf->width, in mt9m001_s_fmt()
283 .height = mf->height, in mt9m001_s_fmt()
291 mf->width = mt9m001->rect.width; in mt9m001_s_fmt()
[all …]
Drj54n1cb0c.c605 struct v4l2_mbus_framefmt *mf = &format->format; in rj54n1_get_fmt() local
612 mf->code = rj54n1->fmt->code; in rj54n1_get_fmt()
613 mf->colorspace = rj54n1->fmt->colorspace; in rj54n1_get_fmt()
614 mf->field = V4L2_FIELD_NONE; in rj54n1_get_fmt()
615 mf->width = rj54n1->width; in rj54n1_get_fmt()
616 mf->height = rj54n1->height; in rj54n1_get_fmt()
972 struct v4l2_mbus_framefmt *mf = &format->format; in rj54n1_set_fmt() local
978 int align = mf->code == MEDIA_BUS_FMT_SBGGR10_1X10 || in rj54n1_set_fmt()
979 mf->code == MEDIA_BUS_FMT_SBGGR10_2X8_PADHI_BE || in rj54n1_set_fmt()
980 mf->code == MEDIA_BUS_FMT_SBGGR10_2X8_PADLO_BE || in rj54n1_set_fmt()
[all …]
Dov772x.c680 static void ov772x_select_params(const struct v4l2_mbus_framefmt *mf, in ov772x_select_params() argument
690 if (mf->code == ov772x_cfmts[i].code) { in ov772x_select_params()
697 *win = ov772x_select_win(mf->width, mf->height); in ov772x_select_params()
883 struct v4l2_mbus_framefmt *mf = &format->format; in ov772x_get_fmt() local
889 mf->width = priv->win->rect.width; in ov772x_get_fmt()
890 mf->height = priv->win->rect.height; in ov772x_get_fmt()
891 mf->code = priv->cfmt->code; in ov772x_get_fmt()
892 mf->colorspace = priv->cfmt->colorspace; in ov772x_get_fmt()
893 mf->field = V4L2_FIELD_NONE; in ov772x_get_fmt()
898 static int ov772x_s_fmt(struct v4l2_subdev *sd, struct v4l2_mbus_framefmt *mf) in ov772x_s_fmt() argument
[all …]
Dov6650.c506 struct v4l2_mbus_framefmt *mf = &format->format; in ov6650_get_fmt() local
513 mf->width = priv->rect.width >> priv->half_scale; in ov6650_get_fmt()
514 mf->height = priv->rect.height >> priv->half_scale; in ov6650_get_fmt()
515 mf->code = priv->code; in ov6650_get_fmt()
516 mf->colorspace = priv->colorspace; in ov6650_get_fmt()
517 mf->field = V4L2_FIELD_NONE; in ov6650_get_fmt()
545 static int ov6650_s_fmt(struct v4l2_subdev *sd, struct v4l2_mbus_framefmt *mf) in ov6650_s_fmt() argument
551 bool half_scale = !is_unscaled_ok(mf->width, mf->height, &priv->rect); in ov6650_s_fmt()
556 (mf->width >> (1 - half_scale)), in ov6650_s_fmt()
558 (mf->height >> (1 - half_scale)), in ov6650_s_fmt()
[all …]
Dmt9v022.c382 struct v4l2_mbus_framefmt *mf = &format->format; in mt9v022_get_fmt() local
389 mf->width = mt9v022->rect.width; in mt9v022_get_fmt()
390 mf->height = mt9v022->rect.height; in mt9v022_get_fmt()
391 mf->code = mt9v022->fmt->code; in mt9v022_get_fmt()
392 mf->colorspace = mt9v022->fmt->colorspace; in mt9v022_get_fmt()
393 mf->field = V4L2_FIELD_NONE; in mt9v022_get_fmt()
399 struct v4l2_mbus_framefmt *mf) in mt9v022_s_fmt() argument
407 .width = mf->width, in mt9v022_s_fmt()
408 .height = mf->height, in mt9v022_s_fmt()
417 switch (mf->code) { in mt9v022_s_fmt()
[all …]
Dov9640.c485 struct v4l2_mbus_framefmt *mf) in ov9640_s_fmt() argument
490 u32 code = mf->code; in ov9640_s_fmt()
493 ov9640_res_roundup(&mf->width, &mf->height); in ov9640_s_fmt()
494 ov9640_alter_regs(mf->code, &alts); in ov9640_s_fmt()
513 ret = ov9640_write_regs(client, mf->width, code, &alts); in ov9640_s_fmt()
515 mf->code = code; in ov9640_s_fmt()
516 mf->colorspace = cspace; in ov9640_s_fmt()
526 struct v4l2_mbus_framefmt *mf = &format->format; in ov9640_set_fmt() local
531 ov9640_res_roundup(&mf->width, &mf->height); in ov9640_set_fmt()
533 mf->field = V4L2_FIELD_NONE; in ov9640_set_fmt()
[all …]
Dov5642.c793 struct v4l2_mbus_framefmt *mf = &format->format; in ov5642_set_fmt() local
796 const struct ov5642_datafmt *fmt = ov5642_find_datafmt(mf->code); in ov5642_set_fmt()
801 mf->width = priv->crop_rect.width; in ov5642_set_fmt()
802 mf->height = priv->crop_rect.height; in ov5642_set_fmt()
807 mf->code = ov5642_colour_fmts[0].code; in ov5642_set_fmt()
808 mf->colorspace = ov5642_colour_fmts[0].colorspace; in ov5642_set_fmt()
811 mf->field = V4L2_FIELD_NONE; in ov5642_set_fmt()
814 priv->fmt = ov5642_find_datafmt(mf->code); in ov5642_set_fmt()
816 cfg->try_fmt = *mf; in ov5642_set_fmt()
824 struct v4l2_mbus_framefmt *mf = &format->format; in ov5642_get_fmt() local
[all …]
Dmt9m111.c454 struct v4l2_mbus_framefmt *mf = &format->format; in mt9m111_get_fmt() local
460 mf->width = mt9m111->width; in mt9m111_get_fmt()
461 mf->height = mt9m111->height; in mt9m111_get_fmt()
462 mf->code = mt9m111->fmt->code; in mt9m111_get_fmt()
463 mf->colorspace = mt9m111->fmt->colorspace; in mt9m111_get_fmt()
464 mf->field = V4L2_FIELD_NONE; in mt9m111_get_fmt()
543 struct v4l2_mbus_framefmt *mf = &format->format; in mt9m111_set_fmt() local
554 fmt = mt9m111_find_datafmt(mt9m111, mf->code); in mt9m111_set_fmt()
570 mf->width = rect->width; in mt9m111_set_fmt()
571 mf->height = rect->height; in mt9m111_set_fmt()
[all …]
Dov9740.c672 struct v4l2_mbus_framefmt *mf) in ov9740_s_fmt() argument
677 u32 code = mf->code; in ov9740_s_fmt()
680 ov9740_res_roundup(&mf->width, &mf->height); in ov9740_s_fmt()
695 ret = ov9740_set_res(client, mf->width, mf->height); in ov9740_s_fmt()
699 mf->code = code; in ov9740_s_fmt()
700 mf->colorspace = cspace; in ov9740_s_fmt()
702 memcpy(&priv->current_mf, mf, sizeof(struct v4l2_mbus_framefmt)); in ov9740_s_fmt()
711 struct v4l2_mbus_framefmt *mf = &format->format; in ov9740_set_fmt() local
716 ov9740_res_roundup(&mf->width, &mf->height); in ov9740_set_fmt()
718 mf->field = V4L2_FIELD_NONE; in ov9740_set_fmt()
[all …]
Dov2640.c852 struct v4l2_mbus_framefmt *mf = &format->format; in ov2640_get_fmt() local
865 mf->width = priv->win->width; in ov2640_get_fmt()
866 mf->height = priv->win->height; in ov2640_get_fmt()
867 mf->code = priv->cfmt_code; in ov2640_get_fmt()
869 switch (mf->code) { in ov2640_get_fmt()
872 mf->colorspace = V4L2_COLORSPACE_SRGB; in ov2640_get_fmt()
877 mf->colorspace = V4L2_COLORSPACE_JPEG; in ov2640_get_fmt()
879 mf->field = V4L2_FIELD_NONE; in ov2640_get_fmt()
888 struct v4l2_mbus_framefmt *mf = &format->format; in ov2640_set_fmt() local
897 ov2640_select_win(&mf->width, &mf->height); in ov2640_set_fmt()
[all …]
Dmt9t112.c911 struct v4l2_mbus_framefmt *mf = &format->format; in mt9t112_get_fmt() local
918 mf->width = priv->frame.width; in mt9t112_get_fmt()
919 mf->height = priv->frame.height; in mt9t112_get_fmt()
920 mf->colorspace = priv->format->colorspace; in mt9t112_get_fmt()
921 mf->code = priv->format->code; in mt9t112_get_fmt()
922 mf->field = V4L2_FIELD_NONE; in mt9t112_get_fmt()
928 struct v4l2_mbus_framefmt *mf) in mt9t112_s_fmt() argument
933 .width = mf->width, in mt9t112_s_fmt()
934 .height = mf->height, in mt9t112_s_fmt()
940 ret = mt9t112_set_params(priv, &rect, mf->code); in mt9t112_s_fmt()
[all …]
Dmt9t031.c344 struct v4l2_mbus_framefmt *mf = &format->format; in mt9t031_get_fmt() local
351 mf->width = mt9t031->rect.width / mt9t031->xskip; in mt9t031_get_fmt()
352 mf->height = mt9t031->rect.height / mt9t031->yskip; in mt9t031_get_fmt()
353 mf->code = MEDIA_BUS_FMT_SBGGR10_1X10; in mt9t031_get_fmt()
354 mf->colorspace = V4L2_COLORSPACE_SRGB; in mt9t031_get_fmt()
355 mf->field = V4L2_FIELD_NONE; in mt9t031_get_fmt()
368 struct v4l2_mbus_framefmt *mf = &format->format; in mt9t031_set_fmt() local
377 mf->code = MEDIA_BUS_FMT_SBGGR10_1X10; in mt9t031_set_fmt()
378 mf->colorspace = V4L2_COLORSPACE_SRGB; in mt9t031_set_fmt()
380 &mf->width, MT9T031_MIN_WIDTH, MT9T031_MAX_WIDTH, 1, in mt9t031_set_fmt()
[all …]
/linux-4.4.14/drivers/video/fbdev/omap2/dss/
Dhdmi_pll.c47 unsigned n, m, mf, m2, sd; in hdmi_pll_compute() local
74 mf = 0; in hdmi_pll_compute()
76 mf = (u32)div_u64(262144ull * (target_clkdco - clkdco), fint); in hdmi_pll_compute()
78 if (mf > 0) in hdmi_pll_compute()
79 clkdco += (u32)div_u64((u64)mf * fint, 262144); in hdmi_pll_compute()
87 n, m, mf, m2, sd); in hdmi_pll_compute()
92 pi->mf = mf; in hdmi_pll_compute()
Ddss.h128 u32 mf; member
Dpll.c373 l = FLD_MOD(l, cinfo->mf, 17, 0); /* PLL_REGM_F */ in dss_pll_write_config_type_b()
/linux-4.4.14/drivers/media/platform/s3c-camif/
Dcamif-capture.c1236 struct v4l2_mbus_framefmt *mf = &fmt->format; in s3c_camif_subdev_get_fmt() local
1239 mf = v4l2_subdev_get_try_format(sd, cfg, fmt->pad); in s3c_camif_subdev_get_fmt()
1240 fmt->format = *mf; in s3c_camif_subdev_get_fmt()
1249 *mf = camif->mbus_fmt; in s3c_camif_subdev_get_fmt()
1254 mf->width = camif->camif_crop.width; in s3c_camif_subdev_get_fmt()
1255 mf->height = camif->camif_crop.height; in s3c_camif_subdev_get_fmt()
1256 mf->code = camif->mbus_fmt.code; in s3c_camif_subdev_get_fmt()
1261 mf->field = V4L2_FIELD_NONE; in s3c_camif_subdev_get_fmt()
1262 mf->colorspace = V4L2_COLORSPACE_JPEG; in s3c_camif_subdev_get_fmt()
1267 struct v4l2_mbus_framefmt *mf, int pad) in __camif_subdev_try_format() argument
[all …]
Dcamif-regs.c108 struct v4l2_mbus_framefmt *mf = &camif->mbus_fmt; in camif_hw_set_source_format() local
113 if (src_pixfmt_map[i][0] == mf->code) in camif_hw_set_source_format()
125 cfg |= (mf->width << 16) | mf->height; in camif_hw_set_source_format()
133 struct v4l2_mbus_framefmt *mf = &camif->mbus_fmt; in camif_hw_set_camera_crop() local
147 hoff2 = mf->width - crop->width - crop->left; in camif_hw_set_camera_crop()
148 voff2 = mf->height - crop->height - crop->top; in camif_hw_set_camera_crop()
/linux-4.4.14/drivers/message/fusion/
Dmptscsih.c88 int mptscsih_io_done(MPT_ADAPTER *ioc, MPT_FRAME_HDR *mf, MPT_FRAME_HDR *r);
90 int mptscsih_taskmgmt_complete(MPT_ADAPTER *ioc, MPT_FRAME_HDR *mf, MPT_FRAME_HDR *r);
95 static void mptscsih_copy_sense_data(struct scsi_cmnd *sc, MPT_SCSI_HOST *hd, MPT_FRAME_HDR *mf, SC…
107 int mptscsih_scandv_complete(MPT_ADAPTER *ioc, MPT_FRAME_HDR *mf, MPT_FRAME_HDR *r);
395 MPT_FRAME_HDR *mf; in mptscsih_issue_sep_command() local
406 if ((mf = mpt_get_msg_frame(ioc->InternalCtx, ioc)) == NULL) { in mptscsih_issue_sep_command()
412 SEPMsg = (SEPRequest_t *)mf; in mptscsih_issue_sep_command()
421 mpt_put_msg_frame(ioc->DoneCtx, ioc, mf); in mptscsih_issue_sep_command()
588 mptscsih_io_done(MPT_ADAPTER *ioc, MPT_FRAME_HDR *mf, MPT_FRAME_HDR *mr) in mptscsih_io_done() argument
599 req_idx = le16_to_cpu(mf->u.frame.hwhdr.msgctxu.fld.req_idx); in mptscsih_io_done()
[all …]
Dmptctl.c286 mptctl_taskmgmt_reply(MPT_ADAPTER *ioc, MPT_FRAME_HDR *mf, MPT_FRAME_HDR *mr) in mptctl_taskmgmt_reply() argument
288 if (!mf) in mptctl_taskmgmt_reply()
293 ioc->name, mf, mr)); in mptctl_taskmgmt_reply()
318 MPT_FRAME_HDR *mf; in mptctl_do_taskmgmt() local
336 mf = mpt_get_msg_frame(mptctl_taskmgmt_id, ioc); in mptctl_do_taskmgmt()
337 if (mf == NULL) { in mptctl_do_taskmgmt()
347 ioc->name, mf)); in mptctl_do_taskmgmt()
349 pScsiTm = (SCSITaskMgmt_t *) mf; in mptctl_do_taskmgmt()
389 mpt_put_msg_frame_hi_pri(mptctl_taskmgmt_id, ioc, mf); in mptctl_do_taskmgmt()
398 ioc, mf, retval)); in mptctl_do_taskmgmt()
[all …]
Dmptscsih.h126 extern int mptscsih_io_done(MPT_ADAPTER *ioc, MPT_FRAME_HDR *mf, MPT_FRAME_HDR *r);
127 extern int mptscsih_taskmgmt_complete(MPT_ADAPTER *ioc, MPT_FRAME_HDR *mf, MPT_FRAME_HDR *r);
128 extern int mptscsih_scandv_complete(MPT_ADAPTER *ioc, MPT_FRAME_HDR *mf, MPT_FRAME_HDR *r);
Dmptlan.c129 static int lan_reply (MPT_ADAPTER *ioc, MPT_FRAME_HDR *mf,
168 lan_reply (MPT_ADAPTER *ioc, MPT_FRAME_HDR *mf, MPT_FRAME_HDR *reply) in lan_reply() argument
179 if (mf == NULL) { in lan_reply()
465 MPT_FRAME_HDR *mf; in mpt_lan_reset() local
469 mf = mpt_get_msg_frame(LanCtx, priv->mpt_dev); in mpt_lan_reset()
471 if (mf == NULL) { in mpt_lan_reset()
478 pResetReq = (LANResetRequest_t *) mf; in mpt_lan_reset()
487 mpt_put_msg_frame(LanCtx, priv->mpt_dev, mf); in mpt_lan_reset()
688 MPT_FRAME_HDR *mf; in mpt_lan_sdu_send() local
711 mf = mpt_get_msg_frame(LanCtx, mpt_dev); in mpt_lan_sdu_send()
[all …]
Dmptbase.c208 static void mpt_iocstatus_info(MPT_ADAPTER *ioc, u32 ioc_status, MPT_FRAME_HDR *mf);
445 MPT_FRAME_HDR *mf = NULL; in mpt_turbo_reply() local
457 mf = MPT_INDEX_2_MFPTR(ioc, req_idx); in mpt_turbo_reply()
472 mf = MPT_INDEX_2_MFPTR(ioc, req_idx); in mpt_turbo_reply()
473 mpt_free_msg_frame(ioc, mf); in mpt_turbo_reply()
497 if (MptCallbacks[cb_idx](ioc, mf, mr)) in mpt_turbo_reply()
498 mpt_free_msg_frame(ioc, mf); in mpt_turbo_reply()
506 MPT_FRAME_HDR *mf; in mpt_reply() local
531 mf = MPT_INDEX_2_MFPTR(ioc, req_idx); in mpt_reply()
551 mpt_iocstatus_info(ioc, (u32)ioc_stat, mf); in mpt_reply()
[all …]
Dmptsas.c1042 MPT_FRAME_HDR *mf; in mptsas_target_reset() local
1048 mf = mpt_get_msg_frame(mptsasDeviceResetCtx, ioc); in mptsas_target_reset()
1049 if (mf == NULL) { in mptsas_target_reset()
1057 ioc->name, mf)); in mptsas_target_reset()
1061 pScsiTm = (SCSITaskMgmt_t *) mf; in mptsas_target_reset()
1069 DBG_DUMP_TM_REQUEST_FRAME(ioc, (u32 *)mf); in mptsas_target_reset()
1075 mpt_put_msg_frame_hi_pri(mptsasDeviceResetCtx, ioc, mf); in mptsas_target_reset()
1194 mptsas_taskmgmt_complete(MPT_ADAPTER *ioc, MPT_FRAME_HDR *mf, MPT_FRAME_HDR *mr) in mptsas_taskmgmt_complete() argument
1203 "(mf = %p, mr = %p)\n", ioc->name, mf, mr)); in mptsas_taskmgmt_complete()
2084 MPT_FRAME_HDR *mf; in mptsas_phy_reset() local
[all …]
Dmptbase.h844 #define MFPTR_2_MPT_INDEX(ioc,mf) \ argument
845 (int)( ((u8*)mf - (u8*)(ioc)->req_frames) / (ioc)->req_sz )
926 extern void mpt_free_msg_frame(MPT_ADAPTER *ioc, MPT_FRAME_HDR *mf);
927 extern void mpt_put_msg_frame(u8 cb_idx, MPT_ADAPTER *ioc, MPT_FRAME_HDR *mf);
928 extern void mpt_put_msg_frame_hi_pri(u8 cb_idx, MPT_ADAPTER *ioc, MPT_FRAME_HDR *mf);
Dmptspi.c259 MPT_FRAME_HDR *mf; in mptspi_writeIOCPage4() local
268 if ((mf = mpt_get_msg_frame(ioc->DoneCtx, ioc)) == NULL) { in mptspi_writeIOCPage4()
277 pReq = (Config_t *)mf; in mptspi_writeIOCPage4()
279 req_idx = le16_to_cpu(mf->u.frame.hwhdr.msgctxu.fld.req_idx); in mptspi_writeIOCPage4()
314 mpt_put_msg_frame(ioc->DoneCtx, ioc, mf); in mptspi_writeIOCPage4()
627 MPT_FRAME_HDR *mf; in mptscsih_quiesce_raid() local
635 if ((mf = mpt_get_msg_frame(ioc->InternalCtx, ioc)) == NULL) { in mptscsih_quiesce_raid()
641 pReq = (MpiRaidActionRequest_t *)mf; in mptscsih_quiesce_raid()
663 mpt_put_msg_frame(ioc->InternalCtx, ioc, mf); in mptscsih_quiesce_raid()
675 mpt_free_msg_frame(ioc, mf); in mptscsih_quiesce_raid()
/linux-4.4.14/arch/m68k/68360/
Dconfig.c142 int mf = (int)(pquicc->sim_pllcr & 0x0fff); in _bsc0() local
143 system_clock = (OSCILLATOR / 128) * (mf + 1); in _bsc0()
147 int mf = (int)(pquicc->sim_pllcr & 0x0fff); in _bsc0() local
148 system_clock = (OSCILLATOR) * (mf + 1); in _bsc0()
/linux-4.4.14/include/media/
Dsoc_mediabus.h104 s32 soc_mbus_bytes_per_line(u32 width, const struct soc_mbus_pixelfmt *mf);
105 s32 soc_mbus_image_size(const struct soc_mbus_pixelfmt *mf,
107 int soc_mbus_samples_per_pixel(const struct soc_mbus_pixelfmt *mf,
/linux-4.4.14/drivers/media/i2c/s5c73m3/
Ds5c73m3-core.c121 static void s5c73m3_fill_mbus_fmt(struct v4l2_mbus_framefmt *mf, in s5c73m3_fill_mbus_fmt() argument
125 mf->width = fs->width; in s5c73m3_fill_mbus_fmt()
126 mf->height = fs->height; in s5c73m3_fill_mbus_fmt()
127 mf->code = code; in s5c73m3_fill_mbus_fmt()
128 mf->colorspace = V4L2_COLORSPACE_JPEG; in s5c73m3_fill_mbus_fmt()
129 mf->field = V4L2_FIELD_NONE; in s5c73m3_fill_mbus_fmt()
1071 struct v4l2_mbus_framefmt *mf; in s5c73m3_set_fmt() local
1079 mf = v4l2_subdev_get_try_format(sd, cfg, fmt->pad); in s5c73m3_set_fmt()
1080 *mf = fmt->format; in s5c73m3_set_fmt()
1110 struct v4l2_mbus_framefmt *mf; in s5c73m3_oif_set_fmt() local
[all …]
/linux-4.4.14/drivers/clk/rockchip/
Dclk.h240 #define COMPOSITE(_id, cname, pnames, f, mo, ms, mw, mf, ds, dw,\ argument
252 .mux_flags = mf, \
298 #define COMPOSITE_NODIV(_id, cname, pnames, f, mo, ms, mw, mf, \ argument
310 .mux_flags = mf, \
316 #define COMPOSITE_NOGATE(_id, cname, pnames, f, mo, ms, mw, mf, \ argument
328 .mux_flags = mf, \
336 mw, mf, ds, dw, df, dt) \ argument
347 .mux_flags = mf, \
372 #define MUX(_id, cname, pnames, f, o, s, w, mf) \ argument
383 .mux_flags = mf, \
/linux-4.4.14/drivers/clk/samsung/
Dclk.h135 #define __MUX(_id, dname, cname, pnames, o, s, w, f, mf, a) \ argument
146 .mux_flags = mf, \
156 #define MUX_F(_id, cname, pnames, o, s, w, f, mf) \ argument
157 __MUX(_id, NULL, cname, pnames, o, s, w, f, mf, NULL)
159 #define MUX_FA(_id, cname, pnames, o, s, w, f, mf, a) \ argument
160 __MUX(_id, NULL, cname, pnames, o, s, w, f, mf, a)
/linux-4.4.14/drivers/media/i2c/m5mols/
Dm5mols_core.c499 struct v4l2_mbus_framefmt *mf, in __find_resolution() argument
505 enum m5mols_restype stype = __find_restype(mf->code); in __find_resolution()
512 err = abs(fsize->width - mf->width) in __find_resolution()
513 + abs(fsize->height - mf->height); in __find_resolution()
523 mf->width = match->width; in __find_resolution()
524 mf->height = match->height; in __find_resolution()
624 struct v4l2_mbus_framefmt *mf = &info->ffmt[M5MOLS_RESTYPE_CAPTURE]; in m5mols_set_frame_desc() local
632 mf->width * mf->height, in m5mols_set_frame_desc()
/linux-4.4.14/drivers/scsi/mpt3sas/
Dmpt3sas_ctl.h264 uint8_t mf[1]; member
280 uint8_t mf[1]; member
Dmpt3sas_ctl.c624 void __user *mf) in _ctl_do_mpt_command() argument
691 if (copy_from_user(mpi_request, mf, karg.data_sge_offset*4)) { in _ctl_do_mpt_command()
2195 return _ctl_do_mpt_command(ioc, karg, &uarg->mf); in _ctl_compat_mpt_command()
2278 ret = _ctl_do_mpt_command(ioc, karg, &uarg->mf); in _ctl_ioctl_main()
/linux-4.4.14/include/linux/phy/
Domap_usb.h30 u32 mf; member
/linux-4.4.14/drivers/net/ethernet/apple/
Dmacmace.c641 static void mace_dma_rx_frame(struct net_device *dev, struct mace_frame *mf) in mace_dma_rx_frame() argument
644 unsigned int frame_status = mf->rcvsts; in mace_dma_rx_frame()
659 unsigned int frame_length = mf->rcvcnt + ((frame_status & 0x0F) << 8 ); in mace_dma_rx_frame()
667 memcpy(skb_put(skb, frame_length), mf->data, frame_length); in mace_dma_rx_frame()
/linux-4.4.14/Documentation/devicetree/bindings/clock/
Dprima2-clock.txt25 mf 10
/linux-4.4.14/drivers/block/paride/
Dpg.c441 char mf[10], id[18]; in pg_identify() local
453 xs(buf + 8, mf, 8); in pg_identify()
455 printk("%s: %s %s, %s\n", dev->name, mf, id, ms[dev->drive]); in pg_identify()
Dpf.c629 char mf[10], id[18]; in pf_identify() local
646 xs(buf, mf, 8, 8); in pf_identify()
658 pf->name, mf, id, ms[pf->drive], pf->lun, dt); in pf_identify()
Dpt.c532 char mf[10], id[18]; in pt_identify() local
552 xs(buf, mf, 8, 8); in pt_identify()
571 printk("%s: %s %s, %s", tape->name, mf, id, ms[tape->drive]); in pt_identify()
/linux-4.4.14/arch/tile/lib/
Datomic_asm_32.S117 mf
/linux-4.4.14/drivers/usb/misc/
Dusbsevseg.c120 static void update_display_visual(struct usb_sevsegdev *mydev, gfp_t mf) in update_display_visual() argument
130 buffer = kzalloc(MAXLEN, mf); in update_display_visual()
/linux-4.4.14/drivers/clk/sirf/
Dclk-prima2.c62 mf, io, cpu, uart0, uart1, uart2, tsc, i2c0, i2c1, spi0, enumerator
Dclk-atlas6.c63 mf, io, cpu, uart0, uart1, uart2, tsc, i2c0, i2c1, spi0, enumerator
/linux-4.4.14/drivers/phy/
Dphy-ti-pipe3.c72 u32 mf; member
206 val |= dpll_params->mf << PLL_REGM_F_SHIFT; in ti_pipe3_dpll_program()
/linux-4.4.14/drivers/net/wireless/realtek/rtl8xxxu/
Drtl8xxxu.h91 u32 mf:1; member
146 u32 mf:1;
/linux-4.4.14/arch/powerpc/kernel/
Dswsusp_asm64.S63 mf##special r0 ;\
/linux-4.4.14/arch/tile/kernel/
Drelocate_kernel_64.S158 mf
Drelocate_kernel_32.S155 mf
Dintvec_32.S1680 mf
1815 mf
/linux-4.4.14/drivers/staging/rtl8723au/hal/
Drtl8723au_recv.c174 pattrib->mfrag = (u8)prxreport->mf; in update_recvframe_attrib()
/linux-4.4.14/drivers/staging/rtl8712/
Drtl8712_recv.c1012 u8 frag, mf; in recvbuf2recvframe() local
1040 mf = (le32_to_cpu(prxstat->rxdw1) >> 27) & 0x1; in recvbuf2recvframe()
1061 if ((mf == 1) && (frag == 0)) in recvbuf2recvframe()
/linux-4.4.14/drivers/staging/rtl8723au/include/
Drtl8723a_hal.h439 u32 mf:1; member
/linux-4.4.14/drivers/net/usb/
Dkaweth.c490 static void kaweth_resubmit_int_urb(struct kaweth_device *kaweth, gfp_t mf) in kaweth_resubmit_int_urb() argument
494 status = usb_submit_urb (kaweth->irq_urb, mf); in kaweth_resubmit_int_urb()
/linux-4.4.14/drivers/media/tuners/
Dmt2063.c723 u32 ma, mb, mc, md, me, mf; in IsSpurInBand() local
778 mf = (n * ((f_LO1 + hgfs) / gf_Scale) - in IsSpurInBand()
780 if (me != mf) { in IsSpurInBand()
/linux-4.4.14/arch/ia64/kernel/
Dfsys.S265 mf
/linux-4.4.14/Documentation/
Ddynamic-debug-howto.txt331 nullarbor:~ # echo -n '+mf' > <debugfs>/dynamic_debug/control
/linux-4.4.14/drivers/video/fbdev/sis/
Dinit.c2208 unsigned short mf = SiS_GetModeFlag(SiS_Pr, ModeNo, ModeIdIndex); in SiS_SetCRT1VCLK() local
2209 if(mf & HalfDCLK) { in SiS_SetCRT1VCLK()