Searched refs:bus_hz (Results 1 – 8 of 8) sorted by relevance
/drivers/mmc/host/ |
D | dw_mmc-rockchip.c | 29 host->bus_hz /= RK3288_CLKGEN_DIV; in dw_mci_rk3288_setup_clock() 38 u32 bus_hz; in dw_mci_rk3288_set_ios() local 60 bus_hz = clk_get_rate(host->ciu_clk) / RK3288_CLKGEN_DIV; in dw_mci_rk3288_set_ios() 61 if (bus_hz != host->bus_hz) { in dw_mci_rk3288_set_ios() 62 host->bus_hz = bus_hz; in dw_mci_rk3288_set_ios()
|
D | dw_mmc.c | 797 div = host->bus_hz / clock; in dw_mci_setup_bus() 798 if (host->bus_hz % clock && host->bus_hz > clock) in dw_mci_setup_bus() 805 div = (host->bus_hz != clock) ? DIV_ROUND_UP(div, 2) : 0; in dw_mci_setup_bus() 810 slot->id, host->bus_hz, clock, in dw_mci_setup_bus() 811 div ? ((host->bus_hz / div) >> 1) : in dw_mci_setup_bus() 812 host->bus_hz, div); in dw_mci_setup_bus() 2500 pdata->bus_hz = clock_frequency; in dw_mci_parse_dt() 2556 host->bus_hz = host->pdata->bus_hz; in dw_mci_probe() 2564 if (host->pdata->bus_hz) { in dw_mci_probe() 2565 ret = clk_set_rate(host->ciu_clk, host->pdata->bus_hz); in dw_mci_probe() [all …]
|
D | dw_mmc-k3.c | 29 host->bus_hz = clk_get_rate(host->ciu_clk); in dw_mci_k3_set_ios()
|
D | atmel-mci.c | 212 unsigned long bus_hz; member 620 return us * (DIV_ROUND_UP(host->bus_hz, 2000000)); in atmci_ns_to_clocks() 1326 clkdiv = DIV_ROUND_UP(host->bus_hz, clock_min) - 2; in atmci_set_ios() 1330 clock_min, host->bus_hz / 2); in atmci_set_ios() 1335 clock_min, host->bus_hz / (511 + 2)); in atmci_set_ios() 1341 clkdiv = DIV_ROUND_UP(host->bus_hz, 2 * clock_min) - 1; in atmci_set_ios() 1345 clock_min, host->bus_hz / (2 * 256)); in atmci_set_ios() 2173 mmc->f_min = DIV_ROUND_UP(host->bus_hz, 512); in atmci_init_slot() 2174 mmc->f_max = host->bus_hz / 2; in atmci_init_slot() 2424 host->bus_hz = clk_get_rate(host->mck); in atmci_probe()
|
D | dw_mmc-pci.c | 34 .bus_hz = 33 * 1000 * 1000,
|
D | dw_mmc-exynos.c | 122 host->bus_hz = rate / (priv->ciu_div + 1); in dw_mci_exynos_setup_clock() 214 host->bus_hz = actual / div; in dw_mci_exynos_set_ios()
|
/drivers/net/ethernet/xilinx/ |
D | ll_temac_mdio.c | 62 const u32 *bus_hz; in temac_mdio_setup() local 69 bus_hz = of_get_property(np, "clock-frequency", &size); in temac_mdio_setup() 70 if (bus_hz && size >= sizeof(*bus_hz)) { in temac_mdio_setup() 71 clk_div = (*bus_hz) / (2500 * 1000 * 2) - 1; in temac_mdio_setup()
|
/drivers/spi/ |
D | spi-atmel.c | 683 unsigned long bus_hz; in atmel_spi_set_xfer_speed() local 686 bus_hz = clk_get_rate(as->clk); in atmel_spi_set_xfer_speed() 688 bus_hz /= 2; in atmel_spi_set_xfer_speed() 695 scbr = DIV_ROUND_UP(bus_hz, xfer->speed_hz); in atmel_spi_set_xfer_speed() 710 xfer->speed_hz, scbr, bus_hz/255); in atmel_spi_set_xfer_speed() 716 xfer->speed_hz, scbr, bus_hz); in atmel_spi_set_xfer_speed()
|