Home
last modified time | relevance | path

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

/linux-6.6.21/drivers/net/wireless/mediatek/mt7601u/
Dtx.c73 u8 req_rate = stat->pktid; in mt7601u_tx_pktid_dec() local
76 req_rate -= 1; in mt7601u_tx_pktid_dec()
78 if (req_rate > 7) { in mt7601u_tx_pktid_dec()
80 req_rate -= 8; in mt7601u_tx_pktid_dec()
83 if (!req_rate && eff_rate) in mt7601u_tx_pktid_dec()
84 req_rate = 7; in mt7601u_tx_pktid_dec()
87 stat->retry = req_rate - eff_rate; in mt7601u_tx_pktid_dec()
/linux-6.6.21/drivers/clocksource/
Dingenic-sysost.c119 static u8 ingenic_ost_get_prescale(unsigned long rate, unsigned long req_rate) in ingenic_ost_get_prescale() argument
124 if ((rate >> (prescale * 2)) <= req_rate) in ingenic_ost_get_prescale()
130 static long ingenic_ost_round_rate(struct clk_hw *hw, unsigned long req_rate, in ingenic_ost_round_rate() argument
136 if (req_rate > rate) in ingenic_ost_round_rate()
139 prescale = ingenic_ost_get_prescale(rate, req_rate); in ingenic_ost_round_rate()
144 static int ingenic_ost_percpu_timer_set_rate(struct clk_hw *hw, unsigned long req_rate, in ingenic_ost_percpu_timer_set_rate() argument
149 u8 prescale = ingenic_ost_get_prescale(parent_rate, req_rate); in ingenic_ost_percpu_timer_set_rate()
160 static int ingenic_ost_global_timer_set_rate(struct clk_hw *hw, unsigned long req_rate, in ingenic_ost_global_timer_set_rate() argument
165 u8 prescale = ingenic_ost_get_prescale(parent_rate, req_rate); in ingenic_ost_global_timer_set_rate()
/linux-6.6.21/drivers/clk/qcom/
Dclk-regmap-mux-div.c94 unsigned long req_rate = req->rate; in mux_div_determine_rate() local
102 parent_rate = mult_frac(req_rate, div, 2); in mux_div_determine_rate()
106 if (is_better_rate(req_rate, best_rate, actual_rate)) { in mux_div_determine_rate()
113 if (actual_rate < req_rate || best_rate <= req_rate) in mux_div_determine_rate()
/linux-6.6.21/drivers/clk/ingenic/
Dcgu.c178 ingenic_pll_round_rate(struct clk_hw *hw, unsigned long req_rate, in ingenic_pll_round_rate() argument
184 return ingenic_pll_calc(clk_info, req_rate, *prate, NULL, NULL, NULL); in ingenic_pll_round_rate()
201 ingenic_pll_set_rate(struct clk_hw *hw, unsigned long req_rate, in ingenic_pll_set_rate() argument
213 rate = ingenic_pll_calc(clk_info, req_rate, parent_rate, in ingenic_pll_set_rate()
215 if (rate != req_rate) in ingenic_pll_set_rate()
217 clk_info->name, req_rate, rate); in ingenic_pll_set_rate()
461 unsigned long parent_rate, unsigned long req_rate) in ingenic_clk_calc_div() argument
471 div = DIV_ROUND_UP(parent_rate, req_rate); in ingenic_clk_calc_div()
524 ingenic_clk_set_rate(struct clk_hw *hw, unsigned long req_rate, in ingenic_clk_set_rate() argument
536 div = ingenic_clk_calc_div(hw, clk_info, parent_rate, req_rate); in ingenic_clk_set_rate()
[all …]
Dx1000-cgu.c87 static long x1000_otg_phy_round_rate(struct clk_hw *hw, unsigned long req_rate, in x1000_otg_phy_round_rate() argument
90 if (req_rate < 18000000) in x1000_otg_phy_round_rate()
93 if (req_rate < 36000000) in x1000_otg_phy_round_rate()
99 static int x1000_otg_phy_set_rate(struct clk_hw *hw, unsigned long req_rate, in x1000_otg_phy_set_rate() argument
105 switch (req_rate) { in x1000_otg_phy_set_rate()
Djz4780-cgu.c131 static long jz4780_otg_phy_round_rate(struct clk_hw *hw, unsigned long req_rate, in jz4780_otg_phy_round_rate() argument
134 if (req_rate < 15600000) in jz4780_otg_phy_round_rate()
137 if (req_rate < 21600000) in jz4780_otg_phy_round_rate()
140 if (req_rate < 36000000) in jz4780_otg_phy_round_rate()
146 static int jz4780_otg_phy_set_rate(struct clk_hw *hw, unsigned long req_rate, in jz4780_otg_phy_set_rate() argument
152 switch (req_rate) { in jz4780_otg_phy_set_rate()
Dtcu.c170 static u8 ingenic_tcu_get_prescale(unsigned long rate, unsigned long req_rate) in ingenic_tcu_get_prescale() argument
175 if ((rate >> (prescale * 2)) <= req_rate) in ingenic_tcu_get_prescale()
198 static int ingenic_tcu_set_rate(struct clk_hw *hw, unsigned long req_rate, in ingenic_tcu_set_rate() argument
203 u8 prescale = ingenic_tcu_get_prescale(parent_rate, req_rate); in ingenic_tcu_set_rate()
/linux-6.6.21/sound/soc/sh/rcar/
Dadg.c493 u32 req_rate[ADG_HZ_SIZE] = {}; in rsnd_adg_get_clkout() local
526 of_property_read_u32_array(np, "clock-frequency", req_rate, req_size); in rsnd_adg_get_clkout()
530 if (0 == (req_rate[i] % 44100)) in rsnd_adg_get_clkout()
531 req_Hz[ADG_HZ_441] = req_rate[i]; in rsnd_adg_get_clkout()
532 if (0 == (req_rate[i] % 48000)) in rsnd_adg_get_clkout()
533 req_Hz[ADG_HZ_48] = req_rate[i]; in rsnd_adg_get_clkout()
635 parent_clk_name, 0, req_rate[0]); in rsnd_adg_get_clkout()
650 req_rate[0]); in rsnd_adg_get_clkout()
/linux-6.6.21/drivers/gpu/drm/arm/
Dmalidp_crtc.c35 long rate, req_rate = mode->crtc_clock * 1000; in malidp_crtc_mode_valid() local
37 if (req_rate) { in malidp_crtc_mode_valid()
38 rate = clk_round_rate(hwdev->pxlclk, req_rate); in malidp_crtc_mode_valid()
39 if (rate != req_rate) { in malidp_crtc_mode_valid()
41 req_rate); in malidp_crtc_mode_valid()
/linux-6.6.21/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()
/linux-6.6.21/drivers/clk/at91/
Dclk-master.c627 unsigned long req_rate; in clk_sama7g5_master_determine_rate() local
630 req_rate = req->rate * 3; in clk_sama7g5_master_determine_rate()
632 req_rate = req->rate << div; in clk_sama7g5_master_determine_rate()
634 clk_hw_forward_rate_request(hw, req, parent, &req_parent, req_rate); in clk_sama7g5_master_determine_rate()
/linux-6.6.21/drivers/mmc/host/
Dmeson-gx-mmc.c160 unsigned long req_rate; member
361 if (host->ddr == ddr && host->req_rate == rate) in meson_mmc_clk_set()
366 host->req_rate = 0; in meson_mmc_clk_set()
395 host->req_rate = rate; in meson_mmc_clk_set()
400 host->req_rate >>= 1; in meson_mmc_clk_set()
/linux-6.6.21/drivers/clk/
Dclk.c68 unsigned long req_rate; member
1861 core->req_rate = core->rate; in __clk_recalc_rates()
2387 unsigned long req_rate) in clk_core_req_round_rate_nolock() argument
2402 clk_core_init_rate_req(core, &req, req_rate); in clk_core_req_round_rate_nolock()
2417 unsigned long req_rate) in clk_core_set_rate_nolock() argument
2426 rate = clk_core_req_round_rate_nolock(core, req_rate); in clk_core_set_rate_nolock()
2437 top = clk_calc_new_rates(core, req_rate); in clk_core_set_rate_nolock()
2458 core->req_rate = req_rate; in clk_core_set_rate_nolock()
2592 rate = clk->core->req_rate; in clk_set_rate_range_nolock()
3725 orphan->req_rate = orphan->rate; in clk_core_reparent_orphans_nolock()
[all …]
/linux-6.6.21/drivers/net/ethernet/qlogic/qed/
Dqed_dev.c5079 u16 vport_id, u32 req_rate, u32 min_pf_rate) in qed_init_wfq_param() argument
5105 total_req_min_rate += req_rate; in qed_init_wfq_param()
5108 if (req_rate < min_pf_rate / QED_WFQ_UNIT) { in qed_init_wfq_param()
5111 vport_id, req_rate, min_pf_rate); in qed_init_wfq_param()
5139 p_hwfn->qm_info.wfq_data[vport_id].min_speed = req_rate; in qed_init_wfq_param()
/linux-6.6.21/drivers/net/ethernet/chelsio/cxgb4/
Dcxgb4_main.c3498 u32 req_rate; in cxgb_set_tx_maxrate() local
3524 req_rate = rate * 1000; in cxgb_set_tx_maxrate()
3527 if (req_rate > SCHED_MAX_RATE_KBPS) { in cxgb_set_tx_maxrate()
3548 if (!req_rate) in cxgb_set_tx_maxrate()
3560 p.u.params.maxrate = req_rate; in cxgb_set_tx_maxrate()