Home
last modified time | relevance | path

Searched full:ratio (Results 1 – 25 of 88) sorted by relevance

1234

/Zephyr-Core-3.5.0/dts/bindings/tcpc/
Dst,stm32-ucpd.yaml35 Determines the division ratio of a kernel clock pre-scaler
44 Determines the division ratio of a ucpd_clk divider producing
46 The division ratio 15 is to apply for Tx clock at the USB PD 2.0
54 Determines the division ratio of a hbit_clk divider producing
62 Determines the division ratio of a ucpd_clk divider producing
/Zephyr-Core-3.5.0/scripts/native_simulator/native/src/
Dtimer_model.c81 * Ratio of the simulated clock to the real host time
89 * Offset of the simulated time vs the real host time due to drift/clock ratio
105 /* Last host/real time when the ratio was adjusted */
107 /* Last simulated time when the ratio was adjusted */
288 * Set the ratio of the simulated time to host (real) time.
291 void hwtimer_set_rt_ratio(double ratio) in hwtimer_set_rt_ratio() argument
293 clock_ratio = ratio; in hwtimer_set_rt_ratio()
305 * Adjust the ratio of the simulated time by a factor
327 " Ratio adjusted to %f\n", in hwtimer_adjust_rt_ratio()
365 * years after the last clock ratio adjustment (or boot, in hwtimer_get_pseudohost_rtc_time()
[all …]
/Zephyr-Core-3.5.0/boards/posix/native_posix/
Dtimer_model.c91 * Ratio of the simulated clock to the real host time
99 * Offset of the simulated time vs the real host time due to drift/clock ratio
115 /* Last host/real time when the ratio was adjusted */
117 /* Last simulated time when the ratio was adjusted */
301 * Set the ratio of the simulated time to host (real) time.
304 void hwtimer_set_rt_ratio(double ratio) in hwtimer_set_rt_ratio() argument
306 clock_ratio = ratio; in hwtimer_set_rt_ratio()
318 * Adjust the ratio of the simulated time by a factor
340 " Ratio adjusted to %f\n", in hwtimer_adjust_rt_ratio()
378 * years after the last clock ratio adjustment (or native_posix boot, in hwtimer_get_pseudohost_rtc_time()
[all …]
Dtimer_model.h28 void hwtimer_set_rt_ratio(double ratio);
/Zephyr-Core-3.5.0/drivers/adc/
DKconfig.mcux51 bool "Divide ratio is 1"
54 bool "Divide ratio is 2"
57 bool "Divide ratio is 4"
60 bool "Divide ratio is 8"
/Zephyr-Core-3.5.0/dts/bindings/timer/
Dnuclei,systimer.yaml24 clk-divider specifies the division ratio to the CPU frequency that
38 The relationship with the frequency division ratio is as
47 Devision ratio constants can be found in the
/Zephyr-Core-3.5.0/drivers/net/
Dloopback.c69 int loopback_set_packet_drop_ratio(float ratio) in loopback_set_packet_drop_ratio() argument
71 if (ratio < 0.0f || ratio > 1.0f) { in loopback_set_packet_drop_ratio()
74 loopback_packet_drop_ratio = ratio; in loopback_set_packet_drop_ratio()
94 * a ratio of 0.2 will drop one every 5 packets in loopback_send()
/Zephyr-Core-3.5.0/include/zephyr/net/
Dloopback.h22 * @param[in] ratio Value between 0 = no packet loss and 1 = all packets dropped
26 int loopback_set_packet_drop_ratio(float ratio);
/Zephyr-Core-3.5.0/drivers/audio/
Ddmic_nrfx_pdm.c102 uint8_t ratio, in is_better() argument
108 uint32_t act_rate = freq / ratio; in is_better()
112 LOG_DBG("Freq %u, ratio %u, act_rate %u", freq, ratio, act_rate); in is_better()
127 uint8_t ratio, in check_pdm_frequencies() argument
150 uint32_t req_freq = req_rate * ratio; in check_pdm_frequencies()
163 is_better(act_freq, ratio, req_rate, in check_pdm_frequencies()
198 if (is_better(freq_val, ratio, req_rate, in check_pdm_frequencies()
211 * checking next ones for the current ratio after in check_pdm_frequencies()
214 if ((freq_val / ratio) > req_rate) { in check_pdm_frequencies()
244 uint8_t ratio = ratios[r].ratio_val; in find_suitable_clock() local
[all …]
/Zephyr-Core-3.5.0/drivers/ethernet/
Deth_e1000.c404 static int ptp_clock_e1000_rate_adjust(const struct device *dev, double ratio) in ptp_clock_e1000_rate_adjust() argument
414 if (ratio == 1.0f) { in ptp_clock_e1000_rate_adjust()
418 ratio *= context->clk_ratio; in ptp_clock_e1000_rate_adjust()
420 /* Limit possible ratio. */ in ptp_clock_e1000_rate_adjust()
421 if ((ratio > 1.0f + 1.0f/(2 * hw_inc)) || in ptp_clock_e1000_rate_adjust()
422 (ratio < 1.0f - 1.0f/(2 * hw_inc))) { in ptp_clock_e1000_rate_adjust()
426 /* Save new ratio. */ in ptp_clock_e1000_rate_adjust()
427 context->clk_ratio = ratio; in ptp_clock_e1000_rate_adjust()
429 if (ratio < 1.0f) { in ptp_clock_e1000_rate_adjust()
431 val = 1.0f / (hw_inc * (1.0f - ratio)); in ptp_clock_e1000_rate_adjust()
[all …]
/Zephyr-Core-3.5.0/drivers/sensor/stm32_vbat/
Dstm32_vbat.c33 int ratio; member
83 voltage = voltage * cfg->ratio / 1000; /* value of SENSOR_CHAN_VOLTAGE in Volt */ in stm32_vbat_channel_get()
129 .ratio = DT_INST_PROP(inst, ratio), \
/Zephyr-Core-3.5.0/soc/arm/nuvoton_npcx/
DKconfig108 prompt "Core clock to SPI flash clock ratio"
111 This sets the clock ratio (core clock / SPI clock)
114 bool "NPCX SPI clock ratio 1"
119 bool "NPCX SPI clock ratio 2"
/Zephyr-Core-3.5.0/drivers/timer/
DKconfig.riscv_machine28 Specifies the division ratio of the system clock supplied to the Machine Timer.
37 The division ratio should define in devicetree,
/Zephyr-Core-3.5.0/dts/bindings/display/
Dsolomon,ssd1306fb-common.yaml22 multiplex-ratio:
25 description: Multiplex Ratio
/Zephyr-Core-3.5.0/dts/bindings/sensor/
Dst,stm32-vbat.yaml15 ratio:
Dhamamatsu,s11059.yaml17 The gain ratio is 10 times from low to high.
/Zephyr-Core-3.5.0/tests/boards/native_posix/rtc/src/
Dmain.c58 /* This ratio adjustments lead to test speeds 0.25x, 0.5x, 1x, 2x & 4x*/ in ZTEST()
94 posix_print_trace("%i/5: Speed ratio %.2f. Took %.3fms. " in ZTEST()
107 * independently of the real timeness ratio in ZTEST()
/Zephyr-Core-3.5.0/boards/shields/ssd1306/
Dsh1106_128x64.overlay24 multiplex-ratio = <63>;
Dssd1306_128x32.overlay24 multiplex-ratio = <31>;
Dssd1306_128x64.overlay24 multiplex-ratio = <63>;
Dssd1306_128x64_spi.overlay25 multiplex-ratio = <63>;
/Zephyr-Core-3.5.0/drivers/watchdog/
Dwdt_cc32xx.c43 static const uint32_t ratio = CONFIG_SYS_CLOCK_HW_CYCLES_PER_SEC / 1000; in wdt_cc32xx_msToTicks() local
44 static const uint32_t maxMs = MAX_RELOAD_VALUE / ratio; in wdt_cc32xx_msToTicks()
50 return ms * ratio; in wdt_cc32xx_msToTicks()
/Zephyr-Core-3.5.0/dts/bindings/dac/
Datmel,sam-dac.yaml23 Peripheral Clock to DAC Clock Ratio. Prescaler value is calcuated as
/Zephyr-Core-3.5.0/scripts/native_simulator/native/src/include/
Dnsi_timer_model.h27 void hwtimer_set_rt_ratio(double ratio);
/Zephyr-Core-3.5.0/boards/posix/native_posix/doc/
Dindex.rst221 This can be controlled with the ``--rt-ratio=<ratio>`` and ``-rt-drift=<drift>``
224 ``ratio - 1``.
228 In this way if, for example, ``--rt-ratio=2`` is given, the simulated time
240 ``st = (rt - last_rt) * ratio + last_st``
244 ``rt = (st - last_st) / ratio + last_rt``
247 simulated time when the last clock ratio adjustment took place.
298 affected by the simulated time speed ratio.
309 as if the host was also affected by the clock speed ratio and offset

1234