Searched refs:spi_hz (Results 1 - 8 of 8) sorted by relevance
/kernel/linux/linux-5.10/drivers/spi/ |
H A D | spi-bcm2835aux.c | 348 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()
|
H A D | spi-bcm2835.c | 1087 unsigned long spi_hz, cdiv; in bcm2835_spi_transfer_one() local 1092 spi_hz = tfr->speed_hz; in bcm2835_spi_transfer_one() 1094 if (spi_hz >= bs->clk_hz / 2) { in bcm2835_spi_transfer_one() 1096 } else if (spi_hz) { in bcm2835_spi_transfer_one() 1098 cdiv = DIV_ROUND_UP(bs->clk_hz, spi_hz); in bcm2835_spi_transfer_one()
|
H A D | spi-sh-msiof.c | 265 unsigned long parent_rate, u32 spi_hz) in sh_msiof_spi_set_clk_regs() 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() 264 sh_msiof_spi_set_clk_regs(struct sh_msiof_spi_priv *p, unsigned long parent_rate, u32 spi_hz) sh_msiof_spi_set_clk_regs() argument
|
/kernel/linux/linux-6.6/drivers/spi/ |
H A D | spi-rzv2m-csi.c | 343 static void rzv2m_csi_setup_clock(struct rzv2m_csi_priv *csi, u32 spi_hz) in rzv2m_csi_setup_clock() argument 362 spi_hz = spi_hz > CSI_MAX_SPI_SCKO ? CSI_MAX_SPI_SCKO : spi_hz; in rzv2m_csi_setup_clock() 364 cks = DIV_ROUND_UP(csiclk_rate, spi_hz << 1); in rzv2m_csi_setup_clock()
|
H A D | spi-bcm2835aux.c | 345 unsigned long spi_hz, clk_hz, speed; in bcm2835aux_spi_transfer_one() local 357 spi_hz = tfr->speed_hz; in bcm2835aux_spi_transfer_one() 360 if (spi_hz >= clk_hz / 2) { in bcm2835aux_spi_transfer_one() 362 } else if (spi_hz) { in bcm2835aux_spi_transfer_one() 363 speed = DIV_ROUND_UP(clk_hz, 2 * spi_hz) - 1; in bcm2835aux_spi_transfer_one()
|
H A D | spi-microchip-core.c | 424 unsigned long clk_hz, spi_hz, clk_gen; in mchp_corespi_calculate_clkgen() local 429 spi_hz = min(target_hz, clk_hz); in mchp_corespi_calculate_clkgen() 441 clk_gen = DIV_ROUND_UP(clk_hz, 2 * spi_hz) - 1; in mchp_corespi_calculate_clkgen() 443 clk_gen = DIV_ROUND_UP(clk_hz, spi_hz); in mchp_corespi_calculate_clkgen()
|
H A D | spi-sh-msiof.c | 268 u32 spi_hz = t->speed_hz; in sh_msiof_spi_set_clk_regs() local 272 if (!spi_hz || !parent_rate) { in sh_msiof_spi_set_clk_regs() 274 parent_rate, spi_hz); in sh_msiof_spi_set_clk_regs() 278 div = DIV_ROUND_UP(parent_rate, spi_hz); in sh_msiof_spi_set_clk_regs() 294 "Requested SPI transfer rate %d is too low\n", spi_hz); in sh_msiof_spi_set_clk_regs()
|
H A 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()
|
Completed in 13 milliseconds