/drivers/thermal/ |
D | step_wise.c | 53 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 …]
|
D | thermal_core.c | 836 static DEVICE_ATTR(cur_state, 0644,
|
/drivers/net/ethernet/mellanox/mlx4/ |
D | qp.c | 85 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 …]
|
D | eq.c | 324 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/ |
D | processor_thermal.c | 236 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()
|
D | power.c | 208 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/ |
D | acerhdf.c | 466 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/ |
D | verbs.c | 775 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/ |
D | qp.c | 1229 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/ |
D | mthca_qp.c | 545 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/ |
D | qib_qp.c | 569 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/ |
D | intel_display.c | 1057 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/ |
D | vmwgfx_execbuf.c | 928 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/ |
D | ipath_qp.c | 455 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/ |
D | i810.h | 282 u32 cur_state; member
|
D | i810_main.c | 1568 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/ |
D | megaraid_sas_base.c | 2641 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/ |
D | nuvoton-cir.c | 761 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/ |
D | lpfc_nportdisc.c | 2490 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/ |
D | t4fw_api_stor.h | 120 u8 cur_state; member
|
/drivers/block/ |
D | sx8.c | 1036 int cur_state, int next_state) in carm_handle_generic() argument 1042 assert(host->state == cur_state); in carm_handle_generic()
|
/drivers/video/savage/ |
D | savagefb_driver.c | 2414 int cur_state = par->pm_state; in savagefb_resume() local 2424 if (cur_state == PM_EVENT_FREEZE) { in savagefb_resume()
|