Searched refs:bus_hz (Results 1 – 9 of 9) sorted by relevance
/drivers/net/ethernet/xilinx/ |
D | ll_temac_mdio.c | 68 u32 bus_hz; in temac_mdio_setup() local 74 bus_hz = 0; in temac_mdio_setup() 76 of_property_read_u32(np, "clock-frequency", &bus_hz); in temac_mdio_setup() 78 bus_hz = pdata->mdio_clk_freq; in temac_mdio_setup() 82 if (bus_hz != 0) { in temac_mdio_setup() 83 clk_div = bus_hz / (2500 * 1000 * 2) - 1; in temac_mdio_setup()
|
/drivers/mmc/host/ |
D | dw_mmc-rockchip.c | 32 u32 bus_hz; in dw_mci_rk3288_set_ios() local 56 bus_hz = clk_get_rate(host->ciu_clk) / RK3288_CLKGEN_DIV; in dw_mci_rk3288_set_ios() 57 if (bus_hz != host->bus_hz) { in dw_mci_rk3288_set_ios() 58 host->bus_hz = bus_hz; in dw_mci_rk3288_set_ios() 298 host->bus_hz /= RK3288_CLKGEN_DIV; in dw_mci_rockchip_init()
|
D | dw_mmc-k3.c | 110 host->bus_hz = clk_get_rate(host->ciu_clk); in dw_mci_k3_set_ios() 199 host->bus_hz = clk_get_rate(host->biu_clk); in dw_mci_hi6220_set_ios() 273 host->bus_hz /= (GENCLK_DIV + 1); in dw_mci_hi3660_init() 316 host->bus_hz = actual / (GENCLK_DIV + 1); in dw_mci_hi3660_set_ios() 318 priv->cur_speed = host->bus_hz; in dw_mci_hi3660_set_ios()
|
D | dw_mmc.c | 373 host->bus_hz); in dw_mci_set_cto() 1222 div = host->bus_hz / clock; in dw_mci_setup_bus() 1223 if (host->bus_hz % clock && host->bus_hz > clock) in dw_mci_setup_bus() 1230 div = (host->bus_hz != clock) ? DIV_ROUND_UP(div, 2) : 0; in dw_mci_setup_bus() 1239 slot->id, host->bus_hz, clock, in dw_mci_setup_bus() 1240 div ? ((host->bus_hz / div) >> 1) : in dw_mci_setup_bus() 1241 host->bus_hz, div); in dw_mci_setup_bus() 1276 slot->mmc->actual_clock = div ? ((host->bus_hz / div) >> 1) : in dw_mci_setup_bus() 1277 host->bus_hz; in dw_mci_setup_bus() 1986 host->bus_hz); in dw_mci_set_drto() [all …]
|
D | dw_mmc-pci.c | 29 .bus_hz = 33 * 1000 * 1000,
|
D | atmel-mci.c | 342 unsigned long bus_hz; member 728 return us * (DIV_ROUND_UP(host->bus_hz, 2000000)); in atmci_ns_to_clocks() 1422 clkdiv = DIV_ROUND_UP(host->bus_hz, clock_min) - 2; in atmci_set_ios() 1426 clock_min, host->bus_hz / 2); in atmci_set_ios() 1431 clock_min, host->bus_hz / (511 + 2)); in atmci_set_ios() 1437 clkdiv = DIV_ROUND_UP(host->bus_hz, 2 * clock_min) - 1; in atmci_set_ios() 1441 clock_min, host->bus_hz / (2 * 256)); in atmci_set_ios() 2246 mmc->f_min = DIV_ROUND_UP(host->bus_hz, 512); in atmci_init_slot() 2247 mmc->f_max = host->bus_hz / 2; in atmci_init_slot() 2495 host->bus_hz = clk_get_rate(host->mck); in atmci_probe()
|
D | dw_mmc.h | 201 u32 bus_hz; member 257 unsigned int bus_hz; /* Clock speed at the cclk_in pad */ member
|
D | dw_mmc-exynos.c | 125 host->bus_hz /= (priv->ciu_div + 1); in dw_mci_exynos_priv_init() 291 host->bus_hz = actual / div; in dw_mci_exynos_adjust_clock()
|
/drivers/spi/ |
D | spi-atmel.c | 806 unsigned long bus_hz; in atmel_spi_set_xfer_speed() local 815 bus_hz = as->spi_clk; in atmel_spi_set_xfer_speed() 817 bus_hz /= 2; in atmel_spi_set_xfer_speed() 823 scbr = DIV_ROUND_UP(bus_hz, xfer->speed_hz); in atmel_spi_set_xfer_speed() 832 xfer->speed_hz, scbr, bus_hz/255); in atmel_spi_set_xfer_speed() 838 xfer->speed_hz, scbr, bus_hz); in atmel_spi_set_xfer_speed() 844 xfer->effective_speed_hz = bus_hz / scbr; in atmel_spi_set_xfer_speed()
|