Home
last modified time | relevance | path

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

/linux-4.4.14/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.c1171 static DEVICE_ATTR(cur_state, 0644,
/linux-4.4.14/kernel/bpf/
Dverifier.c198 struct verifier_state cur_state; /* current verifier state */ member
248 t = env->cur_state.regs[i].type; in print_verifier_state()
253 verbose("%d", env->cur_state.regs[i].imm); in print_verifier_state()
257 env->cur_state.regs[i].map_ptr->key_size, in print_verifier_state()
258 env->cur_state.regs[i].map_ptr->value_size); in print_verifier_state()
261 if (env->cur_state.stack_slot_type[i] == STACK_SPILL) in print_verifier_state()
263 reg_type_str[env->cur_state.spilled_regs[i / BPF_REG_SIZE].type]); in print_verifier_state()
421 memcpy(&env->cur_state, &env->head->st, sizeof(env->cur_state)); in pop_stack()
441 memcpy(&elem->st, &env->cur_state, sizeof(env->cur_state)); in push_stack()
630 struct bpf_map *map = env->cur_state.regs[regno].map_ptr; in check_map_access()
[all …]
/linux-4.4.14/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.4.14/drivers/acpi/
Dprocessor_thermal.c217 unsigned long *cur_state) in processor_get_cur_state() argument
229 *cur_state = cpufreq_get_cur_state(pr->id); in processor_get_cur_state()
231 *cur_state += pr->throttling.state; in processor_get_cur_state()
Dpower.c197 int cur_state; in acpi_power_get_list_state() local
209 result = acpi_power_get_state(handle, &cur_state); in acpi_power_get_list_state()
214 if (cur_state != ACPI_POWER_RESOURCE_STATE_ON) in acpi_power_get_list_state()
219 cur_state ? "on" : "off")); in acpi_power_get_list_state()
221 *state = cur_state; in acpi_power_get_list_state()
/linux-4.4.14/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.c362 enum slave_port_state cur_state = in set_and_calc_slave_port_state() local
377 switch (cur_state) { in set_and_calc_slave_port_state()
/linux-4.4.14/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.4.14/drivers/infiniband/hw/usnic/
Dusnic_ib_main.c120 enum ib_qp_state cur_state; in usnic_ib_qp_grp_modify_active_to_err() local
127 cur_state = qp_grp->state; in usnic_ib_qp_grp_modify_active_to_err()
128 if (cur_state == IB_QPS_INIT || in usnic_ib_qp_grp_modify_active_to_err()
129 cur_state == IB_QPS_RTR || in usnic_ib_qp_grp_modify_active_to_err()
130 cur_state == IB_QPS_RTS) { in usnic_ib_qp_grp_modify_active_to_err()
138 (cur_state), in usnic_ib_qp_grp_modify_active_to_err()
/linux-4.4.14/drivers/net/ethernet/mellanox/mlx5/core/
Dqp.c282 int mlx5_core_qp_modify(struct mlx5_core_dev *dev, enum mlx5_qp_state cur_state, in mlx5_core_qp_modify() argument
328 if (cur_state >= MLX5_QP_NUM_STATE || new_state >= MLX5_QP_NUM_STATE || in mlx5_core_qp_modify()
329 !optab[cur_state][new_state]) in mlx5_core_qp_modify()
333 op = optab[cur_state][new_state]; in mlx5_core_qp_modify()
/linux-4.4.14/drivers/infiniband/hw/mlx4/
Dqp.c1512 enum ib_qp_state cur_state, enum ib_qp_state new_state) in __mlx4_ib_modify_qp() argument
1586 if (cur_state == IB_QPS_RESET && new_state == IB_QPS_INIT) { in __mlx4_ib_modify_qp()
1602 if (cur_state == IB_QPS_SQD && new_state == IB_QPS_SQD && in __mlx4_ib_modify_qp()
1609 if (cur_state == IB_QPS_INIT && new_state == IB_QPS_RTR) { in __mlx4_ib_modify_qp()
1780 if (qp->rq.wqe_cnt && cur_state == IB_QPS_RESET && new_state == IB_QPS_INIT) in __mlx4_ib_modify_qp()
1783 if (cur_state == IB_QPS_INIT && in __mlx4_ib_modify_qp()
1841 if (cur_state == IB_QPS_RTS && new_state == IB_QPS_SQD && in __mlx4_ib_modify_qp()
1847 if (!ibqp->uobject && cur_state == IB_QPS_RESET && new_state == IB_QPS_INIT) in __mlx4_ib_modify_qp()
1856 if (!ibqp->uobject && cur_state == IB_QPS_RESET && new_state == IB_QPS_INIT) { in __mlx4_ib_modify_qp()
1870 err = mlx4_qp_modify(dev->dev, &qp->mtt, to_mlx4_state(cur_state), in __mlx4_ib_modify_qp()
[all …]
/linux-4.4.14/drivers/infiniband/core/
Dverbs.c966 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
972 if (cur_state < 0 || cur_state > IB_QPS_ERR || in ib_modify_qp_is_ok()
977 cur_state != IB_QPS_RTR && cur_state != IB_QPS_RTS && in ib_modify_qp_is_ok()
978 cur_state != IB_QPS_SQD && cur_state != IB_QPS_SQE) in ib_modify_qp_is_ok()
981 if (!qp_state_table[cur_state][next_state].valid) in ib_modify_qp_is_ok()
984 req_param = qp_state_table[cur_state][next_state].req_param[type]; in ib_modify_qp_is_ok()
985 opt_param = qp_state_table[cur_state][next_state].opt_param[type]; in ib_modify_qp_is_ok()
/linux-4.4.14/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.4.14/security/selinux/ss/
Dconditional.h56 int cur_state; member
Dconditional.c96 if (new_state != node->cur_state) { in evaluate_cond_node()
97 node->cur_state = new_state; in evaluate_cond_node()
410 node->cur_state = le32_to_cpu(buf[0]); in cond_read_node()
562 buf[0] = cpu_to_le32(node->cur_state); in cond_write_node()
/linux-4.4.14/net/netfilter/
Dnf_conntrack_proto_sctp.c251 enum sctp_conntrack cur_state, in sctp_new_state() argument
306 sctp_conntrack_names[cur_state]); in sctp_new_state()
307 return cur_state; in sctp_new_state()
311 dir, sctp_conntrack_names[cur_state], chunk_type, in sctp_new_state()
312 sctp_conntrack_names[sctp_conntracks[dir][i][cur_state]]); in sctp_new_state()
314 return sctp_conntracks[dir][i][cur_state]; in sctp_new_state()
/linux-4.4.14/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.4.14/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.4.14/drivers/infiniband/hw/mlx5/
Dqp.c1554 enum ib_qp_state cur_state, enum ib_qp_state new_state) in __mlx5_ib_modify_qp() argument
1684 if (qp->rq.wqe_cnt && cur_state == IB_QPS_RESET && new_state == IB_QPS_INIT) in __mlx5_ib_modify_qp()
1687 if (cur_state == IB_QPS_RTS && new_state == IB_QPS_SQD && in __mlx5_ib_modify_qp()
1693 if (!ibqp->uobject && cur_state == IB_QPS_RESET && new_state == IB_QPS_INIT) in __mlx5_ib_modify_qp()
1697 mlx5_cur = to_mlx5_state(cur_state); in __mlx5_ib_modify_qp()
1708 if (cur_state != IB_QPS_RESET && cur_state != IB_QPS_ERR && in __mlx5_ib_modify_qp()
1715 err = mlx5_core_qp_modify(dev->mdev, to_mlx5_state(cur_state), in __mlx5_ib_modify_qp()
1721 if (cur_state == IB_QPS_RESET && new_state == IB_QPS_INIT) in __mlx5_ib_modify_qp()
1765 enum ib_qp_state cur_state, new_state; in mlx5_ib_modify_qp() local
1771 cur_state = attr_mask & IB_QP_CUR_STATE ? attr->cur_qp_state : qp->state; in mlx5_ib_modify_qp()
[all …]
/linux-4.4.14/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.4.14/Documentation/thermal/
Dsysfs-api.txt201 |---cur_state: Current cooling state of the cooling device
398 cur_state
401 - cur_state == 0 means no cooling
402 - cur_state == max_state means the maximum cooling.
444 |---cur_state: 0
449 |---cur_state: 0
Dintel_powerclamp.txt267 cur_state:0
273 $ sudo sh -c "echo 25 > /sys/class/thermal/cooling_device80/cur_state
/linux-4.4.14/drivers/staging/rdma/ipath/
Dipath_qp.c454 enum ib_qp_state cur_state, new_state; in ipath_modify_qp() local
460 cur_state = attr_mask & IB_QP_CUR_STATE ? in ipath_modify_qp()
462 new_state = attr_mask & IB_QP_STATE ? attr->qp_state : cur_state; in ipath_modify_qp()
464 if (!ib_modify_qp_is_ok(cur_state, new_state, ibqp->qp_type, in ipath_modify_qp()
/linux-4.4.14/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.4.14/drivers/gpu/drm/nouveau/nvkm/subdev/pmu/
Dgk20a.c48 int cur_state; member
/linux-4.4.14/drivers/net/ethernet/amd/xgbe/
Dxgbe-mdio.c675 enum xgbe_an cur_state = pdata->an_state; in xgbe_an_state_machine() local
710 cur_state = pdata->an_state; in xgbe_an_state_machine()
748 cur_state); in xgbe_an_state_machine()
765 if (cur_state != pdata->an_state) in xgbe_an_state_machine()
/linux-4.4.14/drivers/video/fbdev/i810/
Di810.h281 u32 cur_state; member
Di810_main.c1569 par->cur_state = mesg.event; in i810fb_suspend()
1600 int cur_state = par->cur_state; in i810fb_resume() local
1602 par->cur_state = PM_EVENT_ON; in i810fb_resume()
1604 if (cur_state == PM_EVENT_FREEZE) { in i810fb_resume()
/linux-4.4.14/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.4.14/drivers/staging/rdma/hfi1/
Dqp.c614 enum ib_qp_state cur_state, new_state; in hfi1_modify_qp() local
625 cur_state = attr_mask & IB_QP_CUR_STATE ? in hfi1_modify_qp()
627 new_state = attr_mask & IB_QP_STATE ? attr->qp_state : cur_state; in hfi1_modify_qp()
629 if (!ib_modify_qp_is_ok(cur_state, new_state, ibqp->qp_type, in hfi1_modify_qp()
864 if (cur_state == IB_QPS_RESET && new_state == IB_QPS_INIT) in hfi1_modify_qp()
/linux-4.4.14/drivers/gpu/drm/i915/
Dintel_display.c1162 bool cur_state; in assert_pll() local
1165 cur_state = !!(val & DPLL_VCO_ENABLE); in assert_pll()
1166 I915_STATE_WARN(cur_state != state, in assert_pll()
1168 state_string(state), state_string(cur_state)); in assert_pll()
1175 bool cur_state; in assert_dsi_pll() local
1181 cur_state = val & DSI_PLL_VCO_EN; in assert_dsi_pll()
1182 I915_STATE_WARN(cur_state != state, in assert_dsi_pll()
1184 state_string(state), state_string(cur_state)); in assert_dsi_pll()
1205 bool cur_state; in assert_shared_dpll() local
1212 cur_state = pll->get_hw_state(dev_priv, pll, &hw_state); in assert_shared_dpll()
[all …]
/linux-4.4.14/include/linux/mlx4/
Dqp.h472 enum mlx4_qp_state cur_state, enum mlx4_qp_state new_state,
/linux-4.4.14/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.4.14/drivers/gpu/drm/vmwgfx/
Dvmwgfx_execbuf.c1787 SVGA3dTextureState *cur_state = (SVGA3dTextureState *) in vmw_cmd_tex_state() local
1802 for (; cur_state < last_state; ++cur_state) { in vmw_cmd_tex_state()
1803 if (likely(cur_state->name != SVGA3D_TS_BIND_TEXTURE)) in vmw_cmd_tex_state()
1806 if (cur_state->stage >= SVGA3D_NUM_TEXTURE_UNITS) { in vmw_cmd_tex_state()
1808 (unsigned) cur_state->stage); in vmw_cmd_tex_state()
1814 &cur_state->value, &res_node); in vmw_cmd_tex_state()
1824 binding.texture_stage = cur_state->stage; in vmw_cmd_tex_state()
/linux-4.4.14/drivers/scsi/megaraid/
Dmegaraid_sas_base.c3450 u32 cur_state; in megasas_transition_to_ready() local
3468 cur_state = MFI_STATE_FAULT; in megasas_transition_to_ready()
3491 cur_state = MFI_STATE_WAIT_HANDSHAKE; in megasas_transition_to_ready()
3507 cur_state = MFI_STATE_BOOT_MESSAGE_PENDING; in megasas_transition_to_ready()
3539 cur_state = MFI_STATE_OPERATIONAL; in megasas_transition_to_ready()
3547 cur_state = MFI_STATE_UNDEFINED; in megasas_transition_to_ready()
3552 cur_state = MFI_STATE_BB_INIT; in megasas_transition_to_ready()
3557 cur_state = MFI_STATE_FW_INIT; in megasas_transition_to_ready()
3562 cur_state = MFI_STATE_FW_INIT_2; in megasas_transition_to_ready()
3567 cur_state = MFI_STATE_DEVICE_SCAN; in megasas_transition_to_ready()
[all …]
/linux-4.4.14/drivers/scsi/lpfc/
Dlpfc_nportdisc.c2537 uint32_t cur_state, rc; in lpfc_disc_state_machine() local
2545 cur_state = ndlp->nlp_state; in lpfc_disc_state_machine()
2551 evt, ndlp->nlp_DID, cur_state, ndlp->nlp_flag); in lpfc_disc_state_machine()
2555 evt, cur_state, ndlp->nlp_DID); in lpfc_disc_state_machine()
2557 func = lpfc_disc_action[(cur_state * NLP_EVT_MAX_EVENT) + evt]; in lpfc_disc_state_machine()
/linux-4.4.14/include/linux/mlx5/
Dqp.h623 int mlx5_core_qp_modify(struct mlx5_core_dev *dev, enum mlx5_qp_state cur_state,
/linux-4.4.14/drivers/scsi/csiostor/
Dt4fw_api_stor.h120 u8 cur_state; member
/linux-4.4.14/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.4.14/drivers/video/fbdev/savage/
Dsavagefb_driver.c2397 int cur_state = par->pm_state; in savagefb_resume() local
2407 if (cur_state == PM_EVENT_FREEZE) { in savagefb_resume()
/linux-4.4.14/include/rdma/
Dib_verbs.h1907 int ib_modify_qp_is_ok(enum ib_qp_state cur_state, enum ib_qp_state next_state,