Home
last modified time | relevance | path

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

/drivers/spi/
Dspi-bcm2835aux.c348 unsigned long spi_hz, clk_hz, speed, spi_used_hz; in bcm2835aux_spi_transfer_one() local
360 spi_hz = tfr->speed_hz; in bcm2835aux_spi_transfer_one()
363 if (spi_hz >= clk_hz / 2) { in bcm2835aux_spi_transfer_one()
365 } else if (spi_hz) { in bcm2835aux_spi_transfer_one()
366 speed = DIV_ROUND_UP(clk_hz, 2 * spi_hz) - 1; in bcm2835aux_spi_transfer_one()
Dspi-bcm2835.c1071 unsigned long spi_hz, clk_hz, cdiv, spi_used_hz; in bcm2835_spi_transfer_one() local
1076 spi_hz = tfr->speed_hz; in bcm2835_spi_transfer_one()
1079 if (spi_hz >= clk_hz / 2) { in bcm2835_spi_transfer_one()
1081 } else if (spi_hz) { in bcm2835_spi_transfer_one()
1083 cdiv = DIV_ROUND_UP(clk_hz, spi_hz); in bcm2835_spi_transfer_one()
Dspi-sh-msiof.c265 unsigned long parent_rate, u32 spi_hz) in sh_msiof_spi_set_clk_regs() argument
271 if (!spi_hz || !parent_rate) { in sh_msiof_spi_set_clk_regs()
273 parent_rate, spi_hz); in sh_msiof_spi_set_clk_regs()
277 div = DIV_ROUND_UP(parent_rate, spi_hz); in sh_msiof_spi_set_clk_regs()
293 "Requested SPI transfer rate %d is too low\n", spi_hz); in sh_msiof_spi_set_clk_regs()