Searched refs:spi_hz (Results 1 – 4 of 4) sorted by relevance
/linux-6.1.9/drivers/spi/ |
D | spi-bcm2835aux.c | 347 unsigned long spi_hz, clk_hz, speed; in bcm2835aux_spi_transfer_one() local 359 spi_hz = tfr->speed_hz; in bcm2835aux_spi_transfer_one() 362 if (spi_hz >= clk_hz / 2) { in bcm2835aux_spi_transfer_one() 364 } else if (spi_hz) { in bcm2835aux_spi_transfer_one() 365 speed = DIV_ROUND_UP(clk_hz, 2 * spi_hz) - 1; in bcm2835aux_spi_transfer_one()
|
D | spi-microchip-core.c | 433 unsigned long clk_hz, spi_hz, clk_gen; in mchp_corespi_calculate_clkgen() local 438 spi_hz = min(target_hz, clk_hz); in mchp_corespi_calculate_clkgen() 450 clk_gen = DIV_ROUND_UP(clk_hz, 2 * spi_hz) - 1; in mchp_corespi_calculate_clkgen() 452 clk_gen = DIV_ROUND_UP(clk_hz, spi_hz); in mchp_corespi_calculate_clkgen()
|
D | spi-bcm2835.c | 1054 unsigned long spi_hz, cdiv; in bcm2835_spi_transfer_one() local 1059 spi_hz = tfr->speed_hz; in bcm2835_spi_transfer_one() 1061 if (spi_hz >= bs->clk_hz / 2) { in bcm2835_spi_transfer_one() 1063 } else if (spi_hz) { in bcm2835_spi_transfer_one() 1065 cdiv = DIV_ROUND_UP(bs->clk_hz, spi_hz); in bcm2835_spi_transfer_one()
|
D | spi-sh-msiof.c | 266 u32 spi_hz = t->speed_hz; in sh_msiof_spi_set_clk_regs() local 270 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()
|