/linux-4.1.27/drivers/media/platform/soc_camera/ |
D | soc_scale_crop.c | 218 struct v4l2_mbus_framefmt *mf, bool host_can_scale) in client_s_fmt() argument 222 unsigned int width = mf->width, height = mf->height, tmp_w, tmp_h; in client_s_fmt() 229 s_mbus_fmt, mf); in client_s_fmt() 233 dev_geo(dev, "camera scaled to %ux%u\n", mf->width, mf->height); in client_s_fmt() 235 if (width == mf->width && height == mf->height) { in client_s_fmt() 257 tmp_w = mf->width; in client_s_fmt() 258 tmp_h = mf->height; in client_s_fmt() 265 mf->width = tmp_w; in client_s_fmt() 266 mf->height = tmp_h; in client_s_fmt() 269 s_mbus_fmt, mf); in client_s_fmt() [all …]
|
D | rcar_vin.c | 1344 struct v4l2_mbus_framefmt mf; in rcar_vin_get_formats() local 1349 ret = v4l2_subdev_call(sd, video, g_mbus_fmt, &mf); in rcar_vin_get_formats() 1359 rect.width = mf.width; in rcar_vin_get_formats() 1360 rect.height = mf.height; in rcar_vin_get_formats() 1370 if (mf.width <= VIN_MAX_WIDTH && in rcar_vin_get_formats() 1371 mf.height <= VIN_MAX_HEIGHT) in rcar_vin_get_formats() 1374 mf.width = 1280 >> shift; in rcar_vin_get_formats() 1375 mf.height = 960 >> shift; in rcar_vin_get_formats() 1379 &mf); in rcar_vin_get_formats() 1387 mf.width, mf.height); in rcar_vin_get_formats() [all …]
|
D | sh_mobile_csi2.c | 49 struct v4l2_mbus_framefmt *mf) in sh_csi2_try_fmt() argument 54 if (mf->width > 8188) in sh_csi2_try_fmt() 55 mf->width = 8188; in sh_csi2_try_fmt() 56 else if (mf->width & 1) in sh_csi2_try_fmt() 57 mf->width &= ~1; in sh_csi2_try_fmt() 61 switch (mf->code) { in sh_csi2_try_fmt() 70 mf->code = MEDIA_BUS_FMT_YUYV8_2X8; in sh_csi2_try_fmt() 74 switch (mf->code) { in sh_csi2_try_fmt() 83 mf->code = MEDIA_BUS_FMT_SBGGR8_1X8; in sh_csi2_try_fmt() 97 struct v4l2_mbus_framefmt *mf) in sh_csi2_s_fmt() argument [all …]
|
D | sh_mobile_ceu_camera.c | 1073 struct v4l2_mbus_framefmt mf; in sh_mobile_ceu_get_formats() local 1091 ret = v4l2_subdev_call(sd, video, g_mbus_fmt, &mf); in sh_mobile_ceu_get_formats() 1102 while ((mf.width > pcdev->max_width || in sh_mobile_ceu_get_formats() 1103 mf.height > pcdev->max_height) && shift < 4) { in sh_mobile_ceu_get_formats() 1105 mf.width = 2560 >> shift; in sh_mobile_ceu_get_formats() 1106 mf.height = 1920 >> shift; in sh_mobile_ceu_get_formats() 1109 s_mbus_fmt, &mf); in sh_mobile_ceu_get_formats() 1117 mf.width, mf.height); in sh_mobile_ceu_get_formats() 1121 dev_geo(dev, "camera fmt %ux%u\n", mf.width, mf.height); in sh_mobile_ceu_get_formats() 1131 cam->width = mf.width; in sh_mobile_ceu_get_formats() [all …]
|
D | mx3_camera.c | 804 struct v4l2_mbus_framefmt mf; in mx3_camera_set_crop() local 815 ret = v4l2_subdev_call(sd, video, g_mbus_fmt, &mf); in mx3_camera_set_crop() 819 if (mf.code != icd->current_fmt->code) in mx3_camera_set_crop() 822 if (mf.width & 7) { in mx3_camera_set_crop() 824 stride_align(&mf.width); in mx3_camera_set_crop() 825 ret = v4l2_subdev_call(sd, video, s_mbus_fmt, &mf); in mx3_camera_set_crop() 830 if (mf.width != icd->user_width || mf.height != icd->user_height) in mx3_camera_set_crop() 831 configure_geometry(mx3_cam, mf.width, mf.height, in mx3_camera_set_crop() 835 mf.width, mf.height); in mx3_camera_set_crop() 837 icd->user_width = mf.width; in mx3_camera_set_crop() [all …]
|
D | omap1_camera.c | 1184 struct v4l2_mbus_framefmt *mf, in set_mbus_format() argument 1188 int ret = subdev_call_with_sense(pcdev, dev, icd, sd, s_mbus_fmt, mf); in set_mbus_format() 1195 if (mf->code != xlate->code) { in set_mbus_format() 1200 bytes_per_line = soc_mbus_bytes_per_line(mf->width, xlate->host_fmt); in set_mbus_format() 1207 if (!is_dma_aligned(bytes_per_line, mf->height, pcdev->vb_mode)) { in set_mbus_format() 1209 __func__, mf->width, mf->height); in set_mbus_format() 1224 struct v4l2_mbus_framefmt mf; in omap1_cam_set_crop() local 1234 ret = v4l2_subdev_call(sd, video, g_mbus_fmt, &mf); in omap1_cam_set_crop() 1240 ret = dma_align(&mf.width, &mf.height, xlate->host_fmt, pcdev->vb_mode, in omap1_cam_set_crop() 1244 __func__, mf.width, mf.height, in omap1_cam_set_crop() [all …]
|
D | mx2_camera.c | 915 struct v4l2_mbus_framefmt mf; in mx2_camera_set_crop() local 926 ret = v4l2_subdev_call(sd, video, g_mbus_fmt, &mf); in mx2_camera_set_crop() 931 mf.width, mf.height); in mx2_camera_set_crop() 933 icd->user_width = mf.width; in mx2_camera_set_crop() 934 icd->user_height = mf.height; in mx2_camera_set_crop() 1124 struct v4l2_mbus_framefmt mf; in mx2_camera_set_fmt() local 1137 mf.width = pix->width; in mx2_camera_set_fmt() 1138 mf.height = pix->height; in mx2_camera_set_fmt() 1139 mf.field = pix->field; in mx2_camera_set_fmt() 1140 mf.colorspace = pix->colorspace; in mx2_camera_set_fmt() [all …]
|
D | pxa_camera.c | 1349 struct v4l2_mbus_framefmt mf; in pxa_camera_set_crop() local 1368 ret = v4l2_subdev_call(sd, video, g_mbus_fmt, &mf); in pxa_camera_set_crop() 1372 if (pxa_camera_check_frame(mf.width, mf.height)) { in pxa_camera_set_crop() 1377 v4l_bound_align_image(&mf.width, 48, 2048, 1, in pxa_camera_set_crop() 1378 &mf.height, 32, 2048, 0, in pxa_camera_set_crop() 1380 ret = v4l2_subdev_call(sd, video, s_mbus_fmt, &mf); in pxa_camera_set_crop() 1384 if (pxa_camera_check_frame(mf.width, mf.height)) { in pxa_camera_set_crop() 1401 icd->user_width = mf.width; in pxa_camera_set_crop() 1402 icd->user_height = mf.height; in pxa_camera_set_crop() 1422 struct v4l2_mbus_framefmt mf; in pxa_camera_set_fmt() local [all …]
|
D | atmel-isi.c | 490 struct v4l2_mbus_framefmt mf; in isi_camera_set_fmt() local 503 mf.width = pix->width; in isi_camera_set_fmt() 504 mf.height = pix->height; in isi_camera_set_fmt() 505 mf.field = pix->field; in isi_camera_set_fmt() 506 mf.colorspace = pix->colorspace; in isi_camera_set_fmt() 507 mf.code = xlate->code; in isi_camera_set_fmt() 509 ret = v4l2_subdev_call(sd, video, s_mbus_fmt, &mf); in isi_camera_set_fmt() 513 if (mf.code != xlate->code) in isi_camera_set_fmt() 520 pix->width = mf.width; in isi_camera_set_fmt() 521 pix->height = mf.height; in isi_camera_set_fmt() [all …]
|
D | soc_camera_platform.c | 40 struct v4l2_mbus_framefmt *mf) in soc_camera_platform_fill_fmt() argument 44 mf->width = p->format.width; in soc_camera_platform_fill_fmt() 45 mf->height = p->format.height; in soc_camera_platform_fill_fmt() 46 mf->code = p->format.code; in soc_camera_platform_fill_fmt() 47 mf->colorspace = p->format.colorspace; in soc_camera_platform_fill_fmt() 48 mf->field = p->format.field; in soc_camera_platform_fill_fmt()
|
D | soc_mediabus.c | 388 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()
|
D | soc_scale_crop.h | 39 struct v4l2_mbus_framefmt *mf, 44 const struct v4l2_pix_format *pix, struct v4l2_mbus_framefmt *mf,
|
D | soc_camera.c | 1287 struct v4l2_mbus_framefmt mf; in soc_camera_probe_finish() local 1317 if (!v4l2_subdev_call(sd, video, g_mbus_fmt, &mf)) { in soc_camera_probe_finish() 1318 icd->user_width = mf.width; in soc_camera_probe_finish() 1319 icd->user_height = mf.height; in soc_camera_probe_finish() 1320 icd->colorspace = mf.colorspace; in soc_camera_probe_finish() 1321 icd->field = mf.field; in soc_camera_probe_finish()
|
/linux-4.1.27/drivers/media/i2c/soc_camera/ |
D | imx074.c | 157 struct v4l2_mbus_framefmt *mf) in imx074_try_fmt() argument 159 const struct imx074_datafmt *fmt = imx074_find_datafmt(mf->code); in imx074_try_fmt() 161 dev_dbg(sd->v4l2_dev->dev, "%s(%u)\n", __func__, mf->code); in imx074_try_fmt() 164 mf->code = imx074_colour_fmts[0].code; in imx074_try_fmt() 165 mf->colorspace = imx074_colour_fmts[0].colorspace; in imx074_try_fmt() 168 mf->width = IMX074_WIDTH; in imx074_try_fmt() 169 mf->height = IMX074_HEIGHT; in imx074_try_fmt() 170 mf->field = V4L2_FIELD_NONE; in imx074_try_fmt() 176 struct v4l2_mbus_framefmt *mf) in imx074_s_fmt() argument 181 dev_dbg(sd->v4l2_dev->dev, "%s(%u)\n", __func__, mf->code); in imx074_s_fmt() [all …]
|
D | tw9910.c | 695 struct v4l2_mbus_framefmt *mf) in tw9910_g_fmt() argument 706 mf->width = priv->scale->width; in tw9910_g_fmt() 707 mf->height = priv->scale->height; in tw9910_g_fmt() 708 mf->code = MEDIA_BUS_FMT_UYVY8_2X8; in tw9910_g_fmt() 709 mf->colorspace = V4L2_COLORSPACE_JPEG; in tw9910_g_fmt() 710 mf->field = V4L2_FIELD_INTERLACED_BT; in tw9910_g_fmt() 716 struct v4l2_mbus_framefmt *mf) in tw9910_s_fmt() argument 718 u32 width = mf->width, height = mf->height; in tw9910_s_fmt() 721 WARN_ON(mf->field != V4L2_FIELD_ANY && in tw9910_s_fmt() 722 mf->field != V4L2_FIELD_INTERLACED_BT); in tw9910_s_fmt() [all …]
|
D | rj54n1cb0c.c | 601 struct v4l2_mbus_framefmt *mf) in rj54n1_g_fmt() argument 606 mf->code = rj54n1->fmt->code; in rj54n1_g_fmt() 607 mf->colorspace = rj54n1->fmt->colorspace; in rj54n1_g_fmt() 608 mf->field = V4L2_FIELD_NONE; in rj54n1_g_fmt() 609 mf->width = rj54n1->width; in rj54n1_g_fmt() 610 mf->height = rj54n1->height; in rj54n1_g_fmt() 963 struct v4l2_mbus_framefmt *mf) in rj54n1_try_fmt() argument 968 int align = mf->code == MEDIA_BUS_FMT_SBGGR10_1X10 || in rj54n1_try_fmt() 969 mf->code == MEDIA_BUS_FMT_SBGGR10_2X8_PADHI_BE || in rj54n1_try_fmt() 970 mf->code == MEDIA_BUS_FMT_SBGGR10_2X8_PADLO_BE || in rj54n1_try_fmt() [all …]
|
D | ov5642.c | 790 struct v4l2_mbus_framefmt *mf) in ov5642_try_fmt() argument 794 const struct ov5642_datafmt *fmt = ov5642_find_datafmt(mf->code); in ov5642_try_fmt() 796 mf->width = priv->crop_rect.width; in ov5642_try_fmt() 797 mf->height = priv->crop_rect.height; in ov5642_try_fmt() 800 mf->code = ov5642_colour_fmts[0].code; in ov5642_try_fmt() 801 mf->colorspace = ov5642_colour_fmts[0].colorspace; in ov5642_try_fmt() 804 mf->field = V4L2_FIELD_NONE; in ov5642_try_fmt() 810 struct v4l2_mbus_framefmt *mf) in ov5642_s_fmt() argument 816 if (!ov5642_find_datafmt(mf->code)) in ov5642_s_fmt() 819 ov5642_try_fmt(sd, mf); in ov5642_s_fmt() [all …]
|
D | mt9m001.c | 254 struct v4l2_mbus_framefmt *mf) in mt9m001_g_fmt() argument 259 mf->width = mt9m001->rect.width; in mt9m001_g_fmt() 260 mf->height = mt9m001->rect.height; in mt9m001_g_fmt() 261 mf->code = mt9m001->fmt->code; in mt9m001_g_fmt() 262 mf->colorspace = mt9m001->fmt->colorspace; in mt9m001_g_fmt() 263 mf->field = V4L2_FIELD_NONE; in mt9m001_g_fmt() 269 struct v4l2_mbus_framefmt *mf) in mt9m001_s_fmt() argument 277 .width = mf->width, in mt9m001_s_fmt() 278 .height = mf->height, in mt9m001_s_fmt() 286 mf->width = mt9m001->rect.width; in mt9m001_s_fmt() [all …]
|
D | ov772x.c | 680 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() 880 struct v4l2_mbus_framefmt *mf) in ov772x_g_fmt() argument 884 mf->width = priv->win->rect.width; in ov772x_g_fmt() 885 mf->height = priv->win->rect.height; in ov772x_g_fmt() 886 mf->code = priv->cfmt->code; in ov772x_g_fmt() 887 mf->colorspace = priv->cfmt->colorspace; in ov772x_g_fmt() 888 mf->field = V4L2_FIELD_NONE; in ov772x_g_fmt() 893 static int ov772x_s_fmt(struct v4l2_subdev *sd, struct v4l2_mbus_framefmt *mf) in ov772x_s_fmt() argument [all …]
|
D | mt9m111.c | 451 struct v4l2_mbus_framefmt *mf) in mt9m111_g_fmt() argument 455 mf->width = mt9m111->width; in mt9m111_g_fmt() 456 mf->height = mt9m111->height; in mt9m111_g_fmt() 457 mf->code = mt9m111->fmt->code; in mt9m111_g_fmt() 458 mf->colorspace = mt9m111->fmt->colorspace; in mt9m111_g_fmt() 459 mf->field = V4L2_FIELD_NONE; in mt9m111_g_fmt() 535 struct v4l2_mbus_framefmt *mf) in mt9m111_try_fmt() argument 543 fmt = mt9m111_find_datafmt(mt9m111, mf->code); in mt9m111_try_fmt() 559 mf->width = rect->width; in mt9m111_try_fmt() 560 mf->height = rect->height; in mt9m111_try_fmt() [all …]
|
D | ov6650.c | 503 struct v4l2_mbus_framefmt *mf) in ov6650_g_fmt() argument 508 mf->width = priv->rect.width >> priv->half_scale; in ov6650_g_fmt() 509 mf->height = priv->rect.height >> priv->half_scale; in ov6650_g_fmt() 510 mf->code = priv->code; in ov6650_g_fmt() 511 mf->colorspace = priv->colorspace; in ov6650_g_fmt() 512 mf->field = V4L2_FIELD_NONE; in ov6650_g_fmt() 540 static int ov6650_s_fmt(struct v4l2_subdev *sd, struct v4l2_mbus_framefmt *mf) in ov6650_s_fmt() argument 546 bool half_scale = !is_unscaled_ok(mf->width, mf->height, &priv->rect); in ov6650_s_fmt() 551 (mf->width >> (1 - half_scale)), in ov6650_s_fmt() 553 (mf->height >> (1 - half_scale)), in ov6650_s_fmt() [all …]
|
D | ov2640.c | 849 struct v4l2_mbus_framefmt *mf) in ov2640_g_fmt() argument 860 mf->width = priv->win->width; in ov2640_g_fmt() 861 mf->height = priv->win->height; in ov2640_g_fmt() 862 mf->code = priv->cfmt_code; in ov2640_g_fmt() 864 switch (mf->code) { in ov2640_g_fmt() 867 mf->colorspace = V4L2_COLORSPACE_SRGB; in ov2640_g_fmt() 872 mf->colorspace = V4L2_COLORSPACE_JPEG; in ov2640_g_fmt() 874 mf->field = V4L2_FIELD_NONE; in ov2640_g_fmt() 880 struct v4l2_mbus_framefmt *mf) in ov2640_s_fmt() argument 886 switch (mf->code) { in ov2640_s_fmt() [all …]
|
D | mt9v022.c | 379 struct v4l2_mbus_framefmt *mf) in mt9v022_g_fmt() argument 384 mf->width = mt9v022->rect.width; in mt9v022_g_fmt() 385 mf->height = mt9v022->rect.height; in mt9v022_g_fmt() 386 mf->code = mt9v022->fmt->code; in mt9v022_g_fmt() 387 mf->colorspace = mt9v022->fmt->colorspace; in mt9v022_g_fmt() 388 mf->field = V4L2_FIELD_NONE; in mt9v022_g_fmt() 394 struct v4l2_mbus_framefmt *mf) in mt9v022_s_fmt() argument 402 .width = mf->width, in mt9v022_s_fmt() 403 .height = mf->height, in mt9v022_s_fmt() 412 switch (mf->code) { in mt9v022_s_fmt() [all …]
|
D | ov9640.c | 485 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() 523 struct v4l2_mbus_framefmt *mf) in ov9640_try_fmt() argument 525 ov9640_res_roundup(&mf->width, &mf->height); in ov9640_try_fmt() 527 mf->field = V4L2_FIELD_NONE; in ov9640_try_fmt() [all …]
|
D | mt9t031.c | 341 struct v4l2_mbus_framefmt *mf) in mt9t031_g_fmt() argument 346 mf->width = mt9t031->rect.width / mt9t031->xskip; in mt9t031_g_fmt() 347 mf->height = mt9t031->rect.height / mt9t031->yskip; in mt9t031_g_fmt() 348 mf->code = MEDIA_BUS_FMT_SBGGR10_1X10; in mt9t031_g_fmt() 349 mf->colorspace = V4L2_COLORSPACE_SRGB; in mt9t031_g_fmt() 350 mf->field = V4L2_FIELD_NONE; in mt9t031_g_fmt() 356 struct v4l2_mbus_framefmt *mf) in mt9t031_s_fmt() argument 367 xskip = mt9t031_skip(&rect.width, mf->width, MT9T031_MAX_WIDTH); in mt9t031_s_fmt() 368 yskip = mt9t031_skip(&rect.height, mf->height, MT9T031_MAX_HEIGHT); in mt9t031_s_fmt() 370 mf->code = MEDIA_BUS_FMT_SBGGR10_1X10; in mt9t031_s_fmt() [all …]
|
D | ov9740.c | 672 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() 708 struct v4l2_mbus_framefmt *mf) in ov9740_try_fmt() argument 710 ov9740_res_roundup(&mf->width, &mf->height); in ov9740_try_fmt() 712 mf->field = V4L2_FIELD_NONE; in ov9740_try_fmt() [all …]
|
D | mt9t112.c | 908 struct v4l2_mbus_framefmt *mf) in mt9t112_g_fmt() argument 913 mf->width = priv->frame.width; in mt9t112_g_fmt() 914 mf->height = priv->frame.height; in mt9t112_g_fmt() 915 mf->colorspace = priv->format->colorspace; in mt9t112_g_fmt() 916 mf->code = priv->format->code; in mt9t112_g_fmt() 917 mf->field = V4L2_FIELD_NONE; in mt9t112_g_fmt() 923 struct v4l2_mbus_framefmt *mf) in mt9t112_s_fmt() argument 928 .width = mf->width, in mt9t112_s_fmt() 929 .height = mf->height, in mt9t112_s_fmt() 935 ret = mt9t112_set_params(priv, &rect, mf->code); in mt9t112_s_fmt() [all …]
|
/linux-4.1.27/drivers/media/platform/exynos4-is/ |
D | fimc-isp.c | 132 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 …]
|
D | mipi-csis.c | 283 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 …]
|
D | fimc-capture.c | 789 struct v4l2_mbus_framefmt *mf = &sfmt.format; in fimc_pipeline_try_format() local 806 ffmt = fimc_find_format(NULL, mf->code != 0 ? &mf->code : NULL, in fimc_pipeline_try_format() 815 mf->code = tfmt->code = ffmt->mbus_code; in fimc_pipeline_try_format() 828 mf->code = tfmt->code; in fimc_pipeline_try_format() 841 if (mf->code != tfmt->code) in fimc_pipeline_try_format() 845 tfmt->width = mf->width; in fimc_pipeline_try_format() 846 tfmt->height = mf->height; in fimc_pipeline_try_format() 852 mf->code = ffmt->mbus_code; in fimc_pipeline_try_format() 853 if (mf->width != tfmt->width || mf->height != tfmt->height) in fimc_pipeline_try_format() 855 tfmt->code = mf->code; in fimc_pipeline_try_format() [all …]
|
D | fimc-lite.c | 575 struct v4l2_mbus_framefmt *mf = &format->format; in fimc_lite_subdev_try_fmt() local 579 v4l_bound_align_image(&mf->width, 8, dd->max_width, in fimc_lite_subdev_try_fmt() 581 &mf->height, 0, dd->max_height, 0, 0); in fimc_lite_subdev_try_fmt() 583 fmt = fimc_lite_find_format(NULL, &mf->code, 0, 0); in fimc_lite_subdev_try_fmt() 587 mf->colorspace = fmt->colorspace; in fimc_lite_subdev_try_fmt() 588 mf->code = fmt->mbus_code; in fimc_lite_subdev_try_fmt() 598 mf->code = sink_fmt->code; in fimc_lite_subdev_try_fmt() 599 mf->colorspace = sink_fmt->colorspace; in fimc_lite_subdev_try_fmt() 604 mf->code = sink->fmt->mbus_code; in fimc_lite_subdev_try_fmt() 605 mf->colorspace = sink->fmt->colorspace; in fimc_lite_subdev_try_fmt() [all …]
|
D | fimc-is-param.c | 210 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 …]
|
D | fimc-is-param.h | 1000 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.1.27/drivers/media/i2c/ |
D | s5k6a3.c | 90 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 …]
|
D | noon010pc30.c | 362 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 …]
|
D | sr030pc30.c | 398 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() 485 struct v4l2_mbus_framefmt *mf) in sr030pc30_g_fmt() argument 490 if (!mf) in sr030pc30_g_fmt() 499 mf->width = info->curr_win->width; in sr030pc30_g_fmt() 500 mf->height = info->curr_win->height; in sr030pc30_g_fmt() 501 mf->code = info->curr_fmt->code; in sr030pc30_g_fmt() [all …]
|
D | adv7170.c | 276 struct v4l2_mbus_framefmt *mf) in adv7170_g_fmt() argument 281 mf->code = MEDIA_BUS_FMT_UYVY8_1X16; in adv7170_g_fmt() 283 mf->code = MEDIA_BUS_FMT_UYVY8_2X8; in adv7170_g_fmt() 285 mf->colorspace = V4L2_COLORSPACE_SMPTE170M; in adv7170_g_fmt() 286 mf->width = 0; in adv7170_g_fmt() 287 mf->height = 0; in adv7170_g_fmt() 288 mf->field = V4L2_FIELD_ANY; in adv7170_g_fmt() 294 struct v4l2_mbus_framefmt *mf) in adv7170_s_fmt() argument 299 switch (mf->code) { in adv7170_s_fmt() 310 "illegal v4l2_mbus_framefmt code: %d\n", mf->code); in adv7170_s_fmt()
|
D | ak881x.c | 97 struct v4l2_mbus_framefmt *mf) in ak881x_try_g_mbus_fmt() argument 102 v4l_bound_align_image(&mf->width, 0, 720, 2, in ak881x_try_g_mbus_fmt() 103 &mf->height, 0, ak881x->lines, 1, 0); in ak881x_try_g_mbus_fmt() 104 mf->field = V4L2_FIELD_INTERLACED; in ak881x_try_g_mbus_fmt() 105 mf->code = MEDIA_BUS_FMT_YUYV8_2X8; in ak881x_try_g_mbus_fmt() 106 mf->colorspace = V4L2_COLORSPACE_SMPTE170M; in ak881x_try_g_mbus_fmt() 112 struct v4l2_mbus_framefmt *mf) in ak881x_s_mbus_fmt() argument 114 if (mf->field != V4L2_FIELD_INTERLACED || in ak881x_s_mbus_fmt() 115 mf->code != MEDIA_BUS_FMT_YUYV8_2X8) in ak881x_s_mbus_fmt() 118 return ak881x_try_g_mbus_fmt(sd, mf); in ak881x_s_mbus_fmt()
|
D | s5k4ecgx.c | 505 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 …]
|
D | adv7175.c | 314 struct v4l2_mbus_framefmt *mf) in adv7175_g_fmt() argument 319 mf->code = MEDIA_BUS_FMT_UYVY8_1X16; in adv7175_g_fmt() 321 mf->code = MEDIA_BUS_FMT_UYVY8_2X8; in adv7175_g_fmt() 323 mf->colorspace = V4L2_COLORSPACE_SMPTE170M; in adv7175_g_fmt() 324 mf->width = 0; in adv7175_g_fmt() 325 mf->height = 0; in adv7175_g_fmt() 326 mf->field = V4L2_FIELD_ANY; in adv7175_g_fmt() 332 struct v4l2_mbus_framefmt *mf) in adv7175_s_fmt() argument 337 switch (mf->code) { in adv7175_s_fmt() 348 "illegal v4l2_mbus_framefmt code: %d\n", mf->code); in adv7175_s_fmt()
|
D | s5k5baf.c | 742 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 …]
|
D | s5k6aa.c | 620 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 …]
|
D | ov9650.c | 1060 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 …]
|
D | ov2659.c | 1049 struct v4l2_mbus_framefmt *mf; in ov2659_get_fmt() local 1054 mf = v4l2_subdev_get_try_format(sd, cfg, 0); in ov2659_get_fmt() 1056 fmt->format = *mf; in ov2659_get_fmt() 1072 static void __ov2659_try_frame_size(struct v4l2_mbus_framefmt *mf, in __ov2659_try_frame_size() argument 1081 int err = abs(fsize->width - mf->width) in __ov2659_try_frame_size() 1082 + abs(fsize->height - mf->height); in __ov2659_try_frame_size() 1093 mf->width = match->width; in __ov2659_try_frame_size() 1094 mf->height = match->height; in __ov2659_try_frame_size() 1106 struct v4l2_mbus_framefmt *mf = &fmt->format; in ov2659_set_fmt() local 1113 __ov2659_try_frame_size(mf, &size); in ov2659_set_fmt() [all …]
|
/linux-4.1.27/drivers/video/fbdev/omap2/dss/ |
D | hdmi_pll.c | 47 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()
|
D | dss.h | 128 u32 mf; member
|
D | pll.c | 373 l = FLD_MOD(l, cinfo->mf, 17, 0); /* PLL_REGM_F */ in dss_pll_write_config_type_b()
|
/linux-4.1.27/drivers/media/platform/s3c-camif/ |
D | camif-capture.c | 1237 struct v4l2_mbus_framefmt *mf = &fmt->format; in s3c_camif_subdev_get_fmt() local 1240 mf = v4l2_subdev_get_try_format(sd, cfg, fmt->pad); in s3c_camif_subdev_get_fmt() 1241 fmt->format = *mf; in s3c_camif_subdev_get_fmt() 1250 *mf = camif->mbus_fmt; in s3c_camif_subdev_get_fmt() 1255 mf->width = camif->camif_crop.width; in s3c_camif_subdev_get_fmt() 1256 mf->height = camif->camif_crop.height; in s3c_camif_subdev_get_fmt() 1257 mf->code = camif->mbus_fmt.code; in s3c_camif_subdev_get_fmt() 1262 mf->field = V4L2_FIELD_NONE; in s3c_camif_subdev_get_fmt() 1263 mf->colorspace = V4L2_COLORSPACE_JPEG; in s3c_camif_subdev_get_fmt() 1268 struct v4l2_mbus_framefmt *mf, int pad) in __camif_subdev_try_format() argument [all …]
|
D | camif-regs.c | 108 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.1.27/drivers/message/fusion/ |
D | mptscsih.c | 88 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 …]
|
D | mptctl.c | 286 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 …]
|
D | mptscsih.h | 126 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);
|
D | mptlan.c | 129 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 …]
|
D | mptbase.c | 212 static void mpt_iocstatus_info(MPT_ADAPTER *ioc, u32 ioc_status, MPT_FRAME_HDR *mf); 449 MPT_FRAME_HDR *mf = NULL; in mpt_turbo_reply() local 461 mf = MPT_INDEX_2_MFPTR(ioc, req_idx); in mpt_turbo_reply() 476 mf = MPT_INDEX_2_MFPTR(ioc, req_idx); in mpt_turbo_reply() 477 mpt_free_msg_frame(ioc, mf); in mpt_turbo_reply() 501 if (MptCallbacks[cb_idx](ioc, mf, mr)) in mpt_turbo_reply() 502 mpt_free_msg_frame(ioc, mf); in mpt_turbo_reply() 510 MPT_FRAME_HDR *mf; in mpt_reply() local 535 mf = MPT_INDEX_2_MFPTR(ioc, req_idx); in mpt_reply() 555 mpt_iocstatus_info(ioc, (u32)ioc_stat, mf); in mpt_reply() [all …]
|
D | mptsas.c | 1042 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() 2085 MPT_FRAME_HDR *mf; in mptsas_phy_reset() local [all …]
|
D | mptbase.h | 845 #define MFPTR_2_MPT_INDEX(ioc,mf) \ argument 846 (int)( ((u8*)mf - (u8*)(ioc)->req_frames) / (ioc)->req_sz ) 927 extern void mpt_free_msg_frame(MPT_ADAPTER *ioc, MPT_FRAME_HDR *mf); 928 extern void mpt_put_msg_frame(u8 cb_idx, MPT_ADAPTER *ioc, MPT_FRAME_HDR *mf); 929 extern void mpt_put_msg_frame_hi_pri(u8 cb_idx, MPT_ADAPTER *ioc, MPT_FRAME_HDR *mf);
|
D | mptspi.c | 259 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.1.27/arch/m68k/68360/ |
D | config.c | 142 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.1.27/include/media/ |
D | soc_mediabus.h | 104 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.1.27/drivers/media/i2c/s5c73m3/ |
D | s5c73m3-core.c | 121 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.1.27/drivers/clk/rockchip/ |
D | clk.h | 216 #define COMPOSITE(_id, cname, pnames, f, mo, ms, mw, mf, ds, dw,\ argument 228 .mux_flags = mf, \ 274 #define COMPOSITE_NODIV(_id, cname, pnames, f, mo, ms, mw, mf, \ argument 286 .mux_flags = mf, \ 292 #define COMPOSITE_NOGATE(_id, cname, pnames, f, mo, ms, mw, mf, \ argument 304 .mux_flags = mf, \ 328 #define MUX(_id, cname, pnames, f, o, s, w, mf) \ argument 339 .mux_flags = mf, \
|
/linux-4.1.27/drivers/clk/samsung/ |
D | clk.h | 134 #define __MUX(_id, dname, cname, pnames, o, s, w, f, mf, a) \ argument 145 .mux_flags = mf, \ 155 #define MUX_F(_id, cname, pnames, o, s, w, f, mf) \ argument 156 __MUX(_id, NULL, cname, pnames, o, s, w, f, mf, NULL) 158 #define MUX_FA(_id, cname, pnames, o, s, w, f, mf, a) \ argument 159 __MUX(_id, NULL, cname, pnames, o, s, w, f, mf, a)
|
/linux-4.1.27/drivers/media/i2c/m5mols/ |
D | m5mols_core.c | 499 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.1.27/drivers/scsi/mpt3sas/ |
D | mpt3sas_ctl.h | 260 uint8_t mf[1]; member 276 uint8_t mf[1]; member
|
D | mpt3sas_ctl.c | 613 void __user *mf) in _ctl_do_mpt_command() argument 680 if (copy_from_user(mpi_request, mf, karg.data_sge_offset*4)) { in _ctl_do_mpt_command() 2176 return _ctl_do_mpt_command(ioc, karg, &uarg->mf); in _ctl_compat_mpt_command() 2247 ret = _ctl_do_mpt_command(ioc, karg, &uarg->mf); in _ctl_ioctl_main()
|
/linux-4.1.27/drivers/scsi/mpt2sas/ |
D | mpt2sas_ctl.h | 256 uint8_t mf[1]; member 272 uint8_t mf[1]; member
|
D | mpt2sas_ctl.c | 618 void __user *mf) in _ctl_do_mpt_command() argument 684 if (copy_from_user(mpi_request, mf, karg.data_sge_offset*4)) { in _ctl_do_mpt_command() 2141 return _ctl_do_mpt_command(ioc, karg, &uarg->mf); in _ctl_compat_mpt_command() 2210 ret = _ctl_do_mpt_command(ioc, karg, &uarg->mf); in _ctl_ioctl_main()
|
/linux-4.1.27/include/linux/phy/ |
D | omap_usb.h | 30 u32 mf; member
|
/linux-4.1.27/drivers/net/ethernet/apple/ |
D | macmace.c | 641 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.1.27/Documentation/devicetree/bindings/clock/ |
D | prima2-clock.txt | 25 mf 10
|
/linux-4.1.27/drivers/block/paride/ |
D | pg.c | 440 char mf[10], id[18]; in pg_identify() local 452 xs(buf + 8, mf, 8); in pg_identify() 454 printk("%s: %s %s, %s\n", dev->name, mf, id, ms[dev->drive]); in pg_identify()
|
D | pf.c | 628 char mf[10], id[18]; in pf_identify() local 645 xs(buf, mf, 8, 8); in pf_identify() 657 pf->name, mf, id, ms[pf->drive], pf->lun, dt); in pf_identify()
|
D | pt.c | 531 char mf[10], id[18]; in pt_identify() local 551 xs(buf, mf, 8, 8); in pt_identify() 570 printk("%s: %s %s, %s", tape->name, mf, id, ms[tape->drive]); in pt_identify()
|
/linux-4.1.27/arch/tile/lib/ |
D | atomic_asm_32.S | 117 mf
|
/linux-4.1.27/drivers/usb/misc/ |
D | usbsevseg.c | 120 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.1.27/drivers/clk/sirf/ |
D | clk-prima2.c | 63 mf, io, cpu, uart0, uart1, uart2, tsc, i2c0, i2c1, spi0, enumerator
|
D | clk-atlas6.c | 64 mf, io, cpu, uart0, uart1, uart2, tsc, i2c0, i2c1, spi0, enumerator
|
/linux-4.1.27/drivers/phy/ |
D | phy-ti-pipe3.c | 69 u32 mf; member 201 val |= dpll_params->mf << PLL_REGM_F_SHIFT; in ti_pipe3_dpll_program()
|
/linux-4.1.27/arch/powerpc/kernel/ |
D | swsusp_asm64.S | 63 mf##special r0 ;\
|
/linux-4.1.27/arch/tile/kernel/ |
D | relocate_kernel_64.S | 158 mf
|
D | relocate_kernel_32.S | 155 mf
|
D | intvec_32.S | 1679 mf 1814 mf
|
/linux-4.1.27/drivers/staging/rtl8723au/hal/ |
D | rtl8723au_recv.c | 174 pattrib->mfrag = (u8)prxreport->mf; in update_recvframe_attrib()
|
/linux-4.1.27/drivers/staging/rtl8712/ |
D | rtl8712_recv.c | 1009 u8 frag, mf; in recvbuf2recvframe() local 1037 mf = (le32_to_cpu(prxstat->rxdw1) >> 27) & 0x1; in recvbuf2recvframe() 1058 if ((mf == 1) && (frag == 0)) in recvbuf2recvframe()
|
/linux-4.1.27/drivers/staging/rtl8723au/include/ |
D | rtl8723a_hal.h | 436 u32 mf:1; member
|
/linux-4.1.27/drivers/net/usb/ |
D | kaweth.c | 490 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.1.27/drivers/media/tuners/ |
D | mt2063.c | 723 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.1.27/arch/ia64/kernel/ |
D | fsys.S | 265 mf
|
/linux-4.1.27/Documentation/ |
D | dynamic-debug-howto.txt | 331 nullarbor:~ # echo -n '+mf' > <debugfs>/dynamic_debug/control
|
/linux-4.1.27/drivers/video/fbdev/sis/ |
D | init.c | 2208 unsigned short mf = SiS_GetModeFlag(SiS_Pr, ModeNo, ModeIdIndex); in SiS_SetCRT1VCLK() local 2209 if(mf & HalfDCLK) { in SiS_SetCRT1VCLK()
|