Home
last modified time | relevance | path

Searched refs:current_mode (Results 1 – 25 of 58) sorted by relevance

123

/linux/arch/powerpc/platforms/pasemi/
H A Didle.c30 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 Darmv8_deprecated.c51 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/net/ethernet/intel/igc/
H A Digc_mac.c92 if (hw->fc.current_mode & igc_fc_tx_pause) { in igc_set_fc_watermarks()
139 hw->fc.current_mode = hw->fc.requested_mode; in igc_setup_link()
141 hw_dbg("After fix-ups FlowControl is now = %x\n", hw->fc.current_mode); in igc_setup_link()
200 hw_dbg("hw->fc.current_mode = %u\n", hw->fc.current_mode); in igc_force_mac_fc()
202 switch (hw->fc.current_mode) { in igc_force_mac_fc()
542 hw->fc.current_mode = igc_fc_full; in igc_config_fc_after_link_up()
545 hw->fc.current_mode = igc_fc_rx_pause; in igc_config_fc_after_link_up()
561 hw->fc.current_mode = igc_fc_tx_pause; in igc_config_fc_after_link_up()
575 hw->fc.current_mode = igc_fc_rx_pause; in igc_config_fc_after_link_up()
601 hw->fc.current_mode = igc_fc_none; in igc_config_fc_after_link_up()
[all …]
/linux/drivers/hid/
H A Dhid-appletb-kbd.c69 u8 current_mode; member
109 kbd->current_mode = mode; in appletb_kbd_set_mode()
122 return sysfs_emit(buf, "%d\n", kbd->current_mode); in mode_show()
225 if (translation && kbd->current_mode == APPLETB_KBD_MODE_SPCL) { in appletb_kbd_hid_event()
231 return kbd->current_mode == APPLETB_KBD_MODE_OFF; in appletb_kbd_hid_event()
242 (kbd->current_mode == APPLETB_KBD_MODE_SPCL || in appletb_kbd_inp_event()
243 kbd->current_mode == APPLETB_KBD_MODE_FN)) { in appletb_kbd_inp_event()
245 kbd->saved_mode = kbd->current_mode; in appletb_kbd_inp_event()
246 appletb_kbd_set_mode(kbd, kbd->current_mode == APPLETB_KBD_MODE_SPCL in appletb_kbd_inp_event()
249 if (kbd->saved_mode != kbd->current_mode) in appletb_kbd_inp_event()
[all …]
/linux/drivers/platform/x86/dell/
H A Ddell-pc.c231 int current_mode; in thermal_platform_profile_probe() local
243 current_mode = thermal_get_mode(); in thermal_platform_profile_probe()
244 if (current_mode < 0) in thermal_platform_profile_probe()
245 return current_mode; in thermal_platform_profile_probe()
247 thermal_set_mode(current_mode); in thermal_platform_profile_probe()
/linux/drivers/platform/x86/lenovo/
H A Dwmi-gamezone.c37 enum thermal_mode current_mode; member
76 **mode = priv->current_mode; in lwmi_gz_mode_call()
107 priv->current_mode = *mode; in lwmi_gz_event_call()
187 priv->current_mode = mode; in lwmi_gz_profile_get()
239 priv->current_mode = mode; in lwmi_gz_profile_set()
378 ret = lwmi_gz_thermal_mode_get(wdev, &priv->current_mode); in lwmi_gz_probe()
/linux/drivers/net/ethernet/intel/igb/
H A De1000_mac.c701 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 Dmac.c701 hw->fc.current_mode = hw->fc.requested_mode; in e1000e_setup_link_generic()
703 e_dbg("After fix-ups FlowControl is now = %x\n", hw->fc.current_mode); in e1000e_setup_link_generic()
753 switch (hw->fc.current_mode) { in e1000_commit_fc_settings_generic()
925 if (hw->fc.current_mode & e1000_fc_tx_pause) { in e1000e_set_fc_watermarks()
975 e_dbg("hw->fc.current_mode = %u\n", hw->fc.current_mode); in e1000e_force_mac_fc()
977 switch (hw->fc.current_mode) { in e1000e_force_mac_fc()
1115 hw->fc.current_mode = e1000_fc_full; in e1000e_config_fc_after_link_up()
1118 hw->fc.current_mode = e1000_fc_rx_pause; in e1000e_config_fc_after_link_up()
1133 hw->fc.current_mode = e1000_fc_tx_pause; in e1000e_config_fc_after_link_up()
1147 hw->fc.current_mode = e1000_fc_rx_pause; in e1000e_config_fc_after_link_up()
[all …]
/linux/drivers/platform/x86/amd/pmf/
H A Dauto-mode.c185 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 Dcnqf.c163 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 Ddcn30_dwb_cm.c238 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, &current_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 Dpps.h72 int current_mode; /* current mode bits */ member
80 int current_mode; /* current mode bits */ member
/linux/drivers/media/usb/gspca/
H A Dstv0680.c32 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 Ddcn20_mpc.c407 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/usb/typec/
H A Dhd3ss3220.c69 int current_mode; in hd3ss3220_set_power_opmode() local
73 current_mode = HD3SS3220_REG_CN_STAT_CURRENT_MODE_DEFAULT; in hd3ss3220_set_power_opmode()
76 current_mode = HD3SS3220_REG_CN_STAT_CURRENT_MODE_MID; in hd3ss3220_set_power_opmode()
79 current_mode = HD3SS3220_REG_CN_STAT_CURRENT_MODE_HIGH; in hd3ss3220_set_power_opmode()
89 current_mode); in hd3ss3220_set_power_opmode()
/linux/drivers/char/
H A Dlp.c285 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/gpu/drm/amd/display/dc/dpp/dcn30/
H A Ddcn30_dpp_cm.c218 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()
/linux/drivers/gpu/drm/amd/display/dc/dpp/dcn20/
H A Ddcn20_dpp_cm.c525 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/bridge/cadence/
H A Dcdns-mhdp8546-core.c1986 mhdp_state->current_mode = drm_mode_duplicate(bridge->dev, mode); in cdns_mhdp_atomic_enable()
1987 if (!mhdp_state->current_mode) { in cdns_mhdp_atomic_enable()
1992 drm_mode_set_name(mhdp_state->current_mode); in cdns_mhdp_atomic_enable()
2075 if (cdns_mhdp_state->current_mode) { in cdns_mhdp_bridge_atomic_destroy_state()
2076 drm_mode_destroy(bridge->dev, cdns_mhdp_state->current_mode); in cdns_mhdp_bridge_atomic_destroy_state()
2077 cdns_mhdp_state->current_mode = NULL; in cdns_mhdp_bridge_atomic_destroy_state()
2211 struct drm_display_mode *current_mode; in cdns_mhdp_update_link_status() local
2270 current_mode = cdns_bridge_state->current_mode; in cdns_mhdp_update_link_status()
2271 if (!current_mode) { in cdns_mhdp_update_link_status()
2276 if (!cdns_mhdp_bandwidth_ok(mhdp, current_mode, mhdp->link.num_lanes, in cdns_mhdp_update_link_status()
[all …]
/linux/include/linux/
H A Dlp.h64 unsigned int current_mode; member
H A Dcoresight.h636 enum cs_mode current_mode = coresight_get_mode(csdev); in coresight_set_mode() local
643 WARN(new_mode != CS_MODE_DISABLED && current_mode != CS_MODE_DISABLED && in coresight_set_mode()
644 current_mode != new_mode, "Device already in use\n"); in coresight_set_mode()
H A Dpps_kernel.h52 int current_mode; /* PPS mode at event time */ member
/linux/drivers/iio/adc/
H A Dmax1363.c171 const struct max1363_mode *current_mode; member
357 st->configbyte |= st->current_mode->conf; in max1363_set_scan_mode()
385 if (st->current_mode != &max1363_mode_table[chan->address]) { in max1363_read_single_chan()
389 st->current_mode = &max1363_mode_table[chan->address]; in max1363_read_single_chan()
1027 st->current_mode = max1363_match_mode(scan_mask, st->chip_info); in max1363_update_scan_mode()
1028 if (!st->current_mode) in max1363_update_scan_mode()
1447 st->current_mode = &max1363_mode_table[st->chip_info->default_mode]; in max1363_initial_setup()
1483 unsigned long numvals = bitmap_weight(st->current_mode->modemask, in max1363_trigger_handler()
/linux/include/video/
H A Dudlfb.h64 struct fb_var_screeninfo current_mode; member
/linux/drivers/gpu/drm/i915/display/
H A Dintel_dp_aux_backlight.c526 u8 current_mode; in intel_dp_aux_vesa_setup_backlight() local
532 intel_dp->edp_dpcd, &current_level, &current_mode, in intel_dp_aux_vesa_setup_backlight()
573 if (current_mode == DP_EDP_BACKLIGHT_CONTROL_MODE_DPCD) { in intel_dp_aux_vesa_setup_backlight()
583 if (current_mode == DP_EDP_BACKLIGHT_CONTROL_MODE_PWM) { in intel_dp_aux_vesa_setup_backlight()

123