Home
last modified time | relevance | path

Searched refs:cur_mode (Results 1 – 25 of 32) sorted by relevance

12

/kernel/linux/linux-5.10/drivers/firmware/efi/libstub/
Dgop.c142 u32 max_mode, cur_mode; in choose_mode_modenum() local
147 cur_mode = efi_table_attr(mode, mode); in choose_mode_modenum()
148 if (cmdline.mode == cur_mode) in choose_mode_modenum()
149 return cur_mode; in choose_mode_modenum()
154 return cur_mode; in choose_mode_modenum()
161 return cur_mode; in choose_mode_modenum()
170 return cur_mode; in choose_mode_modenum()
196 u32 max_mode, cur_mode; in choose_mode_res() local
203 cur_mode = efi_table_attr(mode, mode); in choose_mode_res()
213 return cur_mode; in choose_mode_res()
[all …]
/kernel/linux/linux-5.10/drivers/media/i2c/
Dov5670.c1828 const struct ov5670_mode *cur_mode; member
1945 try_fmt->width = ov5670->cur_mode->width; in ov5670_open()
1946 try_fmt->height = ov5670->cur_mode->height; in ov5670_open()
2012 max = ov5670->cur_mode->height + ctrl->val - 8; in ov5670_set_ctrl()
2040 ov5670->cur_mode->height + ctrl->val); in ov5670_set_ctrl()
2093 vblank_max = OV5670_VTS_MAX - ov5670->cur_mode->height; in ov5670_init_controls()
2094 vblank_def = ov5670->cur_mode->vts_def - ov5670->cur_mode->height; in ov5670_init_controls()
2095 vblank_min = ov5670->cur_mode->vts_min - ov5670->cur_mode->height; in ov5670_init_controls()
2102 OV5670_FIXED_PPL - ov5670->cur_mode->width, in ov5670_init_controls()
2103 OV5670_FIXED_PPL - ov5670->cur_mode->width, 1, in ov5670_init_controls()
[all …]
Dimx258.c603 const struct imx258_mode *cur_mode; member
839 imx258_update_pad_format(imx258->cur_mode, fmt); in __imx258_get_pad_format()
884 imx258->cur_mode = mode; in imx258_set_pad_format()
891 vblank_def = imx258->cur_mode->vts_def - in imx258_set_pad_format()
892 imx258->cur_mode->height; in imx258_set_pad_format()
893 vblank_min = imx258->cur_mode->vts_min - in imx258_set_pad_format()
894 imx258->cur_mode->height; in imx258_set_pad_format()
897 IMX258_VTS_MAX - imx258->cur_mode->height, 1, in imx258_set_pad_format()
902 - imx258->cur_mode->width; in imx258_set_pad_format()
920 link_freq_index = imx258->cur_mode->link_freq_index; in imx258_start_streaming()
[all …]
Dov2740.c331 const struct ov2740_mode *cur_mode; member
468 exposure_max = ov2740->cur_mode->height + ctrl->val - in ov2740_set_ctrl()
498 ov2740->cur_mode->height + ctrl->val); in ov2740_set_ctrl()
522 const struct ov2740_mode *cur_mode; in ov2740_init_controls() local
534 cur_mode = ov2740->cur_mode; in ov2740_init_controls()
549 vblank_min = cur_mode->vts_min - cur_mode->height; in ov2740_init_controls()
550 vblank_max = OV2740_VTS_MAX - cur_mode->height; in ov2740_init_controls()
551 vblank_default = cur_mode->vts_def - cur_mode->height; in ov2740_init_controls()
556 h_blank = to_pixels_per_line(cur_mode->hts, cur_mode->link_freq_index); in ov2740_init_controls()
557 h_blank -= cur_mode->width; in ov2740_init_controls()
[all …]
Dhi556.c491 const struct hi556_mode *cur_mode; member
633 exposure_max = hi556->cur_mode->height + ctrl->val - in hi556_set_ctrl()
664 hi556->cur_mode->height + ctrl->val); in hi556_set_ctrl()
712 hi556->cur_mode->fll_min - in hi556_init_controls()
713 hi556->cur_mode->height, in hi556_init_controls()
715 hi556->cur_mode->height, 1, in hi556_init_controls()
716 hi556->cur_mode->fll_def - in hi556_init_controls()
717 hi556->cur_mode->height); in hi556_init_controls()
719 h_blank = hi556->cur_mode->llp - hi556->cur_mode->width; in hi556_init_controls()
733 exposure_max = hi556->cur_mode->fll_def - HI556_EXPOSURE_MAX_MARGIN; in hi556_init_controls()
[all …]
Dov5675.c489 const struct ov5675_mode *cur_mode; member
669 exposure_max = ov5675->cur_mode->height + ctrl->val - in ov5675_set_ctrl()
706 ov5675->cur_mode->height + ctrl->val + in ov5675_set_ctrl()
762 ov5675->cur_mode->vts_min - ov5675->cur_mode->height, in ov5675_init_controls()
763 OV5675_VTS_MAX - ov5675->cur_mode->height, 1, in ov5675_init_controls()
764 ov5675->cur_mode->vts_def - ov5675->cur_mode->height); in ov5675_init_controls()
765 h_blank = to_pixels_per_line(ov5675->cur_mode->hts, in ov5675_init_controls()
766 ov5675->cur_mode->link_freq_index) - ov5675->cur_mode->width; in ov5675_init_controls()
779 exposure_max = (ov5675->cur_mode->vts_def - OV5675_EXPOSURE_MAX_MARGIN); in ov5675_init_controls()
817 link_freq_index = ov5675->cur_mode->link_freq_index; in ov5675_start_streaming()
[all …]
Dov13858.c1042 const struct ov13858_mode *cur_mode; member
1159 try_fmt->width = ov13858->cur_mode->width; in ov13858_open()
1160 try_fmt->height = ov13858->cur_mode->height; in ov13858_open()
1223 max = ov13858->cur_mode->height + ctrl->val - 8; in ov13858_set_ctrl()
1255 ov13858->cur_mode->height in ov13858_set_ctrl()
1328 ov13858_update_pad_format(ov13858->cur_mode, fmt); in ov13858_do_get_pad_format()
1377 ov13858->cur_mode = mode; in ov13858_set_pad_format()
1384 vblank_def = ov13858->cur_mode->vts_def - in ov13858_set_pad_format()
1385 ov13858->cur_mode->height; in ov13858_set_pad_format()
1386 vblank_min = ov13858->cur_mode->vts_min - in ov13858_set_pad_format()
[all …]
Dov8856.c1033 const struct ov8856_mode *cur_mode; member
1166 exposure_max = ov8856->cur_mode->height + ctrl->val - in ov8856_set_ctrl()
1197 ov8856->cur_mode->height + ctrl->val); in ov8856_set_ctrl()
1244 ov8856->cur_mode->vts_min - ov8856->cur_mode->height, in ov8856_init_controls()
1245 OV8856_VTS_MAX - ov8856->cur_mode->height, 1, in ov8856_init_controls()
1246 ov8856->cur_mode->vts_def - ov8856->cur_mode->height); in ov8856_init_controls()
1247 h_blank = to_pixels_per_line(ov8856->cur_mode->hts, in ov8856_init_controls()
1248 ov8856->cur_mode->link_freq_index) - ov8856->cur_mode->width; in ov8856_init_controls()
1261 exposure_max = ov8856->cur_mode->vts_def - OV8856_EXPOSURE_MAX_MARGIN; in ov8856_init_controls()
1294 link_freq_index = ov8856->cur_mode->link_freq_index; in ov8856_start_streaming()
[all …]
Dimx319.c129 const struct imx319_mode *cur_mode; member
1868 try_fmt->width = imx319->cur_mode->width; in imx319_open()
1869 try_fmt->height = imx319->cur_mode->height; in imx319_open()
1890 max = imx319->cur_mode->height + ctrl->val - 18; in imx319_set_ctrl()
1921 imx319->cur_mode->height + ctrl->val); in imx319_set_ctrl()
2010 imx319_update_pad_format(imx319, imx319->cur_mode, fmt); in imx319_do_get_pad_format()
2061 imx319->cur_mode = mode; in imx319_set_pad_format()
2066 height = imx319->cur_mode->height; in imx319_set_pad_format()
2067 vblank_def = imx319->cur_mode->fll_def - height; in imx319_set_pad_format()
2068 vblank_min = imx319->cur_mode->fll_min - height; in imx319_set_pad_format()
[all …]
Dimx355.c115 const struct imx355_mode *cur_mode; member
1169 try_fmt->width = imx355->cur_mode->width; in imx355_open()
1170 try_fmt->height = imx355->cur_mode->height; in imx355_open()
1191 max = imx355->cur_mode->height + ctrl->val - 10; in imx355_set_ctrl()
1222 imx355->cur_mode->height + ctrl->val); in imx355_set_ctrl()
1311 imx355_update_pad_format(imx355, imx355->cur_mode, fmt); in imx355_do_get_pad_format()
1362 imx355->cur_mode = mode; in imx355_set_pad_format()
1367 height = imx355->cur_mode->height; in imx355_set_pad_format()
1368 vblank_def = imx355->cur_mode->fll_def - height; in imx355_set_pad_format()
1369 vblank_min = imx355->cur_mode->fll_min - height; in imx355_set_pad_format()
[all …]
Dov2685.c100 const struct ov2685_mode *cur_mode; member
338 ov2685_fill_fmt(ov2685->cur_mode, mbus_fmt); in ov2685_set_fmt()
350 ov2685_fill_fmt(ov2685->cur_mode, mbus_fmt); in ov2685_get_fmt()
421 ret = ov2685_write_array(ov2685->client, ov2685->cur_mode->reg_list); in __ov2685_power_on()
544 max_expo = ov2685->cur_mode->height + ctrl->val - 4; in ov2685_set_ctrl()
567 ctrl->val + ov2685->cur_mode->height); in ov2685_set_ctrl()
622 mode = ov2685->cur_mode; in ov2685_initialize_controls()
725 ov2685->cur_mode = &supported_modes[0]; in ov2685_probe()
Dov5695.c112 const struct ov5695_mode *cur_mode; member
828 ov5695->cur_mode = mode; in ov5695_set_fmt()
848 const struct ov5695_mode *mode = ov5695->cur_mode; in ov5695_get_fmt()
918 ret = ov5695_write_array(ov5695->client, ov5695->cur_mode->reg_list); in __ov5695_start_stream()
1115 max = ov5695->cur_mode->height + ctrl->val - 4; in ov5695_set_ctrl()
1147 ctrl->val + ov5695->cur_mode->height); in ov5695_set_ctrl()
1177 mode = ov5695->cur_mode; in ov5695_initialize_controls()
1286 ov5695->cur_mode = &supported_modes[0]; in ov5695_probe()
/kernel/linux/linux-5.10/drivers/video/fbdev/
Dcg14.c282 int cur_mode, mode, ret = 0; in cg14_ioctl() local
315 cur_mode = sbus_readb(&regs->mcr); in cg14_ioctl()
316 cur_mode &= ~CG14_MCR_PIXMODE_MASK; in cg14_ioctl()
319 cur_mode |= (CG14_MCR_PIXMODE_32 << in cg14_ioctl()
324 cur_mode |= (CG14_MCR_PIXMODE_16 << in cg14_ioctl()
336 sbus_writeb(cur_mode, &regs->mcr); in cg14_ioctl()
Dcarminefb.c76 u32 cur_mode; member
418 if (par->cur_mode != par->new_mode) { in carmine_set_par()
420 par->cur_mode = par->new_mode; in carmine_set_par()
572 par->cur_mode = par->new_mode = ~0; in alloc_carmine_fb()
/kernel/linux/linux-5.10/drivers/gpu/drm/amd/display/dc/dcn20/
Ddcn20_mpc.c138 uint32_t cur_mode; in mpc2_set_output_csc() local
158 MPC_OCSC_TEST_DEBUG_DATA_OCSC_MODE, &cur_mode); in mpc2_set_output_csc()
160 if (cur_mode != MPC_OUTPUT_CSC_COEF_A) in mpc2_set_output_csc()
192 uint32_t cur_mode; in mpc2_set_ocsc_default() local
216 MPC_OCSC_TEST_DEBUG_DATA_OCSC_MODE, &cur_mode); in mpc2_set_ocsc_default()
218 if (cur_mode != MPC_OUTPUT_CSC_COEF_A) in mpc2_set_ocsc_default()
/kernel/linux/linux-5.10/drivers/net/ethernet/amd/xgbe/
Dxgbe-phy-v2.c335 enum xgbe_mode cur_mode; member
2051 phy_data->cur_mode = XGBE_MODE_UNKNOWN; in xgbe_phy_power_off()
2074 phy_data->cur_mode = XGBE_MODE_SFI; in xgbe_phy_sfi_mode()
2088 phy_data->cur_mode = XGBE_MODE_X; in xgbe_phy_x_mode()
2102 phy_data->cur_mode = XGBE_MODE_SGMII_1000; in xgbe_phy_sgmii_1000_mode()
2116 phy_data->cur_mode = XGBE_MODE_SGMII_100; in xgbe_phy_sgmii_100_mode()
2130 phy_data->cur_mode = XGBE_MODE_KR; in xgbe_phy_kr_mode()
2144 phy_data->cur_mode = XGBE_MODE_KX_2500; in xgbe_phy_kx_2500_mode()
2158 phy_data->cur_mode = XGBE_MODE_KX_1000; in xgbe_phy_kx_1000_mode()
2167 return phy_data->cur_mode; in xgbe_phy_cur_mode()
[all …]
Dxgbe-phy-v1.c577 enum xgbe_mode cur_mode; in xgbe_phy_check_mode() local
579 cur_mode = xgbe_phy_get_mode(pdata, pdata->phy.speed); in xgbe_phy_check_mode()
580 if (cur_mode == mode) in xgbe_phy_check_mode()
841 phy_impl->cur_mode = xgbe_phy_cur_mode; in xgbe_init_function_ptrs_phy_v1()
/kernel/linux/linux-5.10/drivers/media/pci/saa7146/
Dmxb.c155 int cur_mode; /* current audio mode (mono, stereo, ...) */ member
176 .audmode = mxb->cur_mode, in mxb_update_audmode()
385 mxb->cur_mode = V4L2_TUNER_MODE_STEREO; in mxb_init_done()
548 t->audmode = mxb->cur_mode; in vidioc_g_tuner()
563 mxb->cur_mode = t->audmode; in vidioc_s_tuner()
/kernel/linux/linux-5.10/drivers/spi/
Dspi-pic32-sqi.c152 u8 cur_mode; member
370 if (sqi->cur_mode != mode) { in pic32_sqi_one_message()
380 sqi->cur_mode = mode; in pic32_sqi_one_message()
566 sqi->cur_mode = -1; in pic32_sqi_hw_init()
Dspi-s3c64xx.c189 unsigned cur_mode, cur_bpw; member
424 && !(sdd->cur_mode & SPI_CPHA)) in s3c64xx_enable_datapath()
596 if (sdd->cur_mode & SPI_CPOL) in s3c64xx_spi_config()
599 if (sdd->cur_mode & SPI_CPHA) in s3c64xx_spi_config()
695 sdd->cur_mode = spi->mode; in s3c64xx_spi_transfer_one()
/kernel/linux/linux-5.10/drivers/input/touchscreen/
Dcyttsp4_core.c1067 enum cyttsp4_mode cur_mode; in cyttsp4_irq() local
1099 cur_mode = CY_MODE_BOOTLOADER; in cyttsp4_irq()
1109 __func__, cd->mode, cur_mode); in cyttsp4_irq()
1124 cd->mode = cur_mode; in cyttsp4_irq()
1131 cur_mode = CY_MODE_OPERATIONAL; in cyttsp4_irq()
1135 cur_mode = CY_MODE_CAT; in cyttsp4_irq()
1139 cur_mode = CY_MODE_SYSINFO; in cyttsp4_irq()
1143 cur_mode = CY_MODE_UNKNOWN; in cyttsp4_irq()
1168 __func__, cd->mode, cur_mode); in cyttsp4_irq()
1169 cd->mode = cur_mode; in cyttsp4_irq()
[all …]
/kernel/linux/linux-5.10/drivers/phy/renesas/
Dphy-rcar-gen3-usb2.c320 enum phy_mode cur_mode, new_mode; in role_store() local
334 cur_mode = rcar_gen3_get_phy_mode(ch); in role_store()
337 if (cur_mode == new_mode) in role_store()
/kernel/linux/linux-5.10/drivers/memory/tegra/
Dtegra30-emc.c628 u32 cur_mode, new_mode; in emc_prepare_timing_change() local
630 cur_mode = fbio_cfg5 & EMC_CFG5_QUSE_MODE_MASK; in emc_prepare_timing_change()
631 cur_mode >>= EMC_CFG5_QUSE_MODE_SHIFT; in emc_prepare_timing_change()
636 if ((cur_mode != EMC_CFG5_QUSE_MODE_PULSE_INTERN && in emc_prepare_timing_change()
637 cur_mode != EMC_CFG5_QUSE_MODE_INTERNAL_LPBK) || in emc_prepare_timing_change()
/kernel/linux/linux-5.10/drivers/scsi/ufs/
Dufs-exynos.c1092 u32 cur_mode = 0; in exynos_ufs_post_hibern8() local
1100 ufshcd_dme_get(hba, UIC_ARG_MIB(PA_PWRMODE), &cur_mode); in exynos_ufs_post_hibern8()
1101 if (cur_mode != (pwrmode << 4 | pwrmode)) { in exynos_ufs_post_hibern8()
1103 hba->pwr_info.pwr_rx = (cur_mode >> 4) & 0xf; in exynos_ufs_post_hibern8()
1104 hba->pwr_info.pwr_tx = cur_mode & 0xf; in exynos_ufs_post_hibern8()
/kernel/linux/linux-5.10/drivers/gpu/drm/amd/display/dc/dcn10/
Ddcn10_dpp_cm.c189 uint32_t cur_mode; in dpp1_cm_program_color_matrix() local
205 CM_TEST_DEBUG_DATA_ID9_OCSC_MODE, &cur_mode); in dpp1_cm_program_color_matrix()
207 if (cur_mode != 4) in dpp1_cm_program_color_matrix()

12