Home
last modified time | relevance | path

Searched refs:req_rate (Results 1 – 5 of 5) sorted by relevance

/drivers/clk/ingenic/
Dcgu.c156 ingenic_pll_round_rate(struct clk_hw *hw, unsigned long req_rate, in ingenic_pll_round_rate() argument
166 return ingenic_pll_calc(clk_info, req_rate, *prate, NULL, NULL, NULL); in ingenic_pll_round_rate()
170 ingenic_pll_set_rate(struct clk_hw *hw, unsigned long req_rate, in ingenic_pll_set_rate() argument
186 rate = ingenic_pll_calc(clk_info, req_rate, parent_rate, in ingenic_pll_set_rate()
188 if (rate != req_rate) in ingenic_pll_set_rate()
190 clk_info->name, req_rate, rate); in ingenic_pll_set_rate()
337 unsigned long parent_rate, unsigned long req_rate) in ingenic_clk_calc_div() argument
342 div = DIV_ROUND_UP(parent_rate, req_rate); in ingenic_clk_calc_div()
352 ingenic_clk_round_rate(struct clk_hw *hw, unsigned long req_rate, in ingenic_clk_round_rate() argument
363 div = ingenic_clk_calc_div(clk_info, *parent_rate, req_rate); in ingenic_clk_round_rate()
[all …]
Djz4780-cgu.c153 static long jz4780_otg_phy_round_rate(struct clk_hw *hw, unsigned long req_rate, in jz4780_otg_phy_round_rate() argument
156 if (req_rate < 15600000) in jz4780_otg_phy_round_rate()
159 if (req_rate < 21600000) in jz4780_otg_phy_round_rate()
162 if (req_rate < 36000000) in jz4780_otg_phy_round_rate()
168 static int jz4780_otg_phy_set_rate(struct clk_hw *hw, unsigned long req_rate, in jz4780_otg_phy_set_rate() argument
174 switch (req_rate) { in jz4780_otg_phy_set_rate()
/drivers/net/wireless/mediatek/mt7601u/
Dtx.c81 u8 req_rate = stat->pktid; in mt7601u_tx_pktid_dec() local
84 req_rate -= 1; in mt7601u_tx_pktid_dec()
86 if (req_rate > 7) { in mt7601u_tx_pktid_dec()
88 req_rate -= 8; in mt7601u_tx_pktid_dec()
91 if (!req_rate && eff_rate) in mt7601u_tx_pktid_dec()
92 req_rate = 7; in mt7601u_tx_pktid_dec()
95 stat->retry = req_rate - eff_rate; in mt7601u_tx_pktid_dec()
/drivers/infiniband/hw/mthca/
Dmthca_av.c106 static u8 ib_rate_to_memfree(u8 req_rate, u8 cur_rate) in ib_rate_to_memfree() argument
108 if (cur_rate <= req_rate) in ib_rate_to_memfree()
115 switch ((cur_rate - 1) / req_rate) { in ib_rate_to_memfree()
/drivers/clk/
Dclk.c55 unsigned long req_rate; member
1495 unsigned long req_rate) in clk_core_set_rate_nolock() argument
1498 unsigned long rate = req_rate; in clk_core_set_rate_nolock()
1528 core->req_rate = req_rate; in clk_core_set_rate_nolock()
1599 ret = clk_core_set_rate_nolock(clk->core, clk->core->req_rate); in clk_set_rate_range()
2439 core->rate = core->req_rate = rate; in __clk_init()
2785 if (clk->min_rate > clk->core->req_rate || in __clk_put()
2786 clk->max_rate < clk->core->req_rate) in __clk_put()
2787 clk_core_set_rate_nolock(clk->core, clk->core->req_rate); in __clk_put()