Home
last modified time | relevance | path

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

1234

/Linux-v5.4/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.4/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.4/drivers/pci/
Dpci-driver.c460 if (pci_dev->current_state == PCI_D0) in pci_device_remove()
461 pci_dev->current_state = PCI_UNKNOWN; in pci_device_remove()
493 if (kexec_in_progress && (pci_dev->current_state <= PCI_D3hot)) in pci_device_shutdown()
509 if (pci_dev->current_state != PCI_D0) { in pci_restore_standard_config()
541 if (pci_dev->current_state == PCI_D0) in pci_pm_set_unknown_state()
542 pci_dev->current_state = PCI_UNKNOWN; in pci_pm_set_unknown_state()
571 pci_power_t prev = pci_dev->current_state; in pci_legacy_suspend()
579 if (!pci_dev->state_saved && pci_dev->current_state != PCI_D0 in pci_legacy_suspend()
580 && pci_dev->current_state != PCI_UNKNOWN) { in pci_legacy_suspend()
581 WARN_ONCE(pci_dev->current_state != prev, in pci_legacy_suspend()
[all …]
Dpci.c827 if (dev->current_state == state) in pci_raw_set_power_state()
841 if (state != PCI_D0 && dev->current_state <= PCI_D3cold in pci_raw_set_power_state()
842 && dev->current_state > state) { in pci_raw_set_power_state()
844 dev->current_state, state); in pci_raw_set_power_state()
860 switch (dev->current_state) { in pci_raw_set_power_state()
886 if (state == PCI_D3hot || dev->current_state == PCI_D3hot) in pci_raw_set_power_state()
888 else if (state == PCI_D2 || dev->current_state == PCI_D2) in pci_raw_set_power_state()
892 dev->current_state = (pmcsr & PCI_PM_CTRL_STATE_MASK); in pci_raw_set_power_state()
893 if (dev->current_state != state) in pci_raw_set_power_state()
895 dev->current_state); in pci_raw_set_power_state()
[all …]
/Linux-v5.4/drivers/gpu/drm/amd/display/dc/core/
Ddc.c287 struct pipe_ctx *pipe = &dc->current_state->res_ctx.pipe_ctx[i]; in dc_stream_adjust_vmin_vmax()
316 &dc->current_state->res_ctx.pipe_ctx[i]; in dc_stream_get_crtc_position()
349 pipe = &dc->current_state->res_ctx.pipe_ctx[i]; in dc_stream_configure_crc()
398 pipe = &dc->current_state->res_ctx.pipe_ctx[i]; in dc_stream_get_crc()
423 if (link->dc->current_state->res_ctx.pipe_ctx[i].stream == in dc_stream_set_dither_option()
425 pipes = &link->dc->current_state->res_ctx.pipe_ctx[i]; in dc_stream_set_dither_option()
460 if (dc->current_state->res_ctx.pipe_ctx[i].stream == stream) { in dc_stream_set_gamut_remap()
461 pipes = &dc->current_state->res_ctx.pipe_ctx[i]; in dc_stream_set_gamut_remap()
477 if (dc->current_state->res_ctx.pipe_ctx[i].stream in dc_stream_program_csc_matrix()
480 pipes = &dc->current_state->res_ctx.pipe_ctx[i]; in dc_stream_program_csc_matrix()
[all …]
Ddc_stream.c235 return dc_stream_get_status_from_state(dc->current_state, stream); in dc_stream_get_status()
294 res_ctx = &core_dc->current_state->res_ctx; in dc_stream_set_cursor_attributes()
341 res_ctx = &core_dc->current_state->res_ctx; in dc_stream_set_cursor_position()
414 if (!dc->hwss.update_bandwidth(dc, dc->current_state)) { in dc_stream_add_writeback()
472 if (!dc->hwss.update_bandwidth(dc, dc->current_state)) { in dc_stream_remove_writeback()
490 &core_dc->current_state->res_ctx; in dc_stream_get_vblank_counter()
518 res_ctx = &dc->current_state->res_ctx; in dc_stream_send_dp_sdp()
549 &core_dc->current_state->res_ctx; in dc_stream_get_scanoutpos()
581 pipe = &dc->current_state->res_ctx.pipe_ctx[i]; in dc_stream_dmdata_status_done()
610 pipe_ctx = &dc->current_state->res_ctx.pipe_ctx[i]; in dc_stream_set_dynamic_metadata()
Ddc_surface.c157 if (core_dc->current_state == NULL) in dc_plane_get_status()
163 &core_dc->current_state->res_ctx.pipe_ctx[i]; in dc_plane_get_status()
175 &core_dc->current_state->res_ctx.pipe_ctx[i]; in dc_plane_get_status()
/Linux-v5.4/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.4/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.4/drivers/platform/x86/
Dintel_atomisp2_pm.c109 pdev->current_state = PCI_D3cold; in isp_pci_suspend()
120 pdev->current_state = PCI_D0; in isp_pci_resume()
/Linux-v5.4/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.4/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()
Ddcn10_hw_sequencer.c411 dc->current_state->bw_ctx.bw.dcn.clk.dcfclk_khz, in dcn10_log_hw_state()
412 dc->current_state->bw_ctx.bw.dcn.clk.dcfclk_deep_sleep_khz, in dcn10_log_hw_state()
413 dc->current_state->bw_ctx.bw.dcn.clk.dispclk_khz, in dcn10_log_hw_state()
414 dc->current_state->bw_ctx.bw.dcn.clk.dppclk_khz, in dcn10_log_hw_state()
415 dc->current_state->bw_ctx.bw.dcn.clk.max_supported_dppclk_khz, in dcn10_log_hw_state()
416 dc->current_state->bw_ctx.bw.dcn.clk.fclk_khz, in dcn10_log_hw_state()
417 dc->current_state->bw_ctx.bw.dcn.clk.socclk_khz); in dcn10_log_hw_state()
716 struct pipe_ctx *old_pipe_ctx = &dc->current_state->res_ctx.pipe_ctx[i]; in false_optc_underflow_wa()
843 update_audio_usage(&dc->current_state->res_ctx, dc->res_pool, in dcn10_reset_back_end_for_pipe()
864 if (&dc->current_state->res_ctx.pipe_ctx[i] == pipe_ctx) in dcn10_reset_back_end_for_pipe()
[all …]
/Linux-v5.4/drivers/gpu/drm/radeon/
Drs780_dpm.c382 struct igp_ps *current_state = rs780_get_ps(rdev->pm.dpm.current_ps); in rs780_force_voltage() local
384 if ((current_state->max_voltage == RS780_VDDC_LEVEL_HIGH) && in rs780_force_voltage()
385 (current_state->min_voltage == RS780_VDDC_LEVEL_HIGH)) in rs780_force_voltage()
409 struct igp_ps *current_state = rs780_get_ps(rdev->pm.dpm.current_ps); in rs780_force_fbdiv() local
411 if (current_state->sclk_low == current_state->sclk_high) in rs780_force_fbdiv()
570 struct igp_ps *current_state = rs780_get_ps(old_ps); in rs780_set_uvd_clock_before_set_eng_clock() local
576 if (new_state->sclk_high >= current_state->sclk_high) in rs780_set_uvd_clock_before_set_eng_clock()
587 struct igp_ps *current_state = rs780_get_ps(old_ps); in rs780_set_uvd_clock_after_set_eng_clock() local
593 if (new_state->sclk_high < current_state->sclk_high) in rs780_set_uvd_clock_after_set_eng_clock()
/Linux-v5.4/include/net/
Dllc_c_st.h43 u8 current_state; member
/Linux-v5.4/drivers/hid/intel-ish-hid/ishtp/
Dhbm.c916 static uint32_t current_state; variable
936 current_state |= SUSPEND_STATE_BIT; in ishtp_send_suspend()
938 state_status_msg.states_status = current_state; in ishtp_send_suspend()
962 current_state &= ~SUSPEND_STATE_BIT; in ishtp_send_resume()
964 state_status_msg.states_status = current_state; in ishtp_send_resume()
/Linux-v5.4/drivers/video/fbdev/riva/
Drivafb.h52 struct riva_regs current_state; member
/Linux-v5.4/drivers/gpu/drm/omapdrm/
Domap_crtc.c713 struct omap_crtc_state *state, *current_state; in omap_crtc_duplicate_state() local
718 current_state = to_omap_crtc_state(crtc->state); in omap_crtc_duplicate_state()
726 state->zpos = current_state->zpos; in omap_crtc_duplicate_state()
727 state->rotation = current_state->rotation; in omap_crtc_duplicate_state()
728 state->manually_updated = current_state->manually_updated; in omap_crtc_duplicate_state()
/Linux-v5.4/drivers/scsi/isci/
Dremote_node_context.c87 u32 current_state = sci_rnc->sm.current_state_id; in sci_remote_node_context_is_ready() local
89 if (current_state == SCI_RNC_READY) { in sci_remote_node_context_is_ready()
98 u32 current_state = sci_rnc->sm.current_state_id; in sci_remote_node_context_is_suspended() local
100 if (current_state == SCI_RNC_TX_RX_SUSPENDED) in sci_remote_node_context_is_suspended()
Dport.c778 u32 current_state; in port_timeout() local
785 current_state = iport->sm.current_state_id; in port_timeout()
787 if (current_state == SCI_PORT_RESETTING) { in port_timeout()
792 } else if (current_state == SCI_PORT_STOPPED) { in port_timeout()
800 } else if (current_state == SCI_PORT_STOPPING) { in port_timeout()
810 "in state %d.\n", __func__, iport, current_state); in port_timeout()
/Linux-v5.4/drivers/gpu/drm/amd/display/dc/dce110/
Ddce110_hw_sequencer.c966 if (core_dc->current_state->res_ctx.pipe_ctx[i].stream_res.audio != NULL) in dce110_enable_audio_stream()
1275 struct pipe_ctx *pipe_ctx_old = &dc->current_state->res_ctx. in dce110_enable_stream_timing()
1514 dc->current_state->res_ctx.pipe_ctx[i].pipe_idx = i; in disable_vga_and_power_gate_all_controllers()
1516 &dc->current_state->res_ctx.pipe_ctx[i]); in disable_vga_and_power_gate_all_controllers()
1888 &dc->current_state->res_ctx.pipe_ctx[i]; in dce110_reset_hw_ctx_wrap()
1920 update_audio_usage(&dc->current_state->res_ctx, dc->res_pool, in dce110_reset_hw_ctx_wrap()
1934 pipe_ctx_old->plane_res.mi, dc->current_state->stream_count); in dce110_reset_hw_ctx_wrap()
2051 &dc->current_state->res_ctx.pipe_ctx[i]; in dce110_apply_ctx_to_hw()
2076 &dc->current_state->res_ctx.pipe_ctx[i]; in dce110_apply_ctx_to_hw()
2103 enable_fbc(dc, dc->current_state); in dce110_apply_ctx_to_hw()
[all …]
/Linux-v5.4/drivers/infiniband/hw/qib/
Dqib_sdma.c201 ss->previous_state = ss->current_state; in sdma_set_state()
204 ss->current_state = next_state; in sdma_set_state()
742 if (ppd->sdma_state.current_state == qib_sdma_state_s99_running) in qib_sdma_process_event()
753 switch (ss->current_state) { in __qib_sdma_process_event()
/Linux-v5.4/drivers/gpu/drm/amd/display/dc/dcn20/
Ddcn20_hwseq.c1141 find_top_pipe_for_stream(dc, dc->current_state, stream); in dcn20_apply_ctx_for_surface()
1151 &dc->current_state->res_ctx.pipe_ctx[i]; in dcn20_apply_ctx_for_surface()
1178 &dc->current_state->res_ctx.pipe_ctx[i]; in dcn20_apply_ctx_for_surface()
1234 dcn20_disable_plane(dc, &dc->current_state->res_ctx.pipe_ctx[i]); in dcn20_apply_ctx_for_surface()
1357 …mcif_wb->funcs->config_mcif_arb(mcif_wb, &dc->current_state->bw_ctx.bw.dcn.bw_writeback.mcif_wb_ar… in dcn20_enable_writeback()
1633 update_audio_usage(&dc->current_state->res_ctx, dc->res_pool, in dcn20_reset_back_end_for_pipe()
1663 if (&dc->current_state->res_ctx.pipe_ctx[i] == pipe_ctx) in dcn20_reset_back_end_for_pipe()
1683 &dc->current_state->res_ctx.pipe_ctx[i]; in dcn20_reset_hw_ctx_wrap()
1696 dcn20_reset_back_end_for_pipe(dc, pipe_ctx_old, dc->current_state); in dcn20_reset_hw_ctx_wrap()
1979 struct dc_state *context = dc->current_state; in dcn20_fpga_init_hw()
/Linux-v5.4/net/llc/
Dllc_c_st.c4899 .current_state = LLC_CONN_STATE_ADM,
4903 .current_state = LLC_CONN_STATE_SETUP,
4907 .current_state = LLC_CONN_STATE_NORMAL,
4911 .current_state = LLC_CONN_STATE_BUSY,
4915 .current_state = LLC_CONN_STATE_REJ,
4919 .current_state = LLC_CONN_STATE_AWAIT,
4923 .current_state = LLC_CONN_STATE_AWAIT_BUSY,
4927 .current_state = LLC_CONN_STATE_AWAIT_REJ,
4931 .current_state = LLC_CONN_STATE_D_CONN,
4935 .current_state = LLC_CONN_STATE_RESET,
[all …]
/Linux-v5.4/arch/powerpc/platforms/pseries/
Dhotplug-cpu.c45 static DEFINE_PER_CPU(enum cpu_state_vals, current_state) = CPU_STATE_OFFLINE;
63 return per_cpu(current_state, cpu); in get_cpu_current_state()
68 per_cpu(current_state, cpu) = state; in set_cpu_current_state()

1234