Lines Matching refs:max_hz
134 unsigned int max_hz; member
199 unsigned int max_hz = mxcs->max_hz; in spi_cfg_mxc() local
204 div = DIV_ROUND_UP(clk_src, max_hz); in spi_cfg_mxc()
208 max_hz, div, clk_src / (4 << div)); in spi_cfg_mxc()
239 unsigned int max_hz = mxcs->max_hz; in spi_cfg_mxc() local
252 if (clk_src > max_hz) { in spi_cfg_mxc()
253 pre_div = (clk_src - 1) / max_hz; in spi_cfg_mxc()
260 max_hz); in spi_cfg_mxc()
537 unsigned int max_hz, unsigned int mode) in spi_setup_slave() argument
545 if (max_hz == 0) { in spi_setup_slave()
565 mxcs->max_hz = max_hz; in spi_setup_slave()
630 mxcs->max_hz = clk_get_rate(&clk); in mxc_spi_probe()
632 mxcs->max_hz = fdtdec_get_int(blob, node, "spi-max-frequency", in mxc_spi_probe()
667 mxcs->max_hz = speed; in mxc_spi_set_speed()