/linux-6.6.21/drivers/net/wireless/mediatek/mt7601u/ |
D | tx.c | 73 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/ |
D | ingenic-sysost.c | 119 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/ |
D | clk-regmap-mux-div.c | 94 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/ |
D | cgu.c | 178 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 …]
|
D | x1000-cgu.c | 87 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()
|
D | jz4780-cgu.c | 131 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()
|
D | tcu.c | 170 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/ |
D | adg.c | 493 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/ |
D | malidp_crtc.c | 35 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/ |
D | mthca_av.c | 106 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/ |
D | clk-master.c | 627 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/ |
D | meson-gx-mmc.c | 160 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/ |
D | clk.c | 68 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/ |
D | qed_dev.c | 5079 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/ |
D | cxgb4_main.c | 3498 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()
|