Lines Matching refs:fclk_rate
542 unsigned long fclk_rate; in svc_i3c_master_set_speed() local
553 fclk_rate = clk_get_rate(master->fclk); in svc_i3c_master_set_speed()
554 if (!fclk_rate) { in svc_i3c_master_set_speed()
567 odbaud = DIV_ROUND_UP(fclk_rate, bus->scl_rate.i2c * (2 + 2 * ppbaud)) - 1; in svc_i3c_master_set_speed()
589 unsigned long fclk_rate, fclk_period_ns; in svc_i3c_master_bus_init() local
604 fclk_rate = clk_get_rate(master->fclk); in svc_i3c_master_bus_init()
605 if (!fclk_rate) { in svc_i3c_master_bus_init()
610 fclk_period_ns = DIV_ROUND_UP(1000000000, fclk_rate); in svc_i3c_master_bus_init()
619 ppbaud = DIV_ROUND_UP(fclk_rate / 2, i3c_scl_rate) - 1; in svc_i3c_master_bus_init()
629 odbaud = DIV_ROUND_UP(fclk_rate, SVC_I3C_QUICK_I2C_CLK * (1 + ppbaud)) - 2; in svc_i3c_master_bus_init()
650 pplow = DIV_ROUND_UP(fclk_rate, i3c_scl_rate) - (2 + 2 * ppbaud); in svc_i3c_master_bus_init()
655 odbaud = DIV_ROUND_UP(fclk_rate, i2c_scl_rate * (2 + 2 * ppbaud)) - 1; in svc_i3c_master_bus_init()