Home
last modified time | relevance | path

Searched refs:current_state (Results 1 - 25 of 249) sorted by relevance

12345678910

/kernel/linux/linux-6.6/drivers/scsi/elx/libefc/
H 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()
/kernel/linux/linux-6.6/drivers/gpu/drm/amd/display/modules/hdcp/
H A 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()
450 return (current_state(hdc in is_in_authenticated_states()
[all...]
/kernel/linux/linux-6.6/drivers/gpu/drm/amd/display/dc/core/
H A Ddc.c118 * these structs in dc->current_state representing the currently programmed state.
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 in dc_stream_set_dither_option()
[all...]
H A Ddc_link_enc_cfg.c71 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 in link_enc_cfg_link_encs_assign()
746 link_enc_cfg_set_transient_mode(struct dc *dc, struct dc_state *current_state, struct dc_state *new_state) link_enc_cfg_set_transient_mode() argument
[all...]
H A Ddc_stream.c240 * The given stream is expected to exist in dc->current_state. Otherwise, NULL
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 in dc_stream_send_dp_sdp()
[all...]
/kernel/linux/linux-5.10/drivers/pci/
H A Dpci-driver.c470 if (pci_dev->current_state == PCI_D0) in pci_device_remove()
471 pci_dev->current_state = PCI_UNKNOWN; in pci_device_remove()
503 if (kexec_in_progress && (pci_dev->current_state <= PCI_D3hot)) in pci_device_shutdown()
519 if (pci_dev->current_state != PCI_D0) { in pci_restore_standard_config()
558 if (pci_dev->current_state == PCI_D0) in pci_pm_set_unknown_state()
559 pci_dev->current_state = PCI_UNKNOWN; in pci_pm_set_unknown_state()
588 pci_power_t prev = pci_dev->current_state; in pci_legacy_suspend()
596 if (!pci_dev->state_saved && pci_dev->current_state != PCI_D0 in pci_legacy_suspend()
597 && pci_dev->current_state != PCI_UNKNOWN) { in pci_legacy_suspend()
598 pci_WARN_ONCE(pci_dev, pci_dev->current_state ! in pci_legacy_suspend()
[all...]
/kernel/linux/linux-6.6/drivers/pci/
H A Dpci-driver.c497 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 ! in pci_legacy_suspend()
[all...]
/kernel/linux/linux-5.10/sound/usb/
H 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()
/kernel/linux/linux-6.6/sound/usb/
H 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()
/kernel/linux/linux-5.10/drivers/gpu/drm/amd/display/dc/core/
H A Ddc.c111 * these structs in dc->current_state representing the currently programmed state.
294 struct pipe_ctx *pipe = &dc->current_state->res_ctx.pipe_ctx[i]; in dc_stream_adjust_vmin_vmax()
322 &dc->current_state->res_ctx.pipe_ctx[i]; in dc_stream_get_crtc_position()
355 pipe = &dc->current_state->res_ctx.pipe_ctx[i]; in dc_stream_configure_crc()
407 pipe = &dc->current_state->res_ctx.pipe_ctx[i]; in dc_stream_get_crc()
431 if (dc->current_state->res_ctx.pipe_ctx[i].stream in dc_stream_set_dyn_expansion()
433 pipe_ctx = &dc->current_state->res_ctx.pipe_ctx[i]; in dc_stream_set_dyn_expansion()
453 if (link->dc->current_state->res_ctx.pipe_ctx[i].stream == in dc_stream_set_dither_option()
455 pipes = &link->dc->current_state->res_ctx.pipe_ctx[i]; in dc_stream_set_dither_option()
490 if (dc->current_state in dc_stream_set_gamut_remap()
[all...]
H A Ddc_stream.c236 * The given stream is expected to exist in dc->current_state. Otherwise, NULL
243 return dc_stream_get_status_from_state(dc->current_state, stream); in dc_stream_get_status()
294 res_ctx = &dc->current_state->res_ctx; in dc_stream_set_cursor_attributes()
357 res_ctx = &dc->current_state->res_ctx; in dc_stream_set_cursor_position()
448 if (!dc->hwss.update_bandwidth(dc, dc->current_state)) { in dc_stream_add_writeback()
459 dc->hwss.update_writeback(dc, wb_info, dc->current_state); in dc_stream_add_writeback()
462 dc->hwss.enable_writeback(dc, wb_info, dc->current_state); in dc_stream_add_writeback()
506 if (!dc->hwss.update_bandwidth(dc, dc->current_state)) { in dc_stream_remove_writeback()
532 &dc->current_state->res_ctx; in dc_stream_get_vblank_counter()
560 res_ctx = &dc->current_state in dc_stream_send_dp_sdp()
[all...]
/kernel/linux/linux-5.10/drivers/gpu/drm/amd/display/modules/hdcp/
H A Dhdcp.h409 static inline uint8_t current_state(struct mod_hdcp *hdcp) in current_state() function
427 return (current_state(hdcp) > HDCP1_STATE_START && in is_in_hdcp1_states()
428 current_state(hdcp) <= HDCP1_STATE_END); in is_in_hdcp1_states()
433 return (current_state(hdcp) > HDCP1_DP_STATE_START && in is_in_hdcp1_dp_states()
434 current_state(hdcp) <= HDCP1_DP_STATE_END); in is_in_hdcp1_dp_states()
439 return (current_state(hdcp) > HDCP2_STATE_START && in is_in_hdcp2_states()
440 current_state(hdcp) <= HDCP2_STATE_END); in is_in_hdcp2_states()
445 return (current_state(hdcp) > HDCP2_DP_STATE_START && in is_in_hdcp2_dp_states()
446 current_state(hdcp) <= HDCP2_DP_STATE_END); in is_in_hdcp2_dp_states()
461 return current_state(hdc in is_in_cp_not_desired_state()
[all...]
/kernel/linux/linux-5.10/drivers/net/ethernet/ti/
H A Dnetcp_xgbepcsr.c309 u32 *current_state, u32 *lane_down) in netcp_xgbe_check_link_status()
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()
371 pr_err("XGBE: unknown current_state[%d] %d\n", 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[ in netcp_xgbe_serdes_check_lane() local
307 netcp_xgbe_check_link_status(void __iomem *serdes_regs, void __iomem *sw_regs, u32 lanes, u32 *current_state, u32 *lane_down) netcp_xgbe_check_link_status() argument
[all...]
/kernel/linux/linux-6.6/drivers/net/ethernet/ti/
H A Dnetcp_xgbepcsr.c309 u32 *current_state, u32 *lane_down) in netcp_xgbe_check_link_status()
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()
371 pr_err("XGBE: unknown current_state[%d] %d\n", 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[ in netcp_xgbe_serdes_check_lane() local
307 netcp_xgbe_check_link_status(void __iomem *serdes_regs, void __iomem *sw_regs, u32 lanes, u32 *current_state, u32 *lane_down) netcp_xgbe_check_link_status() argument
[all...]
/kernel/linux/linux-6.6/drivers/platform/x86/siemens/
H A Dsimatic-ipc-batt.c38 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()
/kernel/linux/linux-5.10/drivers/thermal/
H A Dcpuidle_cooling.c130 unsigned long current_state = idle_cdev->state; in cpuidle_cooling_set_cur_state() local
141 if (current_state == 0 && state > 0) { in cpuidle_cooling_set_cur_state()
143 } else if (current_state > 0 && !state) { in cpuidle_cooling_set_cur_state()
/kernel/linux/linux-6.6/drivers/thermal/
H A Dcpuidle_cooling.c129 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()
/kernel/linux/linux-6.6/drivers/pwm/
H 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()
/kernel/linux/linux-6.6/drivers/gpu/drm/amd/display/dc/dcn30/
H A Ddcn30_hwseq.c524 hws->funcs.init_pipes(dc, dc->current_state); in dcn30_init_hw()
699 if (dc->current_state) { in dcn30_apply_idle_power_optimizations()
703 for (i = 0; i < dc->current_state->stream_count; i++) { in dcn30_apply_idle_power_optimizations()
704 if (dc->current_state->stream_status[i].plane_count) in dcn30_apply_idle_power_optimizations()
709 if (i == dc->current_state->stream_count) { in dcn30_apply_idle_power_optimizations()
721 stream = dc->current_state->streams[0]; in dcn30_apply_idle_power_optimizations()
722 plane = (stream ? dc->current_state->stream_status[0].plane_states[0] : NULL); in dcn30_apply_idle_power_optimizations()
739 if (dc->current_state->stream_count == 1 && in dcn30_apply_idle_power_optimizations()
741 dc->current_state->stream_status[0].plane_count == 1 && in dcn30_apply_idle_power_optimizations()
776 unsigned int stutter_period = dc->current_state in dcn30_apply_idle_power_optimizations()
[all...]
/kernel/linux/linux-6.6/drivers/gpu/drm/amd/display/dc/dcn32/
H A Ddcn32_hwseq.c199 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 in dcn32_apply_idle_power_optimizations()
[all...]
/kernel/linux/linux-5.10/drivers/acpi/acpica/
H A Dacconvert.h36 cv_process_comment(struct asl_comment_state current_state,
40 cv_process_comment_type2(struct asl_comment_state current_state,
/kernel/linux/linux-6.6/drivers/acpi/acpica/
H A Dacconvert.h36 cv_process_comment(struct asl_comment_state current_state,
40 cv_process_comment_type2(struct asl_comment_state current_state,
/kernel/linux/linux-5.10/drivers/gpu/drm/amd/display/dc/dcn10/
H 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 / 10; 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()
H A Ddcn10_hw_sequencer.c452 dc->current_state->bw_ctx.bw.dcn.clk.dcfclk_khz, in dcn10_log_hw_state()
453 dc->current_state->bw_ctx.bw.dcn.clk.dcfclk_deep_sleep_khz, in dcn10_log_hw_state()
454 dc->current_state->bw_ctx.bw.dcn.clk.dispclk_khz, in dcn10_log_hw_state()
455 dc->current_state->bw_ctx.bw.dcn.clk.dppclk_khz, in dcn10_log_hw_state()
456 dc->current_state->bw_ctx.bw.dcn.clk.max_supported_dppclk_khz, in dcn10_log_hw_state()
457 dc->current_state->bw_ctx.bw.dcn.clk.fclk_khz, in dcn10_log_hw_state()
458 dc->current_state->bw_ctx.bw.dcn.clk.socclk_khz); in dcn10_log_hw_state()
767 struct pipe_ctx *old_pipe_ctx = &dc->current_state->res_ctx.pipe_ctx[i]; in false_optc_underflow_wa()
909 update_audio_usage(&dc->current_state->res_ctx, dc->res_pool, in dcn10_reset_back_end_for_pipe()
934 if (&dc->current_state in dcn10_reset_back_end_for_pipe()
[all...]
/kernel/linux/linux-6.6/drivers/gpu/drm/amd/display/dc/dcn10/
H A Ddcn10_hw_sequencer_debug.c433 pix_clk = dc->current_state->res_ctx.pipe_ctx[i].stream_res.pix_clk_params.requested_pix_clk_100hz / 10; 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()

Completed in 24 milliseconds

12345678910