Lines Matching refs:core_rate
526 unsigned long core_rate, core_period; in dw_i3c_clk_cfg() local
530 core_rate = clk_get_rate(master->core_clk); in dw_i3c_clk_cfg()
531 if (!core_rate) in dw_i3c_clk_cfg()
534 core_period = DIV_ROUND_UP(1000000000, core_rate); in dw_i3c_clk_cfg()
540 lcnt = DIV_ROUND_UP(core_rate, master->base.bus.scl_rate.i3c) - hcnt; in dw_i3c_clk_cfg()
559 lcnt = DIV_ROUND_UP(core_rate, I3C_BUS_SDR1_SCL_RATE) - hcnt; in dw_i3c_clk_cfg()
561 lcnt = DIV_ROUND_UP(core_rate, I3C_BUS_SDR2_SCL_RATE) - hcnt; in dw_i3c_clk_cfg()
563 lcnt = DIV_ROUND_UP(core_rate, I3C_BUS_SDR3_SCL_RATE) - hcnt; in dw_i3c_clk_cfg()
565 lcnt = DIV_ROUND_UP(core_rate, I3C_BUS_SDR4_SCL_RATE) - hcnt; in dw_i3c_clk_cfg()
574 unsigned long core_rate, core_period; in dw_i2c_clk_cfg() local
578 core_rate = clk_get_rate(master->core_clk); in dw_i2c_clk_cfg()
579 if (!core_rate) in dw_i2c_clk_cfg()
582 core_period = DIV_ROUND_UP(1000000000, core_rate); in dw_i2c_clk_cfg()
585 hcnt = DIV_ROUND_UP(core_rate, I3C_BUS_I2C_FM_PLUS_SCL_RATE) - lcnt; in dw_i2c_clk_cfg()
591 hcnt = DIV_ROUND_UP(core_rate, I3C_BUS_I2C_FM_SCL_RATE) - lcnt; in dw_i2c_clk_cfg()