Home
last modified time | relevance | path

Searched refs:cur_state (Results 1 – 22 of 22) sorted by relevance

/drivers/thermal/
Dstep_wise.c53 unsigned long cur_state; in get_target_state() local
55 cdev->ops->get_cur_state(cdev, &cur_state); in get_target_state()
60 cur_state = cur_state < instance->upper ? in get_target_state()
61 (cur_state + 1) : instance->upper; in get_target_state()
62 if (cur_state < instance->lower) in get_target_state()
63 cur_state = instance->lower; in get_target_state()
68 cur_state = instance->upper; in get_target_state()
71 if (cur_state == instance->lower) { in get_target_state()
73 cur_state = -1; in get_target_state()
75 cur_state -= 1; in get_target_state()
[all …]
Dthermal_core.c836 static DEVICE_ATTR(cur_state, 0644,
/drivers/net/ethernet/mellanox/mlx4/
Dqp.c85 enum mlx4_qp_state cur_state, enum mlx4_qp_state new_state, in __mlx4_qp_modify() argument
137 if (cur_state >= MLX4_QP_NUM_STATE || new_state >= MLX4_QP_NUM_STATE || in __mlx4_qp_modify()
138 !op[cur_state][new_state]) in __mlx4_qp_modify()
141 if (op[cur_state][new_state] == MLX4_CMD_2RST_QP) { in __mlx4_qp_modify()
144 if (mlx4_is_master(dev) && cur_state != MLX4_QP_STATE_ERR && in __mlx4_qp_modify()
145 cur_state != MLX4_QP_STATE_RST && in __mlx4_qp_modify()
160 if (cur_state == MLX4_QP_STATE_RST && new_state == MLX4_QP_STATE_INIT) { in __mlx4_qp_modify()
176 op[cur_state][new_state], MLX4_CMD_TIME_CLASS_C, native); in __mlx4_qp_modify()
180 if (cur_state != MLX4_QP_STATE_ERR && in __mlx4_qp_modify()
181 cur_state != MLX4_QP_STATE_RST && in __mlx4_qp_modify()
[all …]
Deq.c324 enum slave_port_state cur_state = in set_and_calc_slave_port_state() local
338 switch (cur_state) { in set_and_calc_slave_port_state()
/drivers/acpi/
Dprocessor_thermal.c236 unsigned long *cur_state) in processor_get_cur_state() argument
248 *cur_state = cpufreq_get_cur_state(pr->id); in processor_get_cur_state()
250 *cur_state += pr->throttling.state; in processor_get_cur_state()
Dpower.c208 int cur_state; in acpi_power_get_list_state() local
220 result = acpi_power_get_state(handle, &cur_state); in acpi_power_get_list_state()
225 if (cur_state != ACPI_POWER_RESOURCE_STATE_ON) in acpi_power_get_list_state()
230 cur_state ? "on" : "off")); in acpi_power_get_list_state()
232 *state = cur_state; in acpi_power_get_list_state()
/drivers/platform/x86/
Dacerhdf.c466 int cur_temp, cur_state, err = 0; in acerhdf_set_cur_state() local
477 err = acerhdf_get_fanstate(&cur_state); in acerhdf_set_cur_state()
485 if ((cur_state == ACERHDF_FAN_AUTO) && in acerhdf_set_cur_state()
489 if (cur_state == ACERHDF_FAN_OFF) in acerhdf_set_cur_state()
/drivers/infiniband/core/
Dverbs.c775 int ib_modify_qp_is_ok(enum ib_qp_state cur_state, enum ib_qp_state next_state, in ib_modify_qp_is_ok() argument
780 if (cur_state < 0 || cur_state > IB_QPS_ERR || in ib_modify_qp_is_ok()
785 cur_state != IB_QPS_RTR && cur_state != IB_QPS_RTS && in ib_modify_qp_is_ok()
786 cur_state != IB_QPS_SQD && cur_state != IB_QPS_SQE) in ib_modify_qp_is_ok()
789 if (!qp_state_table[cur_state][next_state].valid) in ib_modify_qp_is_ok()
792 req_param = qp_state_table[cur_state][next_state].req_param[type]; in ib_modify_qp_is_ok()
793 opt_param = qp_state_table[cur_state][next_state].opt_param[type]; in ib_modify_qp_is_ok()
/drivers/infiniband/hw/mlx4/
Dqp.c1229 enum ib_qp_state cur_state, enum ib_qp_state new_state) in __mlx4_ib_modify_qp() argument
1292 if (cur_state == IB_QPS_RESET && new_state == IB_QPS_INIT) { in __mlx4_ib_modify_qp()
1308 if (cur_state == IB_QPS_SQD && new_state == IB_QPS_SQD && in __mlx4_ib_modify_qp()
1315 if (cur_state == IB_QPS_INIT && new_state == IB_QPS_RTR) { in __mlx4_ib_modify_qp()
1441 if (qp->rq.wqe_cnt && cur_state == IB_QPS_RESET && new_state == IB_QPS_INIT) in __mlx4_ib_modify_qp()
1444 if (cur_state == IB_QPS_INIT && in __mlx4_ib_modify_qp()
1467 if (cur_state == IB_QPS_RTS && new_state == IB_QPS_SQD && in __mlx4_ib_modify_qp()
1473 if (!ibqp->uobject && cur_state == IB_QPS_RESET && new_state == IB_QPS_INIT) in __mlx4_ib_modify_qp()
1482 if (!ibqp->uobject && cur_state == IB_QPS_RESET && new_state == IB_QPS_INIT) { in __mlx4_ib_modify_qp()
1496 err = mlx4_qp_modify(dev->dev, &qp->mtt, to_mlx4_state(cur_state), in __mlx4_ib_modify_qp()
[all …]
/drivers/infiniband/hw/mthca/
Dmthca_qp.c545 enum ib_qp_state cur_state, enum ib_qp_state new_state) in __mthca_modify_qp() argument
652 cur_state == IB_QPS_INIT && new_state == IB_QPS_RTR) { in __mthca_modify_qp()
772 if (cur_state == IB_QPS_RTS && new_state == IB_QPS_SQD && in __mthca_modify_qp()
777 err = mthca_MODIFY_QP(dev, cur_state, new_state, qp->qpn, 0, in __mthca_modify_qp()
781 cur_state, new_state, err); in __mthca_modify_qp()
803 if (cur_state != IB_QPS_RTR && in __mthca_modify_qp()
807 if (cur_state != IB_QPS_RESET && in __mthca_modify_qp()
808 cur_state != IB_QPS_ERR && in __mthca_modify_qp()
847 enum ib_qp_state cur_state, new_state; in mthca_modify_qp() local
852 cur_state = attr->cur_qp_state; in mthca_modify_qp()
[all …]
/drivers/infiniband/hw/qib/
Dqib_qp.c569 enum ib_qp_state cur_state, new_state; in qib_modify_qp() local
579 cur_state = attr_mask & IB_QP_CUR_STATE ? in qib_modify_qp()
581 new_state = attr_mask & IB_QP_STATE ? attr->qp_state : cur_state; in qib_modify_qp()
583 if (!ib_modify_qp_is_ok(cur_state, new_state, ibqp->qp_type, in qib_modify_qp()
823 if (cur_state == IB_QPS_RESET && new_state == IB_QPS_INIT) in qib_modify_qp()
/drivers/gpu/drm/i915/
Dintel_display.c1057 bool cur_state; in assert_pll() local
1061 cur_state = !!(val & DPLL_VCO_ENABLE); in assert_pll()
1062 WARN(cur_state != state, in assert_pll()
1064 state_string(state), state_string(cur_state)); in assert_pll()
1076 bool cur_state; in assert_pch_pll() local
1088 cur_state = !!(val & DPLL_VCO_ENABLE); in assert_pch_pll()
1089 WARN(cur_state != state, in assert_pch_pll()
1091 pll->pll_reg, state_string(state), state_string(cur_state), val); in assert_pch_pll()
1098 cur_state = pll->pll_reg == _PCH_DPLL_B; in assert_pch_pll()
1099 if (!WARN(((pch_dpll >> (4 * crtc->pipe)) & 1) != cur_state, in assert_pch_pll()
[all …]
/drivers/gpu/drm/vmwgfx/
Dvmwgfx_execbuf.c928 SVGA3dTextureState *cur_state = (SVGA3dTextureState *) in vmw_cmd_tex_state() local
936 for (; cur_state < last_state; ++cur_state) { in vmw_cmd_tex_state()
937 if (likely(cur_state->name != SVGA3D_TS_BIND_TEXTURE)) in vmw_cmd_tex_state()
942 &cur_state->value, NULL); in vmw_cmd_tex_state()
/drivers/infiniband/hw/ipath/
Dipath_qp.c455 enum ib_qp_state cur_state, new_state; in ipath_modify_qp() local
461 cur_state = attr_mask & IB_QP_CUR_STATE ? in ipath_modify_qp()
463 new_state = attr_mask & IB_QP_STATE ? attr->qp_state : cur_state; in ipath_modify_qp()
465 if (!ib_modify_qp_is_ok(cur_state, new_state, ibqp->qp_type, in ipath_modify_qp()
/drivers/video/i810/
Di810.h282 u32 cur_state; member
Di810_main.c1568 par->cur_state = mesg.event; in i810fb_suspend()
1599 int cur_state = par->cur_state; in i810fb_resume() local
1601 par->cur_state = PM_EVENT_ON; in i810fb_resume()
1603 if (cur_state == PM_EVENT_FREEZE) { in i810fb_resume()
/drivers/scsi/megaraid/
Dmegaraid_sas_base.c2641 u32 cur_state; in megasas_transition_to_ready() local
2661 cur_state = MFI_STATE_FAULT; in megasas_transition_to_ready()
2688 cur_state = MFI_STATE_WAIT_HANDSHAKE; in megasas_transition_to_ready()
2707 cur_state = MFI_STATE_BOOT_MESSAGE_PENDING; in megasas_transition_to_ready()
2744 cur_state = MFI_STATE_OPERATIONAL; in megasas_transition_to_ready()
2752 cur_state = MFI_STATE_UNDEFINED; in megasas_transition_to_ready()
2757 cur_state = MFI_STATE_BB_INIT; in megasas_transition_to_ready()
2762 cur_state = MFI_STATE_FW_INIT; in megasas_transition_to_ready()
2767 cur_state = MFI_STATE_FW_INIT_2; in megasas_transition_to_ready()
2772 cur_state = MFI_STATE_DEVICE_SCAN; in megasas_transition_to_ready()
[all …]
/drivers/media/rc/
Dnuvoton-cir.c761 u8 status, iren, cur_state; in nvt_cir_isr() local
817 cur_state = nvt->study_state; in nvt_cir_isr()
821 if (cur_state == ST_STUDY_NONE) in nvt_cir_isr()
/drivers/scsi/lpfc/
Dlpfc_nportdisc.c2490 uint32_t cur_state, rc; in lpfc_disc_state_machine() local
2498 cur_state = ndlp->nlp_state; in lpfc_disc_state_machine()
2504 evt, ndlp->nlp_DID, cur_state, ndlp->nlp_flag); in lpfc_disc_state_machine()
2508 evt, cur_state, ndlp->nlp_DID); in lpfc_disc_state_machine()
2510 func = lpfc_disc_action[(cur_state * NLP_EVT_MAX_EVENT) + evt]; in lpfc_disc_state_machine()
/drivers/scsi/csiostor/
Dt4fw_api_stor.h120 u8 cur_state; member
/drivers/block/
Dsx8.c1036 int cur_state, int next_state) in carm_handle_generic() argument
1042 assert(host->state == cur_state); in carm_handle_generic()
/drivers/video/savage/
Dsavagefb_driver.c2414 int cur_state = par->pm_state; in savagefb_resume() local
2424 if (cur_state == PM_EVENT_FREEZE) { in savagefb_resume()