/drivers/bus/mhi/host/ |
D | pm.c | 122 unsigned long cur_state = mhi_cntrl->pm_state; in mhi_tryset_pm_state() local 123 int index = find_last_bit(&cur_state, 32); in mhi_tryset_pm_state() 126 return cur_state; in mhi_tryset_pm_state() 128 if (unlikely(dev_state_transitions[index].from_state != cur_state)) in mhi_tryset_pm_state() 129 return cur_state; in mhi_tryset_pm_state() 132 return cur_state; in mhi_tryset_pm_state() 171 enum mhi_pm_state cur_state; in mhi_ready_state_transition() local 199 cur_state = mhi_tryset_pm_state(mhi_cntrl, MHI_PM_POR); in mhi_ready_state_transition() 203 if (cur_state != MHI_PM_POR) { in mhi_ready_state_transition() 206 to_mhi_pm_state_str(cur_state)); in mhi_ready_state_transition() [all …]
|
/drivers/thermal/ |
D | gov_step_wise.c | 34 unsigned long cur_state; in get_target_state() local 42 cdev->ops->get_cur_state(cdev, &cur_state); in get_target_state() 44 dev_dbg(&cdev->device, "cur_state=%ld\n", cur_state); in get_target_state() 48 next_target = clamp((cur_state + 1), instance->lower, instance->upper); in get_target_state() 58 next_target = clamp((cur_state + 1), instance->lower, instance->upper); in get_target_state() 61 if (cur_state <= instance->lower) in get_target_state() 64 next_target = clamp((cur_state - 1), instance->lower, instance->upper); in get_target_state()
|
/drivers/gpu/drm/i915/display/ |
D | intel_fdi.c | 25 bool cur_state; in assert_fdi_tx() local 35 cur_state = intel_de_read(dev_priv, TRANS_DDI_FUNC_CTL(cpu_transcoder)) & TRANS_DDI_FUNC_ENABLE; in assert_fdi_tx() 37 cur_state = intel_de_read(dev_priv, FDI_TX_CTL(pipe)) & FDI_TX_ENABLE; in assert_fdi_tx() 39 I915_STATE_WARN(dev_priv, cur_state != state, in assert_fdi_tx() 41 str_on_off(state), str_on_off(cur_state)); in assert_fdi_tx() 57 bool cur_state; in assert_fdi_rx() local 59 cur_state = intel_de_read(dev_priv, FDI_RX_CTL(pipe)) & FDI_RX_ENABLE; in assert_fdi_rx() 60 I915_STATE_WARN(dev_priv, cur_state != state, in assert_fdi_rx() 62 str_on_off(state), str_on_off(cur_state)); in assert_fdi_rx() 78 bool cur_state; in assert_fdi_tx_pll_enabled() local [all …]
|
D | vlv_dsi_pll.c | 595 bool cur_state; in assert_dsi_pll() local 598 cur_state = vlv_cck_read(i915, CCK_REG_DSI_PLL_CONTROL) & DSI_PLL_VCO_EN; in assert_dsi_pll() 601 I915_STATE_WARN(i915, cur_state != state, in assert_dsi_pll() 603 str_on_off(state), str_on_off(cur_state)); in assert_dsi_pll()
|
/drivers/gpu/drm/ |
D | drm_bridge.c | 886 struct drm_bridge_state *cur_state; in select_bus_fmt_recursive() local 892 cur_state = drm_atomic_get_new_bridge_state(crtc_state->state, in select_bus_fmt_recursive() 915 if (cur_state) { in select_bus_fmt_recursive() 916 cur_state->input_bus_cfg.format = MEDIA_BUS_FMT_FIXED; in select_bus_fmt_recursive() 917 cur_state->output_bus_cfg.format = out_bus_fmt; in select_bus_fmt_recursive() 927 if (WARN_ON(!cur_state)) in select_bus_fmt_recursive() 931 cur_state, in select_bus_fmt_recursive() 942 cur_state->input_bus_cfg.format = in_bus_fmts[0]; in select_bus_fmt_recursive() 943 cur_state->output_bus_cfg.format = out_bus_fmt; in select_bus_fmt_recursive() 957 cur_state->input_bus_cfg.format = in_bus_fmts[i]; in select_bus_fmt_recursive() [all …]
|
/drivers/net/ethernet/qlogic/qed/ |
D | qed_roce.c | 835 out_params->state = qp->cur_state; in qed_roce_query_qp() 888 qp->cur_state = QED_ROCE_QP_STATE_ERR; in qed_roce_query_qp() 890 out_params->state = qp->cur_state; in qed_roce_query_qp() 934 qp->cur_state = QED_ROCE_QP_STATE_ERR; in qed_roce_query_qp() 937 out_params->state = qp->cur_state; in qed_roce_query_qp() 957 if ((qp->cur_state != QED_ROCE_QP_STATE_RESET) && in qed_roce_destroy_qp() 958 (qp->cur_state != QED_ROCE_QP_STATE_ERR) && in qed_roce_destroy_qp() 959 (qp->cur_state != QED_ROCE_QP_STATE_INIT)) { in qed_roce_destroy_qp() 965 if (qp->cur_state != QED_ROCE_QP_STATE_RESET) { in qed_roce_destroy_qp() 992 (qp->cur_state == QED_ROCE_QP_STATE_RTR)) { in qed_roce_modify_qp() [all …]
|
/drivers/net/ethernet/mellanox/mlx4/ |
D | qp.c | 93 enum mlx4_qp_state cur_state, enum mlx4_qp_state new_state, in __mlx4_qp_modify() argument 145 if (cur_state >= MLX4_QP_NUM_STATE || new_state >= MLX4_QP_NUM_STATE || in __mlx4_qp_modify() 146 !op[cur_state][new_state]) in __mlx4_qp_modify() 149 if (op[cur_state][new_state] == MLX4_CMD_2RST_QP) { in __mlx4_qp_modify() 152 if (mlx4_is_master(dev) && cur_state != MLX4_QP_STATE_ERR && in __mlx4_qp_modify() 153 cur_state != MLX4_QP_STATE_RST && in __mlx4_qp_modify() 168 if (cur_state == MLX4_QP_STATE_RST && new_state == MLX4_QP_STATE_INIT) { in __mlx4_qp_modify() 175 if ((cur_state == MLX4_QP_STATE_RTR) && in __mlx4_qp_modify() 190 op[cur_state][new_state], MLX4_CMD_TIME_CLASS_C, native); in __mlx4_qp_modify() 194 if (cur_state != MLX4_QP_STATE_ERR && in __mlx4_qp_modify() [all …]
|
/drivers/gpu/drm/amd/pm/powerplay/hwmgr/ |
D | vega20_baco.c | 77 enum BACO_STATE cur_state; in vega20_baco_set_state() local 80 vega20_baco_get_state(hwmgr, &cur_state); in vega20_baco_set_state() 82 if (cur_state == state) in vega20_baco_set_state()
|
D | vega10_baco.c | 86 enum BACO_STATE cur_state; in vega10_baco_set_state() local 88 smu9_baco_get_state(hwmgr, &cur_state); in vega10_baco_set_state() 90 if (cur_state == state) in vega10_baco_set_state()
|
D | vega12_baco.c | 84 enum BACO_STATE cur_state; in vega12_baco_set_state() local 86 smu9_baco_get_state(hwmgr, &cur_state); in vega12_baco_set_state() 88 if (cur_state == state) in vega12_baco_set_state()
|
D | fiji_baco.c | 155 enum BACO_STATE cur_state; in fiji_baco_set_state() local 157 smu7_baco_get_state(hwmgr, &cur_state); in fiji_baco_set_state() 159 if (cur_state == state) in fiji_baco_set_state()
|
D | ci_baco.c | 157 enum BACO_STATE cur_state; in ci_baco_set_state() local 159 smu7_baco_get_state(hwmgr, &cur_state); in ci_baco_set_state() 161 if (cur_state == state) in ci_baco_set_state()
|
D | polaris_baco.c | 173 enum BACO_STATE cur_state; in polaris_baco_set_state() local 175 smu7_baco_get_state(hwmgr, &cur_state); in polaris_baco_set_state() 177 if (cur_state == state) in polaris_baco_set_state()
|
D | tonga_baco.c | 177 enum BACO_STATE cur_state; in tonga_baco_set_state() local 179 smu7_baco_get_state(hwmgr, &cur_state); in tonga_baco_set_state() 181 if (cur_state == state) in tonga_baco_set_state()
|
/drivers/acpi/ |
D | power.c | 191 u8 cur_state; in __get_state() local 197 cur_state = sta & ACPI_POWER_RESOURCE_STATE_ON; in __get_state() 200 cur_state ? "on" : "off"); in __get_state() 202 *state = cur_state; in __get_state() 223 u8 cur_state = ACPI_POWER_RESOURCE_STATE_OFF; in acpi_power_get_list_state() local 234 result = acpi_power_get_state(resource, &cur_state); in acpi_power_get_list_state() 239 if (cur_state != ACPI_POWER_RESOURCE_STATE_ON) in acpi_power_get_list_state() 243 pr_debug("Power resource list is %s\n", cur_state ? "on" : "off"); in acpi_power_get_list_state() 245 *state = cur_state; in acpi_power_get_list_state()
|
D | processor_thermal.c | 221 unsigned long *cur_state) in processor_get_cur_state() argument 233 *cur_state = cpufreq_get_cur_state(pr->id); in processor_get_cur_state() 235 *cur_state += pr->throttling.state; in processor_get_cur_state()
|
/drivers/misc/cxl/ |
D | guest.c | 829 int rc, cur_state; in afu_update_state() local 831 rc = afu_read_error_state(afu, &cur_state); in afu_update_state() 835 if (afu->guest->previous_state == cur_state) in afu_update_state() 838 pr_devel("AFU(%d) update state to %#x\n", afu->slice, cur_state); in afu_update_state() 840 switch (cur_state) { in afu_update_state() 842 afu->guest->previous_state = cur_state; in afu_update_state() 853 rc = afu_read_error_state(afu, &cur_state); in afu_update_state() 854 if (!rc && cur_state == H_STATE_NORMAL) { in afu_update_state() 863 afu->guest->previous_state = cur_state; in afu_update_state() 870 afu->guest->previous_state = cur_state; in afu_update_state() [all …]
|
/drivers/hwmon/ |
D | emc2305.c | 84 unsigned int cur_state; member 165 *state = data->cdev_data[cdev_idx].cur_state; in emc2305_get_cur_state() 186 data->cdev_data[cdev_idx].cur_state = state; in __emc2305_set_cur_state() 284 data->cdev_data[channel].cur_state = EMC2305_PWM_DUTY2STATE(val, data->max_state, in emc2305_set_pwm() 318 data->cdev_data[cdev_idx].cur_state = in emc2305_set_single_tz()
|
/drivers/infiniband/hw/usnic/ |
D | usnic_ib_main.c | 108 enum ib_qp_state cur_state; in usnic_ib_qp_grp_modify_active_to_err() local 115 cur_state = qp_grp->state; in usnic_ib_qp_grp_modify_active_to_err() 116 if (cur_state == IB_QPS_INIT || in usnic_ib_qp_grp_modify_active_to_err() 117 cur_state == IB_QPS_RTR || in usnic_ib_qp_grp_modify_active_to_err() 118 cur_state == IB_QPS_RTS) { in usnic_ib_qp_grp_modify_active_to_err() 126 (cur_state), in usnic_ib_qp_grp_modify_active_to_err()
|
/drivers/platform/x86/ |
D | acerhdf.c | 486 int cur_temp, cur_state, err = 0; in acerhdf_set_cur_state() local 497 err = acerhdf_get_fanstate(&cur_state); in acerhdf_set_cur_state() 504 if (cur_state == ACERHDF_FAN_AUTO) in acerhdf_set_cur_state() 507 if (cur_state == ACERHDF_FAN_OFF) in acerhdf_set_cur_state()
|
/drivers/infiniband/hw/mlx4/ |
D | qp.c | 2110 enum ib_qp_state cur_state, in __mlx4_ib_modify_qp() argument 2222 if (cur_state == IB_QPS_RESET && new_state == IB_QPS_INIT) { in __mlx4_ib_modify_qp() 2240 if (cur_state == IB_QPS_SQD && new_state == IB_QPS_SQD && in __mlx4_ib_modify_qp() 2247 if (cur_state == IB_QPS_INIT && new_state == IB_QPS_RTR) { in __mlx4_ib_modify_qp() 2316 (cur_state == IB_QPS_INIT && new_state == IB_QPS_RTR)) { in __mlx4_ib_modify_qp() 2436 cur_state == IB_QPS_RESET && in __mlx4_ib_modify_qp() 2440 if (cur_state == IB_QPS_INIT && in __mlx4_ib_modify_qp() 2496 if (cur_state == IB_QPS_RTS && new_state == IB_QPS_SQD && in __mlx4_ib_modify_qp() 2503 cur_state == IB_QPS_RESET && in __mlx4_ib_modify_qp() 2514 cur_state == IB_QPS_RESET && in __mlx4_ib_modify_qp() [all …]
|
/drivers/infiniband/hw/mthca/ |
D | mthca_qp.c | 558 enum ib_qp_state cur_state, in __mthca_modify_qp() argument 668 cur_state == IB_QPS_INIT && new_state == IB_QPS_RTR) { in __mthca_modify_qp() 788 if (cur_state == IB_QPS_RTS && new_state == IB_QPS_SQD && in __mthca_modify_qp() 793 err = mthca_MODIFY_QP(dev, cur_state, new_state, qp->qpn, 0, in __mthca_modify_qp() 797 cur_state, new_state, err); in __mthca_modify_qp() 819 if (cur_state != IB_QPS_RTR && in __mthca_modify_qp() 823 if (cur_state != IB_QPS_RESET && in __mthca_modify_qp() 824 cur_state != IB_QPS_ERR && in __mthca_modify_qp() 863 enum ib_qp_state cur_state, new_state; in mthca_modify_qp() local 871 cur_state = attr->cur_qp_state; in mthca_modify_qp() [all …]
|
/drivers/net/ethernet/google/gve/ |
D | gve_tx_dqo.c | 167 struct gve_tx_pending_packet_dqo *cur_state = in gve_tx_clean_pending_packets() local 171 for (j = 0; j < cur_state->num_bufs; j++) { in gve_tx_clean_pending_packets() 174 dma_unmap_addr(cur_state, dma[j]), in gve_tx_clean_pending_packets() 175 dma_unmap_len(cur_state, len[j]), in gve_tx_clean_pending_packets() 179 dma_unmap_addr(cur_state, dma[j]), in gve_tx_clean_pending_packets() 180 dma_unmap_len(cur_state, len[j]), in gve_tx_clean_pending_packets() 184 if (cur_state->skb) { in gve_tx_clean_pending_packets() 185 dev_consume_skb_any(cur_state->skb); in gve_tx_clean_pending_packets() 186 cur_state->skb = NULL; in gve_tx_clean_pending_packets()
|
/drivers/pwm/ |
D | pwm-sifive.c | 135 struct pwm_state cur_state; in pwm_sifive_apply() local 145 cur_state = pwm->state; in pwm_sifive_apply() 146 enabled = cur_state.enabled; in pwm_sifive_apply()
|
/drivers/infiniband/hw/efa/ |
D | efa_verbs.c | 857 static bool efa_modify_srd_qp_is_ok(enum ib_qp_state cur_state, in efa_modify_srd_qp_is_ok() argument 864 cur_state != IB_QPS_RTR && cur_state != IB_QPS_RTS && in efa_modify_srd_qp_is_ok() 865 cur_state != IB_QPS_SQD && cur_state != IB_QPS_SQE) in efa_modify_srd_qp_is_ok() 868 if (!srd_qp_state_table[cur_state][next_state].valid) in efa_modify_srd_qp_is_ok() 871 req_param = srd_qp_state_table[cur_state][next_state].req_param; in efa_modify_srd_qp_is_ok() 872 opt_param = srd_qp_state_table[cur_state][next_state].opt_param; in efa_modify_srd_qp_is_ok() 885 enum ib_qp_state cur_state, in efa_modify_qp_validate() argument 903 err = !efa_modify_srd_qp_is_ok(cur_state, new_state, in efa_modify_qp_validate() 906 err = !ib_modify_qp_is_ok(cur_state, new_state, IB_QPT_UD, in efa_modify_qp_validate() 933 enum ib_qp_state cur_state; in efa_modify_qp() local [all …]
|