Home
last modified time | relevance | path

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

1234

/openbmc/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()
/openbmc/linux/arch/arm64/kernel/
H A Darmv8_deprecated.c51 int current_mode; member
466 bool enable = READ_ONCE(insn->current_mode) == INSN_HW; in run_all_insn_set_hw_mode()
497 switch (insn->current_mode) { in update_insn_emulation_mode()
517 struct insn_emulation *insn = container_of(table->data, struct insn_emulation, current_mode); in emulation_proc_handler()
518 enum insn_emulation_mode prev_mode = insn->current_mode; in emulation_proc_handler()
523 if (ret || !write || prev_mode == insn->current_mode) in emulation_proc_handler()
529 WRITE_ONCE(insn->current_mode, prev_mode); in emulation_proc_handler()
545 insn->current_mode = INSN_EMULATE; in register_insn_emulation()
551 insn->current_mode = INSN_UNDEF; in register_insn_emulation()
555 insn->current_mode = INSN_UNDEF; in register_insn_emulation()
[all …]
/openbmc/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()
551 hw->fc.current_mode = igc_fc_full; in igc_config_fc_after_link_up()
554 hw->fc.current_mode = igc_fc_rx_pause; in igc_config_fc_after_link_up()
570 hw->fc.current_mode = igc_fc_tx_pause; in igc_config_fc_after_link_up()
584 hw->fc.current_mode = igc_fc_rx_pause; in igc_config_fc_after_link_up()
610 hw->fc.current_mode = igc_fc_none; in igc_config_fc_after_link_up()
[all …]
/openbmc/linux/drivers/gpu/drm/i915/display/
H A Dintel_lspcon.c146 enum drm_lspcon_mode current_mode; in lspcon_get_current_mode() local
149 if (drm_lspcon_get_mode(intel_dp->aux.drm_dev, adapter, &current_mode)) { in lspcon_get_current_mode()
153 return current_mode; in lspcon_get_current_mode()
161 enum drm_lspcon_mode current_mode; in lspcon_wait_mode() local
163 current_mode = lspcon_get_current_mode(lspcon); in lspcon_wait_mode()
164 if (current_mode == mode) in lspcon_wait_mode()
170 wait_for((current_mode = lspcon_get_current_mode(lspcon)) == mode, 400); in lspcon_wait_mode()
171 if (current_mode != mode) in lspcon_wait_mode()
176 lspcon_mode_name(current_mode)); in lspcon_wait_mode()
178 return current_mode; in lspcon_wait_mode()
[all …]
/openbmc/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 …]
/openbmc/linux/drivers/net/ethernet/intel/e1000e/
H A Dmac.c690 hw->fc.current_mode = hw->fc.requested_mode; in e1000e_setup_link_generic()
692 e_dbg("After fix-ups FlowControl is now = %x\n", hw->fc.current_mode); in e1000e_setup_link_generic()
742 switch (hw->fc.current_mode) { in e1000_commit_fc_settings_generic()
914 if (hw->fc.current_mode & e1000_fc_tx_pause) { in e1000e_set_fc_watermarks()
964 e_dbg("hw->fc.current_mode = %u\n", hw->fc.current_mode); in e1000e_force_mac_fc()
966 switch (hw->fc.current_mode) { in e1000e_force_mac_fc()
1104 hw->fc.current_mode = e1000_fc_full; in e1000e_config_fc_after_link_up()
1107 hw->fc.current_mode = e1000_fc_rx_pause; in e1000e_config_fc_after_link_up()
1122 hw->fc.current_mode = e1000_fc_tx_pause; in e1000e_config_fc_after_link_up()
1136 hw->fc.current_mode = e1000_fc_rx_pause; in e1000e_config_fc_after_link_up()
[all …]
/openbmc/linux/drivers/media/i2c/
H A Dov7251.c142 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()
1354 ov7251->current_mode->data, in ov7251_s_stream()
1355 ov7251->current_mode->data_size); in ov7251_s_stream()
1358 ov7251->current_mode->width, in ov7251_s_stream()
1359 ov7251->current_mode->height); in ov7251_s_stream()
[all …]
H A Dimx290.c239 const struct imx290_mode *current_mode; member
627 const struct imx290_mode *mode = imx290->current_mode; in imx290_set_clock()
674 switch (link_freqs[imx290->current_mode->link_freq_index]) { in imx290_set_csi_config()
754 imx290_exposure_update(imx290, imx290->current_mode); in imx290_set_ctrl()
771 ctrl->val + imx290->current_mode->height, NULL); in imx290_set_ctrl()
782 vmax = imx290->vblank->val + imx290->current_mode->height; in imx290_set_ctrl()
805 ctrl->val + imx290->current_mode->width, NULL); in imx290_set_ctrl()
813 reg = imx290->current_mode->ctrl_07; in imx290_set_ctrl()
1006 ret = imx290_set_register_array(imx290, imx290->current_mode->data, in imx290_start_streaming()
1007 imx290->current_mode->data_size); in imx290_start_streaming()
[all …]
H A Dst-vgxy61.c415 const struct vgxy61_mode_info *current_mode; member
644 unsigned int binning_scale = sensor->current_mode->crop.height / in vgxy61_check_bw()
645 sensor->current_mode->height; in vgxy61_check_bw()
654 bit_per_line = (bpp * sensor->current_mode->width) / binning_scale; in vgxy61_check_bw()
746 sel->r = sensor->current_mode->crop; in vgxy61_get_selection()
799 sensor->current_mode->crop.height; in vgxy61_get_vblank_min()
964 ((sensor->frame_length - sensor->current_mode->crop.height - in vgxy61_get_expo_long_max()
1071 sensor->frame_length = sensor->current_mode->crop.height + in vgxy61_update_vblank()
1166 const struct v4l2_rect *crop = &sensor->current_mode->crop; in vgxy61_stream_enable()
1188 sensor->current_mode->bin_mode, &ret); in vgxy61_stream_enable()
[all …]
H A Dov5645.c97 const struct ov5645_mode_info *current_mode; member
921 ov5645->current_mode = new_mode; in ov5645_set_format()
976 ov5645->current_mode->data, in ov5645_s_stream()
977 ov5645->current_mode->data_size); in ov5645_s_stream()
980 ov5645->current_mode->width, in ov5645_s_stream()
981 ov5645->current_mode->height); in ov5645_s_stream()
H A Dov5640.c455 const struct ov5640_mode_info *current_mode; member
1552 const struct ov5640_mode_info *mode = sensor->current_mode; in ov5640_calc_pixel_rate()
2324 const struct ov5640_mode_info *mode = sensor->current_mode; in ov5640_set_mode()
2856 const struct ov5640_mode_info *mode = sensor->current_mode; in __v4l2_ctrl_vblank_update()
2866 const struct ov5640_mode_info *mode = sensor->current_mode; in ov5640_update_pixel_rate()
2979 if (new_mode != sensor->current_mode) { in ov5640_set_fmt()
2981 sensor->current_mode = new_mode; in ov5640_set_fmt()
3002 const struct ov5640_mode_info *mode = sensor->current_mode; in ov5640_get_selection()
3312 const struct ov5640_mode_info *mode = sensor->current_mode; in ov5640_set_ctrl_vblank()
3355 const struct ov5640_mode_info *mode = sensor->current_mode; in ov5640_s_ctrl()
[all …]
/openbmc/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()
/openbmc/linux/drivers/gpu/drm/amd/display/dc/dcn30/
H A Ddcn30_dwb_cm.c238 enum dc_lut_mode current_mode; in dwb3_program_ogam_lut() local
248 current_mode = dwb3_get_ogam_current(dwbc30); in dwb3_program_ogam_lut()
249 if (current_mode == LUT_BYPASS || current_mode == LUT_RAM_A) in dwb3_program_ogam_lut()
366 unsigned int current_mode; in dwb3_set_gamut_remap() local
373 REG_GET(DWB_GAMUT_REMAP_MODE, DWB_GAMUT_REMAP_MODE_CURRENT, &current_mode); in dwb3_set_gamut_remap()
375 if (current_mode == CM_GAMUT_REMAP_MODE_RAMA_COEFF) { in dwb3_set_gamut_remap()
H A Ddcn30_dpp_cm.c221 enum dc_lut_mode current_mode; in dpp3_program_gamcor_lut() local
237 current_mode = dpp30_get_gamcor_current(dpp_base); in dpp3_program_gamcor_lut()
238 if (current_mode == LUT_BYPASS || current_mode == LUT_RAM_A) in dpp3_program_gamcor_lut()
/openbmc/linux/include/uapi/linux/
H A Dpps.h72 int current_mode; /* current mode bits */ member
80 int current_mode; /* current mode bits */ member
/openbmc/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()
/openbmc/linux/drivers/gpu/drm/amd/display/dc/dcn20/
H A Ddcn20_mpc.c404 enum dc_lut_mode current_mode, in apply_DEDCN20_305_wa() argument
418 if (current_mode == LUT_BYPASS) in apply_DEDCN20_305_wa()
432 enum dc_lut_mode current_mode; in mpc2_set_output_gamma() local
446 current_mode = mpc20_get_ogam_current(mpc, mpcc_id); in mpc2_set_output_gamma()
447 if (current_mode == LUT_BYPASS || current_mode == LUT_RAM_A) in mpc2_set_output_gamma()
460 apply_DEDCN20_305_wa(mpc, mpcc_id, current_mode, next_mode); in mpc2_set_output_gamma()
H A Ddcn20_dpp_cm.c470 enum dc_lut_mode current_mode; in dpp20_program_blnd_lut() local
478 current_mode = dpp20_get_blndgam_current(dpp_base); in dpp20_program_blnd_lut()
479 if (current_mode == LUT_BYPASS || current_mode == LUT_RAM_A) in dpp20_program_blnd_lut()
880 enum dc_lut_mode current_mode; in dpp20_program_shaper() local
889 current_mode = dpp20_get_shaper_current(dpp_base); in dpp20_program_shaper()
891 if (current_mode == LUT_BYPASS || current_mode == LUT_RAM_A) in dpp20_program_shaper()
/openbmc/linux/drivers/gpu/drm/rockchip/
H A Drk3066_hdmi.c112 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()
/openbmc/linux/drivers/gpu/drm/display/
H A Ddrm_dp_dual_mode_helper.c499 enum drm_lspcon_mode current_mode; in drm_lspcon_set_mode() local
518 ret = drm_lspcon_get_mode(dev, adapter, &current_mode); in drm_lspcon_set_mode()
523 if (current_mode != mode) { in drm_lspcon_set_mode()
/openbmc/linux/drivers/pps/
H A Dpps.c196 fdata.info.current_mode = pps->current_mode; in pps_cdev_ioctl()
280 compat.info.current_mode = pps->current_mode; in pps_cdev_compat_ioctl()
/openbmc/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()
/openbmc/linux/drivers/misc/cxl/
H A Dnative.c111 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 …]
/openbmc/linux/drivers/gpu/drm/amd/display/dc/dcn32/
H A Ddcn32_mpc.c262 enum dc_lut_mode current_mode; in mpc32_program_post1dlut() local
273 current_mode = mpc32_get_post1dlut_current(mpc, mpcc_id); in mpc32_program_post1dlut()
274 if (current_mode == LUT_BYPASS || current_mode == LUT_RAM_B) in mpc32_program_post1dlut()
709 enum dc_lut_mode current_mode; in mpc32_program_shaper() local
722 current_mode = mpc32_get_shaper_current(mpc, mpcc_id); in mpc32_program_shaper()
724 if (current_mode == LUT_BYPASS || current_mode == LUT_RAM_A) in mpc32_program_shaper()

1234