Home
last modified time | relevance | path

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

/Linux-v5.10/drivers/spi/
Dspi-bcm2835aux.c348 unsigned long spi_hz, clk_hz, speed; 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.c1085 unsigned long spi_hz, clk_hz, cdiv; in bcm2835_spi_transfer_one() local
1090 spi_hz = tfr->speed_hz; in bcm2835_spi_transfer_one()
1093 if (spi_hz >= clk_hz / 2) { in bcm2835_spi_transfer_one()
1095 } else if (spi_hz) { in bcm2835_spi_transfer_one()
1097 cdiv = DIV_ROUND_UP(clk_hz, spi_hz); in bcm2835_spi_transfer_one()
Dspi-sh-msiof.c262 unsigned long parent_rate, u32 spi_hz) in sh_msiof_spi_set_clk_regs() argument
268 if (!spi_hz || !parent_rate) { in sh_msiof_spi_set_clk_regs()
270 parent_rate, spi_hz); in sh_msiof_spi_set_clk_regs()
274 div = DIV_ROUND_UP(parent_rate, spi_hz); in sh_msiof_spi_set_clk_regs()
290 "Requested SPI transfer rate %d is too low\n", spi_hz); in sh_msiof_spi_set_clk_regs()