/linux-6.12.1/drivers/hid/bpf/progs/ |
D | XPPen__Artist24.bpf.c | 157 __u8 current_state, changed_state; in SEC() local 163 current_state = data[1]; in SEC() 166 if (current_state == prev_state) in SEC() 181 if ((current_state & IN_RANGE) == 0) { in SEC() 191 changed_state = prev_state ^ current_state; in SEC() 194 prev_state = current_state; in SEC()
|
/linux-6.12.1/drivers/scsi/elx/libefc/ |
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()
|
/linux-6.12.1/drivers/net/ethernet/ti/ |
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()
|
/linux-6.12.1/drivers/gpu/drm/amd/display/modules/hdcp/ |
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 …]
|
/linux-6.12.1/sound/usb/ |
D | power.c | 58 unsigned char current_state; in snd_usb_power_domain_set() local 67 ¤t_state, sizeof(current_state)); in snd_usb_power_domain_set() 74 if (current_state == state) { in snd_usb_power_domain_set() 91 switch (current_state) { in snd_usb_power_domain_set()
|
/linux-6.12.1/drivers/pci/ |
D | pci-driver.c | 488 if (pci_dev->current_state == PCI_D0) in pci_device_remove() 489 pci_dev->current_state = PCI_UNKNOWN; in pci_device_remove() 520 if (kexec_in_progress && (pci_dev->current_state <= PCI_D3hot)) in pci_device_shutdown() 536 if (pci_dev->current_state != PCI_D0) { in pci_restore_standard_config() 609 if (pci_dev->current_state == PCI_D0) in pci_pm_set_unknown_state() 610 pci_dev->current_state = PCI_UNKNOWN; in pci_pm_set_unknown_state() 639 pci_power_t prev = pci_dev->current_state; in pci_legacy_suspend() 647 if (!pci_dev->state_saved && pci_dev->current_state != PCI_D0 in pci_legacy_suspend() 648 && pci_dev->current_state != PCI_UNKNOWN) { in pci_legacy_suspend() 649 pci_WARN_ONCE(pci_dev, pci_dev->current_state != prev, in pci_legacy_suspend() [all …]
|
D | pci.c | 1223 dev->current_state = PCI_D3cold; in pci_update_current_state() 1229 dev->current_state = PCI_D3cold; in pci_update_current_state() 1232 dev->current_state = pmcsr & PCI_PM_CTRL_STATE_MASK; in pci_update_current_state() 1234 dev->current_state = state; in pci_update_current_state() 1248 pci_update_current_state(dev, dev->current_state); in pci_refresh_power_state() 1264 dev->current_state = PCI_D0; in pci_platform_power_transition() 1391 dev->current_state = PCI_D0; in pci_power_up() 1393 dev->current_state = state; in pci_power_up() 1401 pci_power_name(dev->current_state)); in pci_power_up() 1402 dev->current_state = PCI_D3cold; in pci_power_up() [all …]
|
/linux-6.12.1/drivers/gpu/drm/amd/display/dc/core/ |
D | dc.c | 398 if (!dc->current_state) in set_long_vtotal() 404 struct pipe_ctx *pipe = &dc->current_state->res_ctx.pipe_ctx[i]; in set_long_vtotal() 462 struct pipe_ctx *pipe = &dc->current_state->res_ctx.pipe_ctx[i]; in dc_stream_adjust_vmin_vmax() 499 struct pipe_ctx *pipe = &dc->current_state->res_ctx.pipe_ctx[i]; in dc_stream_get_last_used_drr_vtotal() 532 &dc->current_state->res_ctx.pipe_ctx[i]; in dc_stream_get_crtc_position() 592 pipe = &dc->current_state->res_ctx.pipe_ctx[i]; in dc_stream_forward_crc_window() 643 &dc->current_state->res_ctx, stream); in dc_stream_configure_crc() 713 pipe = &dc->current_state->res_ctx.pipe_ctx[i]; in dc_stream_get_crc() 739 if (dc->current_state->res_ctx.pipe_ctx[i].stream in dc_stream_set_dyn_expansion() 741 pipe_ctx = &dc->current_state->res_ctx.pipe_ctx[i]; in dc_stream_set_dyn_expansion() [all …]
|
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() 309 ASSERT(dc->current_state->res_ctx.link_enc_cfg_ctx.mode == LINK_ENC_CFG_STEADY); in link_enc_cfg_link_encs_assign() 312 for (i = 0; i < dc->current_state->stream_count; i++) in link_enc_cfg_link_encs_assign() 313 dc->res_pool->funcs->link_enc_unassign(state, dc->current_state->streams[i]); in link_enc_cfg_link_encs_assign() 338 if (state != dc->current_state) { in link_enc_cfg_link_encs_assign() 339 struct dc_state *prev_state = dc->current_state; in link_enc_cfg_link_encs_assign() 412 dc->current_state->res_ctx.link_enc_cfg_ctx.transient_assignments[i] = in link_enc_cfg_link_encs_assign() 419 dc->current_state->res_ctx.link_enc_cfg_ctx.link_enc_assignments[i]; in link_enc_cfg_link_encs_assign() [all …]
|
D | dc_stream.c | 221 return dc_state_get_stream_status(dc->current_state, stream); in dc_stream_get_status() 235 res_ctx = &dc->current_state->res_ctx; in program_cursor_attributes() 345 res_ctx = &dc->current_state->res_ctx; in program_cursor_position() 428 struct pipe_ctx *pipe_ctx = &dc->current_state->res_ctx.pipe_ctx[i]; in dc_stream_program_cursor_position() 509 if (!dc->hwss.update_bandwidth(dc, dc->current_state)) { in dc_stream_add_writeback() 520 dc->hwss.update_writeback(dc, wb_info, dc->current_state); in dc_stream_add_writeback() 523 dc->hwss.enable_writeback(dc, wb_info, dc->current_state); in dc_stream_add_writeback() 597 if (!dc->hwss.update_bandwidth(dc, dc->current_state)) { in dc_stream_remove_writeback() 631 &dc->current_state->res_ctx; in dc_stream_get_vblank_counter() 661 res_ctx = &dc->current_state->res_ctx; in dc_stream_send_dp_sdp() [all …]
|
D | dc_state.c | 291 dc_state_copy(dst_state, dc->current_state); in dc_state_copy_current() 296 return dc_state_create_copy(dc->current_state); in dc_state_create_current_copy() 423 dc->current_state, dc->res_pool, stream, 1); in dc_state_remove_stream() 495 dc->current_state, pool, otg_master_pipe, plane_state); in dc_state_add_plane() 501 dc->current_state, in dc_state_add_plane() 504 dc->current_state, pool, in dc_state_add_plane() 513 dc->current_state, dc->res_pool, stream, in dc_state_add_plane() 517 dc->current_state, pool, in dc_state_add_plane() 975 if (dc->current_state) in dc_state_is_fams2_in_use() 976 is_fams2_in_use |= dc->current_state->bw_ctx.bw.dcn.fams2_global_config.features.bits.enable; in dc_state_is_fams2_in_use()
|
D | dc_surface.c | 135 if (dc->current_state == NULL) in dc_plane_get_status() 141 &dc->current_state->res_ctx.pipe_ctx[i]; in dc_plane_get_status() 156 &dc->current_state->res_ctx.pipe_ctx[i]; in dc_plane_get_status()
|
/linux-6.12.1/drivers/platform/x86/siemens/ |
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()
|
/linux-6.12.1/drivers/gpu/drm/amd/display/dc/hwss/dcn32/ |
D | dcn32_hwseq.c | 202 for (i = 0; i < dc->current_state->stream_count; i++) { in dcn32_check_no_memory_request_for_cab() 203 if ((dc->current_state->stream_status[i].plane_count) && in dcn32_check_no_memory_request_for_cab() 204 (dc->current_state->streams[i]->link->psr_settings.psr_version == DC_PSR_VERSION_UNSUPPORTED)) in dcn32_check_no_memory_request_for_cab() 209 if (i == dc->current_state->stream_count) in dcn32_check_no_memory_request_for_cab() 264 for (i = 0; i < dc->current_state->stream_count; i++) { in dcn32_apply_idle_power_optimizations() 266 if (dc->current_state->streams[i] != NULL && in dcn32_apply_idle_power_optimizations() 267 dc->current_state->streams[i]->link->psr_settings.psr_version != DC_PSR_VERSION_UNSUPPORTED && in dcn32_apply_idle_power_optimizations() 268 (dc->current_state->stream_count > 1 || (!dc->current_state->streams[i]->dpms_off && in dcn32_apply_idle_power_optimizations() 269 dc->current_state->stream_status[i].plane_count > 0))) in dcn32_apply_idle_power_optimizations() 293 ways = dcn32_calculate_cab_allocation(dc, dc->current_state); in dcn32_apply_idle_power_optimizations() [all …]
|
/linux-6.12.1/tools/testing/selftests/hid/tests/ |
D | test_tablet.py | 468 self.current_state = None 514 assert self.current_state == PenState.from_evdev(evdev, button) 544 if pen.current_state == PenState.PEN_IS_OUT_OF_RANGE: 611 pen.current_state = state 703 cur_state = p.current_state 722 cur_state = p.current_state 923 if pen.current_state == PenState.PEN_IS_OUT_OF_RANGE: 983 pen.current_state = state 1025 if pen.current_state == PenState.PEN_IS_OUT_OF_RANGE: 1072 pen.current_state = state [all …]
|
/linux-6.12.1/drivers/pwm/ |
D | pwm-keembay.c | 123 struct pwm_state current_state; in keembay_pwm_apply() local 139 keembay_pwm_get_state(chip, pwm, ¤t_state); in keembay_pwm_apply() 142 if (current_state.enabled) in keembay_pwm_apply() 173 if (state->enabled && !current_state.enabled) in keembay_pwm_apply()
|
/linux-6.12.1/drivers/thermal/ |
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()
|
/linux-6.12.1/drivers/md/dm-vdo/ |
D | admin-state.h | 53 const struct admin_state_code *current_state; member 72 return READ_ONCE(state->current_state); in vdo_get_admin_state_code() 84 WRITE_ONCE(state->current_state, code); in vdo_set_admin_state_code()
|
/linux-6.12.1/drivers/gpu/drm/amd/display/dc/hwss/dcn401/ |
D | dcn401_hwseq.c | 53 struct dc_clocks *clocks = &dc->current_state->bw_ctx.bw.dcn.clk; in dcn401_initialize_min_clocks() 76 dc->current_state, in dcn401_initialize_min_clocks() 323 dc->hwss.enable_accelerated_mode(dc, dc->current_state); in dcn401_init_hw() 325 hws->funcs.init_pipes(dc, dc->current_state); in dcn401_init_hw() 1257 for (i = 0; i < dc->current_state->stream_count; i++) { in dcn401_check_no_memory_request_for_cab() 1258 if ((dc->current_state->stream_status[i].plane_count) && in dcn401_check_no_memory_request_for_cab() 1259 (dc->current_state->streams[i]->link->psr_settings.psr_version == DC_PSR_VERSION_UNSUPPORTED)) in dcn401_check_no_memory_request_for_cab() 1306 if (!dc->ctx->dmub_srv || !dc->current_state) in dcn401_apply_idle_power_optimizations() 1309 for (i = 0; i < dc->current_state->stream_count; i++) { in dcn401_apply_idle_power_optimizations() 1311 if (dc->current_state->streams[i] != NULL && in dcn401_apply_idle_power_optimizations() [all …]
|
/linux-6.12.1/drivers/gpu/drm/amd/display/dc/hwss/dcn30/ |
D | dcn30_hwseq.c | 717 hws->funcs.init_pipes(dc, dc->current_state); in dcn30_init_hw() 905 if (dc->current_state) { in dcn30_apply_idle_power_optimizations() 909 for (i = 0; i < dc->current_state->stream_count; i++) { in dcn30_apply_idle_power_optimizations() 910 if (dc->current_state->stream_status[i].plane_count) in dcn30_apply_idle_power_optimizations() 915 if (i == dc->current_state->stream_count) { in dcn30_apply_idle_power_optimizations() 927 stream = dc->current_state->streams[0]; in dcn30_apply_idle_power_optimizations() 928 plane = (stream ? dc->current_state->stream_status[0].plane_states[0] : NULL); in dcn30_apply_idle_power_optimizations() 948 if (dc->current_state->stream_count == 1 && in dcn30_apply_idle_power_optimizations() 950 dc->current_state->stream_status[0].plane_count == 1 && in dcn30_apply_idle_power_optimizations() 986 unsigned int stutter_period = dc->current_state->perf_params.stutter_period_us; in dcn30_apply_idle_power_optimizations() [all …]
|
/linux-6.12.1/drivers/net/wireless/broadcom/b43/ |
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 …]
|
/linux-6.12.1/drivers/gpu/drm/amd/display/amdgpu_dm/ |
D | amdgpu_dm_psr.c | 125 mod_power_only_edp(dc->current_state, stream); in amdgpu_dm_link_setup_psr() 238 for (i = 0; i < dm->dc->current_state->stream_count ; i++) { in amdgpu_dm_psr_is_active_allowed() 240 struct dc_stream_state *stream = dm->dc->current_state->streams[i]; in amdgpu_dm_psr_is_active_allowed()
|
/linux-6.12.1/drivers/acpi/acpica/ |
D | acconvert.h | 36 cv_process_comment(struct asl_comment_state current_state, 40 cv_process_comment_type2(struct asl_comment_state current_state,
|
/linux-6.12.1/drivers/platform/x86/intel/atomisp2/ |
D | pm.c | 104 pdev->current_state = PCI_D3cold; in isp_pci_suspend() 115 pdev->current_state = PCI_D0; in isp_pci_resume()
|
/linux-6.12.1/drivers/gpu/drm/amd/display/dc/dcn10/ |
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()
|