/Linux-v6.1/drivers/hid/ |
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 91 mf = kzalloc(sizeof(struct mf_device), GFP_KERNEL); in mf_init() 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() [all …]
|
/Linux-v6.1/drivers/clk/imx/ |
D | clk-pllv3.c | 309 struct clk_pllv3_vf610_mf mf) in clk_pllv3_vf610_mf_to_rate() argument 314 temp64 *= mf.mfn; in clk_pllv3_vf610_mf_to_rate() 315 do_div(temp64, mf.mfd); in clk_pllv3_vf610_mf_to_rate() 317 return (parent_rate * mf.mfi) + temp64; in clk_pllv3_vf610_mf_to_rate() 323 struct clk_pllv3_vf610_mf mf; in clk_pllv3_vf610_rate_to_mf() local 326 mf.mfi = (rate >= 22 * parent_rate) ? 22 : 20; in clk_pllv3_vf610_rate_to_mf() 327 mf.mfd = 0x3fffffff; /* use max supported value for best accuracy */ in clk_pllv3_vf610_rate_to_mf() 329 if (rate <= parent_rate * mf.mfi) in clk_pllv3_vf610_rate_to_mf() 330 mf.mfn = 0; in clk_pllv3_vf610_rate_to_mf() 331 else if (rate >= parent_rate * (mf.mfi + 1)) in clk_pllv3_vf610_rate_to_mf() [all …]
|
/Linux-v6.1/drivers/media/platform/samsung/exynos4-is/ |
D | fimc-isp.c | 126 struct v4l2_mbus_framefmt *mf = &fmt->format; in fimc_isp_subdev_get_fmt() local 129 *mf = *v4l2_subdev_get_try_format(sd, sd_state, fmt->pad); in fimc_isp_subdev_get_fmt() 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() 145 mf->colorspace = V4L2_COLORSPACE_JPEG; 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() 162 struct v4l2_mbus_framefmt *mf = &fmt->format; in __isp_subdev_try_format() local 165 mf->colorspace = V4L2_COLORSPACE_SRGB; in __isp_subdev_try_format() [all …]
|
D | mipi-csis.c | 280 struct v4l2_mbus_framefmt *mf) in find_csis_format() argument 285 if (mf->code == s5pcsis_formats[i].code) in find_csis_format() 331 struct v4l2_mbus_framefmt *mf = &state->format; in __s5pcsis_set_format() local 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 555 csis_fmt = find_csis_format(mf); in s5pcsis_try_format() 559 mf->code = csis_fmt->code; in s5pcsis_try_format() 560 v4l_bound_align_image(&mf->width, 1, CSIS_MAX_PIX_WIDTH, in s5pcsis_try_format() 562 &mf->height, 1, CSIS_MAX_PIX_HEIGHT, 1, in s5pcsis_try_format() [all …]
|
D | fimc-capture.c | 767 struct v4l2_mbus_framefmt *mf = &sfmt.format; in fimc_pipeline_try_format() local 784 ffmt = fimc_find_format(NULL, mf->code != 0 ? &mf->code : NULL, in fimc_pipeline_try_format() 793 mf->code = tfmt->code = ffmt->mbus_code; in fimc_pipeline_try_format() 806 mf->code = tfmt->code; in fimc_pipeline_try_format() 819 if (mf->code != tfmt->code) in fimc_pipeline_try_format() 823 tfmt->width = mf->width; in fimc_pipeline_try_format() 824 tfmt->height = mf->height; in fimc_pipeline_try_format() 830 mf->code = ffmt->mbus_code; in fimc_pipeline_try_format() 831 if (mf->width != tfmt->width || mf->height != tfmt->height) in fimc_pipeline_try_format() 833 tfmt->code = mf->code; in fimc_pipeline_try_format() [all …]
|
/Linux-v6.1/drivers/media/i2c/ |
D | tw9910.c | 752 struct v4l2_mbus_framefmt *mf = &format->format; in tw9910_get_fmt() local 765 mf->width = priv->scale->width; in tw9910_get_fmt() 766 mf->height = priv->scale->height; in tw9910_get_fmt() 767 mf->code = MEDIA_BUS_FMT_UYVY8_2X8; in tw9910_get_fmt() 768 mf->colorspace = V4L2_COLORSPACE_SMPTE170M; in tw9910_get_fmt() 769 mf->field = V4L2_FIELD_INTERLACED_BT; in tw9910_get_fmt() 775 struct v4l2_mbus_framefmt *mf) in tw9910_s_fmt() argument 777 u32 width = mf->width, height = mf->height; in tw9910_s_fmt() 780 WARN_ON(mf->field != V4L2_FIELD_ANY && in tw9910_s_fmt() 781 mf->field != V4L2_FIELD_INTERLACED_BT); in tw9910_s_fmt() [all …]
|
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() 141 struct v4l2_mbus_framefmt *mf; in s5k6a3_set_fmt() local 145 mf = __s5k6a3_get_format(sensor, sd_state, fmt->pad, fmt->which); in s5k6a3_set_fmt() [all …]
|
D | mt9m001.c | 328 struct v4l2_mbus_framefmt *mf = &format->format; in mt9m001_get_fmt() local 334 mf = v4l2_subdev_get_try_format(sd, sd_state, 0); in mt9m001_get_fmt() 335 format->format = *mf; in mt9m001_get_fmt() 339 mf->width = mt9m001->rect.width; in mt9m001_get_fmt() 340 mf->height = mt9m001->rect.height; in mt9m001_get_fmt() 341 mf->code = mt9m001->fmt->code; in mt9m001_get_fmt() 342 mf->colorspace = mt9m001->fmt->colorspace; in mt9m001_get_fmt() 343 mf->field = V4L2_FIELD_NONE; in mt9m001_get_fmt() 344 mf->ycbcr_enc = V4L2_YCBCR_ENC_DEFAULT; in mt9m001_get_fmt() 345 mf->quantization = V4L2_QUANTIZATION_DEFAULT; in mt9m001_get_fmt() [all …]
|
D | noon010pc30.c | 358 static int noon010_try_frame_size(struct v4l2_mbus_framefmt *mf, in noon010_try_frame_size() argument 367 int err = abs(fsize->width - mf->width) in noon010_try_frame_size() 368 + abs(fsize->height - mf->height); in noon010_try_frame_size() 377 mf->width = match->width; in noon010_try_frame_size() 378 mf->height = match->height; in noon010_try_frame_size() 511 struct v4l2_mbus_framefmt *mf; in noon010_get_fmt() local 515 mf = v4l2_subdev_get_try_format(sd, sd_state, 0); in noon010_get_fmt() 516 fmt->format = *mf; in noon010_get_fmt() 520 mf = &fmt->format; in noon010_get_fmt() 523 mf->width = info->curr_win->width; in noon010_get_fmt() [all …]
|
D | rj54n1cb0c.c | 609 struct v4l2_mbus_framefmt *mf = &format->format; in rj54n1_get_fmt() local 616 mf->code = rj54n1->fmt->code; in rj54n1_get_fmt() 617 mf->colorspace = rj54n1->fmt->colorspace; in rj54n1_get_fmt() 618 mf->ycbcr_enc = V4L2_YCBCR_ENC_601; in rj54n1_get_fmt() 619 mf->xfer_func = V4L2_XFER_FUNC_SRGB; in rj54n1_get_fmt() 620 mf->quantization = V4L2_QUANTIZATION_DEFAULT; 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 [all …]
|
D | sr030pc30.c | 394 static int sr030pc30_try_frame_size(struct v4l2_mbus_framefmt *mf) in sr030pc30_try_frame_size() argument 401 int err = abs(fsize->width - mf->width) in sr030pc30_try_frame_size() 402 + abs(fsize->height - mf->height); in sr030pc30_try_frame_size() 410 mf->width = match->width; in sr030pc30_try_frame_size() 411 mf->height = match->height; in sr030pc30_try_frame_size() 486 struct v4l2_mbus_framefmt *mf; in sr030pc30_get_fmt() local 492 mf = &format->format; in sr030pc30_get_fmt() 497 mf->width = info->curr_win->width; in sr030pc30_get_fmt() 498 mf->height = info->curr_win->height; in sr030pc30_get_fmt() 499 mf->code = info->curr_fmt->code; in sr030pc30_get_fmt() [all …]
|
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()
|
D | mt9m111.c | 523 struct v4l2_mbus_framefmt *mf = &format->format; in mt9m111_get_fmt() local 531 mf = v4l2_subdev_get_try_format(sd, sd_state, format->pad); in mt9m111_get_fmt() 532 format->format = *mf; in mt9m111_get_fmt() 539 mf->width = mt9m111->width; in mt9m111_get_fmt() 540 mf->height = mt9m111->height; in mt9m111_get_fmt() 541 mf->code = mt9m111->fmt->code; in mt9m111_get_fmt() 542 mf->colorspace = mt9m111->fmt->colorspace; in mt9m111_get_fmt() 543 mf->field = V4L2_FIELD_NONE; in mt9m111_get_fmt() 544 mf->ycbcr_enc = V4L2_YCBCR_ENC_DEFAULT; in mt9m111_get_fmt() 545 mf->quantization = V4L2_QUANTIZATION_DEFAULT; in mt9m111_get_fmt() [all …]
|
D | ov6650.c | 535 struct v4l2_mbus_framefmt *mf = &sd_state->pads->try_fmt; in ov6650_set_selection() local 537 bool half_scale = !is_unscaled_ok(mf->width, mf->height, crop); in ov6650_set_selection() 543 mf->width = crop->width >> half_scale; in ov6650_set_selection() 544 mf->height = crop->height >> half_scale; in ov6650_set_selection() 579 struct v4l2_mbus_framefmt *mf = &format->format; in ov6650_get_fmt() local 587 *mf = ov6650_def_fmt; in ov6650_get_fmt() 591 mf->width = sd_state->pads->try_fmt.width; in ov6650_get_fmt() 592 mf->height = sd_state->pads->try_fmt.height; in ov6650_get_fmt() 593 mf->code = sd_state->pads->try_fmt.code; in ov6650_get_fmt() 596 mf->width = priv->rect.width >> priv->half_scale; in ov6650_get_fmt() [all …]
|
D | s5k4ecgx.c | 499 static int s5k4ecgx_try_frame_size(struct v4l2_mbus_framefmt *mf, in s5k4ecgx_try_frame_size() argument 508 int err = abs(fsize->size.width - mf->width) in s5k4ecgx_try_frame_size() 509 + abs(fsize->size.height - mf->height); in s5k4ecgx_try_frame_size() 517 mf->width = match->size.width; in s5k4ecgx_try_frame_size() 518 mf->height = match->size.height; in s5k4ecgx_try_frame_size() 543 struct v4l2_mbus_framefmt *mf; in s5k4ecgx_get_fmt() local 547 mf = v4l2_subdev_get_try_format(sd, sd_state, 0); in s5k4ecgx_get_fmt() 548 fmt->format = *mf; in s5k4ecgx_get_fmt() 553 mf = &fmt->format; in s5k4ecgx_get_fmt() 556 mf->width = priv->curr_frmsize->size.width; in s5k4ecgx_get_fmt() [all …]
|
D | s5k5baf.c | 738 static int s5k5baf_find_pixfmt(struct v4l2_mbus_framefmt *mf) in s5k5baf_find_pixfmt() argument 743 if (mf->colorspace != s5k5baf_formats[i].colorspace) in s5k5baf_find_pixfmt() 745 if (mf->code == s5k5baf_formats[i].code) in s5k5baf_find_pixfmt() 1250 static void s5k5baf_try_cis_format(struct v4l2_mbus_framefmt *mf) in s5k5baf_try_cis_format() argument 1252 mf->width = S5K5BAF_CIS_WIDTH; in s5k5baf_try_cis_format() 1253 mf->height = S5K5BAF_CIS_HEIGHT; in s5k5baf_try_cis_format() 1254 mf->code = MEDIA_BUS_FMT_FIXED; in s5k5baf_try_cis_format() 1255 mf->colorspace = V4L2_COLORSPACE_JPEG; in s5k5baf_try_cis_format() 1256 mf->field = V4L2_FIELD_NONE; in s5k5baf_try_cis_format() 1259 static int s5k5baf_try_isp_format(struct v4l2_mbus_framefmt *mf) in s5k5baf_try_isp_format() argument [all …]
|
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()
|
D | ov2640.c | 919 struct v4l2_mbus_framefmt *mf = &format->format; in ov2640_get_fmt() local 928 mf = v4l2_subdev_get_try_format(sd, sd_state, 0); in ov2640_get_fmt() 929 format->format = *mf; in ov2640_get_fmt() 936 mf->width = priv->win->width; in ov2640_get_fmt() 937 mf->height = priv->win->height; in ov2640_get_fmt() 938 mf->code = priv->cfmt_code; in ov2640_get_fmt() 939 mf->colorspace = V4L2_COLORSPACE_SRGB; in ov2640_get_fmt() 940 mf->field = V4L2_FIELD_NONE; in ov2640_get_fmt() 941 mf->ycbcr_enc = V4L2_YCBCR_ENC_DEFAULT; in ov2640_get_fmt() 942 mf->quantization = V4L2_QUANTIZATION_DEFAULT; in ov2640_get_fmt() [all …]
|
D | hi846.c | 1715 struct v4l2_mbus_framefmt *mf = &format->format; in hi846_set_format() local 1717 const struct hi846_datafmt *fmt = hi846_find_datafmt(mf->code); in hi846_set_format() 1722 mf->code = hi846_colour_fmts[0].code; in hi846_set_format() 1723 mf->colorspace = hi846_colour_fmts[0].colorspace; in hi846_set_format() 1728 *v4l2_subdev_get_try_format(sd, sd_state, format->pad) = *mf; in hi846_set_format() 1758 width, height, mf->width, mf->height); in hi846_set_format() 1765 mf->width = hi846->cur_mode->width; in hi846_set_format() 1766 mf->height = hi846->cur_mode->height; in hi846_set_format() 1767 mf->code = HI846_MEDIA_BUS_FORMAT; in hi846_set_format() 1768 mf->field = V4L2_FIELD_NONE; in hi846_set_format() [all …]
|
/Linux-v6.1/drivers/video/fbdev/omap2/omapfb/dss/ |
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-v6.1/drivers/media/platform/samsung/s3c-camif/ |
D | camif-capture.c | 1217 struct v4l2_mbus_framefmt *mf = &fmt->format; in s3c_camif_subdev_get_fmt() local 1220 mf = v4l2_subdev_get_try_format(sd, sd_state, fmt->pad); in s3c_camif_subdev_get_fmt() 1221 fmt->format = *mf; in s3c_camif_subdev_get_fmt() 1230 *mf = camif->mbus_fmt; in s3c_camif_subdev_get_fmt() 1235 mf->width = camif->camif_crop.width; in s3c_camif_subdev_get_fmt() 1236 mf->height = camif->camif_crop.height; in s3c_camif_subdev_get_fmt() 1237 mf->code = camif->mbus_fmt.code; in s3c_camif_subdev_get_fmt() 1242 mf->field = V4L2_FIELD_NONE; in s3c_camif_subdev_get_fmt() 1243 mf->colorspace = V4L2_COLORSPACE_JPEG; in s3c_camif_subdev_get_fmt() 1248 struct v4l2_mbus_framefmt *mf, int pad) in __camif_subdev_try_format() argument [all …]
|
/Linux-v6.1/drivers/media/test-drivers/vimc/ |
D | vimc-sensor.c | 50 struct v4l2_mbus_framefmt *mf; in vimc_sensor_init_cfg() local 52 mf = v4l2_subdev_get_try_format(sd, sd_state, i); in vimc_sensor_init_cfg() 53 *mf = fmt_default; in vimc_sensor_init_cfg() 153 struct v4l2_mbus_framefmt *mf; in vimc_sensor_set_fmt() local 160 mf = &vsensor->mbus_format; in vimc_sensor_set_fmt() 162 mf = v4l2_subdev_get_try_format(sd, sd_state, fmt->pad); in vimc_sensor_set_fmt() 172 mf->width, mf->height, mf->code, in vimc_sensor_set_fmt() 173 mf->colorspace, mf->quantization, in vimc_sensor_set_fmt() 174 mf->xfer_func, mf->ycbcr_enc, in vimc_sensor_set_fmt() 180 *mf = fmt->format; in vimc_sensor_set_fmt()
|
/Linux-v6.1/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); 393 MPT_FRAME_HDR *mf; in mptscsih_issue_sep_command() local 404 if ((mf = mpt_get_msg_frame(ioc->InternalCtx, ioc)) == NULL) { in mptscsih_issue_sep_command() 410 SEPMsg = (SEPRequest_t *)mf; in mptscsih_issue_sep_command() 419 mpt_put_msg_frame(ioc->DoneCtx, ioc, mf); in mptscsih_issue_sep_command() 586 mptscsih_io_done(MPT_ADAPTER *ioc, MPT_FRAME_HDR *mf, MPT_FRAME_HDR *mr) in mptscsih_io_done() argument 597 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 335 mf = mpt_get_msg_frame(mptctl_taskmgmt_id, ioc); in mptctl_do_taskmgmt() 336 if (mf == NULL) { in mptctl_do_taskmgmt() 346 ioc->name, mf)); in mptctl_do_taskmgmt() 348 pScsiTm = (SCSITaskMgmt_t *) mf; in mptctl_do_taskmgmt() 387 mpt_put_msg_frame_hi_pri(mptctl_taskmgmt_id, ioc, mf); in mptctl_do_taskmgmt() 396 ioc, mf, retval)); in mptctl_do_taskmgmt() [all …]
|
/Linux-v6.1/drivers/dma/dw-edma/ |
D | dw-edma-pcie.c | 49 enum dw_edma_map_format mf; member 87 .mf = EDMA_MF_EDMA_UNROLL, 127 pdata->mf = map; in dw_edma_pcie_get_vsec_dma_data() 212 chip->mf = vsec_data.mf; in dw_edma_pcie_probe() 274 if (chip->mf == EDMA_MF_EDMA_LEGACY) in dw_edma_pcie_probe() 275 pci_dbg(pdev, "Version:\teDMA Port Logic (0x%x)\n", chip->mf); in dw_edma_pcie_probe() 276 else if (chip->mf == EDMA_MF_EDMA_UNROLL) in dw_edma_pcie_probe() 277 pci_dbg(pdev, "Version:\teDMA Unroll (0x%x)\n", chip->mf); in dw_edma_pcie_probe() 278 else if (chip->mf == EDMA_MF_HDMA_COMPAT) in dw_edma_pcie_probe() 279 pci_dbg(pdev, "Version:\tHDMA Compatible (0x%x)\n", chip->mf); in dw_edma_pcie_probe() [all …]
|