Home
last modified time | relevance | path

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

12345

/Linux-v5.15/drivers/scsi/elx/libefc/
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-v5.15/drivers/net/ethernet/ti/
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-v5.15/sound/usb/
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-v5.15/drivers/pci/
Dpci-driver.c480 if (pci_dev->current_state == PCI_D0) in pci_device_remove()
481 pci_dev->current_state = PCI_UNKNOWN; in pci_device_remove()
512 if (kexec_in_progress && (pci_dev->current_state <= PCI_D3hot)) in pci_device_shutdown()
528 if (pci_dev->current_state != PCI_D0) { in pci_restore_standard_config()
567 if (pci_dev->current_state == PCI_D0) in pci_pm_set_unknown_state()
568 pci_dev->current_state = PCI_UNKNOWN; in pci_pm_set_unknown_state()
597 pci_power_t prev = pci_dev->current_state; in pci_legacy_suspend()
605 if (!pci_dev->state_saved && pci_dev->current_state != PCI_D0 in pci_legacy_suspend()
606 && pci_dev->current_state != PCI_UNKNOWN) { in pci_legacy_suspend()
607 pci_WARN_ONCE(pci_dev, pci_dev->current_state != prev, in pci_legacy_suspend()
[all …]
Dpci.c1051 if (dev->current_state == state) in pci_raw_set_power_state()
1066 if (state != PCI_D0 && dev->current_state <= PCI_D3cold in pci_raw_set_power_state()
1067 && dev->current_state > state) { in pci_raw_set_power_state()
1069 pci_power_name(dev->current_state), in pci_raw_set_power_state()
1082 pci_power_name(dev->current_state), in pci_raw_set_power_state()
1092 switch (dev->current_state) { in pci_raw_set_power_state()
1118 if (state == PCI_D3hot || dev->current_state == PCI_D3hot) in pci_raw_set_power_state()
1120 else if (state == PCI_D2 || dev->current_state == PCI_D2) in pci_raw_set_power_state()
1124 dev->current_state = (pmcsr & PCI_PM_CTRL_STATE_MASK); in pci_raw_set_power_state()
1125 if (dev->current_state != state) in pci_raw_set_power_state()
[all …]
/Linux-v5.15/drivers/gpu/drm/amd/display/dc/core/
Ddc.c315 struct pipe_ctx *pipe = &dc->current_state->res_ctx.pipe_ctx[i]; in dc_stream_adjust_vmin_vmax()
351 struct pipe_ctx *pipe = &dc->current_state->res_ctx.pipe_ctx[i]; in dc_stream_get_last_used_drr_vtotal()
382 &dc->current_state->res_ctx.pipe_ctx[i]; in dc_stream_get_crtc_position()
419 pipe = &dc->current_state->res_ctx.pipe_ctx[i]; in dc_stream_forward_dmcu_crc_window()
453 pipe = &dc->current_state->res_ctx.pipe_ctx[i]; in dc_stream_stop_dmcu_crc_win_update()
498 pipe = &dc->current_state->res_ctx.pipe_ctx[i]; in dc_stream_configure_crc()
563 pipe = &dc->current_state->res_ctx.pipe_ctx[i]; in dc_stream_get_crc()
587 if (dc->current_state->res_ctx.pipe_ctx[i].stream in dc_stream_set_dyn_expansion()
589 pipe_ctx = &dc->current_state->res_ctx.pipe_ctx[i]; in dc_stream_set_dyn_expansion()
609 if (link->dc->current_state->res_ctx.pipe_ctx[i].stream == in dc_stream_set_dither_option()
[all …]
Ddc_stream.c246 return dc_stream_get_status_from_state(dc->current_state, stream); in dc_stream_get_status()
261 res_ctx = &dc->current_state->res_ctx; in program_cursor_attributes()
361 res_ctx = &dc->current_state->res_ctx; in program_cursor_position()
476 if (!dc->hwss.update_bandwidth(dc, dc->current_state)) { in dc_stream_add_writeback()
487 dc->hwss.update_writeback(dc, wb_info, dc->current_state); in dc_stream_add_writeback()
490 dc->hwss.enable_writeback(dc, wb_info, dc->current_state); in dc_stream_add_writeback()
534 if (!dc->hwss.update_bandwidth(dc, dc->current_state)) { in dc_stream_remove_writeback()
560 &dc->current_state->res_ctx; in dc_stream_get_vblank_counter()
588 res_ctx = &dc->current_state->res_ctx; in dc_stream_send_dp_sdp()
619 &dc->current_state->res_ctx; in dc_stream_get_scanoutpos()
[all …]
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()
Ddc_link_hwss.c75 link->dc->current_state->res_ctx.pipe_ctx; in dp_enable_link_phy()
82 link_enc = link_enc_cfg_get_link_enc_used_by_link(link->dc->current_state, link); in dp_enable_link_phy()
213 link_enc = link_enc_cfg_get_link_enc_used_by_link(link->dc->current_state, link); in dp_disable_link_phy()
313 encoder = link_enc_cfg_get_link_enc_used_by_link(link->dc->current_state, link); in dp_set_hw_test_pattern()
330 &link->dc->current_state->res_ctx.pipe_ctx[0]; in dp_retrain_link_dp_test()
/Linux-v5.15/drivers/gpu/drm/amd/display/modules/hdcp/
Dhdcp.h408 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()
460 return current_state(hdcp) == HDCP_CP_NOT_DESIRED; in is_in_cp_not_desired_state()
[all …]
Dhdcp.c245 if (current_state(hdcp) != HDCP_UNINITIALIZED) { in reset_connection()
341 if (current_state(hdcp) != HDCP_INITIALIZED) in mod_hdcp_add_display()
385 if (current_state(hdcp) != HDCP_UNINITIALIZED) in mod_hdcp_remove_display()
438 if (current_state(hdcp) != HDCP_UNINITIALIZED) in mod_hdcp_update_authentication()
/Linux-v5.15/drivers/thermal/
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-v5.15/drivers/pwm/
Dpwm-keembay.c122 struct pwm_state current_state; in keembay_pwm_apply() local
138 keembay_pwm_get_state(chip, pwm, &current_state); in keembay_pwm_apply()
141 if (current_state.enabled) in keembay_pwm_apply()
172 if (state->enabled && !current_state.enabled) in keembay_pwm_apply()
/Linux-v5.15/drivers/net/wireless/broadcom/b43/
Dlo.c555 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 …]
/Linux-v5.15/drivers/acpi/acpica/
Dacconvert.h36 cv_process_comment(struct asl_comment_state current_state,
40 cv_process_comment_type2(struct asl_comment_state current_state,
/Linux-v5.15/drivers/platform/x86/intel/atomisp2/
Dpm.c104 pdev->current_state = PCI_D3cold; in isp_pci_suspend()
115 pdev->current_state = PCI_D0; in isp_pci_resume()
/Linux-v5.15/drivers/gpu/drm/amd/display/dc/dcn10/
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-v5.15/include/linux/soc/ti/
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-v5.15/drivers/gpu/drm/radeon/
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-v5.15/drivers/gpu/drm/amd/display/dc/dcn30/
Ddcn30_hwseq.c580 hws->funcs.init_pipes(dc, dc->current_state); in dcn30_init_hw()
746 if (dc->current_state) { in dcn30_apply_idle_power_optimizations()
750 for (i = 0; i < dc->current_state->stream_count; i++) { in dcn30_apply_idle_power_optimizations()
751 if (dc->current_state->stream_status[i].plane_count) in dcn30_apply_idle_power_optimizations()
756 if (i == dc->current_state->stream_count) { in dcn30_apply_idle_power_optimizations()
769 stream = dc->current_state->streams[0]; in dcn30_apply_idle_power_optimizations()
770 plane = (stream ? dc->current_state->stream_status[0].plane_states[0] : NULL); in dcn30_apply_idle_power_optimizations()
787 if (dc->current_state->stream_count == 1 && in dcn30_apply_idle_power_optimizations()
789 dc->current_state->stream_status[0].plane_count == 1 && in dcn30_apply_idle_power_optimizations()
824 unsigned int stutter_period = dc->current_state->perf_params.stutter_period_us; in dcn30_apply_idle_power_optimizations()
/Linux-v5.15/drivers/gpu/drm/tidss/
Dtidss_crtc.c366 struct tidss_crtc_state *state, *current_state; in tidss_crtc_duplicate_state() local
371 current_state = to_tidss_crtc_state(crtc->state); in tidss_crtc_duplicate_state()
381 state->bus_format = current_state->bus_format; in tidss_crtc_duplicate_state()
382 state->bus_flags = current_state->bus_flags; in tidss_crtc_duplicate_state()
/Linux-v5.15/include/net/
Dllc_c_st.h43 u8 current_state; member
/Linux-v5.15/drivers/gpu/drm/amd/display/dc/
Ddc_trace.h28 struct pipe_ctx *pipe_ctx = &dc->current_state->res_ctx.pipe_ctx[index]; \
/Linux-v5.15/drivers/gpu/drm/amd/display/dc/dcn31/
Ddcn31_dio_link_encoder.c371 if (!link_enc_cfg_is_transmitter_mappable(enc->ctx->dc->current_state, enc)) { in dcn31_link_encoder_enable_dp_output()
387 if (!link_enc_cfg_is_transmitter_mappable(enc->ctx->dc->current_state, enc)) { in dcn31_link_encoder_enable_dp_mst_output()
402 if (!link_enc_cfg_is_transmitter_mappable(enc->ctx->dc->current_state, enc)) { in dcn31_link_encoder_disable_output()
/Linux-v5.15/drivers/hid/intel-ish-hid/ishtp/
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()

12345