| /linux/drivers/firmware/efi/libstub/ |
| H A D | gop.c | 140 u32 max_mode, cur_mode; in choose_mode_modenum() local 146 cur_mode = efi_table_attr(mode, mode); in choose_mode_modenum() 147 if (cmdline.mode == cur_mode) in choose_mode_modenum() 148 return cur_mode; in choose_mode_modenum() 153 return cur_mode; in choose_mode_modenum() 159 return cur_mode; in choose_mode_modenum() 165 return cur_mode; in choose_mode_modenum() 222 unsigned long cur_mode = efi_table_attr(mode, mode); in choose_mode_res() local 224 if (match_res(efi_table_attr(mode, info), cur_mode, NULL)) in choose_mode_res() 225 return cur_mode; in choose_mode_res() [all …]
|
| /linux/drivers/media/i2c/ |
| H A D | ov5670.c | 1872 const struct ov5670_mode *cur_mode; member 2043 max = ov5670->cur_mode->height + ctrl->val - 8; in ov5670_set_ctrl() 2071 ov5670->cur_mode->height + ctrl->val); in ov5670_set_ctrl() 2136 vblank_max = OV5670_VTS_MAX - ov5670->cur_mode->height; in ov5670_init_controls() 2137 vblank_def = ov5670->cur_mode->vts_def - ov5670->cur_mode->height; in ov5670_init_controls() 2138 vblank_min = ov5670->cur_mode->vts_min - ov5670->cur_mode->height; in ov5670_init_controls() 2145 OV5670_FIXED_PPL - ov5670->cur_mode->width, in ov5670_init_controls() 2146 OV5670_FIXED_PPL - ov5670->cur_mode->width, 1, in ov5670_init_controls() 2147 OV5670_FIXED_PPL - ov5670->cur_mode->width); in ov5670_init_controls() 2162 exposure_max = ov5670->cur_mode->vts_def - 8; in ov5670_init_controls() [all …]
|
| H A D | ov5675.c | 513 const struct ov5675_mode *cur_mode; member 710 exposure_max = ov5675->cur_mode->height + ctrl->val - in ov5675_set_ctrl() 747 ov5675->cur_mode->height + ctrl->val + in ov5675_set_ctrl() 804 ov5675->cur_mode->vts_min - ov5675->cur_mode->height, in ov5675_init_controls() 805 OV5675_VTS_MAX - ov5675->cur_mode->height, 1, in ov5675_init_controls() 806 ov5675->cur_mode->vts_def - ov5675->cur_mode->height); in ov5675_init_controls() 807 h_blank = to_pixels_per_line(ov5675->cur_mode->hts, in ov5675_init_controls() 808 ov5675->cur_mode->link_freq_index) - ov5675->cur_mode->width; in ov5675_init_controls() 821 exposure_max = (ov5675->cur_mode->vts_def - OV5675_EXPOSURE_MAX_MARGIN); in ov5675_init_controls() 902 link_freq_index = ov5675->cur_mode->link_freq_index; in ov5675_start_streaming() [all …]
|
| H A D | gc05a2.c | 105 const struct gc05a2_mode *cur_mode; member 757 gc05a2->cur_mode = mode; in gc05a2_set_format() 920 gc05a2->cur_mode->height + ctrl->val, NULL); in gc05a2_set_ctrl() 991 mode = gc05a2->cur_mode; in gc05a2_start_streaming() 1255 gc05a2->cur_mode = &gc05a2_modes[0]; in gc05a2_probe()
|
| H A D | gc08a3.c | 102 const struct gc08a3_mode *cur_mode; member 733 gc08a3->cur_mode = mode; in gc08a3_set_format() 890 gc08a3->cur_mode->height + ctrl->val, NULL); in gc08a3_set_ctrl() 934 mode = gc08a3->cur_mode; in gc08a3_start_streaming() 1219 gc08a3->cur_mode = &gc08a3_modes[0]; in gc08a3_probe()
|
| /linux/drivers/regulator/ |
| H A D | mt6316-regulator.c | 189 int cur_mode, ret; in mt6316_regulator_set_mode() local 196 cur_mode = mt6316_regulator_get_mode(rdev); in mt6316_regulator_set_mode() 197 if (cur_mode < 0) { in mt6316_regulator_set_mode() 198 ret = cur_mode; in mt6316_regulator_set_mode() 202 if (cur_mode == REGULATOR_MODE_FAST) { in mt6316_regulator_set_mode() 205 } else if (cur_mode == REGULATOR_MODE_IDLE) { in mt6316_regulator_set_mode()
|
| H A D | mt6363-regulator.c | 394 int cur_mode, ret; in mt6363_regulator_set_mode() local 410 cur_mode = mt6363_regulator_get_mode(rdev); in mt6363_regulator_set_mode() 411 if (cur_mode < 0) { in mt6363_regulator_set_mode() 412 ret = cur_mode; in mt6363_regulator_set_mode() 416 if (cur_mode == REGULATOR_MODE_FAST) { in mt6363_regulator_set_mode() 425 } else if (cur_mode == REGULATOR_MODE_IDLE) { in mt6363_regulator_set_mode()
|
| /linux/drivers/video/fbdev/ |
| H A D | cg14.c | 276 int cur_mode, mode, ret = 0; in cg14_sbusfb_ioctl() local 309 cur_mode = sbus_readb(®s->mcr); in cg14_sbusfb_ioctl() 310 cur_mode &= ~CG14_MCR_PIXMODE_MASK; in cg14_sbusfb_ioctl() 313 cur_mode |= (CG14_MCR_PIXMODE_32 << in cg14_sbusfb_ioctl() 318 cur_mode |= (CG14_MCR_PIXMODE_16 << in cg14_sbusfb_ioctl() 330 sbus_writeb(cur_mode, ®s->mcr); in cg14_sbusfb_ioctl()
|
| /linux/drivers/net/ethernet/amd/xgbe/ |
| H A D | xgbe-phy-v2.c | 227 enum xgbe_mode cur_mode; member 1993 xgbe_set_rx_adap_mode(pdata, phy_data->cur_mode); in xgbe_rx_adaptation() 2174 phy_data->cur_mode = XGBE_MODE_UNKNOWN; in xgbe_phy_power_off() 2234 phy_data->cur_mode = XGBE_MODE_SFI; in xgbe_phy_sfi_mode() 2248 phy_data->cur_mode = XGBE_MODE_X; in xgbe_phy_x_mode() 2262 phy_data->cur_mode = XGBE_MODE_SGMII_1000; in xgbe_phy_sgmii_1000_mode() 2276 phy_data->cur_mode = XGBE_MODE_SGMII_100; in xgbe_phy_sgmii_100_mode() 2290 phy_data->cur_mode = XGBE_MODE_SGMII_10; in xgbe_phy_sgmii_10_mode() 2309 phy_data->cur_mode = XGBE_MODE_KR; in xgbe_phy_kr_mode() 2335 phy_data->cur_mode = XGBE_MODE_KX_2500; in xgbe_phy_kx_2500_mode() [all …]
|
| H A D | xgbe.h | 843 enum xgbe_mode (*cur_mode)(struct xgbe_prv_data *); member
|
| H A D | xgbe-mdio.c | 188 return pdata->phy_if.phy_impl.cur_mode(pdata); in xgbe_cur_mode()
|
| /linux/drivers/gpu/drm/xe/ |
| H A D | xe_hw_engine_group_types.h | 48 enum xe_hw_engine_group_execution_mode cur_mode; member
|
| /linux/sound/soc/codecs/aw88395/ |
| H A D | aw88395_device.h | 102 unsigned int cur_mode; member
|
| H A D | aw88395_device.c | 932 profctrl_desc->cur_mode = AW88395_RCV_MODE; in aw_dev_get_cur_mode_st() 934 profctrl_desc->cur_mode = AW88395_NOT_RCV_MODE; in aw_dev_get_cur_mode_st()
|
| /linux/drivers/net/ |
| H A D | vrf.c | 1795 bool *cur_mode; in vrf_strict_mode_change() local 1800 cur_mode = &vmap->strict_mode; in vrf_strict_mode_change() 1801 if (*cur_mode == new_mode) in vrf_strict_mode_change() 1804 if (*cur_mode) { in vrf_strict_mode_change() 1806 *cur_mode = false; in vrf_strict_mode_change() 1819 *cur_mode = true; in vrf_strict_mode_change()
|
| /linux/drivers/gpu/drm/hisilicon/kirin/ |
| H A D | dw_drm_dsi.c | 86 struct drm_display_mode cur_mode; member 540 struct drm_display_mode *mode = &dsi->cur_mode; in dsi_mipi_init() 679 drm_mode_copy(&dsi->cur_mode, adj_mode); in dsi_encoder_mode_set()
|
| /linux/drivers/phy/renesas/ |
| H A D | phy-rcar-gen3-usb2.c | 394 enum phy_mode cur_mode, new_mode; in role_store() local 410 cur_mode = rcar_gen3_get_phy_mode(ch); in role_store() 413 if (cur_mode == new_mode) in role_store()
|
| /linux/drivers/gpu/drm/ |
| H A D | drm_edid.c | 3012 struct drm_display_mode *t, *cur_mode, *preferred_mode; in edid_fixup_preferred() local 3027 list_for_each_entry_safe(cur_mode, t, &connector->probed_modes, head) { in edid_fixup_preferred() 3028 cur_mode->type &= ~DRM_MODE_TYPE_PREFERRED; in edid_fixup_preferred() 3030 if (cur_mode == preferred_mode) in edid_fixup_preferred() 3034 if (MODE_SIZE(cur_mode) > MODE_SIZE(preferred_mode)) in edid_fixup_preferred() 3035 preferred_mode = cur_mode; in edid_fixup_preferred() 3037 cur_vrefresh = drm_mode_vrefresh(cur_mode); in edid_fixup_preferred() 3040 if ((MODE_SIZE(cur_mode) == MODE_SIZE(preferred_mode)) && in edid_fixup_preferred() 3043 preferred_mode = cur_mode; in edid_fixup_preferred()
|
| /linux/sound/soc/codecs/ |
| H A D | aw88399.c | |
| /linux/drivers/net/ethernet/broadcom/bnx2x/ |
| H A D | bnx2x_link.c | 1416 u32 new_mode, cur_mode; in bnx2x_set_mdio_clk() local 1421 cur_mode = REG_RD(bp, emac_base + EMAC_REG_EMAC_MDIO_MODE); in bnx2x_set_mdio_clk() 1428 if (((cur_mode & EMAC_MDIO_MODE_CLOCK_CNT) == clc_cnt) && in bnx2x_set_mdio_clk() 1429 (cur_mode & (EMAC_MDIO_MODE_CLAUSE_45))) in bnx2x_set_mdio_clk() 1432 new_mode = cur_mode & in bnx2x_set_mdio_clk() 1438 cur_mode, new_mode); in bnx2x_set_mdio_clk()
|