Home
last modified time | relevance | path

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

/linux/include/uapi/linux/
H A Dvirtio_spi.h161 __le32 word_delay_ns; member
/linux/drivers/spi/
H A Dspi-imx.c774 int word_delay_ns; in mx51_ecspi_prepare_transfer() local
776 word_delay_ns = spi_delay_to_ns(&t->word_delay, t); in mx51_ecspi_prepare_transfer()
777 if (word_delay_ns < 0) in mx51_ecspi_prepare_transfer()
778 return word_delay_ns; in mx51_ecspi_prepare_transfer()
780 if (word_delay_ns <= mul_u64_u32_div(NSEC_PER_SEC, in mx51_ecspi_prepare_transfer()
784 } else if (word_delay_ns <= mul_u64_u32_div(NSEC_PER_SEC, in mx51_ecspi_prepare_transfer()
789 word_delay_ns -= mul_u64_u32_div(NSEC_PER_SEC, in mx51_ecspi_prepare_transfer()
793 word_delay_sck = DIV_U64_ROUND_UP((u64)word_delay_ns * spi_imx->spi_bus_clk, in mx51_ecspi_prepare_transfer()
H A Dspi-virtio.c118 th->word_delay_ns = cpu_to_le32(max(cs_word_delay_spi, cs_word_delay_xfer)); in virtio_spi_set_delays()