Lines Matching refs:core_rate
561 unsigned long core_rate, core_period; in dw_i3c_clk_cfg() local
565 core_rate = clk_get_rate(master->core_clk); in dw_i3c_clk_cfg()
566 if (!core_rate) in dw_i3c_clk_cfg()
569 core_period = DIV_ROUND_UP(1000000000, core_rate); in dw_i3c_clk_cfg()
575 lcnt = DIV_ROUND_UP(core_rate, master->base.bus.scl_rate.i3c) - hcnt; in dw_i3c_clk_cfg()
598 lcnt = DIV_ROUND_UP(core_rate, I3C_BUS_SDR1_SCL_RATE) - hcnt; in dw_i3c_clk_cfg()
600 lcnt = DIV_ROUND_UP(core_rate, I3C_BUS_SDR2_SCL_RATE) - hcnt; in dw_i3c_clk_cfg()
602 lcnt = DIV_ROUND_UP(core_rate, I3C_BUS_SDR3_SCL_RATE) - hcnt; in dw_i3c_clk_cfg()
604 lcnt = DIV_ROUND_UP(core_rate, I3C_BUS_SDR4_SCL_RATE) - hcnt; in dw_i3c_clk_cfg()
614 unsigned long core_rate, core_period; in dw_i2c_clk_cfg() local
618 core_rate = clk_get_rate(master->core_clk); in dw_i2c_clk_cfg()
619 if (!core_rate) in dw_i2c_clk_cfg()
622 core_period = DIV_ROUND_UP(1000000000, core_rate); in dw_i2c_clk_cfg()
625 hcnt = DIV_ROUND_UP(core_rate, I3C_BUS_I2C_FM_PLUS_SCL_RATE) - lcnt; in dw_i2c_clk_cfg()
632 hcnt = DIV_ROUND_UP(core_rate, I3C_BUS_I2C_FM_SCL_RATE) - lcnt; in dw_i2c_clk_cfg()