| /linux/drivers/hid/ |
| A D | hid-mf.c | 37 struct mf_device *mf = data; in mf_play() local 50 mf->report->field[0]->value[0] = weak; in mf_play() 51 mf->report->field[0]->value[1] = strong; in mf_play() 52 hid_hw_request(hid, mf->report, HID_REQ_SET_REPORT); in mf_play() 59 struct mf_device *mf; in mf_init() local 92 if (!mf) in mf_init() 98 error = input_ff_create_memless(dev, mf, mf_play); in mf_init() 100 kfree(mf); in mf_init() 104 mf->report = report; in mf_init() 105 mf->report->field[0]->value[0] = 0x00; in mf_init() [all …]
|
| /linux/drivers/clk/imx/ |
| A D | clk-pllv3.c | 310 struct clk_pllv3_vf610_mf mf) in clk_pllv3_vf610_mf_to_rate() argument 315 temp64 *= mf.mfn; in clk_pllv3_vf610_mf_to_rate() 316 do_div(temp64, mf.mfd); in clk_pllv3_vf610_mf_to_rate() 324 struct clk_pllv3_vf610_mf mf; in clk_pllv3_vf610_rate_to_mf() local 331 mf.mfn = 0; in clk_pllv3_vf610_rate_to_mf() 333 mf.mfn = mf.mfd - 1; in clk_pllv3_vf610_rate_to_mf() 337 temp64 *= mf.mfd; in clk_pllv3_vf610_rate_to_mf() 339 mf.mfn = temp64; in clk_pllv3_vf610_rate_to_mf() 342 return mf; in clk_pllv3_vf610_rate_to_mf() 349 struct clk_pllv3_vf610_mf mf; in clk_pllv3_vf610_recalc_rate() local [all …]
|
| /linux/drivers/media/platform/samsung/exynos4-is/ |
| A D | fimc-isp.c | 133 mf->colorspace = V4L2_COLORSPACE_SRGB; in fimc_isp_subdev_get_fmt() 139 *mf = isp->sink_fmt; in fimc_isp_subdev_get_fmt() 142 *mf = isp->src_fmt; in fimc_isp_subdev_get_fmt() 146 mf->code = MEDIA_BUS_FMT_YUV10_1X30; in fimc_isp_subdev_get_fmt() 153 fmt->pad, mf->code, mf->width, mf->height); in fimc_isp_subdev_get_fmt() 188 mf->code = format->code; in __isp_subdev_try_format() 203 __func__, fmt->pad, mf->code, mf->width, mf->height); in fimc_isp_subdev_set_fmt() 210 *mf = fmt->format; in fimc_isp_subdev_set_fmt() 224 *mf = format.format; in fimc_isp_subdev_set_fmt() 232 isp->sink_fmt = *mf; in fimc_isp_subdev_set_fmt() [all …]
|
| A D | mipi-csis.c | 280 struct v4l2_mbus_framefmt *mf) in find_csis_format() argument 335 mf->code, mf->width, mf->height); in __s5pcsis_set_format() 343 val = (mf->width << 16) | mf->height; in __s5pcsis_set_format() 551 struct v4l2_mbus_framefmt *mf) in s5pcsis_try_format() argument 559 mf->code = csis_fmt->code; in s5pcsis_try_format() 588 if (mf) { in s5pcsis_set_fmt() 590 fmt->format = *mf; in s5pcsis_set_fmt() 596 if (mf) { in s5pcsis_set_fmt() 598 *mf = fmt->format; in s5pcsis_set_fmt() 614 if (!mf) in s5pcsis_get_fmt() [all …]
|
| A D | fimc-capture.c | 785 ffmt = fimc_find_format(NULL, mf->code != 0 ? &mf->code : NULL, in fimc_pipeline_try_format() 832 if (mf->width != tfmt->width || mf->height != tfmt->height) in fimc_pipeline_try_format() 840 *tfmt = *mf; in fimc_pipeline_try_format() 1483 fmt->format = *mf; in fimc_subdev_get_fmt() 1487 mf = &fmt->format; in fimc_subdev_get_fmt() 1525 fmt->pad, mf->code, mf->width, mf->height); in fimc_subdev_set_fmt() 1531 ffmt = fimc_capture_try_format(ctx, &mf->width, &mf->height, in fimc_subdev_set_fmt() 1559 set_frame_bounds(ff, mf->width, mf->height); in fimc_subdev_set_fmt() 1562 vc->wb_fmt = *mf; in fimc_subdev_set_fmt() 1564 vc->ci_fmt = *mf; in fimc_subdev_set_fmt() [all …]
|
| A D | fimc-lite.c | 570 mf->code = fmt->mbus_code; in fimc_lite_subdev_try_fmt() 592 mf->width = rect->width; in fimc_lite_subdev_try_fmt() 593 mf->height = rect->height; in fimc_lite_subdev_try_fmt() 599 mf->code, mf->colorspace, mf->width, mf->height); in fimc_lite_subdev_try_fmt() 1035 fmt->format = *mf; in fimc_lite_subdev_get_fmt() 1045 mf->width = f->f_width; in fimc_lite_subdev_get_fmt() 1046 mf->height = f->f_height; in fimc_lite_subdev_get_fmt() 1049 mf->width = f->rect.width; in fimc_lite_subdev_get_fmt() 1067 fmt->pad, mf->code, mf->width, mf->height); in fimc_lite_subdev_set_fmt() 1085 *mf = fmt->format; in fimc_lite_subdev_set_fmt() [all …]
|
| /linux/drivers/media/i2c/ |
| A 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() 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() 121 &mf->height, S5K6A3_SENSOR_MIN_HEIGHT, in s5k6a3_try_format() 140 struct v4l2_mbus_framefmt *mf; in s5k6a3_set_fmt() local 145 if (mf) { in s5k6a3_set_fmt() 147 *mf = fmt->format; in s5k6a3_set_fmt() 158 struct v4l2_mbus_framefmt *mf; in s5k6a3_get_fmt() local [all …]
|
| A D | tw9910.c | 760 mf->width = priv->scale->width; in tw9910_get_fmt() 761 mf->height = priv->scale->height; in tw9910_get_fmt() 770 struct v4l2_mbus_framefmt *mf) in tw9910_s_fmt() argument 772 u32 width = mf->width, height = mf->height; in tw9910_s_fmt() 788 mf->width = width; in tw9910_s_fmt() 789 mf->height = height; in tw9910_s_fmt() 806 if (mf->field == V4L2_FIELD_ANY) { in tw9910_set_fmt() 817 scale = tw9910_select_norm(priv->norm, mf->width, mf->height); in tw9910_set_fmt() 821 mf->width = scale->width; in tw9910_set_fmt() 822 mf->height = scale->height; in tw9910_set_fmt() [all …]
|
| A D | mt9m001.c | 329 format->format = *mf; in mt9m001_get_fmt() 333 mf->width = mt9m001->rect.width; in mt9m001_get_fmt() 335 mf->code = mt9m001->fmt->code; in mt9m001_get_fmt() 337 mf->field = V4L2_FIELD_NONE; in mt9m001_get_fmt() 347 struct v4l2_mbus_framefmt *mf) in mt9m001_s_fmt() argument 356 .r.width = mf->width, in mt9m001_s_fmt() 357 .r.height = mf->height, in mt9m001_s_fmt() 364 mf->width = mt9m001->rect.width; in mt9m001_s_fmt() 391 mf->height = ALIGN(mf->height - 1, 2); in mt9m001_set_fmt() 397 mf->code = fmt->code; in mt9m001_set_fmt() [all …]
|
| A D | rj54n1cb0c.c | 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() 996 __func__, mf->code, mf->width, mf->height); in rj54n1_set_fmt() 1002 mf->code = fmt->code; in rj54n1_set_fmt() 1005 mf->field = V4L2_FIELD_NONE; in rj54n1_set_fmt() 1029 switch (mf->code) { in rj54n1_set_fmt() 1101 output_w = mf->width; in rj54n1_set_fmt() 1102 output_h = mf->height; in rj54n1_set_fmt() 1118 mf->width = output_w; in rj54n1_set_fmt() [all …]
|
| A D | adv7170.c | 267 struct v4l2_mbus_framefmt *mf = &format->format; in adv7170_get_fmt() local 274 mf->code = MEDIA_BUS_FMT_UYVY8_1X16; in adv7170_get_fmt() 276 mf->code = MEDIA_BUS_FMT_UYVY8_2X8; in adv7170_get_fmt() 278 mf->colorspace = V4L2_COLORSPACE_SMPTE170M; in adv7170_get_fmt() 279 mf->width = 0; in adv7170_get_fmt() 280 mf->height = 0; in adv7170_get_fmt() 281 mf->field = V4L2_FIELD_ANY; in adv7170_get_fmt() 290 struct v4l2_mbus_framefmt *mf = &format->format; in adv7170_set_fmt() local 296 switch (mf->code) { in adv7170_set_fmt() 307 "illegal v4l2_mbus_framefmt code: %d\n", mf->code); in adv7170_set_fmt()
|
| A D | mt9m111.c | 529 format->format = *mf; in mt9m111_get_fmt() 533 mf->width = mt9m111->width; in mt9m111_get_fmt() 537 mf->field = V4L2_FIELD_NONE; in mt9m111_get_fmt() 653 mf->width = rect->width; in mt9m111_set_fmt() 654 mf->height = rect->height; in mt9m111_set_fmt() 658 mf->width = rect->width; in mt9m111_set_fmt() 660 mf->height = rect->height; in mt9m111_set_fmt() 664 mf->width, mf->height, fmt->code); in mt9m111_set_fmt() 666 mf->code = fmt->code; in mt9m111_set_fmt() 668 mf->field = V4L2_FIELD_NONE; in mt9m111_set_fmt() [all …]
|
| A D | ov6650.c | 539 bool half_scale = !is_unscaled_ok(mf->width, mf->height, crop); in ov6650_set_selection() 589 *mf = ov6650_def_fmt; in ov6650_get_fmt() 598 mf->code = try_fmt->code; in ov6650_get_fmt() 603 mf->code = priv->code; in ov6650_get_fmt() 707 switch (mf->code) { in ov6650_set_fmt() 729 half_scale = !is_unscaled_ok(mf->width, mf->height, crop); in ov6650_set_fmt() 738 try_fmt->code = mf->code; in ov6650_set_fmt() 741 *mf = ov6650_def_fmt; in ov6650_set_fmt() 744 mf->code = try_fmt->code; in ov6650_set_fmt() 756 *mf = ov6650_def_fmt; in ov6650_set_fmt() [all …]
|
| A D | s5k5baf.c | 1262 mf->field = V4L2_FIELD_NONE; in s5k5baf_try_cis_format() 1278 mf->field = V4L2_FIELD_NONE; in s5k5baf_try_isp_format() 1293 fmt->format = *mf; in s5k5baf_get_fmt() 1297 mf = &fmt->format; in s5k5baf_get_fmt() 1299 s5k5baf_try_cis_format(mf); in s5k5baf_get_fmt() 1302 mf->field = V4L2_FIELD_NONE; in s5k5baf_get_fmt() 1307 mf->code = pixfmt->code; in s5k5baf_get_fmt() 1323 mf->field = V4L2_FIELD_NONE; in s5k5baf_set_fmt() 1331 s5k5baf_try_cis_format(mf); in s5k5baf_set_fmt() 1344 mf->code = pixfmt->code; in s5k5baf_set_fmt() [all …]
|
| A D | adv7175.c | 305 struct v4l2_mbus_framefmt *mf = &format->format; in adv7175_get_fmt() local 312 mf->code = MEDIA_BUS_FMT_UYVY8_1X16; in adv7175_get_fmt() 314 mf->code = MEDIA_BUS_FMT_UYVY8_2X8; in adv7175_get_fmt() 316 mf->colorspace = V4L2_COLORSPACE_SMPTE170M; in adv7175_get_fmt() 317 mf->width = 0; in adv7175_get_fmt() 318 mf->height = 0; in adv7175_get_fmt() 319 mf->field = V4L2_FIELD_ANY; in adv7175_get_fmt() 328 struct v4l2_mbus_framefmt *mf = &format->format; in adv7175_set_fmt() local 335 switch (mf->code) { in adv7175_set_fmt() 346 "illegal v4l2_mbus_framefmt code: %d\n", mf->code); in adv7175_set_fmt()
|
| A D | ov2640.c | 924 format->format = *mf; in ov2640_get_fmt() 928 mf->width = priv->win->width; in ov2640_get_fmt() 929 mf->height = priv->win->height; in ov2640_get_fmt() 930 mf->code = priv->cfmt_code; in ov2640_get_fmt() 932 mf->field = V4L2_FIELD_NONE; in ov2640_get_fmt() 956 win = ov2640_select_win(mf->width, mf->height); in ov2640_set_fmt() 957 mf->width = win->width; in ov2640_set_fmt() 958 mf->height = win->height; in ov2640_set_fmt() 960 mf->field = V4L2_FIELD_NONE; in ov2640_set_fmt() 966 switch (mf->code) { in ov2640_set_fmt() [all …]
|
| A D | hi846.c | 1702 mf->code = hi846_colour_fmts[0].code; in hi846_set_format() 1738 width, height, mf->width, mf->height); in hi846_set_format() 1745 mf->width = hi846->cur_mode->width; in hi846_set_format() 1746 mf->height = hi846->cur_mode->height; in hi846_set_format() 1747 mf->code = HI846_MEDIA_BUS_FORMAT; in hi846_set_format() 1748 mf->field = V4L2_FIELD_NONE; in hi846_set_format() 1769 mf->width, mf->height, in hi846_set_format() 1794 mf->field = V4L2_FIELD_NONE; in hi846_get_format() 1800 mf->width, mf->height, mf->code, mf->colorspace); in hi846_get_format() 1878 struct v4l2_mbus_framefmt *mf; in hi846_init_state() local [all …]
|
| /linux/drivers/media/platform/st/stm32/stm32-dcmipp/ |
| A D | dcmipp-parallel.c | 152 struct v4l2_mbus_framefmt *mf; in dcmipp_par_init_state() local 154 mf = v4l2_subdev_state_get_format(sd_state, i); in dcmipp_par_init_state() 155 *mf = fmt_default; in dcmipp_par_init_state() 231 struct v4l2_mbus_framefmt *mf; in dcmipp_par_set_fmt() local 244 mf->width, mf->height, mf->code, in dcmipp_par_set_fmt() 245 mf->colorspace, mf->quantization, in dcmipp_par_set_fmt() 246 mf->xfer_func, mf->ycbcr_enc, in dcmipp_par_set_fmt() 252 *mf = fmt->format; in dcmipp_par_set_fmt() 256 mf = v4l2_subdev_state_get_format(sd_state, 1); in dcmipp_par_set_fmt() 257 *mf = fmt->format; in dcmipp_par_set_fmt() [all …]
|
| A D | dcmipp-byteproc.c | 168 struct v4l2_mbus_framefmt *mf; in dcmipp_byteproc_init_state() local 171 mf = v4l2_subdev_state_get_format(sd_state, i); in dcmipp_byteproc_init_state() 172 *mf = fmt_default; in dcmipp_byteproc_init_state() 243 struct v4l2_mbus_framefmt *mf; in dcmipp_byteproc_set_fmt() local 268 *mf = fmt->format; in dcmipp_byteproc_set_fmt() 331 struct v4l2_mbus_framefmt *mf; in dcmipp_byteproc_set_selection() local 358 mf->width = s->r.width; in dcmipp_byteproc_set_selection() 359 mf->height = s->r.height; in dcmipp_byteproc_set_selection() 366 dcmipp_byteproc_adjust_compose(&s->r, mf); in dcmipp_byteproc_set_selection() 371 mf->width = s->r.width; in dcmipp_byteproc_set_selection() [all …]
|
| /linux/drivers/video/fbdev/omap2/omapfb/dss/ |
| A D | hdmi_pll.c | 45 unsigned n, m, mf, m2, sd; in hdmi_pll_compute() local 72 mf = 0; in hdmi_pll_compute() 74 mf = (u32)div_u64(262144ull * (target_clkdco - clkdco), fint); in hdmi_pll_compute() 76 if (mf > 0) in hdmi_pll_compute() 77 clkdco += (u32)div_u64((u64)mf * fint, 262144); in hdmi_pll_compute() 85 n, m, mf, m2, sd); in hdmi_pll_compute() 90 pi->mf = mf; in hdmi_pll_compute()
|
| /linux/drivers/media/platform/samsung/s3c-camif/ |
| A D | camif-capture.c | 1220 fmt->format = *mf; in s3c_camif_subdev_get_fmt() 1229 *mf = camif->mbus_fmt; in s3c_camif_subdev_get_fmt() 1276 v4l2_dbg(1, debug, &camif->subdev, "%ux%u\n", mf->width, mf->height); in __camif_subdev_try_format() 1289 fmt->pad, mf->code, mf->width, mf->height); in s3c_camif_subdev_set_fmt() 1309 *mf = fmt->format; in s3c_camif_subdev_set_fmt() 1316 camif->mbus_fmt = *mf; in s3c_camif_subdev_set_fmt() 1318 crop->width = mf->width; in s3c_camif_subdev_set_fmt() 1337 mf->width = crop->width; in s3c_camif_subdev_set_fmt() 1369 sel->r.width = mf->width; in s3c_camif_subdev_get_selection() 1379 crop->height, mf->width, mf->height); in s3c_camif_subdev_get_selection() [all …]
|
| /linux/drivers/media/platform/nxp/imx8-isi/ |
| A D | imx8-isi-pipe.c | 481 mf->width = clamp(mf->width, MXC_ISI_MIN_WIDTH, max_width); in mxc_isi_pipe_set_fmt() 482 mf->height = clamp(mf->height, MXC_ISI_MIN_HEIGHT, in mxc_isi_pipe_set_fmt() 488 rect->width = mf->width; in mxc_isi_pipe_set_fmt() 489 rect->height = mf->height; in mxc_isi_pipe_set_fmt() 495 rect->width = mf->width; in mxc_isi_pipe_set_fmt() 496 rect->height = mf->height; in mxc_isi_pipe_set_fmt() 501 format->width = mf->width; in mxc_isi_pipe_set_fmt() 523 mf->code = info->output; in mxc_isi_pipe_set_fmt() 532 mf->width = rect->width; in mxc_isi_pipe_set_fmt() 537 *format = *mf; in mxc_isi_pipe_set_fmt() [all …]
|
| /linux/drivers/message/fusion/ |
| A D | mptscsih.c | 393 MPT_FRAME_HDR *mf; in mptscsih_issue_sep_command() local 1043 if (!mf) in mptscsih_flush_running_cmds() 1045 channel = mf->Bus; in mptscsih_flush_running_cmds() 1046 id = mf->TargetID; in mptscsih_flush_running_cmds() 1091 if (mf == NULL) in mptscsih_search_running_cmds() 1120 sc, mf, ii)); in mptscsih_search_running_cmds() 1516 MPT_FRAME_HDR *mf; in mptscsih_IssueTaskMgmt() local 1556 mf = NULL; in mptscsih_IssueTaskMgmt() 1571 ioc->name, mf)); in mptscsih_IssueTaskMgmt() 1684 MPT_FRAME_HDR *mf; in mptscsih_abort() local [all …]
|
| /linux/drivers/media/test-drivers/vimc/ |
| A D | vimc-sensor.c | 54 struct v4l2_mbus_framefmt *mf; in vimc_sensor_init_state() local 56 mf = v4l2_subdev_state_get_format(sd_state, 0); in vimc_sensor_init_state() 57 *mf = fmt_default; in vimc_sensor_init_state() 142 struct v4l2_mbus_framefmt *mf; in vimc_sensor_set_fmt() local 148 mf = v4l2_subdev_state_get_format(sd_state, fmt->pad); in vimc_sensor_set_fmt() 157 mf->width, mf->height, mf->code, in vimc_sensor_set_fmt() 158 mf->colorspace, mf->quantization, in vimc_sensor_set_fmt() 159 mf->xfer_func, mf->ycbcr_enc, in vimc_sensor_set_fmt() 165 *mf = fmt->format; in vimc_sensor_set_fmt()
|
| /linux/drivers/dma/dw-edma/ |
| A D | dw-edma-pcie.c | 49 enum dw_edma_map_format mf; member 87 .mf = EDMA_MF_EDMA_UNROLL, 142 pdata->mf = map; in dw_edma_pcie_get_vsec_dma_data() 226 chip->mf = vsec_data.mf; in dw_edma_pcie_probe() 288 if (chip->mf == EDMA_MF_EDMA_LEGACY) in dw_edma_pcie_probe() 289 pci_dbg(pdev, "Version:\teDMA Port Logic (0x%x)\n", chip->mf); in dw_edma_pcie_probe() 290 else if (chip->mf == EDMA_MF_EDMA_UNROLL) in dw_edma_pcie_probe() 291 pci_dbg(pdev, "Version:\teDMA Unroll (0x%x)\n", chip->mf); in dw_edma_pcie_probe() 292 else if (chip->mf == EDMA_MF_HDMA_COMPAT) in dw_edma_pcie_probe() 293 pci_dbg(pdev, "Version:\tHDMA Compatible (0x%x)\n", chip->mf); in dw_edma_pcie_probe() [all …]
|