/Zephyr-latest/samples/boards/nordic/nrf_sys_event/src/ |
D | main.c | 12 printf("request global constant latency mode\n"); in main() 14 printf("failed to request global constant latency mode\n"); in main() 17 printf("constant latency mode enabled\n"); in main() 19 printf("request global constant latency mode again\n"); in main() 21 printf("failed to request global constant latency mode\n"); in main() 25 printf("release global constant latency mode\n"); in main() 26 printf("constant latency mode will remain enabled\n"); in main() 28 printf("failed to release global constant latency mode\n"); in main() 32 printf("release global constant latency mode again\n"); in main() 33 printf("constant latency mode will be disabled\n"); in main() [all …]
|
/Zephyr-latest/samples/subsys/pm/latency/ |
D | sample.yaml | 2 name: Demonstrate usage of the PM policy latency APIs 4 sample.pm.latency: 20 - "<inf> app: Setting latency constraint: 30ms" 28 - "<inf> dev_test: Adding latency constraint: 20ms" 29 - "<inf> app: Latency constraint changed: 20ms" 36 - "<inf> app: Updating latency constraint: 10ms" 37 - "<inf> app: Latency constraint changed: 10ms" 38 - "<inf> dev_test: Latency constraint changed: 10ms" 42 - "<inf> app: Updating latency constraint: 30ms" 43 - "<inf> app: Latency constraint changed: 20ms" [all …]
|
/Zephyr-latest/samples/subsys/pm/latency/src/ |
D | main.c | 16 static void on_latency_changed(int32_t latency) in on_latency_changed() argument 18 if (latency == SYS_FOREVER_US) { in on_latency_changed() 19 LOG_INF("Latency constraint changed: none"); in on_latency_changed() 21 LOG_INF("Latency constraint changed: %" PRId32 "ms", in on_latency_changed() 22 latency / USEC_PER_MSEC); in on_latency_changed() 40 /* test without any latency constraint */ in main() 48 /* add an application level latency constraint */ in main() 49 LOG_INF("Setting latency constraint: 30ms"); in main() 60 /* open test device (adds its own latency constraint) */ in main() 64 /* test with application + driver latency constraints */ in main() [all …]
|
D | test.c | 20 static void on_latency_changed(int32_t latency) in on_latency_changed() argument 22 if (latency == SYS_FOREVER_US) { in on_latency_changed() 23 LOG_INF("Latency constraint changed: none"); in on_latency_changed() 25 LOG_INF("Latency constraint changed: %" PRId32 "ms", in on_latency_changed() 26 latency / USEC_PER_MSEC); in on_latency_changed() 34 LOG_INF("Adding latency constraint: 20ms"); in dev_test_open() 44 LOG_INF("Removing latency constraint"); in dev_test_close()
|
/Zephyr-latest/subsys/bluetooth/controller/ll_sw/openisa/lll/ |
D | lll_prof.c | 30 /* sample the packet timer, use it to calculate ISR latency in lll_prof_latency_capture() 52 /* get the ISR latency sample */ in lll_prof_cputime_capture() 63 uint8_t latency, cputime, prev; in lll_prof_send() local 70 latency = timestamp_latency - timestamp_radio_end; in lll_prof_send() 72 latency = timestamp_latency - radio_tmr_end_get(); in lll_prof_send() 75 /* check changes in min, avg and max of latency */ in lll_prof_send() 76 if (latency > latency_max) { in lll_prof_send() 77 latency_max = latency; in lll_prof_send() 80 if (latency < latency_min) { in lll_prof_send() 81 latency_min = latency; in lll_prof_send() [all …]
|
/Zephyr-latest/soc/nordic/common/ |
D | mram_latency.h | 8 * nRF SoC specific public APIs for MRAM latency management 9 * @brief Experimental. It will be replaced by the PM latency policy API in the future. 24 /** @brief Request MRAM operations without latency. 27 * an operation to request the MRAM low latency. If initiation of the 37 * with the MRAM latency service. 38 * @retval -EIO if MRAM latency service returned error. 44 /** @brief Request MRAM operations without latency. 50 * @retval -EIO if MRAM latency service returned error. 56 * @brief Safely cancel a request for MRAM operations without latency. 72 * @retval -EIO if MRAM latency service returned error. [all …]
|
D | nrf_sys_event.h | 10 * @brief Request lowest latency for system events 12 * @details System will be configured for lowest latency after first 14 * configured for lowest latency until matching number of calls to 23 * @brief Release low latency request
|
D | Kconfig | 15 bool "MRAM latency manager" 29 bool "Request MRAM without latency at start" 31 When enabled then MRAM configuration without latency is requested
|
/Zephyr-latest/subsys/bluetooth/controller/ll_sw/nordic/lll/ |
D | lll_prof.c | 108 /* sample the packet timer, use it to calculate ISR latency in lll_prof_latency_capture() 121 uint16_t latency; in lll_prof_latency_get() local 125 /* get the ISR latency sample */ in lll_prof_latency_get() 132 latency = latency_get(); in lll_prof_latency_get() 134 return latency; in lll_prof_latency_get() 153 /* get the ISR latency sample */ in lll_prof_cputime_capture() 203 uint16_t latency, cputime, prev; in send() local 211 latency = latency_get(); in send() 213 /* check changes in min, avg and max of latency */ in send() 214 if (latency > latency_max) { in send() [all …]
|
/Zephyr-latest/boards/nordic/nrf5340_audio_dk/ |
D | nrf5340_audio_dk_config.c | 16 nrf_gpiote_latency_t latency; in core_config() local 18 latency = nrf_gpiote_latency_get(NRF_GPIOTE); in core_config() 20 if (latency != NRF_GPIOTE_LATENCY_LOWPOWER) { in core_config() 21 LOG_DBG("Setting gpiote latency to low power"); in core_config()
|
/Zephyr-latest/include/zephyr/pm/ |
D | policy.h | 30 * @brief Callback to notify when maximum latency changes. 32 * @param latency New maximum latency. Positive value represents latency in 33 * microseconds. SYS_FOREVER_US value lifts the latency constraint. Other values 36 typedef void (*pm_policy_latency_changed_cb_t)(int32_t latency); 39 * @brief Latency change subscription. 51 * @brief Latency request. 149 * latency. Once woken up, the CPU will be kept awake until the event has been 277 * @brief Add a new latency requirement. 280 * exceed the given latency value. 282 * @param req Latency request. [all …]
|
/Zephyr-latest/subsys/pm/policy/ |
D | policy_latency.c | 14 /** Lock to synchronize access to the latency request list. */ 16 /** List of maximum latency requests. */ 18 /** Maximum CPU latency in us */ 20 /** Maximum CPU latency in cycles */ 22 /** List of latency change subscribers. */ 25 /** @brief Update maximum allowed latency. */
|
D | Kconfig | 37 bool "Allow gathering latency requirements in standalone mode" 40 This option allows using the pm_policy_latency* APIs to gather latency 43 be useful to perform system-level adjustments based on latency
|
/Zephyr-latest/soc/nordic/nrf54l/ |
D | Kconfig | 70 bool "Force constant-latency mode" 72 In constant latency mode the CPU wakeup latency and the PPI task response 75 and predictable latency will be at the cost of having increased power consumption.
|
/Zephyr-latest/samples/subsys/pm/latency/boards/ |
D | native_sim.overlay | 12 exit-latency-us = <10000>; 18 exit-latency-us = <20000>; 24 exit-latency-us = <30000>;
|
/Zephyr-latest/tests/subsys/pm/policy_api/src/ |
D | main.c | 148 /** Flag to indicate expected latency */ 154 static void on_pm_policy_latency_changed(int32_t latency) in on_pm_policy_latency_changed() argument 156 TC_PRINT("Latency changed to %d\n", latency); in on_pm_policy_latency_changed() 158 zassert_equal(latency, expected_latency); in on_pm_policy_latency_changed() 165 * latency requirements are imposed and CONFIG_PM_POLICY_DEFAULT=y. 173 /* add a latency requirement with a maximum value below the in ZTEST() 174 * latency given by any state, so we should stay active all the time in ZTEST() 184 /* update latency requirement to a value between latencies for in ZTEST() 196 /* add a new latency requirement with a maximum value below the in ZTEST() 197 * latency given by any state, so we should stay active all the time in ZTEST() [all …]
|
/Zephyr-latest/tests/subsys/pm/policy_api/ |
D | app.overlay | 20 exit-latency-us = <10000>; 28 exit-latency-us = <100000>; 36 exit-latency-us = <50000>;
|
/Zephyr-latest/tests/subsys/pm/power_states_api/boards/ |
D | native_sim.overlay | 18 exit-latency-us = <100>; 25 exit-latency-us = <200>; 32 exit-latency-us = <500>;
|
/Zephyr-latest/tests/benchmarks/latency_measure/ |
D | testcase.yaml | 8 benchmark.kernel.latency: 29 benchmark.kernel.latency.stm32: 44 benchmark.kernel.latency.userspace: 60 benchmark.kernel.latency.objcore:
|
/Zephyr-latest/samples/boards/microchip/mec15xxevb_assy6853/power_management/src/ |
D | power_mgmt.c | 25 /* Maximum latency should be less than 300 ms */ 56 /* Instrumentation to measure latency and track entry exit via gpios 73 int64_t latency; in pm_latency_check() local 77 latency = k_uptime_delta(&trigger_time); in pm_latency_check() 78 secs = (int)(latency / SEC_TO_MSEC); in pm_latency_check() 79 msecs = (int)(latency % SEC_TO_MSEC); in pm_latency_check() 80 LOG_INF("PM sleep entry latency %d.%03d seconds", secs, msecs); in pm_latency_check() 83 LOG_WRN("Sleep entry latency is too high"); in pm_latency_check() 88 LOG_WRN("Sleep entry latency is higher than expected"); in pm_latency_check() 304 /* GPIO toggle to measure latency for deep sleep */ in test_pwr_mgmt_multithread() [all …]
|
/Zephyr-latest/drivers/memc/ |
D | memc_mcux_flexspi_aps6408l.c | 45 /* Read Latency code (MR0[4:2]) */ 47 #define APS_6408L_RLC_200 0x10 /* 200MHz input clock read latency */ 48 /* Read Latency type (MR0[5]) */ 50 #define APS_6408L_RLT_VARIABLE 0x0 /* Variable latency */ 59 /* Write latency (MR4[7:5]) */ 61 #define APS_6408L_WLC_200 0x20 /* 200MHz input clock write latency */ 252 /* Set read latency code and type for 200MHz flash clock operation */ in memc_flexspi_aps6408l_init() 256 LOG_ERR("Could not set 200MHz read latency code"); in memc_flexspi_aps6408l_init() 259 /* Set write latency code and type for 200MHz flash clock operation */ in memc_flexspi_aps6408l_init() 262 LOG_ERR("Could not set 200MHz write latency code"); in memc_flexspi_aps6408l_init()
|
/Zephyr-latest/samples/boards/st/power_mgmt/suspend_to_ram/boards/ |
D | nucleo_wba55cg.overlay | 17 exit-latency-us = <50>; 21 exit-latency-us = <100>; 25 exit-latency-us = <1000>;
|
/Zephyr-latest/subsys/bluetooth/controller/ll_sw/ |
D | lll_common.c | 51 * 4. Latency (skipped- and programmed latency) in lll_prepare() 58 prio = MAX(-127, prio - hdr->score - hdr->latency); in lll_prepare() 92 hdr->latency = 0; in lll_done_score()
|
/Zephyr-latest/tests/arch/arm/arm_irq_advanced_features/src/ |
D | arm_zero_latency_irqs.c | 74 "No available IRQ line to configure as zero-latency\n"); in ZTEST() 78 /* Configure the available IRQ line as zero-latency. */ in ZTEST() 91 /* Set the zero-latency IRQ to pending state. */ in ZTEST() 101 /* Confirm test flag is set by the zero-latency ISR handler. */ in ZTEST()
|
/Zephyr-latest/tests/arch/arm/arm_irq_zero_latency_levels/src/ |
D | main.c | 145 "No available IRQ line to configure as zero-latency\n"); in find_unused_irq() 154 * Confirm that a zero-latency interrupt with lower priority will be in ZTEST() 155 * interrupted by a zero-latency interrupt with higher priority. in ZTEST() 167 /* Configure IRQ A as zero-latency interrupt with prio 1 */ in ZTEST() 173 /* Configure irq_b as zero-latency interrupt with prio 0 */ in ZTEST()
|