Lines Matching +full:track +full:- +full:count
1 .. _pm-device-runtime:
15 on usage count.
29 For devices on a power domain (via the devicetree 'power-domains' property), device runtime
35 on the power domain device (either through the ``zephyr,pm-device-runtime-auto`` devicetree property
49 init -> SUSPENDED;
50 SUSPENDED -> ACTIVE;
51 ACTIVE -> SUSPENDED;
52 ACTIVE -> SUSPENDING [constraint=false]
53 SUSPENDING -> SUSPENDED [constraint=false];
54 SUSPENDED -> SUSPENDING [style=invis];
55 SUSPENDING -> ACTIVE [style=invis];
72 uses reference counting to keep track of device's usage. This allows the API to
92 increase device usage count and resume the device if necessary. Similarly, the
94 is no longer needed. This function will decrease the device usage count and
99 .. figure:: images/devr-sync-ops.svg
114 .. figure:: images/devr-async-ops.svg
124 .. code-block:: c
139 return -ENOTSUP;
156 .. code-block:: c
169 if ((ret < 0) && (ret != -ENOSYS)) {
175 instance by adding the ``zephyr,pm-device-runtime-auto`` flag onto the corresponding
179 .. code-block:: dts
183 zephyr,pm-device-runtime-auto;
189 .. code-block:: c
195 /* "get" device (increases usage count, resumes device if suspended) */
204 /* "put" device (decreases usage count, suspends device if no more users) */
211 .. code-block:: c
217 /* "get" device (increases usage count, resumes device if suspended) */
226 /* "put" device (decreases usage count, schedule suspend if no more users) */