/openbmc/u-boot/arch/x86/cpu/intel_common/ |
H A D | me_status.c | 168 debug("%s", me_progress_rom_values[gmes->current_state]); in _intel_me_status() 172 if (gmes->current_state < ARRAY_SIZE(me_progress_bup_values) && in _intel_me_status() 173 me_progress_bup_values[gmes->current_state]) in _intel_me_status() 175 me_progress_bup_values[gmes->current_state]); in _intel_me_status() 177 debug("0x%02x", gmes->current_state); in _intel_me_status() 181 if (gmes->current_state < in _intel_me_status() 183 me_progress_policy_values[gmes->current_state]) in _intel_me_status() 185 me_progress_policy_values[gmes->current_state]); in _intel_me_status() 187 debug("0x%02x", gmes->current_state); in _intel_me_status() 191 if (!gmes->current_state) in _intel_me_status() [all …]
|
/openbmc/linux/drivers/net/ethernet/ti/ |
H A D | netcp_xgbepcsr.c | 309 u32 *current_state, u32 *lane_down) in netcp_xgbe_check_link_status() argument 332 switch (current_state[i]) { in netcp_xgbe_check_link_status() 339 current_state[i] = 1; in netcp_xgbe_check_link_status() 352 current_state[i] = 2; in netcp_xgbe_check_link_status() 359 current_state[i] = 1; in netcp_xgbe_check_link_status() 366 current_state[i] = 0; in netcp_xgbe_check_link_status() 372 i, current_state[i]); in netcp_xgbe_check_link_status() 385 status &= (current_state[i] == 1); in netcp_xgbe_check_link_status() 394 u32 current_state[2] = {0, 0}; in netcp_xgbe_serdes_check_lane() local 403 current_state, in netcp_xgbe_serdes_check_lane()
|
/openbmc/linux/drivers/scsi/elx/libefc/ |
H A D | efc_sm.c | 24 if (!ctx->current_state) in efc_sm_post_event() 27 ctx->current_state(ctx, evt, data); in efc_sm_post_event() 37 if (ctx->current_state == state) { in efc_sm_transition() 41 ctx->current_state = state; in efc_sm_transition()
|
/openbmc/u-boot/drivers/remoteproc/ |
H A D | sandbox_testproc.c | 33 enum sandbox_state current_state; member 78 if (ddata->current_state == next_state) in sandbox_dev_move_to_state() 81 debug("current_state=%d, next_state=%d\n", ddata->current_state, in sandbox_dev_move_to_state() 83 switch (ddata->current_state) { in sandbox_dev_move_to_state() 113 ddata->current_state = next_state; in sandbox_dev_move_to_state() 269 if (ddata->current_state == sb_running) in sandbox_testproc_is_running() 291 if (ddata->current_state == sb_running) in sandbox_testproc_ping()
|
/openbmc/linux/sound/usb/ |
H A D | power.c | 57 unsigned char current_state; in snd_usb_power_domain_set() local 66 ¤t_state, sizeof(current_state)); in snd_usb_power_domain_set() 73 if (current_state == state) { in snd_usb_power_domain_set() 90 switch (current_state) { in snd_usb_power_domain_set()
|
/openbmc/linux/drivers/gpu/drm/amd/display/modules/hdcp/ |
H A D | hdcp.h | 408 static inline uint8_t current_state(struct mod_hdcp *hdcp) in current_state() function 426 return (current_state(hdcp) > HDCP1_STATE_START && in is_in_hdcp1_states() 427 current_state(hdcp) <= HDCP1_STATE_END); in is_in_hdcp1_states() 432 return (current_state(hdcp) > HDCP1_DP_STATE_START && in is_in_hdcp1_dp_states() 433 current_state(hdcp) <= HDCP1_DP_STATE_END); in is_in_hdcp1_dp_states() 438 return (current_state(hdcp) > HDCP2_STATE_START && in is_in_hdcp2_states() 439 current_state(hdcp) <= HDCP2_STATE_END); in is_in_hdcp2_states() 444 return (current_state(hdcp) > HDCP2_DP_STATE_START && in is_in_hdcp2_dp_states() 445 current_state(hdcp) <= HDCP2_DP_STATE_END); in is_in_hdcp2_dp_states() 450 return (current_state(hdcp) == D1_A4_AUTHENTICATED || in is_in_authenticated_states() [all …]
|
/openbmc/linux/drivers/pci/ |
H A D | pci-driver.c | 497 if (pci_dev->current_state == PCI_D0) in pci_device_remove() 498 pci_dev->current_state = PCI_UNKNOWN; in pci_device_remove() 529 if (kexec_in_progress && (pci_dev->current_state <= PCI_D3hot)) in pci_device_shutdown() 545 if (pci_dev->current_state != PCI_D0) { in pci_restore_standard_config() 618 if (pci_dev->current_state == PCI_D0) in pci_pm_set_unknown_state() 619 pci_dev->current_state = PCI_UNKNOWN; in pci_pm_set_unknown_state() 648 pci_power_t prev = pci_dev->current_state; in pci_legacy_suspend() 656 if (!pci_dev->state_saved && pci_dev->current_state != PCI_D0 in pci_legacy_suspend() 657 && pci_dev->current_state != PCI_UNKNOWN) { in pci_legacy_suspend() 658 pci_WARN_ONCE(pci_dev, pci_dev->current_state != prev, in pci_legacy_suspend() [all …]
|
H A D | pci.c | 1103 dev->current_state = PCI_D3cold; in pci_update_current_state() 1109 dev->current_state = PCI_D3cold; in pci_update_current_state() 1112 dev->current_state = pmcsr & PCI_PM_CTRL_STATE_MASK; in pci_update_current_state() 1114 dev->current_state = state; in pci_update_current_state() 1128 pci_update_current_state(dev, dev->current_state); in pci_refresh_power_state() 1144 dev->current_state = PCI_D0; in pci_platform_power_transition() 1253 dev->current_state = PCI_D0; in pci_power_up() 1255 dev->current_state = state; in pci_power_up() 1263 pci_power_name(dev->current_state)); in pci_power_up() 1264 dev->current_state = PCI_D3cold; in pci_power_up() [all …]
|
/openbmc/linux/drivers/gpu/drm/amd/display/dc/core/ |
H A D | dc.c | 417 struct pipe_ctx *pipe = &dc->current_state->res_ctx.pipe_ctx[i]; in dc_stream_adjust_vmin_vmax() 452 struct pipe_ctx *pipe = &dc->current_state->res_ctx.pipe_ctx[i]; in dc_stream_get_last_used_drr_vtotal() 483 &dc->current_state->res_ctx.pipe_ctx[i]; in dc_stream_get_crtc_position() 543 pipe = &dc->current_state->res_ctx.pipe_ctx[i]; in dc_stream_forward_crc_window() 594 &dc->current_state->res_ctx, stream); in dc_stream_configure_crc() 660 pipe = &dc->current_state->res_ctx.pipe_ctx[i]; in dc_stream_get_crc() 684 if (dc->current_state->res_ctx.pipe_ctx[i].stream in dc_stream_set_dyn_expansion() 686 pipe_ctx = &dc->current_state->res_ctx.pipe_ctx[i]; in dc_stream_set_dyn_expansion() 706 if (link->dc->current_state->res_ctx.pipe_ctx[i].stream == in dc_stream_set_dither_option() 708 pipes = &link->dc->current_state->res_ctx.pipe_ctx[i]; in dc_stream_set_dither_option() [all …]
|
H A D | dc_link_enc_cfg.c | 71 if (dc->current_state->res_ctx.link_enc_cfg_ctx.mode == LINK_ENC_CFG_TRANSIENT) in get_assignment() 72 assignment = dc->current_state->res_ctx.link_enc_cfg_ctx.transient_assignments[i]; in get_assignment() 74 assignment = dc->current_state->res_ctx.link_enc_cfg_ctx.link_enc_assignments[i]; in get_assignment() 307 ASSERT(dc->current_state->res_ctx.link_enc_cfg_ctx.mode == LINK_ENC_CFG_STEADY); in link_enc_cfg_link_encs_assign() 310 for (i = 0; i < dc->current_state->stream_count; i++) in link_enc_cfg_link_encs_assign() 311 dc->res_pool->funcs->link_enc_unassign(state, dc->current_state->streams[i]); in link_enc_cfg_link_encs_assign() 336 if (state != dc->current_state) { in link_enc_cfg_link_encs_assign() 337 struct dc_state *prev_state = dc->current_state; in link_enc_cfg_link_encs_assign() 410 dc->current_state->res_ctx.link_enc_cfg_ctx.transient_assignments[i] = in link_enc_cfg_link_encs_assign() 417 dc->current_state->res_ctx.link_enc_cfg_ctx.link_enc_assignments[i]; in link_enc_cfg_link_encs_assign() [all …]
|
H A D | dc_stream.c | 247 return dc_stream_get_status_from_state(dc->current_state, stream); in dc_stream_get_status() 262 res_ctx = &dc->current_state->res_ctx; in program_cursor_attributes() 327 (dc->current_state->stream_count > 1 || in is_subvp_high_refresh_candidate() 328 (dc->current_state->stream_count == 1 && !stream->allow_freesync))) in is_subvp_high_refresh_candidate() 369 if (dc->current_state->stream_count == 1 && stream->timing.v_addressable >= 2880 && in dc_stream_set_cursor_attributes() 372 else if (dc->current_state->stream_count > 1 && stream->timing.v_addressable >= 2160 && in dc_stream_set_cursor_attributes() 407 res_ctx = &dc->current_state->res_ctx; in program_cursor_position() 580 &dc->current_state->res_ctx; in dc_stream_get_vblank_counter() 608 res_ctx = &dc->current_state->res_ctx; in dc_stream_send_dp_sdp() 639 &dc->current_state->res_ctx; in dc_stream_get_scanoutpos() [all …]
|
H A D | dc_surface.c | 146 if (dc->current_state == NULL) in dc_plane_get_status() 152 &dc->current_state->res_ctx.pipe_ctx[i]; in dc_plane_get_status() 165 &dc->current_state->res_ctx.pipe_ctx[i]; in dc_plane_get_status()
|
/openbmc/u-boot/include/linux/soc/ti/ |
H A D | ti_sci_protocol.h | 128 bool *req_state, bool *current_state); 130 bool *req_state, bool *current_state); 132 bool *current_state); 197 bool *req_state, bool *current_state); 199 bool *req_state, bool *current_state);
|
/openbmc/linux/drivers/platform/x86/siemens/ |
H A D | simatic-ipc-batt.c | 38 long current_state; member 96 priv.current_state = simatic_ipc_batt_read_io(dev); in simatic_ipc_batt_read_value() 98 priv.current_state = simatic_ipc_batt_read_gpio(); in simatic_ipc_batt_read_value() 101 if (priv.current_state < SIMATIC_IPC_BATT_LEVEL_FULL) in simatic_ipc_batt_read_value() 105 return priv.current_state; in simatic_ipc_batt_read_value()
|
/openbmc/linux/drivers/pwm/ |
H A D | pwm-keembay.c | 124 struct pwm_state current_state; in keembay_pwm_apply() local 140 keembay_pwm_get_state(chip, pwm, ¤t_state); in keembay_pwm_apply() 143 if (current_state.enabled) in keembay_pwm_apply() 174 if (state->enabled && !current_state.enabled) in keembay_pwm_apply()
|
/openbmc/linux/drivers/thermal/ |
H A D | cpuidle_cooling.c | 129 unsigned long current_state = idle_cdev->state; in cpuidle_cooling_set_cur_state() local 140 if (current_state == 0 && state > 0) { in cpuidle_cooling_set_cur_state() 142 } else if (current_state > 0 && !state) { in cpuidle_cooling_set_cur_state()
|
/openbmc/linux/drivers/gpu/drm/amd/display/dc/dcn32/ |
H A D | dcn32_hwseq.c | 199 for (i = 0; i < dc->current_state->stream_count; i++) { in dcn32_check_no_memory_request_for_cab() 200 if ((dc->current_state->stream_status[i].plane_count) && in dcn32_check_no_memory_request_for_cab() 201 (dc->current_state->streams[i]->link->psr_settings.psr_version == DC_PSR_VERSION_UNSUPPORTED)) in dcn32_check_no_memory_request_for_cab() 206 if (i == dc->current_state->stream_count) in dcn32_check_no_memory_request_for_cab() 259 for (i = 0; i < dc->current_state->stream_count; i++) { in dcn32_apply_idle_power_optimizations() 261 if (dc->current_state->streams[i] != NULL && in dcn32_apply_idle_power_optimizations() 262 dc->current_state->streams[i]->link->psr_settings.psr_version != DC_PSR_VERSION_UNSUPPORTED) in dcn32_apply_idle_power_optimizations() 267 if (dc->current_state) { in dcn32_apply_idle_power_optimizations() 288 ways = dcn32_calculate_cab_allocation(dc, dc->current_state); in dcn32_apply_idle_power_optimizations() 293 for (i = 0; i < dc->current_state->stream_count; i++) { in dcn32_apply_idle_power_optimizations() [all …]
|
/openbmc/linux/drivers/gpu/drm/amd/display/dc/dcn30/ |
H A D | dcn30_hwseq.c | 528 hws->funcs.init_pipes(dc, dc->current_state); in dcn30_init_hw() 714 if (dc->current_state) { in dcn30_apply_idle_power_optimizations() 718 for (i = 0; i < dc->current_state->stream_count; i++) { in dcn30_apply_idle_power_optimizations() 719 if (dc->current_state->stream_status[i].plane_count) in dcn30_apply_idle_power_optimizations() 724 if (i == dc->current_state->stream_count) { in dcn30_apply_idle_power_optimizations() 736 stream = dc->current_state->streams[0]; in dcn30_apply_idle_power_optimizations() 737 plane = (stream ? dc->current_state->stream_status[0].plane_states[0] : NULL); in dcn30_apply_idle_power_optimizations() 757 if (dc->current_state->stream_count == 1 && in dcn30_apply_idle_power_optimizations() 759 dc->current_state->stream_status[0].plane_count == 1 && in dcn30_apply_idle_power_optimizations() 794 unsigned int stutter_period = dc->current_state->perf_params.stutter_period_us; in dcn30_apply_idle_power_optimizations() [all …]
|
/openbmc/linux/drivers/net/wireless/broadcom/b43/ |
H A D | lo.c | 555 int current_state; member 591 if (d->current_state == 0) { in lo_probe_possible_loctls() 594 } else if (d->current_state % 2 == 0) { in lo_probe_possible_loctls() 595 begin = d->current_state - 1; in lo_probe_possible_loctls() 596 end = d->current_state + 1; in lo_probe_possible_loctls() 598 begin = d->current_state - 2; in lo_probe_possible_loctls() 599 end = d->current_state + 2; in lo_probe_possible_loctls() 608 d->current_state = i; in lo_probe_possible_loctls() 638 d->current_state = i; in lo_probe_possible_loctls() 680 d.current_state = 0; in lo_probe_loctls_statemachine() [all …]
|
/openbmc/linux/drivers/acpi/acpica/ |
H A D | acconvert.h | 36 cv_process_comment(struct asl_comment_state current_state, 40 cv_process_comment_type2(struct asl_comment_state current_state,
|
/openbmc/linux/drivers/platform/x86/intel/atomisp2/ |
H A D | pm.c | 104 pdev->current_state = PCI_D3cold; in isp_pci_suspend() 115 pdev->current_state = PCI_D0; in isp_pci_resume()
|
/openbmc/linux/drivers/gpu/drm/amd/display/dc/dcn10/ |
H A D | dcn10_hw_sequencer_debug.c | 433 …pix_clk = dc->current_state->res_ctx.pipe_ctx[i].stream_res.pix_clk_params.requested_pix_clk_100hz… in dcn10_get_otg_states() 476 dc->current_state->bw_ctx.bw.dcn.clk.dcfclk_khz, in dcn10_get_clock_states() 477 dc->current_state->bw_ctx.bw.dcn.clk.dcfclk_deep_sleep_khz, in dcn10_get_clock_states() 478 dc->current_state->bw_ctx.bw.dcn.clk.dispclk_khz, in dcn10_get_clock_states() 479 dc->current_state->bw_ctx.bw.dcn.clk.dppclk_khz, in dcn10_get_clock_states() 480 dc->current_state->bw_ctx.bw.dcn.clk.fclk_khz, in dcn10_get_clock_states() 481 dc->current_state->bw_ctx.bw.dcn.clk.socclk_khz); in dcn10_get_clock_states()
|
/openbmc/linux/include/linux/soc/ti/ |
H A D | ti_sci_protocol.h | 111 bool *req_state, bool *current_state); 113 bool *req_state, bool *current_state); 115 bool *current_state); 180 bool *req_state, bool *current_state); 182 bool *req_state, bool *current_state);
|
/openbmc/linux/drivers/gpu/drm/radeon/ |
H A D | rs780_dpm.c | 380 struct igp_ps *current_state = rs780_get_ps(rdev->pm.dpm.current_ps); in rs780_force_voltage() local 382 if ((current_state->max_voltage == RS780_VDDC_LEVEL_HIGH) && in rs780_force_voltage() 383 (current_state->min_voltage == RS780_VDDC_LEVEL_HIGH)) in rs780_force_voltage() 407 struct igp_ps *current_state = rs780_get_ps(rdev->pm.dpm.current_ps); in rs780_force_fbdiv() local 409 if (current_state->sclk_low == current_state->sclk_high) in rs780_force_fbdiv() 568 struct igp_ps *current_state = rs780_get_ps(old_ps); in rs780_set_uvd_clock_before_set_eng_clock() local 574 if (new_state->sclk_high >= current_state->sclk_high) in rs780_set_uvd_clock_before_set_eng_clock() 585 struct igp_ps *current_state = rs780_get_ps(old_ps); in rs780_set_uvd_clock_after_set_eng_clock() local 591 if (new_state->sclk_high < current_state->sclk_high) in rs780_set_uvd_clock_after_set_eng_clock()
|
/openbmc/linux/drivers/gpu/drm/amd/display/dc/link/protocols/ |
H A D | link_edp_panel_control.c | 501 if (dc->current_state->res_ctx.pipe_ctx[i].stream) { in get_pipe_from_link() 502 if (dc->current_state->res_ctx.pipe_ctx[i].stream->link == link) { in get_pipe_from_link() 503 pipe_ctx = &dc->current_state->res_ctx.pipe_ctx[i]; in get_pipe_from_link() 736 if (dc->current_state->res_ctx.pipe_ctx[i].stream in edp_setup_psr() 742 dc->current_state->res_ctx. in edp_setup_psr() 956 if (dc->current_state->res_ctx.pipe_ctx[i].stream in edp_setup_replay() 962 dc->current_state->res_ctx.pipe_ctx[i].stream_res.tg->inst + 1; in edp_setup_replay() 1042 struct pipe_ctx pipe_ctx = dc->current_state->res_ctx.pipe_ctx[i]; in get_abm_from_stream_res()
|