Searched refs:clk_hz (Results 1 – 7 of 7) sorted by relevance
/Linux-v5.4/drivers/spi/ |
D | spi-bcm2835aux.c | 348 unsigned long spi_hz, clk_hz, speed, spi_used_hz; in bcm2835aux_spi_transfer_one() local 361 clk_hz = clk_get_rate(bs->clk); in bcm2835aux_spi_transfer_one() 363 if (spi_hz >= clk_hz / 2) { in bcm2835aux_spi_transfer_one() 366 speed = DIV_ROUND_UP(clk_hz, 2 * spi_hz) - 1; in bcm2835aux_spi_transfer_one() 377 spi_used_hz = clk_hz / (2 * (speed + 1)); in bcm2835aux_spi_transfer_one() 494 unsigned long clk_hz; in bcm2835aux_spi_probe() local 553 clk_hz = clk_get_rate(bs->clk); in bcm2835aux_spi_probe() 554 if (!clk_hz) { in bcm2835aux_spi_probe()
|
D | spi-npcm-pspi.c | 344 unsigned long clk_hz; in npcm_pspi_probe() local 412 clk_hz = clk_get_rate(priv->clk); in npcm_pspi_probe() 414 master->max_speed_hz = DIV_ROUND_UP(clk_hz, NPCM_PSPI_MIN_CLK_DIVIDER); in npcm_pspi_probe() 415 master->min_speed_hz = DIV_ROUND_UP(clk_hz, NPCM_PSPI_MAX_CLK_DIVIDER); in npcm_pspi_probe()
|
D | spi-bcm2835.c | 1071 unsigned long spi_hz, clk_hz, cdiv, spi_used_hz; in bcm2835_spi_transfer_one() local 1077 clk_hz = clk_get_rate(bs->clk); in bcm2835_spi_transfer_one() 1079 if (spi_hz >= clk_hz / 2) { in bcm2835_spi_transfer_one() 1083 cdiv = DIV_ROUND_UP(clk_hz, spi_hz); in bcm2835_spi_transfer_one() 1091 spi_used_hz = cdiv ? (clk_hz / cdiv) : (clk_hz / 65536); in bcm2835_spi_transfer_one()
|
/Linux-v5.4/drivers/media/rc/img-ir/ |
D | img-ir-hw.c | 608 img_ir_decoder_convert(decoder, &hw->reg_timings, hw->clk_hz); in img_ir_set_decoder() 908 if (hw->clk_hz == change->new_rate) in img_ir_change_frequency() 910 hw->clk_hz = change->new_rate; in img_ir_change_frequency() 914 hw->clk_hz); in img_ir_change_frequency() 1059 hw->clk_hz = clk_get_rate(priv->clk); in img_ir_probe_hw() 1068 hw->clk_hz = 32768; in img_ir_probe_hw()
|
D | img-ir-hw.h | 240 unsigned long clk_hz; member
|
/Linux-v5.4/drivers/i2c/busses/ |
D | i2c-xlp9xx.c | 98 u32 clk_hz; member 314 prescale = DIV_ROUND_UP(priv->ip_clk_hz, priv->clk_hz); in xlp9xx_i2c_init() 486 priv->clk_hz = freq; in xlp9xx_i2c_get_frequency()
|
/Linux-v5.4/drivers/net/ethernet/marvell/mvpp2/ |
D | mvpp2_main.c | 2177 static u32 mvpp2_usec_to_cycles(u32 usec, unsigned long clk_hz) in mvpp2_usec_to_cycles() argument 2179 u64 tmp = (u64)clk_hz * usec; in mvpp2_usec_to_cycles() 2186 static u32 mvpp2_cycles_to_usec(u32 cycles, unsigned long clk_hz) in mvpp2_cycles_to_usec() argument 2190 do_div(tmp, clk_hz); in mvpp2_cycles_to_usec()
|