Home
last modified time | relevance | path

Searched refs:pm (Results 1 – 25 of 137) sorted by relevance

123456

/Zephyr-latest/subsys/pm/
Ddevice_runtime.c50 struct pm_device *pm = dev->pm; in runtime_suspend() local
55 if (!atomic_test_bit(&pm->base.flags, PM_DEVICE_FLAG_RUNTIME_ENABLED)) { in runtime_suspend()
62 ret = k_sem_take(&pm->lock, k_is_in_isr() ? K_NO_WAIT : K_FOREVER); in runtime_suspend()
68 if (pm->base.usage == 0U) { in runtime_suspend()
74 pm->base.usage--; in runtime_suspend()
75 if (pm->base.usage > 0U) { in runtime_suspend()
81 pm->base.state = PM_DEVICE_STATE_SUSPENDING; in runtime_suspend()
82 (void)k_work_schedule(&pm->work, delay); in runtime_suspend()
85 ret = pm->base.action_cb(pm->dev, PM_DEVICE_ACTION_SUSPEND); in runtime_suspend()
87 pm->base.usage++; in runtime_suspend()
[all …]
Ddevice.c45 struct pm_device_base *pm = dev->pm_base; in pm_device_action_run() local
48 if (pm == NULL) { in pm_device_action_run()
53 if (pm->state == action_target_state[action]) { in pm_device_action_run()
56 if (pm->state != action_expected_state[action]) { in pm_device_action_run()
60 ret = pm->action_cb(dev, action); in pm_device_action_run()
77 atomic_set_bit(&pm->flags, PM_DEVICE_FLAG_TURN_ON_FAILED); in pm_device_action_run()
81 pm->state = action_target_state[action]; in pm_device_action_run()
89 pm->state = action_target_state[action]; in pm_device_action_run()
92 atomic_clear_bit(&pm->flags, PM_DEVICE_FLAG_PD_CLAIMED); in pm_device_action_run()
93 atomic_clear_bit(&pm->flags, PM_DEVICE_FLAG_TURN_ON_FAILED); in pm_device_action_run()
[all …]
Dpm.c24 LOG_MODULE_REGISTER(pm, CONFIG_PM_LOG_LEVEL);
149 SYS_PORT_TRACING_FUNC_ENTER(pm, system_suspend, kernel_ticks); in pm_system_suspend()
176 SYS_PORT_TRACING_FUNC_EXIT(pm, system_suspend, ticks, in pm_system_suspend()
189 SYS_PORT_TRACING_FUNC_EXIT(pm, system_suspend, ticks, in pm_system_suspend()
230 SYS_PORT_TRACING_FUNC_EXIT(pm, system_suspend, ticks, in pm_system_suspend()
/Zephyr-latest/tests/subsys/pm/power_mgmt/boards/
Dnative_sim.overlay17 zephyr,pm-device-disabled;
23 compatible = "test-device-pm";
27 compatible = "test-device-pm";
31 compatible = "test-device-pm";
35 compatible = "test-device-pm";
39 compatible = "test-device-pm";
/Zephyr-latest/dts/arm/atmel/
Dsamd20.dtsi22 clocks = <&gclk 0x13>, <&pm 0x20 8>;
33 clocks = <&gclk 0x14>, <&pm 0x20 10>;
44 clocks = <&gclk 0x16>, <&pm 0x20 14>;
55 clocks = <&gclk 26>, <&pm 0x20 18>;
62 clocks = <&gclk 2>, <&pm 0x18 5>;
70 clocks = <&gclk 0xd>, <&pm 0x20 2>;
78 clocks = <&gclk 0xe>, <&pm 0x20 3>;
86 clocks = <&gclk 0xf>, <&pm 0x20 4>;
94 clocks = <&gclk 0x10>, <&pm 0x20 5>;
102 clocks = <&gclk 0x11>, <&pm 0x20 6>;
[all …]
Dsamd21.dtsi42 clocks = <&gclk 0x1d>, <&pm 0x20 14>;
53 clocks = <&gclk 26>, <&pm 0x20 8>;
67 clocks = <&gclk 26>, <&pm 0x20 9>;
81 clocks = <&gclk 27>, <&pm 0x20 10>;
95 clocks = <&gclk 33>, <&pm 0x20 18>;
102 clocks = <&gclk 4>, <&pm 0x18 5>;
110 clocks = <&gclk 0x14>, <&pm 0x20 2>;
118 clocks = <&gclk 0x15>, <&pm 0x20 3>;
126 clocks = <&gclk 0x16>, <&pm 0x20 4>;
134 clocks = <&gclk 0x17>, <&pm 0x20 5>;
[all …]
/Zephyr-latest/dts/xtensa/intel/
Dintel_adsp_ace30.dtsi173 zephyr,pm-device-runtime-auto;
184 zephyr,pm-device-runtime-auto;
222 zephyr,pm-device-runtime-auto;
230 zephyr,pm-device-runtime-auto;
238 zephyr,pm-device-runtime-auto;
246 zephyr,pm-device-runtime-auto;
254 zephyr,pm-device-runtime-auto;
262 zephyr,pm-device-runtime-auto;
270 zephyr,pm-device-runtime-auto;
278 zephyr,pm-device-runtime-auto;
[all …]
Dintel_adsp_ace30_ptl.dtsi178 zephyr,pm-device-runtime-auto;
189 zephyr,pm-device-runtime-auto;
227 zephyr,pm-device-runtime-auto;
235 zephyr,pm-device-runtime-auto;
243 zephyr,pm-device-runtime-auto;
251 zephyr,pm-device-runtime-auto;
259 zephyr,pm-device-runtime-auto;
267 zephyr,pm-device-runtime-auto;
275 zephyr,pm-device-runtime-auto;
283 zephyr,pm-device-runtime-auto;
[all …]
Dintel_adsp_ace20_lnl.dtsi183 zephyr,pm-device-runtime-auto;
193 zephyr,pm-device-runtime-auto;
231 zephyr,pm-device-runtime-auto;
255 zephyr,pm-device-runtime-auto;
279 zephyr,pm-device-runtime-auto;
392 zephyr,pm-device-runtime-auto;
407 zephyr,pm-device-runtime-auto;
430 zephyr,pm-device-runtime-auto;
443 zephyr,pm-device-runtime-auto;
483 zephyr,pm-device-runtime-auto;
[all …]
Dintel_adsp_ace15_mtpm.dtsi159 zephyr,pm-device-runtime-auto;
170 zephyr,pm-device-runtime-auto;
301 zephyr,pm-device-runtime-auto;
324 zephyr,pm-device-runtime-auto;
347 zephyr,pm-device-runtime-auto;
487 zephyr,pm-device-runtime-auto;
500 zephyr,pm-device-runtime-auto;
513 zephyr,pm-device-runtime-auto;
528 zephyr,pm-device-runtime-auto;
568 zephyr,pm-device-runtime-auto;
[all …]
/Zephyr-latest/include/zephyr/net/
Dvirtual.h305 pm, data, config, prio, api, mtu) \ argument
306 Z_NET_DEVICE_INIT(node_id, dev_id, name, init_fn, pm, data, \
311 inst, init_fn, pm, data, \ argument
314 init_fn, pm, data, \
340 #define NET_VIRTUAL_INTERFACE_INIT(dev_id, name, init_fn, pm, data, \ argument
343 init_fn, pm, data, config, prio, \
369 init_fn, pm, data, \ argument
373 init_fn, pm, data, config, \
Dethernet.h1161 init_fn, pm, data, config, prio, \ argument
1164 init_fn, pm, data, config, prio, \
1171 init_fn, pm, data, config, prio, \ argument
1175 Z_DEVICE_DT_FLAGS(node_id), pm, data, \
1181 #define Z_ETH_NET_DEVICE_INIT(node_id, dev_id, name, init_fn, pm, data, \ argument
1184 init_fn, pm, data, config, prio, \
1206 #define ETH_NET_DEVICE_INIT(dev_id, name, init_fn, pm, data, config, \ argument
1209 pm, data, config, prio, api, mtu)
1234 pm, data, config, prio, api, mtu) \ argument
1236 instance, init_fn, pm, data, \
[all …]
/Zephyr-latest/include/zephyr/drivers/firmware/scmi/
Dutil.h182 #define DT_INST_SCMI_TRANSPORT_DEFINE(inst, pm, data, config, level, prio, api) \ argument
184 pm, data, config, level, prio, api)
211 #define DT_SCMI_PROTOCOL_DEFINE(node_id, init_fn, pm, data, config, \ argument
215 DEVICE_DT_DEFINE(node_id, init_fn, pm, \
232 #define DT_INST_SCMI_PROTOCOL_DEFINE(inst, init_fn, pm, data, config, \ argument
234 DT_SCMI_PROTOCOL_DEFINE(DT_INST(inst, DT_DRV_COMPAT), init_fn, pm, \
/Zephyr-latest/drivers/sensor/st/lis2ds12/
Dlis2ds12.c43 if ((odr >= LIS2DS12_DT_ODR_1600Hz && cfg->pm != LIS2DS12_DT_HIGH_FREQUENCY) || in lis2ds12_set_odr()
44 (odr < LIS2DS12_DT_ODR_1600Hz && cfg->pm == LIS2DS12_DT_HIGH_FREQUENCY) || in lis2ds12_set_odr()
45 (odr == LIS2DS12_DT_ODR_1Hz_LP && cfg->pm != LIS2DS12_DT_LOW_POWER)) { in lis2ds12_set_odr()
55 val = (cfg->pm == 1) ? LIS2DS12_XL_ODR_12Hz5_LP : in lis2ds12_set_odr()
59 val = (cfg->pm == 1) ? LIS2DS12_XL_ODR_25Hz_LP : in lis2ds12_set_odr()
63 val = (cfg->pm == 1) ? LIS2DS12_XL_ODR_50Hz_LP : in lis2ds12_set_odr()
67 val = (cfg->pm == 1) ? LIS2DS12_XL_ODR_100Hz_LP : in lis2ds12_set_odr()
71 val = (cfg->pm == 1) ? LIS2DS12_XL_ODR_200Hz_LP : in lis2ds12_set_odr()
75 val = (cfg->pm == 1) ? LIS2DS12_XL_ODR_400Hz_LP : in lis2ds12_set_odr()
79 val = (cfg->pm == 1) ? LIS2DS12_XL_ODR_800Hz_LP : in lis2ds12_set_odr()
[all …]
/Zephyr-latest/tests/subsys/pm/power_domain/
Dapp.overlay15 compatible = "test-device-pm";
21 compatible = "test-device-pm";
33 compatible = "test-device-pm";
/Zephyr-latest/tests/subsys/pm/device_runtime_api/
Dapp.overlay3 compatible = "test-device-pm";
5 zephyr,pm-device-runtime-auto;
/Zephyr-latest/soc/intel/intel_ish/intel_ish5/
DKconfig.defconfig.series8 rsource "pm/Kconfig.pm"
/Zephyr-latest/tests/subsys/pm/device_driver_init/
Dapp.overlay20 zephyr,pm-device-runtime-auto;
27 zephyr,pm-device-runtime-auto;
42 zephyr,pm-device-runtime-auto;
/Zephyr-latest/dts/arm/ambiq/
Dambiq_apollo3_blue.dtsi186 zephyr,pm-device-runtime-auto;
197 zephyr,pm-device-runtime-auto;
208 zephyr,pm-device-runtime-auto;
219 zephyr,pm-device-runtime-auto;
230 zephyr,pm-device-runtime-auto;
241 zephyr,pm-device-runtime-auto;
252 zephyr,pm-device-runtime-auto;
263 zephyr,pm-device-runtime-auto;
274 zephyr,pm-device-runtime-auto;
285 zephyr,pm-device-runtime-auto;
[all …]
Dambiq_apollo3p_blue.dtsi204 zephyr,pm-device-runtime-auto;
215 zephyr,pm-device-runtime-auto;
226 zephyr,pm-device-runtime-auto;
237 zephyr,pm-device-runtime-auto;
248 zephyr,pm-device-runtime-auto;
259 zephyr,pm-device-runtime-auto;
270 zephyr,pm-device-runtime-auto;
281 zephyr,pm-device-runtime-auto;
292 zephyr,pm-device-runtime-auto;
303 zephyr,pm-device-runtime-auto;
[all …]
/Zephyr-latest/drivers/counter/
Dcounter_cmos.c138 bool pm; in get_value() local
160 pm = false; in get_value()
162 pm = ((state.hour & HOUR_PM) == HOUR_PM); in get_value()
176 if (pm) { in get_value()
/Zephyr-latest/include/zephyr/
Ddevice.h171 #define DEVICE_DEINIT_DEFINE(dev_id, name, init_fn, deinit_fn, pm, data, \ argument
175 pm, data, config, level, prio, api, \
183 #define DEVICE_DEFINE(dev_id, name, init_fn, pm, data, config, level, prio, \ argument
185 DEVICE_DEINIT_DEFINE(dev_id, name, init_fn, NULL, pm, data, config, \
236 #define DEVICE_DT_DEINIT_DEFINE(node_id, init_fn, deinit_fn, pm, data, config, \ argument
241 Z_DEVICE_DT_FLAGS(node_id), pm, data, config, level, \
252 #define DEVICE_DT_DEFINE(node_id, init_fn, pm, data, config, level, prio, api, \ argument
254 DEVICE_DT_DEINIT_DEFINE(node_id, init_fn, NULL, pm, data, config, \
537 struct pm_device *pm; member
1208 #define Z_DEVICE_BASE_DEFINE(node_id, dev_id, name, init_fn, deinit_fn, flags, pm, data, config, \ argument
[all …]
/Zephyr-latest/drivers/sensor/st/iis2dlpc/
Diis2dlpc.c43 if (cfg->pm == IIS2DLPC_CONT_LOW_PWR_12bit) { in iis2dlpc_set_range()
240 if (cfg->pm == IIS2DLPC_CONT_LOW_PWR_12bit) { in iis2dlpc_sample_fetch()
262 static int iis2dlpc_set_power_mode(stmdev_ctx_t *ctx, iis2dlpc_mode_t pm) in iis2dlpc_set_power_mode() argument
266 switch (pm) { in iis2dlpc_set_power_mode()
271 regval = pm; in iis2dlpc_set_power_mode()
312 LOG_INF("power-mode is %d", cfg->pm); in iis2dlpc_init()
313 if (iis2dlpc_set_power_mode(ctx, cfg->pm)) { in iis2dlpc_init()
450 .pm = DT_INST_PROP(inst, power_mode), \
/Zephyr-latest/tests/drivers/uart/uart_async_api/boards/
Dnrf54h20dk_nrf54h20_common.dtsi46 zephyr,pm-device-runtime-auto;
54 zephyr,pm-device-runtime-auto;
/Zephyr-latest/tests/drivers/uart/uart_elementary/boards/
Dnrf54h20dk_nrf54h20_cpuapp_dual_uart.overlay33 zephyr,pm-device-runtime-auto;
63 zephyr,pm-device-runtime-auto;

123456