Home
last modified time | relevance | path

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

/linux-4.1.27/drivers/thermal/
Dstep_wise.c54 unsigned long cur_state; in get_target_state() local
62 cdev->ops->get_cur_state(cdev, &cur_state); in get_target_state()
64 dev_dbg(&cdev->device, "cur_state=%ld\n", cur_state); in get_target_state()
68 next_target = (cur_state + 1) >= instance->upper ? in get_target_state()
70 ((cur_state + 1) < instance->lower ? in get_target_state()
71 instance->lower : (cur_state + 1)); in get_target_state()
82 next_target = cur_state < instance->upper ? in get_target_state()
83 (cur_state + 1) : instance->upper; in get_target_state()
93 if (cur_state <= instance->lower) { in get_target_state()
97 next_target = cur_state - 1; in get_target_state()
[all …]
Dthermal_core.c909 static DEVICE_ATTR(cur_state, 0644,
/linux-4.1.27/kernel/bpf/
Dverifier.c198 struct verifier_state cur_state; /* current verifier state */ member
247 t = env->cur_state.regs[i].type; in print_verifier_state()
252 verbose("%d", env->cur_state.regs[i].imm); in print_verifier_state()
256 env->cur_state.regs[i].map_ptr->key_size, in print_verifier_state()
257 env->cur_state.regs[i].map_ptr->value_size); in print_verifier_state()
260 if (env->cur_state.stack_slot_type[i] == STACK_SPILL) in print_verifier_state()
262 reg_type_str[env->cur_state.spilled_regs[i / BPF_REG_SIZE].type]); in print_verifier_state()
420 memcpy(&env->cur_state, &env->head->st, sizeof(env->cur_state)); in pop_stack()
440 memcpy(&elem->st, &env->cur_state, sizeof(env->cur_state)); in push_stack()
616 struct bpf_map *map = env->cur_state.regs[regno].map_ptr; in check_map_access()
[all …]
/linux-4.1.27/fs/gfs2/
Dtrace_gfs2.h99 __field( u8, cur_state )
110 __entry->cur_state = glock_trace_state(gl->gl_state);
120 glock_trace_name(__entry->cur_state),
138 __field( u8, cur_state )
146 __entry->cur_state = glock_trace_state(gl->gl_state);
153 glock_trace_name(__entry->cur_state),
170 __field( u8, cur_state )
180 __entry->cur_state = glock_trace_state(gl->gl_state);
189 glock_trace_name(__entry->cur_state),
Drgrp.c91 unsigned char *byte1, *byte2, *end, cur_state; in gfs2_setbit() local
101 cur_state = (*byte1 >> bit) & GFS2_BIT_MASK; in gfs2_setbit()
103 if (unlikely(!valid_change[new_state * 4 + cur_state])) { in gfs2_setbit()
105 rbm->offset, cur_state, new_state); in gfs2_setbit()
114 *byte1 ^= (cur_state ^ new_state) << bit; in gfs2_setbit()
118 cur_state = (*byte2 >> bit) & GFS2_BIT_MASK; in gfs2_setbit()
119 *byte2 ^= (cur_state ^ new_state) << bit; in gfs2_setbit()
/linux-4.1.27/drivers/acpi/
Dprocessor_thermal.c221 unsigned long *cur_state) in processor_get_cur_state() argument
233 *cur_state = cpufreq_get_cur_state(pr->id); in processor_get_cur_state()
235 *cur_state += pr->throttling.state; in processor_get_cur_state()
Dpower.c198 int cur_state; in acpi_power_get_list_state() local
210 result = acpi_power_get_state(handle, &cur_state); in acpi_power_get_list_state()
215 if (cur_state != ACPI_POWER_RESOURCE_STATE_ON) in acpi_power_get_list_state()
220 cur_state ? "on" : "off")); in acpi_power_get_list_state()
222 *state = cur_state; in acpi_power_get_list_state()
/linux-4.1.27/drivers/net/ethernet/mellanox/mlx4/
Dqp.c88 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()
179 op[cur_state][new_state], MLX4_CMD_TIME_CLASS_C, native); in __mlx4_qp_modify()
183 if (cur_state != MLX4_QP_STATE_ERR && in __mlx4_qp_modify()
184 cur_state != MLX4_QP_STATE_RST && in __mlx4_qp_modify()
[all …]
Deq.c334 enum slave_port_state cur_state = in set_and_calc_slave_port_state() local
349 switch (cur_state) { in set_and_calc_slave_port_state()
/linux-4.1.27/drivers/platform/x86/
Dacerhdf.c528 int cur_temp, cur_state, err = 0; in acerhdf_set_cur_state() local
539 err = acerhdf_get_fanstate(&cur_state); in acerhdf_set_cur_state()
546 if (cur_state == ACERHDF_FAN_AUTO) in acerhdf_set_cur_state()
549 if (cur_state == ACERHDF_FAN_OFF) in acerhdf_set_cur_state()
/linux-4.1.27/drivers/infiniband/hw/usnic/
Dusnic_ib_main.c105 enum ib_qp_state cur_state; in usnic_ib_qp_grp_modify_active_to_err() local
112 cur_state = qp_grp->state; in usnic_ib_qp_grp_modify_active_to_err()
113 if (cur_state == IB_QPS_INIT || in usnic_ib_qp_grp_modify_active_to_err()
114 cur_state == IB_QPS_RTR || in usnic_ib_qp_grp_modify_active_to_err()
115 cur_state == IB_QPS_RTS) { in usnic_ib_qp_grp_modify_active_to_err()
123 (cur_state), in usnic_ib_qp_grp_modify_active_to_err()
/linux-4.1.27/drivers/infiniband/core/
Dverbs.c829 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
835 if (cur_state < 0 || cur_state > IB_QPS_ERR || in ib_modify_qp_is_ok()
840 cur_state != IB_QPS_RTR && cur_state != IB_QPS_RTS && in ib_modify_qp_is_ok()
841 cur_state != IB_QPS_SQD && cur_state != IB_QPS_SQE) in ib_modify_qp_is_ok()
844 if (!qp_state_table[cur_state][next_state].valid) in ib_modify_qp_is_ok()
847 req_param = qp_state_table[cur_state][next_state].req_param[type]; in ib_modify_qp_is_ok()
848 opt_param = qp_state_table[cur_state][next_state].opt_param[type]; in ib_modify_qp_is_ok()
851 req_param |= qp_state_table[cur_state][next_state]. in ib_modify_qp_is_ok()
853 opt_param |= qp_state_table[cur_state][next_state]. in ib_modify_qp_is_ok()
/linux-4.1.27/drivers/net/ethernet/mellanox/mlx5/core/
Dqp.c275 int mlx5_core_qp_modify(struct mlx5_core_dev *dev, enum mlx5_qp_state cur_state, in mlx5_core_qp_modify() argument
321 if (cur_state >= MLX5_QP_NUM_STATE || new_state >= MLX5_QP_NUM_STATE || in mlx5_core_qp_modify()
322 !optab[cur_state][new_state]) in mlx5_core_qp_modify()
326 op = optab[cur_state][new_state]; in mlx5_core_qp_modify()
/linux-4.1.27/drivers/infiniband/hw/mlx4/
Dqp.c1448 enum ib_qp_state cur_state, enum ib_qp_state new_state) in __mlx4_ib_modify_qp() argument
1518 if (cur_state == IB_QPS_RESET && new_state == IB_QPS_INIT) { in __mlx4_ib_modify_qp()
1534 if (cur_state == IB_QPS_SQD && new_state == IB_QPS_SQD && in __mlx4_ib_modify_qp()
1541 if (cur_state == IB_QPS_INIT && new_state == IB_QPS_RTR) { in __mlx4_ib_modify_qp()
1673 if (qp->rq.wqe_cnt && cur_state == IB_QPS_RESET && new_state == IB_QPS_INIT) in __mlx4_ib_modify_qp()
1676 if (cur_state == IB_QPS_INIT && in __mlx4_ib_modify_qp()
1734 if (cur_state == IB_QPS_RTS && new_state == IB_QPS_SQD && in __mlx4_ib_modify_qp()
1740 if (!ibqp->uobject && cur_state == IB_QPS_RESET && new_state == IB_QPS_INIT) in __mlx4_ib_modify_qp()
1749 if (!ibqp->uobject && cur_state == IB_QPS_RESET && new_state == IB_QPS_INIT) { in __mlx4_ib_modify_qp()
1763 err = mlx4_qp_modify(dev->dev, &qp->mtt, to_mlx4_state(cur_state), in __mlx4_ib_modify_qp()
[all …]
/linux-4.1.27/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 …]
/linux-4.1.27/net/netfilter/
Dnf_conntrack_proto_sctp.c237 enum sctp_conntrack cur_state, in sctp_new_state() argument
285 sctp_conntrack_names[cur_state]); in sctp_new_state()
286 return cur_state; in sctp_new_state()
290 dir, sctp_conntrack_names[cur_state], chunk_type, in sctp_new_state()
291 sctp_conntrack_names[sctp_conntracks[dir][i][cur_state]]); in sctp_new_state()
293 return sctp_conntracks[dir][i][cur_state]; in sctp_new_state()
/linux-4.1.27/security/selinux/ss/
Dconditional.h56 int cur_state; member
Dconditional.c95 if (new_state != node->cur_state) { in evaluate_cond_node()
96 node->cur_state = new_state; in evaluate_cond_node()
409 node->cur_state = le32_to_cpu(buf[0]); in cond_read_node()
561 buf[0] = cpu_to_le32(node->cur_state); in cond_write_node()
/linux-4.1.27/drivers/spi/
Dspi-qup.c168 u32 cur_state; in spi_qup_set_state() local
183 cur_state = readl_relaxed(controller->base + QUP_STATE); in spi_qup_set_state()
188 if (((cur_state & QUP_STATE_MASK) == QUP_STATE_PAUSE) && in spi_qup_set_state()
193 cur_state &= ~QUP_STATE_MASK; in spi_qup_set_state()
194 cur_state |= state; in spi_qup_set_state()
195 writel_relaxed(cur_state, controller->base + QUP_STATE); in spi_qup_set_state()
/linux-4.1.27/tools/thermal/tmon/
Dsysfs.c108 sysfs_get_ulong(path, "cur_state", &cdi->cur_state); in probe_cdev()
112 cdi->type, cdi->max_state, cdi->cur_state, cdi->instance); in probe_cdev()
522 val = ptdata.cdi[i].cur_state; in update_thermal_data()
Dtmon.h60 unsigned long cur_state; member
Dtui.c228 ptdata.cdi[j].cur_state, in show_cooling_device()
/linux-4.1.27/drivers/infiniband/hw/mlx5/
Dqp.c1567 enum ib_qp_state cur_state, enum ib_qp_state new_state) in __mlx5_ib_modify_qp() argument
1698 if (qp->rq.wqe_cnt && cur_state == IB_QPS_RESET && new_state == IB_QPS_INIT) in __mlx5_ib_modify_qp()
1701 if (cur_state == IB_QPS_RTS && new_state == IB_QPS_SQD && in __mlx5_ib_modify_qp()
1707 if (!ibqp->uobject && cur_state == IB_QPS_RESET && new_state == IB_QPS_INIT) in __mlx5_ib_modify_qp()
1711 mlx5_cur = to_mlx5_state(cur_state); in __mlx5_ib_modify_qp()
1722 if (cur_state != IB_QPS_RESET && cur_state != IB_QPS_ERR && in __mlx5_ib_modify_qp()
1729 err = mlx5_core_qp_modify(dev->mdev, to_mlx5_state(cur_state), in __mlx5_ib_modify_qp()
1735 if (cur_state == IB_QPS_RESET && new_state == IB_QPS_INIT) in __mlx5_ib_modify_qp()
1779 enum ib_qp_state cur_state, new_state; in mlx5_ib_modify_qp() local
1787 cur_state = attr_mask & IB_QP_CUR_STATE ? attr->cur_qp_state : qp->state; in mlx5_ib_modify_qp()
[all …]
/linux-4.1.27/sound/drivers/vx/
Dvx_pcm.c336 int err, i, cur_state; in vx_toggle_pipe() local
339 if (vx_get_pipe_state(chip, pipe, &cur_state) < 0) in vx_toggle_pipe()
341 if (state == cur_state) in vx_toggle_pipe()
371 err = vx_get_pipe_state(chip, pipe, &cur_state); in vx_toggle_pipe()
372 if (err < 0 || cur_state == state) in vx_toggle_pipe()
/linux-4.1.27/Documentation/thermal/
Dsysfs-api.txt184 |---cur_state: Current cooling state of the cooling device
307 cur_state
310 - cur_state == 0 means no cooling
311 - cur_state == max_state means the maximum cooling.
349 |---cur_state: 0
354 |---cur_state: 0
Dintel_powerclamp.txt267 cur_state:0
273 $ sudo sh -c "echo 25 > /sys/class/thermal/cooling_device80/cur_state
/linux-4.1.27/drivers/gpu/drm/nouveau/nvkm/subdev/pmu/
Dgk20a.c47 int cur_state; member
/linux-4.1.27/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()
/linux-4.1.27/drivers/infiniband/hw/qib/
Dqib_qp.c574 enum ib_qp_state cur_state, new_state; in qib_modify_qp() local
584 cur_state = attr_mask & IB_QP_CUR_STATE ? in qib_modify_qp()
586 new_state = attr_mask & IB_QP_STATE ? attr->qp_state : cur_state; in qib_modify_qp()
588 if (!ib_modify_qp_is_ok(cur_state, new_state, ibqp->qp_type, in qib_modify_qp()
828 if (cur_state == IB_QPS_RESET && new_state == IB_QPS_INIT) in qib_modify_qp()
/linux-4.1.27/drivers/video/fbdev/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()
/linux-4.1.27/drivers/gpu/drm/i915/
Dintel_display.c1098 bool cur_state; in assert_pll() local
1102 cur_state = !!(val & DPLL_VCO_ENABLE); in assert_pll()
1103 I915_STATE_WARN(cur_state != state, in assert_pll()
1105 state_string(state), state_string(cur_state)); in assert_pll()
1112 bool cur_state; in assert_dsi_pll() local
1118 cur_state = val & DSI_PLL_VCO_EN; in assert_dsi_pll()
1119 I915_STATE_WARN(cur_state != state, in assert_dsi_pll()
1121 state_string(state), state_string(cur_state)); in assert_dsi_pll()
1142 bool cur_state; in assert_shared_dpll() local
1149 cur_state = pll->get_hw_state(dev_priv, pll, &hw_state); in assert_shared_dpll()
[all …]
/linux-4.1.27/drivers/net/can/usb/
Dkvaser_usb.c826 enum can_state cur_state, new_state, tx_state, rx_state; in kvaser_usb_rx_error_update_can_state() local
830 new_state = cur_state = priv->can.state; in kvaser_usb_rx_error_update_can_state()
838 if (cur_state < CAN_STATE_BUS_OFF) { in kvaser_usb_rx_error_update_can_state()
843 else if (cur_state > CAN_STATE_ERROR_ACTIVE) in kvaser_usb_rx_error_update_can_state()
851 if (new_state != cur_state) { in kvaser_usb_rx_error_update_can_state()
859 (cur_state >= CAN_STATE_BUS_OFF) && in kvaser_usb_rx_error_update_can_state()
/linux-4.1.27/drivers/gpu/drm/vmwgfx/
Dvmwgfx_execbuf.c1349 SVGA3dTextureState *cur_state = (SVGA3dTextureState *) in vmw_cmd_tex_state() local
1364 for (; cur_state < last_state; ++cur_state) { in vmw_cmd_tex_state()
1365 if (likely(cur_state->name != SVGA3D_TS_BIND_TEXTURE)) in vmw_cmd_tex_state()
1370 &cur_state->value, &res_node); in vmw_cmd_tex_state()
1380 bi.i1.texture_stage = cur_state->stage; in vmw_cmd_tex_state()
/linux-4.1.27/include/linux/mlx4/
Dqp.h457 enum mlx4_qp_state cur_state, enum mlx4_qp_state new_state,
/linux-4.1.27/drivers/media/rc/
Dnuvoton-cir.c756 u8 status, iren, cur_state; in nvt_cir_isr() local
812 cur_state = nvt->study_state; in nvt_cir_isr()
816 if (cur_state == ST_STUDY_NONE) in nvt_cir_isr()
/linux-4.1.27/drivers/net/phy/
Damd-xgbe-phy.c1055 enum amd_xgbe_phy_an cur_state = priv->an_state; in amd_xgbe_an_state_machine() local
1090 cur_state = priv->an_state; in amd_xgbe_an_state_machine()
1128 cur_state); in amd_xgbe_an_state_machine()
1142 if (cur_state != priv->an_state) in amd_xgbe_an_state_machine()
/linux-4.1.27/drivers/scsi/megaraid/
Dmegaraid_sas_base.c3350 u32 cur_state; in megasas_transition_to_ready() local
3368 cur_state = MFI_STATE_FAULT; in megasas_transition_to_ready()
3399 cur_state = MFI_STATE_WAIT_HANDSHAKE; in megasas_transition_to_ready()
3422 cur_state = MFI_STATE_BOOT_MESSAGE_PENDING; in megasas_transition_to_ready()
3467 cur_state = MFI_STATE_OPERATIONAL; in megasas_transition_to_ready()
3475 cur_state = MFI_STATE_UNDEFINED; in megasas_transition_to_ready()
3480 cur_state = MFI_STATE_BB_INIT; in megasas_transition_to_ready()
3485 cur_state = MFI_STATE_FW_INIT; in megasas_transition_to_ready()
3490 cur_state = MFI_STATE_FW_INIT_2; in megasas_transition_to_ready()
3495 cur_state = MFI_STATE_DEVICE_SCAN; in megasas_transition_to_ready()
[all …]
/linux-4.1.27/drivers/scsi/lpfc/
Dlpfc_nportdisc.c2533 uint32_t cur_state, rc; in lpfc_disc_state_machine() local
2541 cur_state = ndlp->nlp_state; in lpfc_disc_state_machine()
2547 evt, ndlp->nlp_DID, cur_state, ndlp->nlp_flag); in lpfc_disc_state_machine()
2551 evt, cur_state, ndlp->nlp_DID); in lpfc_disc_state_machine()
2553 func = lpfc_disc_action[(cur_state * NLP_EVT_MAX_EVENT) + evt]; in lpfc_disc_state_machine()
/linux-4.1.27/include/linux/mlx5/
Dqp.h598 int mlx5_core_qp_modify(struct mlx5_core_dev *dev, enum mlx5_qp_state cur_state,
/linux-4.1.27/drivers/scsi/csiostor/
Dt4fw_api_stor.h120 u8 cur_state; member
/linux-4.1.27/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()
/linux-4.1.27/drivers/video/fbdev/savage/
Dsavagefb_driver.c2408 int cur_state = par->pm_state; in savagefb_resume() local
2418 if (cur_state == PM_EVENT_FREEZE) { in savagefb_resume()
/linux-4.1.27/include/rdma/
Dib_verbs.h1729 int ib_modify_qp_is_ok(enum ib_qp_state cur_state, enum ib_qp_state next_state,