Searched refs:tclk (Results 1 – 9 of 9) sorted by relevance
/drivers/clk/sunxi/ |
D | clk-sun4i-tcon-ch1.c | 36 struct tcon_ch1_clk *tclk = hw_to_tclk(hw); in tcon_ch1_disable() local 40 spin_lock_irqsave(&tclk->lock, flags); in tcon_ch1_disable() 41 reg = readl(tclk->reg); in tcon_ch1_disable() 43 writel(reg, tclk->reg); in tcon_ch1_disable() 44 spin_unlock_irqrestore(&tclk->lock, flags); in tcon_ch1_disable() 49 struct tcon_ch1_clk *tclk = hw_to_tclk(hw); in tcon_ch1_enable() local 53 spin_lock_irqsave(&tclk->lock, flags); in tcon_ch1_enable() 54 reg = readl(tclk->reg); in tcon_ch1_enable() 56 writel(reg, tclk->reg); in tcon_ch1_enable() 57 spin_unlock_irqrestore(&tclk->lock, flags); in tcon_ch1_enable() [all …]
|
/drivers/clk/ |
D | clk-vt8500.c | 353 unsigned long tclk; in vt8500_find_pll_bits() local 369 tclk = (parent_rate / *prediv) * *multiplier; in vt8500_find_pll_bits() 371 if (tclk != rate) in vt8500_find_pll_bits() 373 rate, tclk); in vt8500_find_pll_bits() 457 unsigned long tclk, rate_err, best_err; in wm8750_find_pll_bits() local 465 tclk = parent_rate * (mul + 1) / ((div1 + 1) * (1 << div2)); in wm8750_find_pll_bits() 466 if (tclk > rate) in wm8750_find_pll_bits() 469 rate_err = rate - tclk; in wm8750_find_pll_bits() 505 unsigned long tclk, rate_err, best_err; in wm8850_find_pll_bits() local 513 tclk = parent_rate * ((mul + 1) * 2) / in wm8850_find_pll_bits() [all …]
|
/drivers/power/reset/ |
D | qnap-poweroff.c | 51 static unsigned long tclk; variable 56 const unsigned divisor = ((tclk + (8 * cfg->baud)) / (16 * cfg->baud)); in qnap_power_off() 103 tclk = clk_get_rate(clk); in qnap_power_off_probe()
|
/drivers/i2c/busses/ |
D | i2c-mv64xxx.c | 759 const int tclk, const int n, const int m) in mv64xxx_calc_freq() argument 762 return tclk / (10 * (m + 1) * (1 << n)); in mv64xxx_calc_freq() 764 return tclk / (10 * (m + 1) * (2 << n)); in mv64xxx_calc_freq() 769 const u32 req_freq, const u32 tclk) in mv64xxx_find_baud_factors() argument 776 freq = mv64xxx_calc_freq(drv_data, tclk, n, m); in mv64xxx_find_baud_factors() 797 u32 bus_freq, tclk; in mv64xxx_of_config() local 808 tclk = clk_get_rate(drv_data->clk); in mv64xxx_of_config() 817 if (!mv64xxx_find_baud_factors(drv_data, bus_freq, tclk)) { in mv64xxx_of_config()
|
D | i2c-octeon-core.c | 660 int tclk, thp_base, inc, thp_idx, mdiv_idx, ndiv_idx, foscl, diff; in octeon_i2c_set_clock() local 673 tclk = i2c->twsi_freq * (mdiv_idx + 1) * 10; in octeon_i2c_set_clock() 674 tclk *= (1 << ndiv_idx); in octeon_i2c_set_clock() 675 thp_base = (i2c->sys_freq / (tclk * 2)) - 1; in octeon_i2c_set_clock()
|
/drivers/sh/clk/ |
D | core.c | 226 void propagate_rate(struct clk *tclk) in propagate_rate() argument 230 list_for_each_entry(clkp, &tclk->children, sibling) { in propagate_rate()
|
/drivers/staging/octeon-usb/ |
D | octeon-hcd.h | 1829 __BITFIELD_FIELD(u64 tclk : 1,
|
/drivers/net/ethernet/marvell/mvpp2/ |
D | mvpp2.h | 993 u32 tclk; member
|
D | mvpp2_main.c | 1959 port->priv->tclk / USEC_PER_SEC); in mvpp2_defaults_set() 2434 unsigned long freq = port->priv->tclk; in mvpp2_rx_time_coal_set() 2450 unsigned long freq = port->priv->tclk; in mvpp2_tx_time_coal_set() 7018 priv->tclk = clk_get_rate(priv->pp_clk); in mvpp2_probe() 7020 &priv->tclk)) { in mvpp2_probe()
|