Lines Matching refs:clksrc
255 unsigned long clksrc; in rspi_set_rate() local
258 clksrc = clk_get_rate(rspi->clk); in rspi_set_rate()
259 spbr = DIV_ROUND_UP(clksrc, 2 * rspi->speed_hz) - 1; in rspi_set_rate()
267 rspi->speed_hz = DIV_ROUND_UP(clksrc, (2U << brdv) * (spbr + 1)); in rspi_set_rate()
340 unsigned long clksrc; in qspi_set_config_register() local
347 clksrc = clk_get_rate(rspi->clk); in qspi_set_config_register()
348 if (rspi->speed_hz >= clksrc) { in qspi_set_config_register()
350 rspi->speed_hz = clksrc; in qspi_set_config_register()
352 spbr = DIV_ROUND_UP(clksrc, 2 * rspi->speed_hz); in qspi_set_config_register()
358 rspi->speed_hz = DIV_ROUND_UP(clksrc, (2U << brdv) * spbr); in qspi_set_config_register()
1271 unsigned long clksrc; in rspi_probe() local
1324 clksrc = clk_get_rate(rspi->clk); in rspi_probe()
1325 ctlr->min_speed_hz = DIV_ROUND_UP(clksrc, ops->max_div); in rspi_probe()
1326 ctlr->max_speed_hz = DIV_ROUND_UP(clksrc, ops->min_div); in rspi_probe()