/linux/drivers/thermal/ |
A D | gov_step_wise.c | 41 unsigned long cur_state; in get_target_state() local 49 cdev->ops->get_cur_state(cdev, &cur_state); in get_target_state() 51 dev_dbg(&cdev->device, "cur_state=%ld\n", cur_state); in get_target_state() 55 next_target = (cur_state + 1) >= instance->upper ? in get_target_state() 57 ((cur_state + 1) < instance->lower ? in get_target_state() 58 instance->lower : (cur_state + 1)); in get_target_state() 69 next_target = cur_state < instance->upper ? in get_target_state() 70 (cur_state + 1) : instance->upper; in get_target_state() 80 if (cur_state <= instance->lower) { in get_target_state() 85 next_target = cur_state - 1; in get_target_state() [all …]
|
/linux/drivers/bus/mhi/core/ |
A D | pm.c | 118 return cur_state; in mhi_tryset_pm_state() 121 return cur_state; in mhi_tryset_pm_state() 124 return cur_state; in mhi_tryset_pm_state() 157 enum mhi_pm_state cur_state; in mhi_ready_state_transition() local 191 if (cur_state != MHI_PM_POR) { in mhi_ready_state_transition() 194 to_mhi_pm_state_str(cur_state)); in mhi_ready_state_transition() 245 enum mhi_pm_state cur_state; in mhi_pm_m0_transition() local 453 enum mhi_pm_state cur_state; in mhi_pm_disable_transition() local 543 to_mhi_pm_state_str(cur_state), in mhi_pm_disable_transition() 676 if (cur_state != MHI_PM_POR) { in mhi_pm_sys_error_transition() [all …]
|
/linux/drivers/gpu/drm/ |
A D | drm_bridge.c | 826 struct drm_bridge_state *cur_state; in select_bus_fmt_recursive() local 833 cur_state = drm_atomic_get_new_bridge_state(crtc_state->state, in select_bus_fmt_recursive() 856 if (cur_state) { in select_bus_fmt_recursive() 857 cur_state->input_bus_cfg.format = MEDIA_BUS_FMT_FIXED; in select_bus_fmt_recursive() 858 cur_state->output_bus_cfg.format = out_bus_fmt; in select_bus_fmt_recursive() 868 if (WARN_ON(!cur_state)) in select_bus_fmt_recursive() 872 cur_state, in select_bus_fmt_recursive() 883 cur_state->input_bus_cfg.format = in_bus_fmts[0]; in select_bus_fmt_recursive() 884 cur_state->output_bus_cfg.format = out_bus_fmt; in select_bus_fmt_recursive() 898 cur_state->input_bus_cfg.format = in_bus_fmts[i]; in select_bus_fmt_recursive() [all …]
|
/linux/drivers/net/ethernet/qlogic/qed/ |
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() 958 (qp->cur_state != QED_ROCE_QP_STATE_ERR) && 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() 997 (qp->cur_state == QED_ROCE_QP_STATE_RTS)) { in qed_roce_modify_qp() 1008 (qp->cur_state == QED_ROCE_QP_STATE_RTS)) { in qed_roce_modify_qp() [all …]
|
/linux/drivers/gpu/drm/i915/display/ |
A D | intel_fdi.c | 16 bool cur_state; in assert_fdi_tx() local 28 cur_state = intel_de_read(dev_priv, FDI_TX_CTL(pipe)) & FDI_TX_ENABLE; in assert_fdi_tx() 30 I915_STATE_WARN(cur_state != state, in assert_fdi_tx() 32 onoff(state), onoff(cur_state)); in assert_fdi_tx() 48 bool cur_state; in assert_fdi_rx() local 51 I915_STATE_WARN(cur_state != state, in assert_fdi_rx() 53 onoff(state), onoff(cur_state)); in assert_fdi_rx() 69 bool cur_state; in assert_fdi_tx_pll_enabled() local 86 bool cur_state; in assert_fdi_rx_pll() local 89 I915_STATE_WARN(cur_state != state, in assert_fdi_rx_pll() [all …]
|
/linux/drivers/gpu/drm/amd/pm/powerplay/hwmgr/ |
A D | vega20_baco.c | 78 enum BACO_STATE cur_state; in vega20_baco_set_state() local 81 vega20_baco_get_state(hwmgr, &cur_state); in vega20_baco_set_state() 83 if (cur_state == state) in vega20_baco_set_state()
|
A D | vega10_baco.c | 90 enum BACO_STATE cur_state; in vega10_baco_set_state() local 92 smu9_baco_get_state(hwmgr, &cur_state); in vega10_baco_set_state() 94 if (cur_state == state) in vega10_baco_set_state()
|
A D | vega12_baco.c | 88 enum BACO_STATE cur_state; in vega12_baco_set_state() local 90 smu9_baco_get_state(hwmgr, &cur_state); in vega12_baco_set_state() 92 if (cur_state == state) in vega12_baco_set_state()
|
A D | fiji_baco.c | 163 enum BACO_STATE cur_state; in fiji_baco_set_state() local 165 smu7_baco_get_state(hwmgr, &cur_state); in fiji_baco_set_state() 167 if (cur_state == state) in fiji_baco_set_state()
|
A D | polaris_baco.c | 183 enum BACO_STATE cur_state; in polaris_baco_set_state() local 185 smu7_baco_get_state(hwmgr, &cur_state); in polaris_baco_set_state() 187 if (cur_state == state) in polaris_baco_set_state()
|
A D | ci_baco.c | 164 enum BACO_STATE cur_state; in ci_baco_set_state() local 166 smu7_baco_get_state(hwmgr, &cur_state); in ci_baco_set_state() 168 if (cur_state == state) in ci_baco_set_state()
|
A D | tonga_baco.c | 187 enum BACO_STATE cur_state; in tonga_baco_set_state() local 189 smu7_baco_get_state(hwmgr, &cur_state); in tonga_baco_set_state() 191 if (cur_state == state) in tonga_baco_set_state()
|
/linux/drivers/net/ethernet/mellanox/mlx4/ |
A D | qp.c | 88 enum mlx4_qp_state cur_state, enum mlx4_qp_state new_state, in __mlx4_qp_modify() argument 141 !op[cur_state][new_state]) in __mlx4_qp_modify() 144 if (op[cur_state][new_state] == MLX4_CMD_2RST_QP) { in __mlx4_qp_modify() 147 if (mlx4_is_master(dev) && cur_state != MLX4_QP_STATE_ERR && in __mlx4_qp_modify() 148 cur_state != MLX4_QP_STATE_RST && in __mlx4_qp_modify() 170 if ((cur_state == MLX4_QP_STATE_RTR) && in __mlx4_qp_modify() 185 op[cur_state][new_state], MLX4_CMD_TIME_CLASS_C, native); in __mlx4_qp_modify() 189 if (cur_state != MLX4_QP_STATE_ERR && in __mlx4_qp_modify() 190 cur_state != MLX4_QP_STATE_RST && in __mlx4_qp_modify() 209 enum mlx4_qp_state cur_state, enum mlx4_qp_state new_state, in mlx4_qp_modify() argument [all …]
|
/linux/drivers/acpi/ |
A D | power.c | 190 u8 cur_state; in __get_state() local 196 cur_state = sta & ACPI_POWER_RESOURCE_STATE_ON; in __get_state() 199 cur_state ? "on" : "off"); in __get_state() 201 *state = cur_state; in __get_state() 222 u8 cur_state = ACPI_POWER_RESOURCE_STATE_OFF; in acpi_power_get_list_state() local 233 result = acpi_power_get_state(resource, &cur_state); in acpi_power_get_list_state() 238 if (cur_state != ACPI_POWER_RESOURCE_STATE_ON) in acpi_power_get_list_state() 242 pr_debug("Power resource list is %s\n", cur_state ? "on" : "off"); in acpi_power_get_list_state() 244 *state = cur_state; in acpi_power_get_list_state()
|
A D | processor_thermal.c | 206 unsigned long *cur_state) in processor_get_cur_state() argument 218 *cur_state = cpufreq_get_cur_state(pr->id); in processor_get_cur_state() 220 *cur_state += pr->throttling.state; in processor_get_cur_state()
|
/linux/fs/gfs2/ |
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/misc/cxl/ |
A D | guest.c | 827 int rc, cur_state; in afu_update_state() local 829 rc = afu_read_error_state(afu, &cur_state); in afu_update_state() 833 if (afu->guest->previous_state == cur_state) in afu_update_state() 836 pr_devel("AFU(%d) update state to %#x\n", afu->slice, cur_state); in afu_update_state() 838 switch (cur_state) { in afu_update_state() 840 afu->guest->previous_state = cur_state; in afu_update_state() 851 rc = afu_read_error_state(afu, &cur_state); in afu_update_state() 852 if (!rc && cur_state == H_STATE_NORMAL) { in afu_update_state() 861 afu->guest->previous_state = cur_state; in afu_update_state() 868 afu->guest->previous_state = cur_state; in afu_update_state() [all …]
|
/linux/drivers/net/ethernet/google/gve/ |
A D | gve_tx_dqo.c | 83 struct gve_tx_pending_packet_dqo *cur_state = in gve_tx_clean_pending_packets() local 87 for (j = 0; j < cur_state->num_bufs; j++) { in gve_tx_clean_pending_packets() 90 dma_unmap_addr(cur_state, dma[j]), in gve_tx_clean_pending_packets() 91 dma_unmap_len(cur_state, len[j]), in gve_tx_clean_pending_packets() 95 dma_unmap_addr(cur_state, dma[j]), in gve_tx_clean_pending_packets() 96 dma_unmap_len(cur_state, len[j]), in gve_tx_clean_pending_packets() 100 if (cur_state->skb) { in gve_tx_clean_pending_packets() 101 dev_consume_skb_any(cur_state->skb); in gve_tx_clean_pending_packets() 102 cur_state->skb = NULL; in gve_tx_clean_pending_packets()
|
/linux/drivers/infiniband/hw/usnic/ |
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/ |
A D | qp.c | 2071 enum ib_qp_state cur_state, in __mlx4_ib_modify_qp() argument 2397 cur_state == IB_QPS_RESET && in __mlx4_ib_modify_qp() 2401 if (cur_state == IB_QPS_INIT && in __mlx4_ib_modify_qp() 2464 cur_state == IB_QPS_RESET && in __mlx4_ib_modify_qp() 2475 cur_state == IB_QPS_RESET && in __mlx4_ib_modify_qp() 2490 cur_state == IB_QPS_RESET && in __mlx4_ib_modify_qp() 2528 if (cur_state != IB_QPS_RESET && cur_state != IB_QPS_ERR && in __mlx4_ib_modify_qp() 2661 enum ib_qp_state cur_state, new_state; in _mlx4_ib_modify_qp() local 2758 if (cur_state == new_state && cur_state == IB_QPS_RESET) { in _mlx4_ib_modify_qp() 2771 cur_state, new_state, udata); in _mlx4_ib_modify_qp() [all …]
|
/linux/drivers/platform/x86/ |
A D | acerhdf.c | 513 int cur_temp, cur_state, err = 0; in acerhdf_set_cur_state() local 524 err = acerhdf_get_fanstate(&cur_state); in acerhdf_set_cur_state() 531 if (cur_state == ACERHDF_FAN_AUTO) in acerhdf_set_cur_state() 534 if (cur_state == ACERHDF_FAN_OFF) in acerhdf_set_cur_state()
|
/linux/net/netfilter/ |
A D | nf_conntrack_proto_sctp.c | 204 enum sctp_conntrack cur_state, in sctp_new_state() argument 259 sctp_conntrack_names[cur_state]); in sctp_new_state() 260 return cur_state; in sctp_new_state() 264 dir, sctp_conntrack_names[cur_state], chunk_type, in sctp_new_state() 265 sctp_conntrack_names[sctp_conntracks[dir][i][cur_state]]); in sctp_new_state() 267 return sctp_conntracks[dir][i][cur_state]; in sctp_new_state()
|
/linux/security/selinux/ss/ |
A D | conditional.c | 99 if (new_state != node->cur_state) { in evaluate_cond_node() 100 node->cur_state = new_state; in evaluate_cond_node() 384 node->cur_state = le32_to_cpu(buf[0]); in cond_read_node() 508 buf[0] = cpu_to_le32(node->cur_state); in cond_write_node() 652 newn->cur_state = orign->cur_state; in duplicate_policydb_cond_list()
|
/linux/drivers/pwm/ |
A D | pwm-sifive.c | 153 struct pwm_state cur_state; in pwm_sifive_apply() local 170 cur_state = pwm->state; in pwm_sifive_apply() 171 enabled = cur_state.enabled; in pwm_sifive_apply()
|
/linux/drivers/infiniband/hw/mthca/ |
A D | mthca_qp.c | 558 enum ib_qp_state cur_state, in __mthca_modify_qp() argument 788 if (cur_state == IB_QPS_RTS && new_state == IB_QPS_SQD && 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() 875 cur_state = qp->state; in mthca_modify_qp() 886 qp->transport, cur_state, new_state, in mthca_modify_qp() [all …]
|