Home
last modified time | relevance | path

Searched refs:idle_state (Results 1 – 12 of 12) sorted by relevance

/drivers/cpuidle/
Ddt_idle_states.c21 static int init_state_node(struct cpuidle_state *idle_state, in init_state_node() argument
33 idle_state->enter = match_id->data; in init_state_node()
39 idle_state->enter_s2idle = match_id->data; in init_state_node()
42 &idle_state->exit_latency); in init_state_node()
65 idle_state->exit_latency = entry_latency + exit_latency; in init_state_node()
69 &idle_state->target_residency); in init_state_node()
80 idle_state->flags = 0; in init_state_node()
82 idle_state->flags |= CPUIDLE_FLAG_TIMER_STOP; in init_state_node()
88 strncpy(idle_state->name, state_node->name, CPUIDLE_NAME_LEN - 1); in init_state_node()
89 strncpy(idle_state->desc, desc, CPUIDLE_DESC_LEN - 1); in init_state_node()
[all …]
Dcpuidle-pseries.c327 int idle_state; in pseries_cpuidle_driver_init() local
332 for (idle_state = 0; idle_state < max_idle_state; ++idle_state) { in pseries_cpuidle_driver_init()
334 if (cpuidle_state_table[idle_state].enter == NULL) in pseries_cpuidle_driver_init()
338 cpuidle_state_table[idle_state]; in pseries_cpuidle_driver_init()
Dcpuidle-powernv.c190 int idle_state; in powernv_cpuidle_driver_init() local
195 for (idle_state = 0; idle_state < max_idle_state; ++idle_state) { in powernv_cpuidle_driver_init()
197 if (cpuidle_state_table[idle_state].enter == NULL) in powernv_cpuidle_driver_init()
201 cpuidle_state_table[idle_state]; in powernv_cpuidle_driver_init()
/drivers/mux/
Dgpio.c54 s32 idle_state; in mux_gpio_probe() local
75 ret = device_property_read_u32(dev, "idle-state", (u32 *)&idle_state); in mux_gpio_probe()
76 if (ret >= 0 && idle_state != MUX_IDLE_AS_IS) { in mux_gpio_probe()
77 if (idle_state < 0 || idle_state >= mux_chip->mux->states) { in mux_gpio_probe()
78 dev_err(dev, "invalid idle-state %u\n", idle_state); in mux_gpio_probe()
82 mux_chip->mux->idle_state = idle_state; in mux_gpio_probe()
Dadg792a.c65 s32 idle_state[3]; in adg792a_probe() local
90 (u32 *)idle_state, in adg792a_probe()
93 idle_state[0] = MUX_IDLE_AS_IS; in adg792a_probe()
94 idle_state[1] = MUX_IDLE_AS_IS; in adg792a_probe()
95 idle_state[2] = MUX_IDLE_AS_IS; in adg792a_probe()
103 switch (idle_state[i]) { in adg792a_probe()
107 mux->idle_state = idle_state[i]; in adg792a_probe()
110 dev_err(dev, "invalid idle-state %d\n", idle_state[i]); in adg792a_probe()
Dadgs1408.c59 s32 idle_state; in adgs1408_probe() local
76 ret = device_property_read_u32(dev, "idle-state", (u32 *)&idle_state); in adgs1408_probe()
78 idle_state = MUX_IDLE_AS_IS; in adgs1408_probe()
87 switch (idle_state) { in adgs1408_probe()
92 if (idle_state < mux->states) { in adgs1408_probe()
93 mux->idle_state = idle_state; in adgs1408_probe()
98 dev_err(dev, "invalid idle-state %d\n", idle_state); in adgs1408_probe()
Dmmio.c77 s32 idle_state = MUX_IDLE_AS_IS; in mux_mmio_probe() local
114 (u32 *)&idle_state); in mux_mmio_probe()
115 if (idle_state != MUX_IDLE_AS_IS) { in mux_mmio_probe()
116 if (idle_state < 0 || idle_state >= mux->states) { in mux_mmio_probe()
118 i, idle_state); in mux_mmio_probe()
122 mux->idle_state = idle_state; in mux_mmio_probe()
Dcore.c118 mux->idle_state = MUX_IDLE_AS_IS; in mux_chip_alloc()
155 if (mux->idle_state == mux->cached_state) in mux_chip_register()
158 ret = mux_control_set(mux, mux->idle_state); in mux_chip_register()
311 if (mux->idle_state != MUX_IDLE_AS_IS) in __mux_control_select()
312 mux_control_set(mux, mux->idle_state); in __mux_control_select()
398 if (mux->idle_state != MUX_IDLE_AS_IS && in mux_control_deselect()
399 mux->idle_state != mux->cached_state) in mux_control_deselect()
400 ret = mux_control_set(mux, mux->idle_state); in mux_control_deselect()
/drivers/i2c/muxes/
Di2c-mux-pca954x.c84 s32 idle_state; member
255 s32 idle_state; in pca954x_deselect_mux() local
257 idle_state = READ_ONCE(data->idle_state); in pca954x_deselect_mux()
258 if (idle_state >= 0) in pca954x_deselect_mux()
260 return pca954x_select_chan(muxc, idle_state); in pca954x_deselect_mux()
262 if (idle_state == MUX_IDLE_DISCONNECT) { in pca954x_deselect_mux()
282 return sprintf(buf, "%d\n", READ_ONCE(data->idle_state)); in idle_state_show()
305 WRITE_ONCE(data->idle_state, val); in idle_state_store()
318 static DEVICE_ATTR_RW(idle_state);
399 if (data->idle_state >= 0) in pca954x_init()
[all …]
/drivers/base/
Dpinctrl.c76 dev->pins->idle_state = pinctrl_lookup_state(dev->pins->p, in pinctrl_bind_pins()
78 if (IS_ERR(dev->pins->idle_state)) in pinctrl_bind_pins()
/drivers/macintosh/
Dvia-cuda.c600 idle_state: in cuda_interrupt()
625 goto idle_state; in cuda_interrupt()
/drivers/pinctrl/
Dcore.c1616 return pinctrl_select_bound_state(dev, dev->pins->idle_state); in pinctrl_pm_select_idle_state()