Home
last modified time | relevance | path

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

/linux/drivers/iio/adc/
H A Dstm32-dfsdm-adc.c87 unsigned int spi_freq; /* SPI bus clock frequency */ member
746 return snprintf(buf, PAGE_SIZE, "%d\n", adc->spi_freq); in dfsdm_adc_audio_get_spiclk()
751 unsigned int spi_freq) in dfsdm_adc_set_samp_freq() argument
757 oversamp = DIV_ROUND_CLOSEST(spi_freq, sample_freq); in dfsdm_adc_set_samp_freq()
758 if (spi_freq % sample_freq) in dfsdm_adc_set_samp_freq()
761 sample_freq, spi_freq / oversamp); in dfsdm_adc_set_samp_freq()
767 adc->sample_freq = spi_freq / oversamp; in dfsdm_adc_set_samp_freq()
781 unsigned int spi_freq; in dfsdm_adc_audio_set_spiclk() local
789 ret = kstrtoint(buf, 0, &spi_freq); in dfsdm_adc_audio_set_spiclk()
793 if (!spi_freq) in dfsdm_adc_audio_set_spiclk()
[all …]
/linux/drivers/mtd/devices/
H A Dst_spi_fsm.c1896 static void stfsm_set_freq(struct stfsm *fsm, uint32_t spi_freq) in stfsm_set_freq() argument
1907 clk_div = 2 * DIV_ROUND_UP(emi_freq, 2 * spi_freq); in stfsm_set_freq()
1927 emi_freq, spi_freq, clk_div); in stfsm_set_freq()
/linux/drivers/spi/
H A Dspi-mtk-snfi.c1341 unsigned long spi_freq; in mtk_snand_probe() local
1424 spi_freq = clk_get_rate(ms->pad_clk); in mtk_snand_probe()
1425 val = DIV_ROUND_CLOSEST(val, NSEC_PER_SEC / spi_freq); in mtk_snand_probe()