Home
last modified time | relevance | path

Searched refs:scale_needed (Results 1 – 1 of 1) sorted by relevance

/Linux-v6.6/drivers/spi/
Dspi-fsl-dspi.c610 int scale_needed, scale, minscale = INT_MAX; in hz_to_spi_baud() local
613 scale_needed = clkrate / speed_hz; in hz_to_spi_baud()
615 scale_needed++; in hz_to_spi_baud()
620 if (scale >= scale_needed) { in hz_to_spi_baud()
641 int scale_needed, scale, minscale = INT_MAX; in ns_delay_scale() local
646 scale_needed = div_u64_rem((u64)delay_ns * clkrate, NSEC_PER_SEC, in ns_delay_scale()
649 scale_needed++; in ns_delay_scale()
654 if (scale >= scale_needed) { in ns_delay_scale()