/linux-6.1.9/drivers/thermal/ |
D | gov_step_wise.c | 42 unsigned long cur_state; in get_target_state() local 50 cdev->ops->get_cur_state(cdev, &cur_state); in get_target_state() 52 dev_dbg(&cdev->device, "cur_state=%ld\n", cur_state); in get_target_state() 56 next_target = clamp((cur_state + 1), instance->lower, instance->upper); in get_target_state() 67 next_target = clamp((cur_state + 1), instance->lower, instance->upper); in get_target_state() 71 if (cur_state <= instance->lower) { in get_target_state() 76 next_target = clamp((cur_state - 1), instance->lower, instance->upper); in get_target_state()
|
/linux-6.1.9/drivers/bus/mhi/host/ |
D | pm.c | 114 unsigned long cur_state = mhi_cntrl->pm_state; in mhi_tryset_pm_state() local 115 int index = find_last_bit(&cur_state, 32); in mhi_tryset_pm_state() 118 return cur_state; in mhi_tryset_pm_state() 120 if (unlikely(dev_state_transitions[index].from_state != 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() 163 enum mhi_pm_state cur_state; in mhi_ready_state_transition() local 191 cur_state = mhi_tryset_pm_state(mhi_cntrl, MHI_PM_POR); in mhi_ready_state_transition() 195 if (cur_state != MHI_PM_POR) { in mhi_ready_state_transition() 198 to_mhi_pm_state_str(cur_state)); in mhi_ready_state_transition() [all …]
|
/linux-6.1.9/drivers/gpu/drm/ |
D | drm_bridge.c | 851 struct drm_bridge_state *cur_state; in select_bus_fmt_recursive() local 857 cur_state = drm_atomic_get_new_bridge_state(crtc_state->state, in select_bus_fmt_recursive() 880 if (cur_state) { in select_bus_fmt_recursive() 881 cur_state->input_bus_cfg.format = MEDIA_BUS_FMT_FIXED; in select_bus_fmt_recursive() 882 cur_state->output_bus_cfg.format = out_bus_fmt; in select_bus_fmt_recursive() 892 if (WARN_ON(!cur_state)) in select_bus_fmt_recursive() 896 cur_state, in select_bus_fmt_recursive() 907 cur_state->input_bus_cfg.format = in_bus_fmts[0]; in select_bus_fmt_recursive() 908 cur_state->output_bus_cfg.format = out_bus_fmt; in select_bus_fmt_recursive() 922 cur_state->input_bus_cfg.format = in_bus_fmts[i]; in select_bus_fmt_recursive() [all …]
|
/linux-6.1.9/drivers/gpu/drm/amd/pm/powerplay/hwmgr/ |
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()
|
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()
|
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()
|
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()
|
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()
|
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()
|
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-6.1.9/drivers/gpu/drm/i915/display/ |
D | intel_fdi.c | 23 bool cur_state; in assert_fdi_tx() local 33 cur_state = intel_de_read(dev_priv, TRANS_DDI_FUNC_CTL(cpu_transcoder)) & TRANS_DDI_FUNC_ENABLE; in assert_fdi_tx() 35 cur_state = intel_de_read(dev_priv, FDI_TX_CTL(pipe)) & FDI_TX_ENABLE; in assert_fdi_tx() 37 I915_STATE_WARN(cur_state != state, in assert_fdi_tx() 39 str_on_off(state), str_on_off(cur_state)); in assert_fdi_tx() 55 bool cur_state; in assert_fdi_rx() local 57 cur_state = intel_de_read(dev_priv, FDI_RX_CTL(pipe)) & FDI_RX_ENABLE; in assert_fdi_rx() 58 I915_STATE_WARN(cur_state != state, in assert_fdi_rx() 60 str_on_off(state), str_on_off(cur_state)); in assert_fdi_rx() 76 bool cur_state; in assert_fdi_tx_pll_enabled() local [all …]
|
/linux-6.1.9/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 …]
|
/linux-6.1.9/drivers/net/ethernet/mellanox/mlx4/ |
D | qp.c | 88 enum mlx4_qp_state cur_state, enum mlx4_qp_state new_state, in __mlx4_qp_modify() argument 140 if (cur_state >= MLX4_QP_NUM_STATE || new_state >= MLX4_QP_NUM_STATE || in __mlx4_qp_modify() 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() 163 if (cur_state == MLX4_QP_STATE_RST && new_state == MLX4_QP_STATE_INIT) { 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() [all …]
|
/linux-6.1.9/drivers/acpi/ |
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()
|
D | processor_thermal.c | 213 unsigned long *cur_state) in processor_get_cur_state() argument 225 *cur_state = cpufreq_get_cur_state(pr->id); in processor_get_cur_state() 227 *cur_state += pr->throttling.state; in processor_get_cur_state()
|
/linux-6.1.9/fs/gfs2/ |
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-6.1.9/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 …]
|
/linux-6.1.9/drivers/hwmon/ |
D | emc2305.c | 83 unsigned int cur_state; member 163 *state = data->cdev_data[cdev_idx].cur_state; in emc2305_get_cur_state() 184 data->cdev_data[cdev_idx].cur_state = state; in __emc2305_set_cur_state() 282 data->cdev_data[channel].cur_state = EMC2305_PWM_DUTY2STATE(val, data->max_state, in emc2305_set_pwm() 316 data->cdev_data[cdev_idx].cur_state = in emc2305_set_single_tz()
|
/linux-6.1.9/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()
|
/linux-6.1.9/drivers/net/ethernet/google/gve/ |
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-6.1.9/drivers/platform/x86/ |
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-6.1.9/tools/lib/thermal/include/ |
D | thermal.h | 32 int (*cdev_update)(int cdev_id, int cur_state, void *arg); 61 int cur_state; member
|
/linux-6.1.9/net/netfilter/ |
D | nf_conntrack_proto_sctp.c | 193 enum sctp_conntrack cur_state, in sctp_new_state() argument 248 sctp_conntrack_names[cur_state]); in sctp_new_state() 249 return cur_state; in sctp_new_state() 253 dir, sctp_conntrack_names[cur_state], chunk_type, in sctp_new_state() 254 sctp_conntrack_names[sctp_conntracks[dir][i][cur_state]]); in sctp_new_state() 256 return sctp_conntracks[dir][i][cur_state]; in sctp_new_state()
|
/linux-6.1.9/security/selinux/ss/ |
D | conditional.c | 99 if (new_state != node->cur_state) { in evaluate_cond_node() 100 node->cur_state = new_state; in evaluate_cond_node() 386 node->cur_state = le32_to_cpu(buf[0]); in cond_read_node() 509 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-6.1.9/drivers/infiniband/hw/mlx4/ |
D | qp.c | 2071 enum ib_qp_state cur_state, in __mlx4_ib_modify_qp() argument 2183 if (cur_state == IB_QPS_RESET && new_state == IB_QPS_INIT) { in __mlx4_ib_modify_qp() 2201 if (cur_state == IB_QPS_SQD && new_state == IB_QPS_SQD && in __mlx4_ib_modify_qp() 2208 if (cur_state == IB_QPS_INIT && new_state == IB_QPS_RTR) { in __mlx4_ib_modify_qp() 2277 (cur_state == IB_QPS_INIT && new_state == IB_QPS_RTR)) { in __mlx4_ib_modify_qp() 2397 cur_state == IB_QPS_RESET && in __mlx4_ib_modify_qp() 2401 if (cur_state == IB_QPS_INIT && in __mlx4_ib_modify_qp() 2457 if (cur_state == IB_QPS_RTS && new_state == IB_QPS_SQD && 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() [all …]
|