Home
last modified time | relevance | path

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

/linux-6.6.21/drivers/cpuidle/
Ddt_idle_states.c20 static int init_state_node(struct cpuidle_state *idle_state, in init_state_node() argument
32 idle_state->enter = match_id->data; in init_state_node()
38 idle_state->enter_s2idle = match_id->data; in init_state_node()
41 &idle_state->exit_latency); in init_state_node()
64 idle_state->exit_latency = entry_latency + exit_latency; in init_state_node()
68 &idle_state->target_residency); in init_state_node()
79 idle_state->flags = CPUIDLE_FLAG_RCU_IDLE; in init_state_node()
81 idle_state->flags |= CPUIDLE_FLAG_TIMER_STOP; in init_state_node()
87 strncpy(idle_state->name, state_node->name, CPUIDLE_NAME_LEN - 1); in init_state_node()
88 strncpy(idle_state->desc, desc, CPUIDLE_DESC_LEN - 1); in init_state_node()
[all …]
Dcpuidle-pseries.c331 int idle_state; in pseries_cpuidle_driver_init() local
336 for (idle_state = 0; idle_state < max_idle_state; ++idle_state) { in pseries_cpuidle_driver_init()
338 if (cpuidle_state_table[idle_state].enter == NULL) in pseries_cpuidle_driver_init()
342 cpuidle_state_table[idle_state]; in pseries_cpuidle_driver_init()
Dcpuidle-powernv.c193 int idle_state; in powernv_cpuidle_driver_init() local
198 for (idle_state = 0; idle_state < max_idle_state; ++idle_state) { in powernv_cpuidle_driver_init()
200 if (cpuidle_state_table[idle_state].enter == NULL) in powernv_cpuidle_driver_init()
204 cpuidle_state_table[idle_state]; in powernv_cpuidle_driver_init()
/linux-6.6.21/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()
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()
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()
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.c131 mux->idle_state = MUX_IDLE_AS_IS; in mux_chip_alloc()
171 if (mux->idle_state == mux->cached_state) in mux_chip_register()
174 ret = mux_control_set(mux, mux->idle_state); in mux_chip_register()
327 if (mux->idle_state != MUX_IDLE_AS_IS) in __mux_control_select()
328 mux_control_set(mux, mux->idle_state); in __mux_control_select()
482 if (mux->idle_state != MUX_IDLE_AS_IS && in mux_control_deselect()
483 mux->idle_state != mux->cached_state) in mux_control_deselect()
484 ret = mux_control_set(mux, mux->idle_state); in mux_control_deselect()
/linux-6.6.21/drivers/i2c/muxes/
Di2c-mux-pca954x.c97 s32 idle_state; member
322 s32 idle_state; in pca954x_deselect_mux() local
324 idle_state = READ_ONCE(data->idle_state); in pca954x_deselect_mux()
325 if (idle_state >= 0) in pca954x_deselect_mux()
327 return pca954x_select_chan(muxc, idle_state); in pca954x_deselect_mux()
329 if (idle_state == MUX_IDLE_DISCONNECT) { in pca954x_deselect_mux()
349 return sprintf(buf, "%d\n", READ_ONCE(data->idle_state)); in idle_state_show()
372 WRITE_ONCE(data->idle_state, val); in idle_state_store()
385 static DEVICE_ATTR_RW(idle_state);
468 if (data->idle_state >= 0) in pca954x_init()
[all …]
/linux-6.6.21/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()
/linux-6.6.21/arch/arm/mach-omap2/
Dpm33xx-core.c421 struct amx3_idle_state *idle_state = &idle_states[index]; in amx3_idle_enter() local
423 if (!idle_state) in amx3_idle_enter()
427 idle_fn(idle_state->wfi_flags); in amx3_idle_enter()
/linux-6.6.21/arch/powerpc/platforms/powernv/
Didle.c230 unsigned long *state = &paca_ptrs[first]->idle_state; in atomic_start_thread_idle()
240 unsigned long *state = &paca_ptrs[first]->idle_state; in atomic_stop_thread_idle()
260 unsigned long *state = &paca_ptrs[first]->idle_state; in atomic_unlock_and_stop_thread_idle()
318 unsigned long *state = &paca_ptrs[first]->idle_state; in power7_idle_insn()
612 unsigned long *state = &paca_ptrs[first]->idle_state; in power9_idle_stop()
897 unsigned long *state = &paca_ptrs[first]->idle_state; in power10_idle_stop()
1437 p->idle_state = 0; in pnv_init_idle_states()
1439 p->idle_state = (1 << threads_per_core) - 1; in pnv_init_idle_states()
/linux-6.6.21/include/linux/pinctrl/
Ddevinfo.h42 struct pinctrl_state *idle_state; member
/linux-6.6.21/include/linux/mux/
Ddriver.h51 int idle_state; member
/linux-6.6.21/kernel/sched/
Didle.c17 void sched_idle_set_state(struct cpuidle_state *idle_state) in sched_idle_set_state() argument
19 idle_set_state(this_rq(), idle_state); in sched_idle_set_state()
Dsched.h1135 struct cpuidle_state *idle_state; member
2401 struct cpuidle_state *idle_state) in idle_set_state() argument
2403 rq->idle_state = idle_state; in idle_set_state()
2410 return rq->idle_state; in idle_get_state()
2414 struct cpuidle_state *idle_state) in idle_set_state() argument
/linux-6.6.21/Documentation/ABI/testing/
Dsysfs-bus-i2c-devices-pca954x1 What: /sys/bus/i2c/.../idle_state
/linux-6.6.21/arch/powerpc/include/asm/
Dpaca.h191 unsigned long idle_state; member
/linux-6.6.21/drivers/macintosh/
Dvia-cuda.c597 idle_state: in cuda_interrupt()
622 goto idle_state; in cuda_interrupt()
/linux-6.6.21/include/linux/
Dcpuidle.h267 extern void sched_idle_set_state(struct cpuidle_state *idle_state);
/linux-6.6.21/Documentation/i2c/
Di2c-sysfs.rst208 channel-2 idle_state of_node uevent
245 channel-1 channel-5 idle_state power
/linux-6.6.21/drivers/pinctrl/
Dcore.c1630 return pinctrl_select_bound_state(dev, dev->pins->idle_state); in pinctrl_pm_select_idle_state()
/linux-6.6.21/arch/powerpc/xmon/
Dxmon.c2721 DUMP(p, idle_state, "%#-*lx"); in dump_one_paca()