Home
last modified time | relevance | path

Searched refs:mf (Results 1 – 25 of 51) sorted by relevance

123

/linux/io_uring/
H A Dmock_file.c115 struct io_mock_file *mf = iocb->ki_filp->private_data; in io_mock_delay_rw() local
126 hrtimer_start(&mio->timer, ns_to_ktime(mf->rw_delay_ns), in io_mock_delay_rw()
133 struct io_mock_file *mf = iocb->ki_filp->private_data; in io_mock_read_iter() local
137 if (iocb->ki_pos + len > mf->size) in io_mock_read_iter()
140 if (!mf->rw_delay_ns || nr_zeroed != len) in io_mock_read_iter()
148 struct io_mock_file *mf = iocb->ki_filp->private_data; in io_mock_write_iter() local
151 if (iocb->ki_pos + len > mf->size) in io_mock_write_iter()
153 if (!mf->rw_delay_ns) { in io_mock_write_iter()
163 struct io_mock_file *mf = file->private_data; in io_mock_llseek() local
165 return fixed_size_llseek(file, offset, whence, mf->size); in io_mock_llseek()
[all …]
/linux/drivers/hid/
H A Dhid-mf.c37 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_obj(struct mf_device); 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/drivers/clk/imx/
H A Dclk-pllv3.c315 struct clk_pllv3_vf610_mf mf) in clk_pllv3_vf610_mf_to_rate() argument
320 temp64 *= mf.mfn; in clk_pllv3_vf610_mf_to_rate()
321 do_div(temp64, mf.mfd); in clk_pllv3_vf610_mf_to_rate()
323 return (parent_rate * mf.mfi) + temp64; in clk_pllv3_vf610_mf_to_rate()
329 struct clk_pllv3_vf610_mf mf; in clk_pllv3_vf610_rate_to_mf() local
332 mf.mfi = (rate >= 22 * parent_rate) ? 22 : 20; in clk_pllv3_vf610_rate_to_mf()
333 mf.mfd = 0x3fffffff; /* use max supported value for best accuracy */ in clk_pllv3_vf610_rate_to_mf()
335 if (rate <= parent_rate * mf.mfi) in clk_pllv3_vf610_rate_to_mf()
336 mf.mfn = 0; in clk_pllv3_vf610_rate_to_mf()
337 else if (rate >= parent_rate * (mf.mfi + 1)) in clk_pllv3_vf610_rate_to_mf()
[all …]
/linux/drivers/media/platform/samsung/exynos4-is/
H A Dfimc-isp.c126 struct v4l2_mbus_framefmt *mf = &fmt->format; in fimc_isp_subdev_get_fmt() local
129 *mf = *v4l2_subdev_state_get_format(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 …]
H A Dfimc-capture.c768 struct v4l2_mbus_framefmt *mf = &sfmt.format; in fimc_pipeline_try_format() local
783 ffmt = fimc_find_format(NULL, mf->code != 0 ? &mf->code : NULL, in fimc_pipeline_try_format()
792 mf->code = tfmt->code = ffmt->mbus_code; in fimc_pipeline_try_format()
805 mf->code = tfmt->code; in fimc_pipeline_try_format()
818 if (mf->code != tfmt->code) in fimc_pipeline_try_format()
822 tfmt->width = mf->width; in fimc_pipeline_try_format()
823 tfmt->height = mf->height; in fimc_pipeline_try_format()
829 mf->code = ffmt->mbus_code; in fimc_pipeline_try_format()
830 if (mf->width != tfmt->width || mf->height != tfmt->height) in fimc_pipeline_try_format()
832 tfmt->code = mf->code; in fimc_pipeline_try_format()
[all …]
/linux/drivers/media/i2c/
H A Dtw9910.c747 struct v4l2_mbus_framefmt *mf = &format->format; in tw9910_get_fmt() local
760 mf->width = priv->scale->width; in tw9910_get_fmt()
761 mf->height = priv->scale->height; in tw9910_get_fmt()
762 mf->code = MEDIA_BUS_FMT_UYVY8_2X8; in tw9910_get_fmt()
763 mf->colorspace = V4L2_COLORSPACE_SMPTE170M; in tw9910_get_fmt()
764 mf->field = V4L2_FIELD_INTERLACED_BT; 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()
775 WARN_ON(mf->field != V4L2_FIELD_ANY && in tw9910_s_fmt()
776 mf->field != V4L2_FIELD_INTERLACED_BT); in tw9910_s_fmt()
[all …]
H A Dadv7170.c267 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()
H A Dov2640.c915 struct v4l2_mbus_framefmt *mf = &format->format; in ov2640_get_fmt() local
923 mf = v4l2_subdev_state_get_format(sd_state, 0); in ov2640_get_fmt()
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()
931 mf->colorspace = V4L2_COLORSPACE_SRGB; in ov2640_get_fmt()
932 mf->field = V4L2_FIELD_NONE; in ov2640_get_fmt()
933 mf->ycbcr_enc = V4L2_YCBCR_ENC_DEFAULT; in ov2640_get_fmt()
934 mf->quantization = V4L2_QUANTIZATION_DEFAULT; in ov2640_get_fmt()
[all …]
H A Dadv7175.c305 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()
H A Dov772x.c988 static void ov772x_select_params(const struct v4l2_mbus_framefmt *mf, in ov772x_select_params() argument
998 if (mf->code == ov772x_cfmts[i].code) { in ov772x_select_params()
1005 *win = ov772x_select_win(mf->width, mf->height); in ov772x_select_params()
1199 struct v4l2_mbus_framefmt *mf = &format->format; in ov772x_get_fmt() local
1205 mf->width = priv->win->rect.width; in ov772x_get_fmt()
1206 mf->height = priv->win->rect.height; in ov772x_get_fmt()
1207 mf->code = priv->cfmt->code; in ov772x_get_fmt()
1208 mf->colorspace = priv->cfmt->colorspace; in ov772x_get_fmt()
1209 mf->field = V4L2_FIELD_NONE; in ov772x_get_fmt()
1219 struct v4l2_mbus_framefmt *mf = &format->format; in ov772x_set_fmt() local
[all …]
H A Dak881x.c97 struct v4l2_mbus_framefmt *mf = &format->format; in ak881x_fill_fmt() local
104 v4l_bound_align_image(&mf->width, 0, 720, 2, in ak881x_fill_fmt()
105 &mf->height, 0, ak881x->lines, 1, 0); in ak881x_fill_fmt()
106 mf->field = V4L2_FIELD_INTERLACED; in ak881x_fill_fmt()
107 mf->code = MEDIA_BUS_FMT_YUYV8_2X8; in ak881x_fill_fmt()
108 mf->colorspace = V4L2_COLORSPACE_SMPTE170M; in ak881x_fill_fmt()
/linux/drivers/dma/dw-edma/
H A Ddw-edma-pcie.c49 enum dw_edma_map_format mf; member
87 .mf = EDMA_MF_EDMA_UNROLL,
143 pdata->mf = map; in dw_edma_pcie_get_vsec_dma_data()
231 chip->mf = vsec_data->mf; in dw_edma_pcie_probe()
293 if (chip->mf == EDMA_MF_EDMA_LEGACY) in dw_edma_pcie_probe()
294 pci_dbg(pdev, "Version:\teDMA Port Logic (0x%x)\n", chip->mf); in dw_edma_pcie_probe()
295 else if (chip->mf == EDMA_MF_EDMA_UNROLL) in dw_edma_pcie_probe()
296 pci_dbg(pdev, "Version:\teDMA Unroll (0x%x)\n", chip->mf); in dw_edma_pcie_probe()
297 else if (chip->mf == EDMA_MF_HDMA_COMPAT) in dw_edma_pcie_probe()
298 pci_dbg(pdev, "Version:\tHDMA Compatible (0x%x)\n", chip->mf); in dw_edma_pcie_probe()
[all …]
H A Ddw-edma-v0-debugfs.c27 if ((dw)->chip->mf == EDMA_MF_EDMA_LEGACY) \
77 if (dw->chip->mf == EDMA_MF_EDMA_LEGACY && in dw_edma_debugfs_u32_get()
186 if (dw->chip->mf == EDMA_MF_HDMA_COMPAT) { in dw_edma_debugfs_regs_wr()
249 if (dw->chip->mf == EDMA_MF_HDMA_COMPAT) { in dw_edma_debugfs_regs_rd()
287 debugfs_create_u32("mf", 0444, dw->dma.dbg_dev_root, &dw->chip->mf); in dw_edma_v0_debugfs_on()
/linux/drivers/video/fbdev/omap2/omapfb/dss/
H A Dhdmi_pll.c45 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/st/stm32/stm32-dcmipp/
H A Ddcmipp-input.c197 struct v4l2_mbus_framefmt *mf; in dcmipp_inp_init_state() local
199 mf = v4l2_subdev_state_get_format(sd_state, i); in dcmipp_inp_init_state()
200 *mf = fmt_default; in dcmipp_inp_init_state()
276 struct v4l2_mbus_framefmt *mf; in dcmipp_inp_set_fmt() local
281 mf = v4l2_subdev_state_get_format(sd_state, fmt->pad); in dcmipp_inp_set_fmt()
289 mf->width, mf->height, mf->code, in dcmipp_inp_set_fmt()
290 mf->colorspace, mf->quantization, in dcmipp_inp_set_fmt()
291 mf->xfer_func, mf->ycbcr_enc, in dcmipp_inp_set_fmt()
297 *mf = fmt->format; in dcmipp_inp_set_fmt()
301 mf = v4l2_subdev_state_get_format(sd_state, 1); in dcmipp_inp_set_fmt()
[all …]
H A Ddcmipp-byteproc.c196 struct v4l2_mbus_framefmt *mf; in dcmipp_byteproc_init_state() local
199 mf = v4l2_subdev_state_get_format(sd_state, i); in dcmipp_byteproc_init_state()
200 *mf = fmt_default; in dcmipp_byteproc_init_state()
270 struct v4l2_mbus_framefmt *mf; in dcmipp_byteproc_set_fmt() local
276 mf = v4l2_subdev_state_get_format(sd_state, fmt->pad); in dcmipp_byteproc_set_fmt()
295 *mf = fmt->format; in dcmipp_byteproc_set_fmt()
358 struct v4l2_mbus_framefmt *mf; in dcmipp_byteproc_set_selection() local
384 mf = v4l2_subdev_state_get_format(sd_state, 1); in dcmipp_byteproc_set_selection()
385 mf->width = s->r.width; in dcmipp_byteproc_set_selection()
386 mf->height = s->r.height; in dcmipp_byteproc_set_selection()
[all …]
/linux/drivers/media/test-drivers/vimc/
H A Dvimc-sensor.c54 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()
H A Dvimc-debayer.c166 struct v4l2_mbus_framefmt *mf; in vimc_debayer_init_state() local
168 mf = v4l2_subdev_state_get_format(sd_state, 0); in vimc_debayer_init_state()
169 *mf = sink_fmt_default; in vimc_debayer_init_state()
171 mf = v4l2_subdev_state_get_format(sd_state, 1); in vimc_debayer_init_state()
172 *mf = sink_fmt_default; in vimc_debayer_init_state()
173 mf->code = VIMC_DEBAYER_SOURCE_MBUS_FMT; in vimc_debayer_init_state()
/linux/drivers/message/fusion/
H A Dmptctl.c286 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 …]
H A Dmptlan.c126 static int lan_reply (MPT_ADAPTER *ioc, MPT_FRAME_HDR *mf,
165 lan_reply (MPT_ADAPTER *ioc, MPT_FRAME_HDR *mf, MPT_FRAME_HDR *reply) in lan_reply() argument
176 if (mf == NULL) { in lan_reply()
458 MPT_FRAME_HDR *mf; in mpt_lan_reset() local
462 mf = mpt_get_msg_frame(LanCtx, priv->mpt_dev); in mpt_lan_reset()
464 if (mf == NULL) { in mpt_lan_reset()
471 pResetReq = (LANResetRequest_t *) mf; in mpt_lan_reset()
480 mpt_put_msg_frame(LanCtx, priv->mpt_dev, mf); in mpt_lan_reset()
672 MPT_FRAME_HDR *mf; in mpt_lan_sdu_send() local
695 mf = mpt_get_msg_frame(LanCtx, mpt_dev); in mpt_lan_sdu_send()
[all …]
H A Dmptbase.c208 static void mpt_iocstatus_info(MPT_ADAPTER *ioc, u32 ioc_status, MPT_FRAME_HDR *mf);
445 MPT_FRAME_HDR *mf = NULL; in mpt_turbo_reply() local
457 mf = MPT_INDEX_2_MFPTR(ioc, req_idx); in mpt_turbo_reply()
472 mf = MPT_INDEX_2_MFPTR(ioc, req_idx); in mpt_turbo_reply()
473 mpt_free_msg_frame(ioc, mf); in mpt_turbo_reply()
496 if (MptCallbacks[cb_idx](ioc, mf, mr)) in mpt_turbo_reply()
497 mpt_free_msg_frame(ioc, mf); in mpt_turbo_reply()
505 MPT_FRAME_HDR *mf; in mpt_reply() local
530 mf = MPT_INDEX_2_MFPTR(ioc, req_idx); in mpt_reply()
550 mpt_iocstatus_info(ioc, (u32)ioc_stat, mf); in mpt_reply()
[all …]
H A Dmptsas.c1067 MPT_FRAME_HDR *mf; in mptsas_target_reset() local
1073 mf = mpt_get_msg_frame(mptsasDeviceResetCtx, ioc); in mptsas_target_reset()
1074 if (mf == NULL) { in mptsas_target_reset()
1082 ioc->name, mf)); in mptsas_target_reset()
1086 pScsiTm = (SCSITaskMgmt_t *) mf; in mptsas_target_reset()
1094 DBG_DUMP_TM_REQUEST_FRAME(ioc, (u32 *)mf); in mptsas_target_reset()
1100 mpt_put_msg_frame_hi_pri(mptsasDeviceResetCtx, ioc, mf); in mptsas_target_reset()
1220 mptsas_taskmgmt_complete(MPT_ADAPTER *ioc, MPT_FRAME_HDR *mf, MPT_FRAME_HDR *mr) in mptsas_taskmgmt_complete() argument
1229 "(mf = %p, mr = %p)\n", ioc->name, mf, mr)); in mptsas_taskmgmt_complete()
2112 MPT_FRAME_HDR *mf; in mptsas_phy_reset() local
[all …]
/linux/drivers/gpu/drm/omapdrm/dss/
H A Dpll.c278 unsigned int n, m, mf, m2, sd; in dss_pll_calc_b() local
300 mf = 0; in dss_pll_calc_b()
302 mf = (u32)div_u64(262144ull * (target_clkdco - clkdco), fint); in dss_pll_calc_b()
304 if (mf > 0) in dss_pll_calc_b()
305 clkdco += (u32)div_u64((u64)mf * fint, 262144); in dss_pll_calc_b()
313 n, m, mf, m2, sd); in dss_pll_calc_b()
318 cinfo->mf = mf; in dss_pll_calc_b()
556 l = FLD_MOD(l, cinfo->mf, 17, 0); /* PLL_REGM_F */ in dss_pll_write_config_type_b()
/linux/drivers/clk/rockchip/
H A Dclk.h796 #define COMPOSITE(_id, cname, pnames, f, mo, ms, mw, mf, ds, dw,\ argument
808 .mux_flags = mf, \
818 mf, do, ds, dw, df, go, gs, gf) \ argument
829 .mux_flags = mf, \
876 #define COMPOSITE_NODIV(_id, cname, pnames, f, mo, ms, mw, mf, \ argument
888 .mux_flags = mf, \
894 #define COMPOSITE_NOGATE(_id, cname, pnames, f, mo, ms, mw, mf, \ argument
906 .mux_flags = mf, \
914 mw, mf, ds, dw, df, dt) \ argument
925 .mux_flags = mf, \
[all …]
/linux/drivers/media/platform/samsung/s3c-camif/
H A Dcamif-regs.c105 struct v4l2_mbus_framefmt *mf = &camif->mbus_fmt; in camif_hw_set_source_format() local
110 if (src_pixfmt_map[i][0] == mf->code) in camif_hw_set_source_format()
122 cfg |= (mf->width << 16) | mf->height; in camif_hw_set_source_format()
130 struct v4l2_mbus_framefmt *mf = &camif->mbus_fmt; in camif_hw_set_camera_crop() local
144 hoff2 = mf->width - crop->width - crop->left; in camif_hw_set_camera_crop()
145 voff2 = mf->height - crop->height - crop->top; in camif_hw_set_camera_crop()

123