Home
last modified time | relevance | path

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

/Linux-v4.19/drivers/spi/
Dspi-bcm2835aux.c327 unsigned long spi_hz, clk_hz, speed; in bcm2835aux_spi_transfer_one() local
339 spi_hz = tfr->speed_hz; in bcm2835aux_spi_transfer_one()
342 if (spi_hz >= clk_hz / 2) { in bcm2835aux_spi_transfer_one()
344 } else if (spi_hz) { in bcm2835aux_spi_transfer_one()
345 speed = DIV_ROUND_UP(clk_hz, 2 * spi_hz) - 1; in bcm2835aux_spi_transfer_one()
Dspi-bcm2835.c533 unsigned long spi_hz, clk_hz, cdiv; in bcm2835_spi_transfer_one() local
539 spi_hz = tfr->speed_hz; in bcm2835_spi_transfer_one()
542 if (spi_hz >= clk_hz / 2) { in bcm2835_spi_transfer_one()
544 } else if (spi_hz) { in bcm2835_spi_transfer_one()
546 cdiv = DIV_ROUND_UP(clk_hz, spi_hz); in bcm2835_spi_transfer_one()
Dspi-sh-msiof.c259 unsigned long parent_rate, u32 spi_hz) in sh_msiof_spi_set_clk_regs() argument
265 if (!spi_hz || !parent_rate) { in sh_msiof_spi_set_clk_regs()
267 parent_rate, spi_hz); in sh_msiof_spi_set_clk_regs()
271 div = DIV_ROUND_UP(parent_rate, spi_hz); in sh_msiof_spi_set_clk_regs()
287 "Requested SPI transfer rate %d is too low\n", spi_hz); in sh_msiof_spi_set_clk_regs()