Searched refs:spi_hz (Results 1 – 3 of 3) sorted by relevance
348 unsigned long spi_hz, clk_hz, speed; in bcm2835aux_spi_transfer_one() local360 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()
1050 unsigned long spi_hz, cdiv; in bcm2835_spi_transfer_one() local1055 spi_hz = tfr->speed_hz; in bcm2835_spi_transfer_one()1057 if (spi_hz >= bs->clk_hz / 2) { in bcm2835_spi_transfer_one()1059 } else if (spi_hz) { in bcm2835_spi_transfer_one()1061 cdiv = DIV_ROUND_UP(bs->clk_hz, spi_hz); in bcm2835_spi_transfer_one()
266 u32 spi_hz = t->speed_hz; in sh_msiof_spi_set_clk_regs() local270 if (!spi_hz || !parent_rate) { in sh_msiof_spi_set_clk_regs()272 parent_rate, spi_hz); in sh_msiof_spi_set_clk_regs()276 div = DIV_ROUND_UP(parent_rate, spi_hz); in sh_msiof_spi_set_clk_regs()292 "Requested SPI transfer rate %d is too low\n", spi_hz); in sh_msiof_spi_set_clk_regs()