/linux/drivers/bus/mhi/host/ |
H A D | pm.c | 123 unsigned long cur_state = mhi_cntrl->pm_state; in mhi_tryset_pm_state() local 124 int index = find_last_bit(&cur_state, 32); in mhi_tryset_pm_state() 127 return cur_state; in mhi_tryset_pm_state() 129 if (unlikely(dev_state_transitions[index].from_state != cur_state)) in mhi_tryset_pm_state() 130 return cur_state; in mhi_tryset_pm_state() 133 return cur_state; in mhi_tryset_pm_state() 173 enum mhi_pm_state cur_state; in mhi_ready_state_transition() local 206 cur_state = mhi_tryset_pm_state(mhi_cntrl, MHI_PM_POR); in mhi_ready_state_transition() 210 if (cur_state != MHI_PM_POR) { in mhi_ready_state_transition() 213 to_mhi_pm_state_str(cur_state)); in mhi_ready_state_transition() [all …]
|
/linux/drivers/gpu/drm/ |
H A D | drm_bridge.c | 863 struct drm_bridge_state *cur_state; in select_bus_fmt_recursive() local 869 cur_state = drm_atomic_get_new_bridge_state(crtc_state->state, in select_bus_fmt_recursive() 892 if (cur_state) { in select_bus_fmt_recursive() 893 cur_state->input_bus_cfg.format = MEDIA_BUS_FMT_FIXED; in select_bus_fmt_recursive() 894 cur_state->output_bus_cfg.format = out_bus_fmt; in select_bus_fmt_recursive() 904 if (WARN_ON(!cur_state)) in select_bus_fmt_recursive() 908 cur_state, in select_bus_fmt_recursive() 919 cur_state->input_bus_cfg.format = in_bus_fmts[0]; in select_bus_fmt_recursive() 920 cur_state->output_bus_cfg.format = out_bus_fmt; in select_bus_fmt_recursive() 934 cur_state->input_bus_cfg.format = in_bus_fmts[i]; in select_bus_fmt_recursive() [all …]
|
/linux/drivers/gpu/drm/amd/pm/powerplay/hwmgr/ |
H A D | vega20_baco.c | 76 enum BACO_STATE cur_state; in vega20_baco_set_state() local 79 vega20_baco_get_state(hwmgr, &cur_state); in vega20_baco_set_state() 81 if (cur_state == state) in vega20_baco_set_state()
|
H A 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()
|
H A 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()
|
H A 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()
|
H A 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()
|
H A 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()
|
H A 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()
|
/linux/drivers/gpu/drm/i915/display/ |
H A D | intel_fdi.c | 30 bool cur_state; in assert_fdi_tx() local 40 cur_state = intel_de_read(display, in assert_fdi_tx() 43 cur_state = intel_de_read(display, FDI_TX_CTL(pipe)) & FDI_TX_ENABLE; in assert_fdi_tx() 45 INTEL_DISPLAY_STATE_WARN(display, cur_state != state, in assert_fdi_tx() 47 str_on_off(state), str_on_off(cur_state)); in assert_fdi_tx() 64 bool cur_state; in assert_fdi_rx() local 66 cur_state = intel_de_read(display, FDI_RX_CTL(pipe)) & FDI_RX_ENABLE; in assert_fdi_rx() 67 INTEL_DISPLAY_STATE_WARN(display, cur_state != state, in assert_fdi_rx() 69 str_on_off(state), str_on_off(cur_state)); in assert_fdi_rx() 86 bool cur_state; in assert_fdi_tx_pll_enabled() local [all …]
|
/linux/drivers/net/ethernet/qlogic/qed/ |
H A 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 …]
|
/linux/drivers/net/ethernet/mellanox/mlx4/ |
H A 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 …]
|
/linux/fs/gfs2/ |
H A D | trace_gfs2.h | 100 __field( u8, cur_state ) 111 __entry->cur_state = glock_trace_state(gl->gl_state); 121 glock_trace_name(__entry->cur_state), 139 __field( u8, cur_state ) 147 __entry->cur_state = glock_trace_state(gl->gl_state); 154 glock_trace_name(__entry->cur_state), 171 __field( u8, cur_state ) 181 __entry->cur_state = glock_trace_state(gl->gl_state); 190 glock_trace_name(__entry->cur_state),
|
/linux/drivers/gpu/drm/amd/display/dc/dml2/dml21/src/dml2_top/ |
H A D | dml2_top_optimization.c | 209 int highest_state, lowest_state, cur_state; in dml2_top_optimization_perform_optimization_phase_1() local 224 cur_state = (highest_state + lowest_state) / 2; in dml2_top_optimization_perform_optimization_phase_1() 229 l->mode_support_params.min_clk_index = cur_state; in dml2_top_optimization_perform_optimization_phase_1() 235 highest_state = cur_state; in dml2_top_optimization_perform_optimization_phase_1() 237 lowest_state = cur_state + 1; in dml2_top_optimization_perform_optimization_phase_1()
|
/linux/drivers/misc/cxl/ |
H A 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 …]
|
/linux/drivers/hwmon/ |
H A D | emc2305.c | 81 unsigned int cur_state; member 162 *state = data->cdev_data[cdev_idx].cur_state; in emc2305_get_cur_state() 183 data->cdev_data[cdev_idx].cur_state = state; in __emc2305_set_cur_state() 281 data->cdev_data[channel].cur_state = EMC2305_PWM_DUTY2STATE(val, data->max_state, in emc2305_set_pwm() 315 data->cdev_data[cdev_idx].cur_state = in emc2305_set_single_tz()
|
/linux/drivers/acpi/ |
H A D | processor_thermal.c | 252 unsigned long *cur_state) in processor_get_cur_state() argument 264 *cur_state = cpufreq_get_cur_state(pr->id); in processor_get_cur_state() 266 *cur_state += pr->throttling.state; in processor_get_cur_state()
|
/linux/drivers/platform/x86/ |
H A D | acerhdf.c | 465 int cur_temp, cur_state, err = 0; in acerhdf_set_cur_state() local 476 err = acerhdf_get_fanstate(&cur_state); in acerhdf_set_cur_state() 483 if (cur_state == ACERHDF_FAN_AUTO) in acerhdf_set_cur_state() 486 if (cur_state == ACERHDF_FAN_OFF) in acerhdf_set_cur_state()
|
/linux/drivers/infiniband/hw/usnic/ |
H A 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()
|
/linux/drivers/infiniband/hw/mlx4/ |
H A 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 …]
|
/linux/security/selinux/ss/ |
H A D | conditional.c | 98 if (new_state != node->cur_state) { in evaluate_cond_node() 99 node->cur_state = new_state; in evaluate_cond_node() 388 node->cur_state = le32_to_cpu(buf[0]); in cond_read_node() 511 buf[0] = cpu_to_le32(node->cur_state); in cond_write_node() 651 newn->cur_state = orign->cur_state; in duplicate_policydb_cond_list()
|
/linux/tools/lib/thermal/include/ |
H A D | thermal.h | 41 int (*cdev_update)(int cdev_id, int cur_state, void *arg); 81 int cur_state; 61 int cur_state; global() member
|
/linux/drivers/pwm/ |
H A 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()
|
/linux/drivers/infiniband/hw/mthca/ |
H A 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 …]
|
/linux/drivers/net/ethernet/google/gve/ |
H A 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()
|