Searched refs:clk_hz (Results 1 - 5 of 5) sorted by relevance

/linux-4.4.14/drivers/spi/
H A Dspi-bcm2835aux.c322 unsigned long spi_hz, clk_hz, speed; bcm2835aux_spi_transfer_one() local
340 clk_hz = clk_get_rate(bs->clk); bcm2835aux_spi_transfer_one()
342 if (spi_hz >= clk_hz / 2) { bcm2835aux_spi_transfer_one()
345 speed = DIV_ROUND_UP(clk_hz, 2 * spi_hz) - 1; bcm2835aux_spi_transfer_one()
353 spi_used_hz = clk_hz / (2 * (speed + 1)); bcm2835aux_spi_transfer_one()
398 unsigned long clk_hz; bcm2835aux_spi_probe() local
447 clk_hz = clk_get_rate(bs->clk); bcm2835aux_spi_probe()
448 if (!clk_hz) { bcm2835aux_spi_probe()
H A Dspi-bcm2835.c533 unsigned long spi_hz, clk_hz, cdiv; bcm2835_spi_transfer_one() local
540 clk_hz = clk_get_rate(bs->clk); bcm2835_spi_transfer_one()
542 if (spi_hz >= clk_hz / 2) { bcm2835_spi_transfer_one()
543 cdiv = 2; /* clk_hz/2 is the fastest we can go */ bcm2835_spi_transfer_one()
546 cdiv = DIV_ROUND_UP(clk_hz, spi_hz); bcm2835_spi_transfer_one()
554 spi_used_hz = cdiv ? (clk_hz / cdiv) : (clk_hz / 65536); bcm2835_spi_transfer_one()
/linux-4.4.14/drivers/i2c/busses/
H A Di2c-xlp9xx.c86 u32 clk_hz; member in struct:xlp9xx_i2c_dev
215 prescale = DIV_ROUND_UP(XLP9XX_I2C_IP_CLK_FREQ, priv->clk_hz); xlp9xx_i2c_init()
357 priv->clk_hz = freq; xlp9xx_i2c_get_frequency()
/linux-4.4.14/drivers/media/rc/img-ir/
H A Dimg-ir-hw.h226 * @clk_hz: Current core clock rate in Hz.
244 unsigned long clk_hz; member in struct:img_ir_priv_hw
H A Dimg-ir-hw.c603 img_ir_decoder_convert(decoder, &hw->reg_timings, hw->clk_hz); img_ir_set_decoder()
909 if (hw->clk_hz == change->new_rate) img_ir_change_frequency()
911 hw->clk_hz = change->new_rate; img_ir_change_frequency()
915 hw->clk_hz); img_ir_change_frequency()
1061 hw->clk_hz = clk_get_rate(priv->clk); img_ir_probe_hw()
1070 hw->clk_hz = 32768; img_ir_probe_hw()

Completed in 172 milliseconds