| /linux/drivers/hid/ |
| H 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 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/drivers/media/platform/samsung/exynos4-is/ |
| H A D | fimc-isp.c | 126 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 …]
|
| /linux/drivers/media/i2c/ |
| H A D | tw9910.c | 747 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 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()
|
| H A D | ov2640.c | 915 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 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()
|
| H A D | ov772x.c | 988 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 D | ak881x.c | 97 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()
|
| H A D | isl7998x.c | 1004 struct v4l2_mbus_framefmt *mf = &format->format; in isl7998x_get_fmt() local 1017 mf->width = mode->width; in isl7998x_get_fmt() 1018 mf->height = mode->height; in isl7998x_get_fmt() 1019 mf->code = isl7998x->fmt->code; in isl7998x_get_fmt() 1020 mf->field = mode->field; in isl7998x_get_fmt() 1021 mf->colorspace = 0; in isl7998x_get_fmt() 1034 struct v4l2_mbus_framefmt *mf = &format->format; in isl7998x_set_fmt() local 1041 mf->width = mode->width; in isl7998x_set_fmt() 1042 mf->height = mode->height; in isl7998x_set_fmt() 1043 mf->code = isl7998x->fmt->code; in isl7998x_set_fmt() [all …]
|
| /linux/drivers/dma/dw-edma/ |
| H A D | dw-edma-pcie.c | 49 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 D | dw-edma-v0-debugfs.c | 27 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 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/test-drivers/vimc/ |
| H 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()
|
| H A D | vimc-debayer.c | 166 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 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 …]
|
| H A D | mptlan.c | 126 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() 463 MPT_FRAME_HDR *mf; in mpt_lan_reset() local 467 mf = mpt_get_msg_frame(LanCtx, priv->mpt_dev); in mpt_lan_reset() 469 if (mf == NULL) { in mpt_lan_reset() 476 pResetReq = (LANResetRequest_t *) mf; in mpt_lan_reset() 485 mpt_put_msg_frame(LanCtx, priv->mpt_dev, mf); in mpt_lan_reset() 677 MPT_FRAME_HDR *mf; in mpt_lan_sdu_send() local 700 mf = mpt_get_msg_frame(LanCtx, mpt_dev); in mpt_lan_sdu_send() [all …]
|
| H A D | mptbase.c | 208 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 D | mptbase.h | 840 #define MFPTR_2_MPT_INDEX(ioc,mf) \ argument 841 (int)( ((u8*)mf - (u8*)(ioc)->req_frames) / (ioc)->req_sz ) 922 extern void mpt_free_msg_frame(MPT_ADAPTER *ioc, MPT_FRAME_HDR *mf); 923 extern void mpt_put_msg_frame(u8 cb_idx, MPT_ADAPTER *ioc, MPT_FRAME_HDR *mf); 924 extern void mpt_put_msg_frame_hi_pri(u8 cb_idx, MPT_ADAPTER *ioc, MPT_FRAME_HDR *mf);
|
| /linux/drivers/gpu/drm/omapdrm/dss/ |
| H A D | pll.c | 278 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 D | clk.h | 796 #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 D | camif-regs.c | 105 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()
|
| /linux/sound/soc/qcom/qdsp6/ |
| H A D | audioreach.c | 157 struct param_id_hw_ep_mf mf; member 633 hw_cfg->mf.sample_rate = cfg->sample_rate; in audioreach_display_port_set_media_format() 634 hw_cfg->mf.bit_width = cfg->bit_width; in audioreach_display_port_set_media_format() 635 hw_cfg->mf.num_channels = cfg->num_channels; in audioreach_display_port_set_media_format() 636 hw_cfg->mf.data_format = module->data_format; in audioreach_display_port_set_media_format() 691 hw_cfg->mf.sample_rate = cfg->sample_rate; in audioreach_codec_dma_set_media_format() 692 hw_cfg->mf.bit_width = cfg->bit_width; in audioreach_codec_dma_set_media_format() 693 hw_cfg->mf.num_channels = cfg->num_channels; in audioreach_codec_dma_set_media_format() 694 hw_cfg->mf.data_format = module->data_format; in audioreach_codec_dma_set_media_format() 992 hw_cfg->mf [all...] |
| /linux/sound/soc/qcom/ |
| H A D | lpass.h | 35 #define QCOM_REGMAP_FIELD_ALLOC(d, m, f, mf) \ argument 37 mf = devm_regmap_field_alloc(d, m, f); \ 38 if (IS_ERR(mf)) \
|
| /linux/drivers/scsi/mpt3sas/ |
| H A D | mpt3sas_ctl.h | 284 uint8_t mf[1]; member 300 uint8_t mf[1]; member
|
| /linux/drivers/usb/misc/ |
| H A D | usbsevseg.c | 106 static void update_display_visual(struct usb_sevsegdev *mydev, gfp_t mf) in update_display_visual() argument 123 &buffer, mydev->textlength, 2000, mf); in update_display_visual() 135 NULL, 0, 2000, mf); in update_display_visual()
|