Home
last modified time | relevance | path

Searched refs:bus_hz (Results 1 – 8 of 8) sorted by relevance

/drivers/mmc/host/
Ddw_mmc-rockchip.c29 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()
Ddw_mmc.c797 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 …]
Ddw_mmc-k3.c29 host->bus_hz = clk_get_rate(host->ciu_clk); in dw_mci_k3_set_ios()
Datmel-mci.c212 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()
Ddw_mmc-pci.c34 .bus_hz = 33 * 1000 * 1000,
Ddw_mmc-exynos.c122 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/
Dll_temac_mdio.c62 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/
Dspi-atmel.c683 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()