Lines Matching refs:input_hz

569 static cy_rslt_t _cyhal_clock_compute_div(uint64_t input_hz, uint32_t desired_hz, uint32_t divider_…  in _cyhal_clock_compute_div()  argument
572 *div = (input_hz + (desired_hz / 2)) / desired_hz; in _cyhal_clock_compute_div()
577 … ? (uint32_t)abs(_cyhal_utils_calculate_tolerance(tolerance->type, desired_hz, input_hz / *div)) in _cyhal_clock_compute_div()
1736 uint32_t input_hz = Cy_SysClk_ClkPathMuxGetFrequency(pll_idx); in _cyhal_clock_set_frequency_pll() local
1739 .inputFreq = input_hz, in _cyhal_clock_set_frequency_pll()
2255 uint32_t input_hz = Cy_SysClk_ClkHfGetFrequency(0); in _cyhal_clock_set_frequency_fast() local
2256 rslt = _cyhal_clock_compute_div((uint64_t)input_hz, hz, 8, tolerance, &div); in _cyhal_clock_set_frequency_fast()
2258 uint32_t input_hz = Cy_SysClk_ClkHfGetFrequency(1); in _cyhal_clock_set_frequency_fast() local
2259 rslt = _cyhal_clock_compute_div(((uint64_t)input_hz) << 5, hz, 13, tolerance, &div); in _cyhal_clock_set_frequency_fast()
2322 uint32_t input_hz = Cy_SysClk_ClkPeriGetFrequency(); in _cyhal_clock_set_frequency_slow() local
2323 cy_rslt_t rslt = _cyhal_clock_compute_div((uint64_t)input_hz, hz, 8, tolerance, &div); in _cyhal_clock_set_frequency_slow()
2438 uint32_t input_hz = Cy_SysClk_ClkHfGetFrequency(0); in _cyhal_clock_set_frequency_mem() local
2439 cy_rslt_t rslt = _cyhal_clock_compute_div((uint64_t)input_hz, hz, 8, tolerance, &div); in _cyhal_clock_set_frequency_mem()
2495 uint32_t input_hz = Cy_SysClk_ClkHfGetFrequency(0); in _cyhal_clock_set_frequency_peri() local
2496 rslt = _cyhal_clock_compute_div((uint64_t)input_hz, hz, 8, tolerance, &div); in _cyhal_clock_set_frequency_peri()
2508 uint32_t input_hz = Cy_SysClk_ClkHfGetFrequency(clock->channel == 1 ? 1 : 0); in _cyhal_clock_set_frequency_peri() local
2512 …uint32_t input_hz = Cy_SysClk_ClkHfGetFrequency(_cyhal_utils_get_hfclk_for_peri_group(_CYHAL_UTILS… in _cyhal_clock_set_frequency_peri() local
2514 rslt = _cyhal_clock_compute_div((uint64_t)input_hz, hz, 8, tolerance, &div); in _cyhal_clock_set_frequency_peri()
2963 uint32_t input_hz = Cy_SysClk_ClkPeriGetFrequency(); in _cyhal_clock_set_frequency_peripheral() local
2973 uint32_t input_hz = Cy_SysClk_ClkHfGetFrequency(hfclk); in _cyhal_clock_set_frequency_peripheral() local
2979 cy_rslt_t rslt = _cyhal_clock_compute_div((uint64_t)input_hz, hz, bits, tolerance, &div); in _cyhal_clock_set_frequency_peripheral()
2989 … cy_rslt_t rslt = _cyhal_clock_compute_div(((uint64_t)input_hz) << 5, hz, bits, tolerance, &div); in _cyhal_clock_set_frequency_peripheral()