Home
last modified time | relevance | path

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

/drivers/mmc/host/
Ddw_mmc-rockchip.c34 u32 bus_hz; in dw_mci_rk3288_set_ios() local
59 bus_hz = clk_get_rate(host->ciu_clk) / RK3288_CLKGEN_DIV; in dw_mci_rk3288_set_ios()
60 if (bus_hz != host->bus_hz) { in dw_mci_rk3288_set_ios()
61 host->bus_hz = bus_hz; in dw_mci_rk3288_set_ios()
290 host->bus_hz /= RK3288_CLKGEN_DIV; in dw_mci_rockchip_init()
Ddw_mmc-k3.c49 host->bus_hz = clk_get_rate(host->ciu_clk); in dw_mci_k3_set_ios()
131 host->bus_hz = clk_get_rate(host->biu_clk); in dw_mci_hi6220_set_ios()
Ddw_mmc.c1170 div = host->bus_hz / clock; in dw_mci_setup_bus()
1171 if (host->bus_hz % clock && host->bus_hz > clock) in dw_mci_setup_bus()
1178 div = (host->bus_hz != clock) ? DIV_ROUND_UP(div, 2) : 0; in dw_mci_setup_bus()
1183 slot->id, host->bus_hz, clock, in dw_mci_setup_bus()
1184 div ? ((host->bus_hz / div) >> 1) : in dw_mci_setup_bus()
1185 host->bus_hz, div); in dw_mci_setup_bus()
1791 drto_ms = DIV_ROUND_UP(drto_clks, host->bus_hz / 1000); in dw_mci_set_drto()
2962 pdata->bus_hz = clock_frequency; in dw_mci_parse_dt()
3040 host->bus_hz = host->pdata->bus_hz; in dw_mci_probe()
3048 if (host->pdata->bus_hz) { in dw_mci_probe()
[all …]
Ddw_mmc-pci.c34 .bus_hz = 33 * 1000 * 1000,
Datmel-mci.c349 unsigned long bus_hz; member
781 return us * (DIV_ROUND_UP(host->bus_hz, 2000000)); in atmci_ns_to_clocks()
1478 clkdiv = DIV_ROUND_UP(host->bus_hz, clock_min) - 2; in atmci_set_ios()
1482 clock_min, host->bus_hz / 2); in atmci_set_ios()
1487 clock_min, host->bus_hz / (511 + 2)); in atmci_set_ios()
1493 clkdiv = DIV_ROUND_UP(host->bus_hz, 2 * clock_min) - 1; in atmci_set_ios()
1497 clock_min, host->bus_hz / (2 * 256)); in atmci_set_ios()
2319 mmc->f_min = DIV_ROUND_UP(host->bus_hz, 512); in atmci_init_slot()
2320 mmc->f_max = host->bus_hz / 2; in atmci_init_slot()
2561 host->bus_hz = clk_get_rate(host->mck); in atmci_probe()
Ddw_mmc-exynos.c129 host->bus_hz /= (priv->ciu_div + 1); in dw_mci_exynos_priv_init()
276 host->bus_hz = actual / div; in dw_mci_exynos_adjust_clock()
/drivers/net/ethernet/xilinx/
Dll_temac_mdio.c62 u32 bus_hz; in temac_mdio_setup() local
69 if (of_property_read_u32(np, "clock-frequency", &bus_hz) == 0) { in temac_mdio_setup()
70 clk_div = bus_hz / (2500 * 1000 * 2) - 1; in temac_mdio_setup()
/drivers/spi/
Dspi-atmel.c864 unsigned long bus_hz; in atmel_spi_set_xfer_speed() local
867 bus_hz = clk_get_rate(as->clk); in atmel_spi_set_xfer_speed()
869 bus_hz /= 2; in atmel_spi_set_xfer_speed()
875 scbr = DIV_ROUND_UP(bus_hz, xfer->speed_hz); in atmel_spi_set_xfer_speed()
884 xfer->speed_hz, scbr, bus_hz/255); in atmel_spi_set_xfer_speed()
890 xfer->speed_hz, scbr, bus_hz); in atmel_spi_set_xfer_speed()