Home
last modified time | relevance | path

Searched refs:current_state (Results 1 – 25 of 141) sorted by relevance

123456

/linux-6.3-rc2/drivers/scsi/elx/libefc/
A Defc_sm.c24 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()
/linux-6.3-rc2/drivers/net/ethernet/ti/
A Dnetcp_xgbepcsr.c309 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()
/linux-6.3-rc2/sound/usb/
A Dpower.c57 unsigned char current_state; in snd_usb_power_domain_set() local
66 &current_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()
/linux-6.3-rc2/drivers/gpu/drm/amd/display/modules/hdcp/
A Dhdcp.h426 return (current_state(hdcp) > HDCP1_STATE_START && in is_in_hdcp1_states()
427 current_state(hdcp) <= HDCP1_STATE_END); in is_in_hdcp1_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()
445 current_state(hdcp) <= HDCP2_DP_STATE_END); in is_in_hdcp2_dp_states()
451 current_state(hdcp) == H1_A45_AUTHENTICATED || in is_in_authenticated_states()
452 current_state(hdcp) == D2_A5_AUTHENTICATED || in is_in_authenticated_states()
453 current_state(hdcp) == H2_A5_AUTHENTICATED); in is_in_authenticated_states()
468 return current_state(hdcp) == HDCP_CP_NOT_DESIRED; in is_in_cp_not_desired_state()
[all …]
/linux-6.3-rc2/drivers/pci/
A Dpci-driver.c490 if (pci_dev->current_state == PCI_D0) in pci_device_remove()
491 pci_dev->current_state = PCI_UNKNOWN; in pci_device_remove()
538 if (pci_dev->current_state != PCI_D0) { in pci_restore_standard_config()
598 if (pci_dev->current_state == PCI_D0) in pci_pm_set_unknown_state()
599 pci_dev->current_state = PCI_UNKNOWN; in pci_pm_set_unknown_state()
628 pci_power_t prev = pci_dev->current_state; in pci_legacy_suspend()
813 pci_power_t prev = pci_dev->current_state; in pci_pm_suspend()
859 pci_power_t prev = pci_dev->current_state; in pci_pm_suspend_noirq()
889 pci_power_name(pci_dev->current_state)); in pci_pm_suspend_noirq()
891 if (pci_dev->current_state == PCI_D0) { in pci_pm_suspend_noirq()
[all …]
A Dpci.c1086 dev->current_state = PCI_D3cold; in pci_update_current_state()
1097 dev->current_state = state; in pci_update_current_state()
1127 dev->current_state = PCI_D0; in pci_platform_power_transition()
1208 dev->current_state = PCI_D0; in pci_power_up()
1210 dev->current_state = state; in pci_power_up()
1222 dev->current_state = PCI_D3cold; in pci_power_up()
1247 dev->current_state = PCI_D0; in pci_power_up()
1309 dev->current_state = state; in __pci_dev_set_current_state()
1351 if (dev->current_state <= PCI_D3cold && dev->current_state > state) { in pci_set_low_power_state()
1386 if (dev->current_state != state) in pci_set_low_power_state()
[all …]
/linux-6.3-rc2/drivers/gpu/drm/amd/display/dc/core/
A Ddc.c801 if (dc->current_state) { in dc_destruct()
803 dc->current_state = NULL; in dc_destruct()
1004 if (!dc->current_state) { in dc_construct()
1698 context = dc->current_state; in dc_enable_stereo()
1910 dc->current_state = context; in dc_commit_state_no_check()
3030 context = dc->current_state; in update_planes_and_stream_state()
4059 dc->current_state = context; in dc_update_planes_and_stream()
4099 context = dc->current_state; in dc_commit_updates_for_stream()
4180 dc->current_state = context; in dc_commit_updates_for_stream()
4252 if (!dc->current_state) in dc_set_power_state()
[all …]
A Ddc_link_enc_cfg.c71 if (dc->current_state->res_ctx.link_enc_cfg_ctx.mode == LINK_ENC_CFG_TRANSIENT) in get_assignment()
74 assignment = dc->current_state->res_ctx.link_enc_cfg_ctx.link_enc_assignments[i]; in get_assignment()
298 for (i = 0; i < dc->current_state->stream_count; i++) in link_enc_cfg_link_encs_assign()
299 dc->res_pool->funcs->link_enc_unassign(state, dc->current_state->streams[i]); in link_enc_cfg_link_encs_assign()
324 if (state != dc->current_state) { in link_enc_cfg_link_encs_assign()
325 struct dc_state *prev_state = dc->current_state; in link_enc_cfg_link_encs_assign()
392 dc->current_state->res_ctx.link_enc_cfg_ctx.transient_assignments[i] = in link_enc_cfg_link_encs_assign()
399 dc->current_state->res_ctx.link_enc_cfg_ctx.link_enc_assignments[i]; in link_enc_cfg_link_encs_assign()
582 dc->current_state->res_ctx.link_enc_cfg_ctx.link_enc_assignments[i]; in link_enc_cfg_get_link_enc_used_by_stream_current()
734 if (current_state->res_ctx.link_enc_cfg_ctx.transient_assignments[i].valid) in link_enc_cfg_set_transient_mode()
[all …]
A Ddc_stream.c263 res_ctx = &dc->current_state->res_ctx; in program_cursor_attributes()
381 res_ctx = &dc->current_state->res_ctx; in program_cursor_position()
494 if (!dc->hwss.update_bandwidth(dc, dc->current_state)) { in dc_stream_add_writeback()
505 dc->hwss.update_writeback(dc, wb_info, dc->current_state); in dc_stream_add_writeback()
508 dc->hwss.enable_writeback(dc, wb_info, dc->current_state); in dc_stream_add_writeback()
558 if (!dc->hwss.update_bandwidth(dc, dc->current_state)) { in dc_stream_remove_writeback()
584 &dc->current_state->res_ctx; in dc_stream_get_vblank_counter()
612 res_ctx = &dc->current_state->res_ctx; in dc_stream_send_dp_sdp()
643 &dc->current_state->res_ctx; in dc_stream_get_scanoutpos()
673 pipe = &dc->current_state->res_ctx.pipe_ctx[i]; in dc_stream_dmdata_status_done()
[all …]
A Ddc_surface.c146 if (dc->current_state == NULL) in dc_plane_get_status()
152 &dc->current_state->res_ctx.pipe_ctx[i]; in dc_plane_get_status()
164 &dc->current_state->res_ctx.pipe_ctx[i]; in dc_plane_get_status()
/linux-6.3-rc2/drivers/thermal/
A Dcpuidle_cooling.c128 unsigned long current_state = idle_cdev->state; in cpuidle_cooling_set_cur_state() local
139 if (current_state == 0 && state > 0) { in cpuidle_cooling_set_cur_state()
141 } else if (current_state > 0 && !state) { in cpuidle_cooling_set_cur_state()
/linux-6.3-rc2/drivers/pwm/
A Dpwm-keembay.c124 struct pwm_state current_state; in keembay_pwm_apply() local
140 keembay_pwm_get_state(chip, pwm, &current_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()
/linux-6.3-rc2/drivers/gpu/drm/amd/display/dc/dcn30/
A Ddcn30_hwseq.c555 hws->funcs.init_pipes(dc, dc->current_state); in dcn30_init_hw()
729 if (dc->current_state) { in dcn30_apply_idle_power_optimizations()
733 for (i = 0; i < dc->current_state->stream_count; i++) { in dcn30_apply_idle_power_optimizations()
734 if (dc->current_state->stream_status[i].plane_count) in dcn30_apply_idle_power_optimizations()
739 if (i == dc->current_state->stream_count) { in dcn30_apply_idle_power_optimizations()
752 stream = dc->current_state->streams[0]; in dcn30_apply_idle_power_optimizations()
770 if (dc->current_state->stream_count == 1 && in dcn30_apply_idle_power_optimizations()
772 dc->current_state->stream_status[0].plane_count == 1 && in dcn30_apply_idle_power_optimizations()
952 dc_dmub_setup_subvp_dmub_command(dc, dc->current_state, false); in dcn30_hardware_release()
959 struct pipe_ctx *pipe = &dc->current_state->res_ctx.pipe_ctx[i]; in dcn30_hardware_release()
[all …]
/linux-6.3-rc2/drivers/gpu/drm/amd/display/dc/dcn32/
A Ddcn32_hwseq.c190 for (i = 0; i < dc->current_state->stream_count; i++) { in dcn32_check_no_memory_request_for_cab()
191 if ((dc->current_state->stream_status[i].plane_count) && in dcn32_check_no_memory_request_for_cab()
197 if (i == dc->current_state->stream_count) in dcn32_check_no_memory_request_for_cab()
249 for (i = 0; i < dc->current_state->stream_count; i++) { in dcn32_apply_idle_power_optimizations()
251 if (dc->current_state->streams[i] != NULL && in dcn32_apply_idle_power_optimizations()
257 if (dc->current_state) { in dcn32_apply_idle_power_optimizations()
279 ways = dcn32_calculate_cab_allocation(dc, dc->current_state); in dcn32_apply_idle_power_optimizations()
284 for (i = 0; i < dc->current_state->stream_count; i++) { in dcn32_apply_idle_power_optimizations()
710 dc->current_state, in dcn32_initialize_min_clocks()
804 hws->funcs.init_pipes(dc, dc->current_state); in dcn32_init_hw()
[all …]
/linux-6.3-rc2/drivers/net/wireless/broadcom/b43/
A Dlo.c555 int current_state; member
591 if (d->current_state == 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()
683 (d.current_state >= 0 in lo_probe_loctls_statemachine()
[all …]
/linux-6.3-rc2/drivers/acpi/acpica/
A Dacconvert.h36 cv_process_comment(struct asl_comment_state current_state,
40 cv_process_comment_type2(struct asl_comment_state current_state,
/linux-6.3-rc2/drivers/platform/x86/intel/atomisp2/
A Dpm.c104 pdev->current_state = PCI_D3cold; in isp_pci_suspend()
115 pdev->current_state = PCI_D0; in isp_pci_resume()
/linux-6.3-rc2/drivers/gpu/drm/amd/display/dc/dcn10/
A Ddcn10_hw_sequencer_debug.c432 …pix_clk = dc->current_state->res_ctx.pipe_ctx[i].stream_res.pix_clk_params.requested_pix_clk_100hz… in dcn10_get_otg_states()
475 dc->current_state->bw_ctx.bw.dcn.clk.dcfclk_khz, in dcn10_get_clock_states()
476 dc->current_state->bw_ctx.bw.dcn.clk.dcfclk_deep_sleep_khz, in dcn10_get_clock_states()
477 dc->current_state->bw_ctx.bw.dcn.clk.dispclk_khz, in dcn10_get_clock_states()
478 dc->current_state->bw_ctx.bw.dcn.clk.dppclk_khz, in dcn10_get_clock_states()
479 dc->current_state->bw_ctx.bw.dcn.clk.fclk_khz, in dcn10_get_clock_states()
480 dc->current_state->bw_ctx.bw.dcn.clk.socclk_khz); in dcn10_get_clock_states()
/linux-6.3-rc2/include/linux/soc/ti/
A Dti_sci_protocol.h111 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);
/linux-6.3-rc2/drivers/gpu/drm/radeon/
A Drs780_dpm.c380 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()
/linux-6.3-rc2/drivers/gpu/drm/amd/display/dc/link/protocols/
A Dlink_edp_panel_control.c414 if (dc->current_state->res_ctx.pipe_ctx[i].stream) { in get_pipe_from_link()
415 if (dc->current_state->res_ctx.pipe_ctx[i].stream->link == link) { in get_pipe_from_link()
416 pipe_ctx = &dc->current_state->res_ctx.pipe_ctx[i]; in get_pipe_from_link()
649 if (dc->current_state->res_ctx.pipe_ctx[i].stream in dc_link_setup_psr()
655 dc->current_state->res_ctx. in dc_link_setup_psr()
795 struct pipe_ctx pipe_ctx = dc->current_state->res_ctx.pipe_ctx[i]; in get_abm_from_stream_res()
/linux-6.3-rc2/drivers/gpu/drm/tidss/
A Dtidss_crtc.c363 struct tidss_crtc_state *state, *current_state; in tidss_crtc_duplicate_state() local
368 current_state = to_tidss_crtc_state(crtc->state); in tidss_crtc_duplicate_state()
378 state->bus_format = current_state->bus_format; in tidss_crtc_duplicate_state()
379 state->bus_flags = current_state->bus_flags; in tidss_crtc_duplicate_state()
/linux-6.3-rc2/include/net/
A Dllc_c_st.h47 u8 current_state; member
/linux-6.3-rc2/drivers/gpu/drm/amd/display/dc/dcn20/
A Ddcn20_hwseq.c1802 struct pipe_ctx *old_pipe_ctx = &dc->current_state->res_ctx.pipe_ctx[i]; in dcn20_program_front_end_for_ctx()
1823 dcn20_detect_pipe_changes(&dc->current_state->res_ctx.pipe_ctx[i], in dcn20_program_front_end_for_ctx()
1830 struct dc_stream_state *stream = dc->current_state->res_ctx.pipe_ctx[i].stream; in dcn20_program_front_end_for_ctx()
1908 dc->current_state->stream_status[0].plane_count == 1 && in dcn20_program_front_end_for_ctx()
1938 dc->hwss.disable_plane(dc, &dc->current_state->res_ctx.pipe_ctx[i]); in dcn20_post_unlock_program_front_end()
1999 if (dc->current_state->stream_status[0].plane_count == 1 && in dcn20_post_unlock_program_front_end()
2465 update_audio_usage(&dc->current_state->res_ctx, dc->res_pool, in dcn20_reset_back_end_for_pipe()
2506 if (&dc->current_state->res_ctx.pipe_ctx[i] == pipe_ctx) in dcn20_reset_back_end_for_pipe()
2527 &dc->current_state->res_ctx.pipe_ctx[i]; in dcn20_reset_hw_ctx_wrap()
2540 dcn20_reset_back_end_for_pipe(dc, pipe_ctx_old, dc->current_state); in dcn20_reset_hw_ctx_wrap()
[all …]
/linux-6.3-rc2/drivers/hid/intel-ish-hid/ishtp/
A Dhbm.c916 static uint32_t current_state; variable
936 current_state |= (SUSPEND_STATE_BIT | CONNECTED_STANDBY_STATE_BIT); in ishtp_send_suspend()
938 state_status_msg.states_status = current_state; in ishtp_send_suspend()
962 current_state &= ~(CONNECTED_STANDBY_STATE_BIT | SUSPEND_STATE_BIT); in ishtp_send_resume()
964 state_status_msg.states_status = current_state; in ishtp_send_resume()

Completed in 88 milliseconds

123456