Lines Matching refs:scaler

96 	uint8_t scaler;  in spi_nxp_s32_getbestfreq()  local
117 scaler = (low + high) / 2U; in spi_nxp_s32_getbestfreq()
120 (prescaler_arr[prescaler] * scaller_arr[scaler]); in spi_nxp_s32_getbestfreq()
127 low = scaler; in spi_nxp_s32_getbestfreq()
130 high = scaler; in spi_nxp_s32_getbestfreq()
136 best_baud->scaler = scaler; in spi_nxp_s32_getbestfreq()
147 if (high == scaler) { in spi_nxp_s32_getbestfreq()
149 scaler = low; in spi_nxp_s32_getbestfreq()
151 scaler = high; in spi_nxp_s32_getbestfreq()
155 (prescaler_arr[prescaler] * scaller_arr[scaler]); in spi_nxp_s32_getbestfreq()
162 best_baud->scaler = scaler; in spi_nxp_s32_getbestfreq()
185 uint8_t scaler, prescaler; in spi_nxp_s32_getbestdelay() local
200 scaler = (low + high) / 2U; in spi_nxp_s32_getbestdelay()
203 * (1U << (scaler + 1)) / clock_frequency; in spi_nxp_s32_getbestdelay()
210 low = scaler; in spi_nxp_s32_getbestdelay()
213 high = scaler; in spi_nxp_s32_getbestdelay()
219 *best_scaler = scaler; in spi_nxp_s32_getbestdelay()
230 if (high == scaler) { in spi_nxp_s32_getbestdelay()
232 scaler = low; in spi_nxp_s32_getbestdelay()
234 scaler = high; in spi_nxp_s32_getbestdelay()
238 * (1U << (scaler + 1)) / clock_frequency; in spi_nxp_s32_getbestdelay()
246 *best_scaler = scaler; in spi_nxp_s32_getbestdelay()
354 data->transfer_cfg.Ctar |= SPI_CTAR_BR(best_baud.scaler) | in spi_nxp_s32_configure()
498 uint8_t scaler, prescaler; in spi_nxp_s32_init() local
541 spi_nxp_s32_getbestdelay(clock_rate, config->sck_cs_delay, &scaler, &prescaler); in spi_nxp_s32_init()
543 ctar |= SPI_CTAR_ASC(scaler) | SPI_CTAR_PASC(prescaler); in spi_nxp_s32_init()
545 spi_nxp_s32_getbestdelay(clock_rate, config->cs_sck_delay, &scaler, &prescaler); in spi_nxp_s32_init()
547 ctar |= SPI_CTAR_CSSCK(scaler) | SPI_CTAR_PCSSCK(prescaler); in spi_nxp_s32_init()
549 spi_nxp_s32_getbestdelay(clock_rate, config->cs_cs_delay, &scaler, &prescaler); in spi_nxp_s32_init()
551 ctar |= SPI_CTAR_DT(scaler) | SPI_CTAR_PDT(prescaler); in spi_nxp_s32_init()