/linux-master/drivers/hid/ |
H A D | hid-mf.c | 37 struct mf_device *mf = data; local 50 mf->report->field[0]->value[0] = weak; 51 mf->report->field[0]->value[1] = strong; 52 hid_hw_request(hid, mf->report, HID_REQ_SET_REPORT); 59 struct mf_device *mf; local 91 mf = kzalloc(sizeof(struct mf_device), GFP_KERNEL); 92 if (!mf) 98 error = input_ff_create_memless(dev, mf, mf_play); 100 kfree(mf); 104 mf [all...] |
/linux-master/drivers/clk/imx/ |
H A D | clk-pllv3.c | 310 struct clk_pllv3_vf610_mf mf) 315 temp64 *= mf.mfn; 316 do_div(temp64, mf.mfd); 318 return (parent_rate * mf.mfi) + temp64; 324 struct clk_pllv3_vf610_mf mf; local 327 mf.mfi = (rate >= 22 * parent_rate) ? 22 : 20; 328 mf.mfd = 0x3fffffff; /* use max supported value for best accuracy */ 330 if (rate <= parent_rate * mf.mfi) 331 mf.mfn = 0; 332 else if (rate >= parent_rate * (mf 309 clk_pllv3_vf610_mf_to_rate(unsigned long parent_rate, struct clk_pllv3_vf610_mf mf) argument 349 struct clk_pllv3_vf610_mf mf; local 361 struct clk_pllv3_vf610_mf mf = clk_pllv3_vf610_rate_to_mf(*prate, rate); local 370 struct clk_pllv3_vf610_mf mf = local [all...] |
/linux-master/drivers/media/platform/samsung/exynos4-is/ |
H A D | fimc-isp.c | 126 struct v4l2_mbus_framefmt *mf = &fmt->format; local 129 *mf = *v4l2_subdev_state_get_format(sd_state, fmt->pad); 133 mf->colorspace = V4L2_COLORSPACE_SRGB; 139 *mf = isp->sink_fmt; 142 *mf = isp->src_fmt; 145 mf->colorspace = V4L2_COLORSPACE_JPEG; 146 mf->code = MEDIA_BUS_FMT_YUV10_1X30; 153 fmt->pad, mf->code, mf->width, mf 162 struct v4l2_mbus_framefmt *mf = &fmt->format; local 199 struct v4l2_mbus_framefmt *mf = &fmt->format; local [all...] |
H A D | mipi-csis.c | 280 struct v4l2_mbus_framefmt *mf) 285 if (mf->code == s5pcsis_formats[i].code) 331 struct v4l2_mbus_framefmt *mf = &state->format; local 335 mf->code, mf->width, mf->height); 343 val = (mf->width << 16) | mf->height; 551 struct v4l2_mbus_framefmt *mf) 555 csis_fmt = find_csis_format(mf); 279 find_csis_format( struct v4l2_mbus_framefmt *mf) argument 550 s5pcsis_try_format( struct v4l2_mbus_framefmt *mf) argument 583 struct v4l2_mbus_framefmt *mf; local 611 struct v4l2_mbus_framefmt *mf; local [all...] |
H A D | fimc-lite.c | 557 struct v4l2_mbus_framefmt *mf = &format->format; local 561 v4l_bound_align_image(&mf->width, 8, dd->max_width, 563 &mf->height, 0, dd->max_height, 0, 0); 565 fmt = fimc_lite_find_format(NULL, &mf->code, 0, 0); 569 mf->colorspace = fmt->colorspace; 570 mf->code = fmt->mbus_code; 580 mf->code = sink_fmt->code; 581 mf->colorspace = sink_fmt->colorspace; 586 mf->code = sink->fmt->mbus_code; 587 mf 1030 struct v4l2_mbus_framefmt *mf = &fmt->format; local 1061 struct v4l2_mbus_framefmt *mf = &fmt->format; local [all...] |
/linux-master/drivers/media/i2c/ |
H A D | s5k6a3.c | 90 struct v4l2_mbus_framefmt *mf) 95 if (mf->code == s5k6a3_formats[i].code) 112 static void s5k6a3_try_format(struct v4l2_mbus_framefmt *mf) argument 116 fmt = find_sensor_format(mf); 117 mf->code = fmt->code; 118 mf->field = V4L2_FIELD_NONE; 119 v4l_bound_align_image(&mf->width, S5K6A3_SENSOR_MIN_WIDTH, 121 &mf->height, S5K6A3_SENSOR_MIN_HEIGHT, 140 struct v4l2_mbus_framefmt *mf; local 144 mf 89 find_sensor_format( struct v4l2_mbus_framefmt *mf) argument 158 struct v4l2_mbus_framefmt *mf; local [all...] |
H A D | mt9m001.c | 322 struct v4l2_mbus_framefmt *mf = &format->format; local 328 mf = v4l2_subdev_state_get_format(sd_state, 0); 329 format->format = *mf; 333 mf->width = mt9m001->rect.width; 334 mf->height = mt9m001->rect.height; 335 mf->code = mt9m001->fmt->code; 336 mf->colorspace = mt9m001->fmt->colorspace; 337 mf->field = V4L2_FIELD_NONE; 338 mf->ycbcr_enc = V4L2_YCBCR_ENC_DEFAULT; 339 mf 345 mt9m001_s_fmt(struct v4l2_subdev *sd, const struct mt9m001_datafmt *fmt, struct v4l2_mbus_framefmt *mf) argument 377 struct v4l2_mbus_framefmt *mf = &format->format; local [all...] |
H A D | adv7170.c | 267 struct v4l2_mbus_framefmt *mf = &format->format; local 274 mf->code = MEDIA_BUS_FMT_UYVY8_1X16; 276 mf->code = MEDIA_BUS_FMT_UYVY8_2X8; 278 mf->colorspace = V4L2_COLORSPACE_SMPTE170M; 279 mf->width = 0; 280 mf->height = 0; 281 mf->field = V4L2_FIELD_ANY; 290 struct v4l2_mbus_framefmt *mf = &format->format; local 296 switch (mf->code) { 307 "illegal v4l2_mbus_framefmt code: %d\n", mf [all...] |
H A D | ov6650.c | 536 struct v4l2_mbus_framefmt *mf = local 539 bool half_scale = !is_unscaled_ok(mf->width, mf->height, crop); 545 mf->width = crop->width >> half_scale; 546 mf->height = crop->height >> half_scale; 581 struct v4l2_mbus_framefmt *mf = &format->format; local 589 *mf = ov6650_def_fmt; 596 mf->width = try_fmt->width; 597 mf->height = try_fmt->height; 598 mf 698 struct v4l2_mbus_framefmt *mf = &format->format; local [all...] |
H A D | tw9910.c | 752 struct v4l2_mbus_framefmt *mf = &format->format; local 765 mf->width = priv->scale->width; 766 mf->height = priv->scale->height; 767 mf->code = MEDIA_BUS_FMT_UYVY8_2X8; 768 mf->colorspace = V4L2_COLORSPACE_SMPTE170M; 769 mf->field = V4L2_FIELD_INTERLACED_BT; 775 struct v4l2_mbus_framefmt *mf) 777 u32 width = mf->width, height = mf->height; 780 WARN_ON(mf 774 tw9910_s_fmt(struct v4l2_subdev *sd, struct v4l2_mbus_framefmt *mf) argument 803 struct v4l2_mbus_framefmt *mf = &format->format; local [all...] |
H A D | rj54n1cb0c.c | 609 struct v4l2_mbus_framefmt *mf = &format->format; local 616 mf->code = rj54n1->fmt->code; 617 mf->colorspace = rj54n1->fmt->colorspace; 618 mf->ycbcr_enc = V4L2_YCBCR_ENC_601; 619 mf->xfer_func = V4L2_XFER_FUNC_SRGB; 620 mf->quantization = V4L2_QUANTIZATION_DEFAULT; 621 mf->field = V4L2_FIELD_NONE; 622 mf->width = rj54n1->width; 623 mf->height = rj54n1->height; 979 struct v4l2_mbus_framefmt *mf local [all...] |
H A D | mt9m111.c | 521 struct v4l2_mbus_framefmt *mf = &format->format; local 528 mf = v4l2_subdev_state_get_format(sd_state, format->pad); 529 format->format = *mf; 533 mf->width = mt9m111->width; 534 mf->height = mt9m111->height; 535 mf->code = mt9m111->fmt->code; 536 mf->colorspace = mt9m111->fmt->colorspace; 537 mf->field = V4L2_FIELD_NONE; 538 mf->ycbcr_enc = V4L2_YCBCR_ENC_DEFAULT; 539 mf 623 struct v4l2_mbus_framefmt *mf = &format->format; local [all...] |
H A D | s5k5baf.c | 732 static int s5k5baf_find_pixfmt(struct v4l2_mbus_framefmt *mf) argument 737 if (mf->colorspace != s5k5baf_formats[i].colorspace) 739 if (mf->code == s5k5baf_formats[i].code) 1256 static void s5k5baf_try_cis_format(struct v4l2_mbus_framefmt *mf) argument 1258 mf->width = S5K5BAF_CIS_WIDTH; 1259 mf->height = S5K5BAF_CIS_HEIGHT; 1260 mf->code = MEDIA_BUS_FMT_FIXED; 1261 mf->colorspace = V4L2_COLORSPACE_JPEG; 1262 mf->field = V4L2_FIELD_NONE; 1265 static int s5k5baf_try_isp_format(struct v4l2_mbus_framefmt *mf) argument 1289 struct v4l2_mbus_framefmt *mf; local 1318 struct v4l2_mbus_framefmt *mf = &fmt->format; local 1710 struct v4l2_mbus_framefmt *mf; local [all...] |
H A D | ak881x.c | 97 struct v4l2_mbus_framefmt *mf = &format->format; local 104 v4l_bound_align_image(&mf->width, 0, 720, 2, 105 &mf->height, 0, ak881x->lines, 1, 0); 106 mf->field = V4L2_FIELD_INTERLACED; 107 mf->code = MEDIA_BUS_FMT_YUYV8_2X8; 108 mf->colorspace = V4L2_COLORSPACE_SMPTE170M;
|
H A D | adv7175.c | 305 struct v4l2_mbus_framefmt *mf = &format->format; local 312 mf->code = MEDIA_BUS_FMT_UYVY8_1X16; 314 mf->code = MEDIA_BUS_FMT_UYVY8_2X8; 316 mf->colorspace = V4L2_COLORSPACE_SMPTE170M; 317 mf->width = 0; 318 mf->height = 0; 319 mf->field = V4L2_FIELD_ANY; 328 struct v4l2_mbus_framefmt *mf = &format->format; local 335 switch (mf->code) { 346 "illegal v4l2_mbus_framefmt code: %d\n", mf [all...] |
/linux-master/drivers/media/platform/st/stm32/stm32-dcmipp/ |
H A D | dcmipp-parallel.c | 152 struct v4l2_mbus_framefmt *mf; local 154 mf = v4l2_subdev_state_get_format(sd_state, i); 155 *mf = fmt_default; 231 struct v4l2_mbus_framefmt *mf; local 236 mf = v4l2_subdev_state_get_format(sd_state, fmt->pad); 244 mf->width, mf->height, mf->code, 245 mf->colorspace, mf [all...] |
H A D | dcmipp-byteproc.c | 168 struct v4l2_mbus_framefmt *mf; local 171 mf = v4l2_subdev_state_get_format(sd_state, i); 172 *mf = fmt_default; 243 struct v4l2_mbus_framefmt *mf; local 249 mf = v4l2_subdev_state_get_format(sd_state, fmt->pad); 268 *mf = fmt->format; 331 struct v4l2_mbus_framefmt *mf; local 357 mf = v4l2_subdev_state_get_format(sd_state, 1); 358 mf->width = s->r.width; 359 mf [all...] |
/linux-master/drivers/video/fbdev/omap2/omapfb/dss/ |
H A D | hdmi_pll.c | 45 unsigned n, m, mf, m2, sd; local 70 /* adjust clkdco with fractional mf */ 72 mf = 0; 74 mf = (u32)div_u64(262144ull * (target_clkdco - clkdco), fint); 76 if (mf > 0) 77 clkdco += (u32)div_u64((u64)mf * fint, 262144); 85 n, m, mf, m2, sd); 90 pi->mf = mf;
|
/linux-master/drivers/media/test-drivers/vimc/ |
H A D | vimc-sensor.c | 50 struct v4l2_mbus_framefmt *mf; local 52 mf = v4l2_subdev_state_get_format(sd_state, i); 53 *mf = fmt_default; 153 struct v4l2_mbus_framefmt *mf; local 160 mf = &vsensor->mbus_format; 162 mf = v4l2_subdev_state_get_format(sd_state, fmt->pad); 172 mf->width, mf->height, mf->code, 173 mf [all...] |
/linux-master/drivers/media/platform/samsung/s3c-camif/ |
H A D | camif-capture.c | 1216 struct v4l2_mbus_framefmt *mf = &fmt->format; local 1219 mf = v4l2_subdev_state_get_format(sd_state, fmt->pad); 1220 fmt->format = *mf; 1229 *mf = camif->mbus_fmt; 1234 mf->width = camif->camif_crop.width; 1235 mf->height = camif->camif_crop.height; 1236 mf->code = camif->mbus_fmt.code; 1241 mf->field = V4L2_FIELD_NONE; 1242 mf->colorspace = V4L2_COLORSPACE_JPEG; 1247 struct v4l2_mbus_framefmt *mf, in 1246 __camif_subdev_try_format(struct camif_dev *camif, struct v4l2_mbus_framefmt *mf, int pad) argument 1284 struct v4l2_mbus_framefmt *mf = &fmt->format; local 1352 struct v4l2_mbus_framefmt *mf = &camif->mbus_fmt; local 1386 struct v4l2_mbus_framefmt *mf = &camif->mbus_fmt; local [all...] |
/linux-master/drivers/dma/dw-edma/ |
H A D | dw-edma-pcie.c | 49 enum dw_edma_map_format mf; member in struct:dw_edma_pcie_data 87 .mf = EDMA_MF_EDMA_UNROLL, 142 pdata->mf = map; 226 chip->mf = vsec_data.mf; 288 if (chip->mf == EDMA_MF_EDMA_LEGACY) 289 pci_dbg(pdev, "Version:\teDMA Port Logic (0x%x)\n", chip->mf); 290 else if (chip->mf == EDMA_MF_EDMA_UNROLL) 291 pci_dbg(pdev, "Version:\teDMA Unroll (0x%x)\n", chip->mf); 292 else if (chip->mf [all...] |
/linux-master/drivers/message/fusion/ |
H A D | mptscsih.h | 127 extern int mptscsih_io_done(MPT_ADAPTER *ioc, MPT_FRAME_HDR *mf, MPT_FRAME_HDR *r); 128 extern int mptscsih_taskmgmt_complete(MPT_ADAPTER *ioc, MPT_FRAME_HDR *mf, MPT_FRAME_HDR *r); 129 extern int mptscsih_scandv_complete(MPT_ADAPTER *ioc, MPT_FRAME_HDR *mf, MPT_FRAME_HDR *r);
|
H A 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, SCSIIOReply_t *pScsiReply); 107 int mptscsih_scandv_complete(MPT_ADAPTER *ioc, MPT_FRAME_HDR *mf, MPT_FRAME_HDR *r); 393 MPT_FRAME_HDR *mf; local 404 if ((mf = mpt_get_msg_frame(ioc->InternalCtx, ioc)) == NULL) { 410 SEPMsg = (SEPRequest_t *)mf; 419 mpt_put_msg_frame(ioc->DoneCtx, ioc, mf); 575 * @mf: Pointer to original MPT request frame 586 mptscsih_io_done(MPT_ADAPTER *ioc, MPT_FRAME_HDR *mf, MPT_FRAME_HD argument 1034 SCSIIORequest_t *mf = NULL; local 1079 SCSIIORequest_t *mf = NULL; local 1316 MPT_FRAME_HDR *mf; local 1516 MPT_FRAME_HDR *mf; local 1684 MPT_FRAME_HDR *mf; local 2105 mptscsih_taskmgmt_complete(MPT_ADAPTER *ioc, MPT_FRAME_HDR *mf, MPT_FRAME_HDR *mr) argument 2457 mptscsih_copy_sense_data(struct scsi_cmnd *sc, MPT_SCSI_HOST *hd, MPT_FRAME_HDR *mf, SCSIIOReply_t *pScsiReply) argument 2829 MPT_FRAME_HDR *mf; local [all...] |
H A D | mptctl.c | 286 mptctl_taskmgmt_reply(MPT_ADAPTER *ioc, MPT_FRAME_HDR *mf, MPT_FRAME_HDR *mr) argument 288 if (!mf) 292 "TaskMgmt completed (mf=%p, mr=%p)\n", 293 ioc->name, mf, mr)); 318 MPT_FRAME_HDR *mf; local 335 mf = mpt_get_msg_frame(mptctl_taskmgmt_id, ioc); 336 if (mf == NULL) { 345 dtmprintk(ioc, printk(MYIOC_s_DEBUG_FMT "TaskMgmt request (mf=%p)\n", 346 ioc->name, mf)); 348 pScsiTm = (SCSITaskMgmt_t *) mf; 461 mptctl_timeout_expired(MPT_ADAPTER *ioc, MPT_FRAME_HDR *mf) argument 779 MPT_FRAME_HDR *mf; local 1731 MPT_FRAME_HDR *mf = NULL; local 2331 MPT_FRAME_HDR *mf = NULL; local [all...] |
/linux-master/drivers/media/platform/nxp/imx8-isi/ |
H A D | imx8-isi-pipe.c | 455 struct v4l2_mbus_framefmt *mf = &fmt->format; local 466 info = mxc_isi_bus_format_by_code(mf->code, 480 mf->code = info->mbus_code; 481 mf->width = clamp(mf->width, MXC_ISI_MIN_WIDTH, max_width); 482 mf->height = clamp(mf->height, MXC_ISI_MIN_HEIGHT, 488 rect->width = mf->width; 489 rect->height = mf->height; 495 rect->width = mf [all...] |