/linux/arch/powerpc/platforms/pasemi/ |
H A D | idle.c | 30 static int current_mode = 0; variable 70 current_mode = 0; in pasemi_idle_init() 74 ppc_md.power_save = modes[current_mode].entry; in pasemi_idle_init() 75 pr_info("Using PA6T idle loop (%s)\n", modes[current_mode].name); in pasemi_idle_init() 86 current_mode = i; in idle_param()
|
/linux/arch/arm64/kernel/ |
H A D | armv8_deprecated.c | 51 int current_mode; member 464 bool enable = READ_ONCE(insn->current_mode) == INSN_HW; in run_all_insn_set_hw_mode() 495 switch (insn->current_mode) { in update_insn_emulation_mode() 515 struct insn_emulation *insn = container_of(table->data, struct insn_emulation, current_mode); in emulation_proc_handler() 516 enum insn_emulation_mode prev_mode = insn->current_mode; in emulation_proc_handler() 521 if (ret || !write || prev_mode == insn->current_mode) in emulation_proc_handler() 527 WRITE_ONCE(insn->current_mode, prev_mode); in emulation_proc_handler() 543 insn->current_mode = INSN_EMULATE; in register_insn_emulation() 549 insn->current_mode = INSN_UNDEF; in register_insn_emulation() 553 insn->current_mode = INSN_UNDEF; in register_insn_emulation() [all …]
|
/linux/drivers/gpu/drm/i915/display/ |
H A D | intel_lspcon.c | 147 enum drm_lspcon_mode current_mode; in lspcon_get_current_mode() local 150 if (drm_lspcon_get_mode(intel_dp->aux.drm_dev, ddc, ¤t_mode)) { in lspcon_get_current_mode() 154 return current_mode; in lspcon_get_current_mode() 174 enum drm_lspcon_mode current_mode; in lspcon_wait_mode() local 176 current_mode = lspcon_get_current_mode(lspcon); in lspcon_wait_mode() 177 if (current_mode == mode) in lspcon_wait_mode() 183 wait_for((current_mode = lspcon_get_current_mode(lspcon)) == mode, in lspcon_wait_mode() 185 if (current_mode != mode) in lspcon_wait_mode() 190 lspcon_mode_name(current_mode)); in lspcon_wait_mode() 192 return current_mode; in lspcon_wait_mode() [all …]
|
H A D | intel_dp_aux_backlight.c | 516 u8 current_mode; in intel_dp_aux_vesa_setup_backlight() local 521 ¤t_level, ¤t_mode); in intel_dp_aux_vesa_setup_backlight() 547 if (current_mode == DP_EDP_BACKLIGHT_CONTROL_MODE_DPCD) { in intel_dp_aux_vesa_setup_backlight() 557 if (current_mode == DP_EDP_BACKLIGHT_CONTROL_MODE_PWM) { in intel_dp_aux_vesa_setup_backlight()
|
/linux/drivers/net/ethernet/intel/igb/ |
H A D | e1000_mac.c | 701 hw->fc.current_mode = hw->fc.requested_mode; in igb_setup_link() 703 hw_dbg("After fix-ups FlowControl is now = %x\n", hw->fc.current_mode); in igb_setup_link() 768 if (hw->fc.current_mode & e1000_fc_tx_pause) { in igb_set_fc_watermarks() 861 hw_dbg("hw->fc.current_mode = %u\n", hw->fc.current_mode); in igb_force_mac_fc() 863 switch (hw->fc.current_mode) { in igb_force_mac_fc() 1006 hw->fc.current_mode = e1000_fc_full; in igb_config_fc_after_link_up() 1009 hw->fc.current_mode = e1000_fc_rx_pause; in igb_config_fc_after_link_up() 1024 hw->fc.current_mode = e1000_fc_tx_pause; in igb_config_fc_after_link_up() 1038 hw->fc.current_mode = e1000_fc_rx_pause; in igb_config_fc_after_link_up() 1064 hw->fc.current_mode = e1000_fc_none; in igb_config_fc_after_link_up() [all …]
|
/linux/drivers/net/ethernet/intel/e1000e/ |
H A D | mac.c | 688 hw->fc.current_mode = hw->fc.requested_mode; in e1000e_setup_link_generic() 690 e_dbg("After fix-ups FlowControl is now = %x\n", hw->fc.current_mode); in e1000e_setup_link_generic() 740 switch (hw->fc.current_mode) { in e1000_commit_fc_settings_generic() 912 if (hw->fc.current_mode & e1000_fc_tx_pause) { in e1000e_set_fc_watermarks() 962 e_dbg("hw->fc.current_mode = %u\n", hw->fc.current_mode); in e1000e_force_mac_fc() 964 switch (hw->fc.current_mode) { in e1000e_force_mac_fc() 1102 hw->fc.current_mode = e1000_fc_full; in e1000e_config_fc_after_link_up() 1105 hw->fc.current_mode = e1000_fc_rx_pause; in e1000e_config_fc_after_link_up() 1120 hw->fc.current_mode = e1000_fc_tx_pause; in e1000e_config_fc_after_link_up() 1134 hw->fc.current_mode = e1000_fc_rx_pause; in e1000e_config_fc_after_link_up() [all …]
|
/linux/drivers/media/i2c/ |
H A D | ov7251.c | 142 const struct ov7251_mode_info *current_mode; member 1019 vts[0] = ((ov7251->current_mode->height + vblank) & 0xff00) >> 8; in ov7251_vts_configure() 1020 vts[1] = ((ov7251->current_mode->height + vblank) & 0x00ff); in ov7251_vts_configure() 1035 exposure_max = ov7251->current_mode->height + ctrl->val - in ov7251_s_ctrl() 1188 const struct ov7251_mode_info *mode = ov7251->current_mode; in ov7251_find_mode_by_ival() 1262 ov7251->current_mode = new_mode; in ov7251_set_format() 1356 ov7251->current_mode->data, in ov7251_s_stream() 1357 ov7251->current_mode->data_size); in ov7251_s_stream() 1360 ov7251->current_mode->width, in ov7251_s_stream() 1361 ov7251->current_mode->height); in ov7251_s_stream() [all …]
|
H A D | ov5645.c | 96 const struct ov5645_mode_info *current_mode; member 881 ov5645->current_mode = new_mode; in ov5645_set_format() 937 ov5645->current_mode->data, in ov5645_enable_streams() 938 ov5645->current_mode->data_size); in ov5645_enable_streams() 941 ov5645->current_mode->width, in ov5645_enable_streams() 942 ov5645->current_mode->height); in ov5645_enable_streams()
|
/linux/drivers/platform/x86/amd/pmf/ |
H A D | auto-mode.c | 185 state_as_str(config_store.current_mode)); in amd_pmf_trans_automode() 200 state_as_str(config_store.current_mode)); in amd_pmf_trans_automode() 214 if (config_store.current_mode != in amd_pmf_trans_automode() 216 config_store.current_mode = in amd_pmf_trans_automode() 219 state_as_str(config_store.current_mode)); in amd_pmf_trans_automode() 220 amd_pmf_set_automode(dev, config_store.current_mode, NULL); in amd_pmf_trans_automode() 230 int mode = config_store.current_mode; in amd_pmf_update_2_cql() 404 config_store.current_mode = AUTO_BALANCE; in amd_pmf_load_defaults_auto_mode() 429 amd_pmf_set_automode(dev, config_store.current_mode, NULL); in amd_pmf_handle_amt()
|
H A D | cnqf.c | 163 amd_pmf_set_cnqf(dev, src, config_store.current_mode, NULL); in amd_pmf_trans_cnqf() 204 avg_power, socket_power, state_as_str(config_store.current_mode)); in amd_pmf_trans_cnqf() 221 if (config_store.current_mode != in amd_pmf_trans_cnqf() 223 config_store.current_mode = in amd_pmf_trans_cnqf() 226 state_as_str(config_store.current_mode)); in amd_pmf_trans_cnqf() 228 config_store.current_mode, NULL); in amd_pmf_trans_cnqf() 376 config_store.current_mode = CNQF_MODE_BALANCE; in amd_pmf_load_defaults_cnqf() 397 amd_pmf_set_cnqf(pdev, src, config_store.current_mode, NULL); in cnqf_enable_store() 463 amd_pmf_set_cnqf(dev, src, config_store.current_mode, NULL); in amd_pmf_init_cnqf()
|
/linux/drivers/gpu/drm/amd/display/dc/dwb/dcn30/ |
H A D | dcn30_dwb_cm.c | 238 enum dc_lut_mode current_mode; in dwb3_program_ogam_lut() local 251 current_mode = dwb3_get_ogam_current(dwbc30); in dwb3_program_ogam_lut() 252 if (current_mode == LUT_BYPASS || current_mode == LUT_RAM_A) in dwb3_program_ogam_lut() 369 unsigned int current_mode; in dwb3_set_gamut_remap() local 376 REG_GET(DWB_GAMUT_REMAP_MODE, DWB_GAMUT_REMAP_MODE_CURRENT, ¤t_mode); in dwb3_set_gamut_remap() 378 if (current_mode == CM_GAMUT_REMAP_MODE_RAMA_COEFF) { in dwb3_set_gamut_remap()
|
/linux/include/uapi/linux/ |
H A D | pps.h | 72 int current_mode; /* current mode bits */ member 80 int current_mode; /* current mode bits */ member
|
/linux/drivers/media/usb/gspca/ |
H A D | stv0680.c | 32 u8 current_mode; member 98 if (sd->current_mode == mode) in stv0680_set_video_mode() 115 sd->current_mode = mode; in stv0680_set_video_mode() 185 sd->current_mode = sd->orig_mode = ret; in sd_config()
|
/linux/drivers/gpu/drm/amd/display/dc/mpc/dcn20/ |
H A D | dcn20_mpc.c | 407 enum dc_lut_mode current_mode, in apply_DEDCN20_305_wa() argument 421 if (current_mode == LUT_BYPASS) in apply_DEDCN20_305_wa() 435 enum dc_lut_mode current_mode; in mpc2_set_output_gamma() local 449 current_mode = mpc20_get_ogam_current(mpc, mpcc_id); in mpc2_set_output_gamma() 450 if (current_mode == LUT_BYPASS || current_mode == LUT_RAM_A) in mpc2_set_output_gamma() 463 apply_DEDCN20_305_wa(mpc, mpcc_id, current_mode, next_mode); in mpc2_set_output_gamma()
|
/linux/drivers/gpu/drm/rockchip/ |
H A D | rk3066_hdmi.c | 112 u8 current_mode, next_mode; in rk3066_hdmi_set_power_mode() local 115 current_mode = rk3066_hdmi_get_power_mode(hdmi); in rk3066_hdmi_set_power_mode() 118 DRM_DEV_DEBUG(hdmi->dev, "current_mode :%d\n", current_mode); in rk3066_hdmi_set_power_mode() 120 if (current_mode == mode) in rk3066_hdmi_set_power_mode() 124 if (current_mode > mode) { in rk3066_hdmi_set_power_mode() 125 next_mode = current_mode / 2; in rk3066_hdmi_set_power_mode() 127 if (current_mode < HDMI_SYS_POWER_MODE_A) in rk3066_hdmi_set_power_mode() 130 next_mode = current_mode * 2; in rk3066_hdmi_set_power_mode() 150 current_mode = next_mode; in rk3066_hdmi_set_power_mode()
|
/linux/drivers/pps/ |
H A D | pps.c | 196 fdata.info.current_mode = pps->current_mode; in pps_cdev_ioctl() 280 compat.info.current_mode = pps->current_mode; in pps_cdev_compat_ioctl()
|
/linux/drivers/char/ |
H A D | lp.c | 285 if (lp_table[minor].current_mode != IEEE1284_MODE_COMPAT) { in lp_wait_ready() 336 lp_table[minor].current_mode = lp_negotiate(port, in lp_write() 367 lp_table[minor].current_mode = IEEE1284_MODE_COMPAT; in lp_write() 382 lp_table[minor].current_mode in lp_write() 407 lp_table[minor].current_mode = IEEE1284_MODE_COMPAT; in lp_write() 562 lp_table[minor].current_mode = IEEE1284_MODE_COMPAT; in lp_open() 574 lp_table[minor].current_mode = IEEE1284_MODE_COMPAT; in lp_release()
|
/linux/drivers/misc/cxl/ |
H A D | native.c | 111 if (afu->current_mode == 0) { in native_afu_reset() 566 afu->current_mode = CXL_MODE_DIRECTED; in activate_afu_directed() 786 afu->current_mode = 0; in deactivate_afu_directed() 846 afu->current_mode = CXL_MODE_DEDICATED; in cxl_activate_dedicated_process_psl9() 868 afu->current_mode = CXL_MODE_DEDICATED; in cxl_activate_dedicated_process_psl8() 966 afu->current_mode = 0; in deactivate_dedicated_process() 1013 if ((ctx->afu->current_mode == CXL_MODE_DIRECTED) && in native_attach_process() 1017 if ((ctx->afu->current_mode == CXL_MODE_DEDICATED) && in native_attach_process() 1050 if (ctx->afu->current_mode == CXL_MODE_DIRECTED) in native_update_ivtes() 1052 if ((ctx->afu->current_mode == CXL_MODE_DEDICATED) && in native_update_ivtes() [all …]
|
/linux/drivers/gpu/drm/amd/display/dc/dpp/dcn30/ |
H A D | dcn30_dpp_cm.c | 218 enum dc_lut_mode current_mode; in dpp3_program_gamcor_lut() local 234 current_mode = dpp30_get_gamcor_current(dpp_base); in dpp3_program_gamcor_lut() 235 if (current_mode == LUT_BYPASS || current_mode == LUT_RAM_A) in dpp3_program_gamcor_lut()
|
H A D | dcn30_dpp.c | 786 enum dc_lut_mode current_mode; in dpp3_program_blnd_lut() local 797 current_mode = dpp3_get_blndgam_current(dpp_base); in dpp3_program_blnd_lut() 798 if (current_mode == LUT_BYPASS || current_mode == LUT_RAM_B) in dpp3_program_blnd_lut() 1199 enum dc_lut_mode current_mode; in dpp3_program_shaper() local 1214 current_mode = dpp3_get_shaper_current(dpp_base); in dpp3_program_shaper() 1216 if (current_mode == LUT_BYPASS || current_mode == LUT_RAM_A) in dpp3_program_shaper()
|
/linux/drivers/gpu/drm/amd/display/dc/dpp/dcn20/ |
H A D | dcn20_dpp_cm.c | 525 enum dc_lut_mode current_mode; in dpp20_program_blnd_lut() local 533 current_mode = dpp20_get_blndgam_current(dpp_base); in dpp20_program_blnd_lut() 534 if (current_mode == LUT_BYPASS || current_mode == LUT_RAM_A) in dpp20_program_blnd_lut() 935 enum dc_lut_mode current_mode; in dpp20_program_shaper() local 944 current_mode = dpp20_get_shaper_current(dpp_base); in dpp20_program_shaper() 946 if (current_mode == LUT_BYPASS || current_mode == LUT_RAM_A) in dpp20_program_shaper()
|
/linux/drivers/gpu/drm/amd/display/dc/mpc/dcn32/ |
H A D | dcn32_mpc.c | 267 enum dc_lut_mode current_mode; in mpc32_program_post1dlut() local 278 current_mode = mpc32_get_post1dlut_current(mpc, mpcc_id); in mpc32_program_post1dlut() 279 if (current_mode == LUT_BYPASS || current_mode == LUT_RAM_B) in mpc32_program_post1dlut() 714 enum dc_lut_mode current_mode; in mpc32_program_shaper() local 727 current_mode = mpc32_get_shaper_current(mpc, mpcc_id); in mpc32_program_shaper() 729 if (current_mode == LUT_BYPASS || current_mode == LUT_RAM_A) in mpc32_program_shaper()
|
/linux/drivers/gpu/drm/bridge/cadence/ |
H A D | cdns-mhdp8546-core.c | 2056 mhdp_state->current_mode = drm_mode_duplicate(bridge->dev, mode); in cdns_mhdp_atomic_enable() 2057 if (!mhdp_state->current_mode) in cdns_mhdp_atomic_enable() 2060 drm_mode_set_name(mhdp_state->current_mode); in cdns_mhdp_atomic_enable() 2143 if (cdns_mhdp_state->current_mode) { in cdns_mhdp_bridge_atomic_destroy_state() 2144 drm_mode_destroy(bridge->dev, cdns_mhdp_state->current_mode); in cdns_mhdp_bridge_atomic_destroy_state() 2145 cdns_mhdp_state->current_mode = NULL; in cdns_mhdp_bridge_atomic_destroy_state() 2278 struct drm_display_mode *current_mode; in cdns_mhdp_update_link_status() local 2337 current_mode = cdns_bridge_state->current_mode; in cdns_mhdp_update_link_status() 2338 if (!current_mode) { in cdns_mhdp_update_link_status() 2343 if (!cdns_mhdp_bandwidth_ok(mhdp, current_mode, mhdp->link.num_lanes, in cdns_mhdp_update_link_status() [all …]
|
/linux/include/linux/ |
H A D | lp.h | 64 unsigned int current_mode; member
|
H A D | coresight.h | 632 enum cs_mode current_mode = coresight_get_mode(csdev); in coresight_set_mode() 639 WARN(new_mode != CS_MODE_DISABLED && current_mode != CS_MODE_DISABLED && 640 current_mode != new_mode, "Device already in use\n"); 622 enum cs_mode current_mode = coresight_get_mode(csdev); coresight_set_mode() local
|