| /Zephyr-latest/subsys/pm/ | 
| D | device_runtime.c | 50 	struct pm_device *pm = dev->pm;  in runtime_suspend()  local55 	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 …]
 
 | 
| D | device.c | 45 	struct pm_device_base *pm = dev->pm_base;  in pm_device_action_run()  local48 	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 …]
 
 | 
| D | pm.c | 24 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/ | 
| D | native_sim.overlay | 17 				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/ | 
| D | samd20.dtsi | 22 			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 …]
 
 | 
| D | samd21.dtsi | 42 			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/ | 
| D | intel_adsp_ace30.dtsi | 173 			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 …]
 
 | 
| D | intel_adsp_ace30_ptl.dtsi | 178 			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 …]
 
 | 
| D | intel_adsp_ace20_lnl.dtsi | 183 			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 …]
 
 | 
| D | intel_adsp_ace15_mtpm.dtsi | 159 			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/ | 
| D | virtual.h | 305 				     pm, data, config, prio, api, mtu)	\  argument306 	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, \
 
 | 
| D | ethernet.h | 1161 				       init_fn, pm, data, config, prio,	\  argument1164 				   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/ | 
| D | util.h | 182 #define DT_INST_SCMI_TRANSPORT_DEFINE(inst, pm, data, config, level, prio, api)	\  argument184 			      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/ | 
| D | lis2ds12.c | 43 	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/ | 
| D | app.overlay | 15 		compatible = "test-device-pm";21 		compatible = "test-device-pm";
 33 		compatible = "test-device-pm";
 
 | 
| /Zephyr-latest/tests/subsys/pm/device_runtime_api/ | 
| D | app.overlay | 3 		compatible = "test-device-pm";5 		zephyr,pm-device-runtime-auto;
 
 | 
| /Zephyr-latest/soc/intel/intel_ish/intel_ish5/ | 
| D | Kconfig.defconfig.series | 8 rsource "pm/Kconfig.pm"
 | 
| /Zephyr-latest/tests/subsys/pm/device_driver_init/ | 
| D | app.overlay | 20 		zephyr,pm-device-runtime-auto;27 		zephyr,pm-device-runtime-auto;
 42 		zephyr,pm-device-runtime-auto;
 
 | 
| /Zephyr-latest/dts/arm/ambiq/ | 
| D | ambiq_apollo3_blue.dtsi | 186 			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 …]
 
 | 
| D | ambiq_apollo3p_blue.dtsi | 204 			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/ | 
| D | counter_cmos.c | 138 	bool pm;  in get_value()  local160 		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/ | 
| D | device.h | 171 #define DEVICE_DEINIT_DEFINE(dev_id, name, init_fn, deinit_fn, pm, data,       \  argument175 			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/ | 
| D | iis2dlpc.c | 43 	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/ | 
| D | nrf54h20dk_nrf54h20_common.dtsi | 46 	zephyr,pm-device-runtime-auto;54 	zephyr,pm-device-runtime-auto;
 
 | 
| /Zephyr-latest/tests/drivers/uart/uart_elementary/boards/ | 
| D | nrf54h20dk_nrf54h20_cpuapp_dual_uart.overlay | 33 	zephyr,pm-device-runtime-auto;63 	zephyr,pm-device-runtime-auto;
 
 |