/Linux-v4.19/drivers/hid/ |
D | hid-mf.c | 45 struct mf_device *mf = data; in mf_play() local 58 mf->report->field[0]->value[0] = weak; in mf_play() 59 mf->report->field[0]->value[1] = strong; in mf_play() 60 hid_hw_request(hid, mf->report, HID_REQ_SET_REPORT); in mf_play() 67 struct mf_device *mf; in mf_init() local 99 mf = kzalloc(sizeof(struct mf_device), GFP_KERNEL); in mf_init() 100 if (!mf) in mf_init() 106 error = input_ff_create_memless(dev, mf, mf_play); in mf_init() 108 kfree(mf); in mf_init() 112 mf->report = report; in mf_init() [all …]
|
/Linux-v4.19/drivers/clk/imx/ |
D | clk-pllv3.c | 314 struct clk_pllv3_vf610_mf mf) in clk_pllv3_vf610_mf_to_rate() argument 319 temp64 *= mf.mfn; in clk_pllv3_vf610_mf_to_rate() 320 do_div(temp64, mf.mfd); in clk_pllv3_vf610_mf_to_rate() 322 return (parent_rate * mf.mfi) + temp64; in clk_pllv3_vf610_mf_to_rate() 328 struct clk_pllv3_vf610_mf mf; in clk_pllv3_vf610_rate_to_mf() local 331 mf.mfi = (rate >= 22 * parent_rate) ? 22 : 20; in clk_pllv3_vf610_rate_to_mf() 332 mf.mfd = 0x3fffffff; /* use max supported value for best accuracy */ in clk_pllv3_vf610_rate_to_mf() 334 if (rate <= parent_rate * mf.mfi) in clk_pllv3_vf610_rate_to_mf() 335 mf.mfn = 0; in clk_pllv3_vf610_rate_to_mf() 336 else if (rate >= parent_rate * (mf.mfi + 1)) in clk_pllv3_vf610_rate_to_mf() [all …]
|
/Linux-v4.19/drivers/media/platform/soc_camera/ |
D | soc_scale_crop.c | 235 struct v4l2_mbus_framefmt *mf = &format->format; in client_set_fmt() local 236 unsigned int width = mf->width, height = mf->height, tmp_w, tmp_h; in client_set_fmt() 250 dev_geo(dev, "camera scaled to %ux%u\n", mf->width, mf->height); in client_set_fmt() 252 if (width == mf->width && height == mf->height) { in client_set_fmt() 272 tmp_w = mf->width; in client_set_fmt() 273 tmp_h = mf->height; in client_set_fmt() 280 mf->width = tmp_w; in client_set_fmt() 281 mf->height = tmp_h; in client_set_fmt() 286 mf->width, mf->height); in client_set_fmt() 323 struct v4l2_mbus_framefmt *mf, in soc_camera_client_scale() argument [all …]
|
D | sh_mobile_ceu_camera.c | 981 struct v4l2_mbus_framefmt *mf = &fmt.format; in sh_mobile_ceu_get_formats() local 1010 while ((mf->width > pcdev->max_width || in sh_mobile_ceu_get_formats() 1011 mf->height > pcdev->max_height) && shift < 4) { in sh_mobile_ceu_get_formats() 1013 mf->width = 2560 >> shift; in sh_mobile_ceu_get_formats() 1014 mf->height = 1920 >> shift; in sh_mobile_ceu_get_formats() 1025 mf->width, mf->height); in sh_mobile_ceu_get_formats() 1029 dev_geo(dev, "camera fmt %ux%u\n", mf->width, mf->height); in sh_mobile_ceu_get_formats() 1039 cam->width = mf->width; in sh_mobile_ceu_get_formats() 1040 cam->height = mf->height; in sh_mobile_ceu_get_formats() 1127 struct v4l2_mbus_framefmt *mf = &fmt.format; in sh_mobile_ceu_set_selection() local [all …]
|
/Linux-v4.19/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 …]
|
/Linux-v4.19/drivers/media/i2c/soc_camera/ |
D | tw9910.c | 708 struct v4l2_mbus_framefmt *mf = &format->format; in tw9910_get_fmt() local 721 mf->width = priv->scale->width; in tw9910_get_fmt() 722 mf->height = priv->scale->height; in tw9910_get_fmt() 723 mf->code = MEDIA_BUS_FMT_UYVY8_2X8; in tw9910_get_fmt() 724 mf->colorspace = V4L2_COLORSPACE_SMPTE170M; in tw9910_get_fmt() 725 mf->field = V4L2_FIELD_INTERLACED_BT; in tw9910_get_fmt() 731 struct v4l2_mbus_framefmt *mf) in tw9910_s_fmt() argument 733 u32 width = mf->width, height = mf->height; in tw9910_s_fmt() 736 WARN_ON(mf->field != V4L2_FIELD_ANY && in tw9910_s_fmt() 737 mf->field != V4L2_FIELD_INTERLACED_BT); in tw9910_s_fmt() [all …]
|
D | rj54n1cb0c.c | 612 struct v4l2_mbus_framefmt *mf = &format->format; in rj54n1_get_fmt() local 619 mf->code = rj54n1->fmt->code; in rj54n1_get_fmt() 620 mf->colorspace = rj54n1->fmt->colorspace; in rj54n1_get_fmt() 621 mf->field = V4L2_FIELD_NONE; in rj54n1_get_fmt() 622 mf->width = rj54n1->width; in rj54n1_get_fmt() 623 mf->height = rj54n1->height; in rj54n1_get_fmt() 979 struct v4l2_mbus_framefmt *mf = &format->format; in rj54n1_set_fmt() local 985 int align = mf->code == MEDIA_BUS_FMT_SBGGR10_1X10 || in rj54n1_set_fmt() 986 mf->code == MEDIA_BUS_FMT_SBGGR10_2X8_PADHI_BE || in rj54n1_set_fmt() 987 mf->code == MEDIA_BUS_FMT_SBGGR10_2X8_PADLO_BE || in rj54n1_set_fmt() [all …]
|
D | mt9m001.c | 266 struct v4l2_mbus_framefmt *mf = &format->format; in mt9m001_get_fmt() local 271 mf->width = mt9m001->rect.width; in mt9m001_get_fmt() 272 mf->height = mt9m001->rect.height; in mt9m001_get_fmt() 273 mf->code = mt9m001->fmt->code; in mt9m001_get_fmt() 274 mf->colorspace = mt9m001->fmt->colorspace; in mt9m001_get_fmt() 275 mf->field = V4L2_FIELD_NONE; in mt9m001_get_fmt() 282 struct v4l2_mbus_framefmt *mf) in mt9m001_s_fmt() argument 291 .r.width = mf->width, in mt9m001_s_fmt() 292 .r.height = mf->height, in mt9m001_s_fmt() 299 mf->width = mt9m001->rect.width; in mt9m001_s_fmt() [all …]
|
D | mt9v022.c | 389 struct v4l2_mbus_framefmt *mf = &format->format; in mt9v022_get_fmt() local 396 mf->width = mt9v022->rect.width; in mt9v022_get_fmt() 397 mf->height = mt9v022->rect.height; in mt9v022_get_fmt() 398 mf->code = mt9v022->fmt->code; in mt9v022_get_fmt() 399 mf->colorspace = mt9v022->fmt->colorspace; in mt9v022_get_fmt() 400 mf->field = V4L2_FIELD_NONE; in mt9v022_get_fmt() 407 struct v4l2_mbus_framefmt *mf) in mt9v022_s_fmt() argument 416 .r.width = mf->width, in mt9v022_s_fmt() 417 .r.height = mf->height, in mt9v022_s_fmt() 425 switch (mf->code) { in mt9v022_s_fmt() [all …]
|
/Linux-v4.19/drivers/media/i2c/ |
D | tw9910.c | 751 struct v4l2_mbus_framefmt *mf = &format->format; in tw9910_get_fmt() local 764 mf->width = priv->scale->width; in tw9910_get_fmt() 765 mf->height = priv->scale->height; in tw9910_get_fmt() 766 mf->code = MEDIA_BUS_FMT_UYVY8_2X8; in tw9910_get_fmt() 767 mf->colorspace = V4L2_COLORSPACE_SMPTE170M; in tw9910_get_fmt() 768 mf->field = V4L2_FIELD_INTERLACED_BT; in tw9910_get_fmt() 774 struct v4l2_mbus_framefmt *mf) in tw9910_s_fmt() argument 776 u32 width = mf->width, height = mf->height; in tw9910_s_fmt() 779 WARN_ON(mf->field != V4L2_FIELD_ANY && in tw9910_s_fmt() 780 mf->field != V4L2_FIELD_INTERLACED_BT); in tw9910_s_fmt() [all …]
|
D | s5k6a3.c | 93 struct v4l2_mbus_framefmt *mf) in find_sensor_format() argument 98 if (mf->code == s5k6a3_formats[i].code) in find_sensor_format() 115 static void s5k6a3_try_format(struct v4l2_mbus_framefmt *mf) in s5k6a3_try_format() argument 119 fmt = find_sensor_format(mf); in s5k6a3_try_format() 120 mf->code = fmt->code; in s5k6a3_try_format() 121 mf->field = V4L2_FIELD_NONE; in s5k6a3_try_format() 122 v4l_bound_align_image(&mf->width, S5K6A3_SENSOR_MIN_WIDTH, in s5k6a3_try_format() 124 &mf->height, S5K6A3_SENSOR_MIN_HEIGHT, in s5k6a3_try_format() 143 struct v4l2_mbus_framefmt *mf; in s5k6a3_set_fmt() local 147 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 | rj54n1cb0c.c | 610 struct v4l2_mbus_framefmt *mf = &format->format; in rj54n1_get_fmt() local 617 mf->code = rj54n1->fmt->code; in rj54n1_get_fmt() 618 mf->colorspace = rj54n1->fmt->colorspace; in rj54n1_get_fmt() 619 mf->ycbcr_enc = V4L2_YCBCR_ENC_601; in rj54n1_get_fmt() 620 mf->xfer_func = V4L2_XFER_FUNC_SRGB; in rj54n1_get_fmt() 621 mf->quantization = V4L2_QUANTIZATION_DEFAULT; in rj54n1_get_fmt() 622 mf->field = V4L2_FIELD_NONE; in rj54n1_get_fmt() 623 mf->width = rj54n1->width; in rj54n1_get_fmt() 624 mf->height = rj54n1->height; in rj54n1_get_fmt() 980 struct v4l2_mbus_framefmt *mf = &format->format; in rj54n1_set_fmt() local [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() 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 …]
|
D | ov6650.c | 512 struct v4l2_mbus_framefmt *mf = &format->format; in ov6650_get_fmt() local 519 mf->width = priv->rect.width >> priv->half_scale; in ov6650_get_fmt() 520 mf->height = priv->rect.height >> priv->half_scale; in ov6650_get_fmt() 521 mf->code = priv->code; in ov6650_get_fmt() 522 mf->colorspace = priv->colorspace; in ov6650_get_fmt() 523 mf->field = V4L2_FIELD_NONE; in ov6650_get_fmt() 551 static int ov6650_s_fmt(struct v4l2_subdev *sd, struct v4l2_mbus_framefmt *mf) in ov6650_s_fmt() argument 555 bool half_scale = !is_unscaled_ok(mf->width, mf->height, &priv->rect); in ov6650_s_fmt() 560 (mf->width >> (1 - half_scale)), in ov6650_s_fmt() 562 (mf->height >> (1 - half_scale)), in ov6650_s_fmt() [all …]
|
D | adv7170.c | 276 struct v4l2_mbus_framefmt *mf = &format->format; in adv7170_get_fmt() local 283 mf->code = MEDIA_BUS_FMT_UYVY8_1X16; in adv7170_get_fmt() 285 mf->code = MEDIA_BUS_FMT_UYVY8_2X8; in adv7170_get_fmt() 287 mf->colorspace = V4L2_COLORSPACE_SMPTE170M; in adv7170_get_fmt() 288 mf->width = 0; in adv7170_get_fmt() 289 mf->height = 0; in adv7170_get_fmt() 290 mf->field = V4L2_FIELD_ANY; in adv7170_get_fmt() 299 struct v4l2_mbus_framefmt *mf = &format->format; in adv7170_set_fmt() local 305 switch (mf->code) { in adv7170_set_fmt() 316 "illegal v4l2_mbus_framefmt code: %d\n", mf->code); in adv7170_set_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 = &format->format; in adv7175_get_fmt() local 321 mf->code = MEDIA_BUS_FMT_UYVY8_1X16; in adv7175_get_fmt() 323 mf->code = MEDIA_BUS_FMT_UYVY8_2X8; in adv7175_get_fmt() 325 mf->colorspace = V4L2_COLORSPACE_SMPTE170M; in adv7175_get_fmt() 326 mf->width = 0; in adv7175_get_fmt() 327 mf->height = 0; in adv7175_get_fmt() 328 mf->field = V4L2_FIELD_ANY; in adv7175_get_fmt() 337 struct v4l2_mbus_framefmt *mf = &format->format; in adv7175_set_fmt() local 344 switch (mf->code) { in adv7175_set_fmt() 355 "illegal v4l2_mbus_framefmt code: %d\n", mf->code); in adv7175_set_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 | mt9m111.c | 466 struct v4l2_mbus_framefmt *mf = &format->format; in mt9m111_get_fmt() local 472 mf->width = mt9m111->width; in mt9m111_get_fmt() 473 mf->height = mt9m111->height; in mt9m111_get_fmt() 474 mf->code = mt9m111->fmt->code; in mt9m111_get_fmt() 475 mf->colorspace = mt9m111->fmt->colorspace; in mt9m111_get_fmt() 476 mf->field = V4L2_FIELD_NONE; in mt9m111_get_fmt() 555 struct v4l2_mbus_framefmt *mf = &format->format; in mt9m111_set_fmt() local 566 fmt = mt9m111_find_datafmt(mt9m111, mf->code); in mt9m111_set_fmt() 582 mf->width = rect->width; in mt9m111_set_fmt() 583 mf->height = rect->height; in mt9m111_set_fmt() [all …]
|
/Linux-v4.19/drivers/staging/media/imx074/ |
D | imx074.c | 160 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() 185 cfg->try_fmt = *mf; in imx074_set_fmt() 194 struct v4l2_mbus_framefmt *mf = &format->format; in imx074_get_fmt() local [all …]
|
/Linux-v4.19/drivers/media/platform/vimc/ |
D | vimc-sensor.c | 61 struct v4l2_mbus_framefmt *mf; in vimc_sen_init_cfg() local 63 mf = v4l2_subdev_get_try_format(sd, cfg, i); in vimc_sen_init_cfg() 64 *mf = fmt_default; in vimc_sen_init_cfg() 164 struct v4l2_mbus_framefmt *mf; in vimc_sen_set_fmt() local 171 mf = &vsen->mbus_format; in vimc_sen_set_fmt() 173 mf = v4l2_subdev_get_try_format(sd, cfg, fmt->pad); in vimc_sen_set_fmt() 183 mf->width, mf->height, mf->code, in vimc_sen_set_fmt() 184 mf->colorspace, mf->quantization, in vimc_sen_set_fmt() 185 mf->xfer_func, mf->ycbcr_enc, in vimc_sen_set_fmt() 191 *mf = fmt->format; in vimc_sen_set_fmt()
|
/Linux-v4.19/drivers/video/fbdev/omap2/omapfb/dss/ |
D | hdmi_pll.c | 48 unsigned n, m, mf, m2, sd; in hdmi_pll_compute() local 75 mf = 0; in hdmi_pll_compute() 77 mf = (u32)div_u64(262144ull * (target_clkdco - clkdco), fint); in hdmi_pll_compute() 79 if (mf > 0) in hdmi_pll_compute() 80 clkdco += (u32)div_u64((u64)mf * fint, 262144); in hdmi_pll_compute() 88 n, m, mf, m2, sd); in hdmi_pll_compute() 93 pi->mf = mf; in hdmi_pll_compute()
|
/Linux-v4.19/drivers/media/platform/s3c-camif/ |
D | camif-capture.c | 1226 struct v4l2_mbus_framefmt *mf = &fmt->format; in s3c_camif_subdev_get_fmt() local 1229 mf = v4l2_subdev_get_try_format(sd, cfg, fmt->pad); in s3c_camif_subdev_get_fmt() 1230 fmt->format = *mf; in s3c_camif_subdev_get_fmt() 1239 *mf = camif->mbus_fmt; in s3c_camif_subdev_get_fmt() 1244 mf->width = camif->camif_crop.width; in s3c_camif_subdev_get_fmt() 1245 mf->height = camif->camif_crop.height; in s3c_camif_subdev_get_fmt() 1246 mf->code = camif->mbus_fmt.code; in s3c_camif_subdev_get_fmt() 1251 mf->field = V4L2_FIELD_NONE; in s3c_camif_subdev_get_fmt() 1252 mf->colorspace = V4L2_COLORSPACE_JPEG; in s3c_camif_subdev_get_fmt() 1257 struct v4l2_mbus_framefmt *mf, int pad) in __camif_subdev_try_format() argument [all …]
|
/Linux-v4.19/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 …]
|