Home
last modified time | relevance | path

Searched refs:min_rate (Results 1 – 25 of 103) sorted by relevance

12345

/linux-6.6.21/drivers/clk/bcm/
Dclk-raspberrypi.c62 unsigned long min_rate; member
100 .min_rate = 120000000,
234 req->rate = clamp(req->rate, req->min_rate, req->max_rate); in raspberrypi_fw_dumb_determine_rate()
241 if (variant->minimize && req->min_rate > 0) in raspberrypi_fw_dumb_determine_rate()
242 req->rate = req->min_rate; in raspberrypi_fw_dumb_determine_rate()
261 u32 min_rate, max_rate; in raspberrypi_clk_register() local
281 &min_rate); in raspberrypi_clk_register()
301 clk_hw_set_rate_range(&data->hw, min_rate, max_rate); in raspberrypi_clk_register()
312 if (variant->min_rate) { in raspberrypi_clk_register()
315 clk_hw_set_rate_range(&data->hw, variant->min_rate, max_rate); in raspberrypi_clk_register()
[all …]
/linux-6.6.21/drivers/memory/tegra/
Dtegra20-emc.c193 unsigned long min_rate; member
211 unsigned long min_rate; member
676 unsigned long min_rate, in emc_round_rate() argument
687 min_rate = min(min_rate, emc->timings[emc->num_timings - 1].rate); in emc_round_rate()
696 if (emc->timings[i].rate < min_rate) in emc_round_rate()
700 if (emc->timings[i].rate < min_rate) in emc_round_rate()
709 rate, min_rate, max_rate); in emc_round_rate()
721 emc->requested_rate[i].min_rate = 0; in tegra_emc_rate_requests_init()
732 unsigned long min_rate = 0, max_rate = ULONG_MAX; in emc_request_rate() local
739 min_rate = max(new_min_rate, min_rate); in emc_request_rate()
[all …]
Dtegra30-emc.c351 unsigned long min_rate; member
382 unsigned long min_rate; member
1194 unsigned long min_rate, in emc_round_rate() argument
1205 min_rate = min(min_rate, emc->timings[emc->num_timings - 1].rate); in emc_round_rate()
1214 if (emc->timings[i].rate < min_rate) in emc_round_rate()
1218 if (emc->timings[i].rate < min_rate) in emc_round_rate()
1227 rate, min_rate, max_rate); in emc_round_rate()
1239 emc->requested_rate[i].min_rate = 0; in tegra_emc_rate_requests_init()
1250 unsigned long min_rate = 0, max_rate = ULONG_MAX; in emc_request_rate() local
1257 min_rate = max(new_min_rate, min_rate); in emc_request_rate()
[all …]
Dtegra124-emc.c477 unsigned long min_rate; member
500 unsigned long min_rate; member
1054 emc->requested_rate[i].min_rate = 0; in tegra_emc_rate_requests_init()
1065 unsigned long min_rate = 0, max_rate = ULONG_MAX; in emc_request_rate() local
1072 min_rate = max(new_min_rate, min_rate); in emc_request_rate()
1075 min_rate = max(req->min_rate, min_rate); in emc_request_rate()
1080 if (min_rate > max_rate) { in emc_request_rate()
1082 __func__, type, min_rate, max_rate); in emc_request_rate()
1090 err = dev_pm_opp_set_rate(emc->dev, min_rate); in emc_request_rate()
1094 emc->requested_rate[type].min_rate = new_min_rate; in emc_request_rate()
[all …]
Dtegra186-emc.c31 unsigned long min_rate; member
102 *rate = emc->debugfs.min_rate; in tegra186_emc_debug_min_rate_get()
119 emc->debugfs.min_rate = rate; in tegra186_emc_debug_min_rate_set()
182 emc->debugfs.min_rate = ULONG_MAX; in tegra186_emc_get_emc_dvfs_latency()
197 if (emc->dvfs[i].rate < emc->debugfs.min_rate) in tegra186_emc_get_emc_dvfs_latency()
198 emc->debugfs.min_rate = emc->dvfs[i].rate; in tegra186_emc_get_emc_dvfs_latency()
207 err = clk_set_rate_range(emc->clk, emc->debugfs.min_rate, emc->debugfs.max_rate); in tegra186_emc_get_emc_dvfs_latency()
210 emc->debugfs.min_rate, emc->debugfs.max_rate, emc->clk); in tegra186_emc_get_emc_dvfs_latency()
Dtegra210-emc-core.c1630 *rate = emc->debugfs.min_rate; in tegra210_emc_debug_min_rate_get()
1647 emc->debugfs.min_rate = rate; in tegra210_emc_debug_min_rate_set()
1723 emc->debugfs.min_rate = ULONG_MAX; in tegra210_emc_debugfs_init()
1727 if (emc->timings[i].rate * 1000UL < emc->debugfs.min_rate) in tegra210_emc_debugfs_init()
1728 emc->debugfs.min_rate = emc->timings[i].rate * 1000UL; in tegra210_emc_debugfs_init()
1735 emc->debugfs.min_rate = clk_get_rate(emc->clk); in tegra210_emc_debugfs_init()
1736 emc->debugfs.max_rate = emc->debugfs.min_rate; in tegra210_emc_debugfs_init()
1739 err = clk_set_rate_range(emc->clk, emc->debugfs.min_rate, in tegra210_emc_debugfs_init()
1743 emc->debugfs.min_rate, emc->debugfs.max_rate, in tegra210_emc_debugfs_init()
/linux-6.6.21/drivers/net/ethernet/mellanox/mlx5/core/esw/
Dqos.c19 u32 min_rate; member
102 if (group->min_rate < max_guarantee) in esw_qos_calculate_min_rate_divider()
104 max_guarantee = group->min_rate; in esw_qos_calculate_min_rate_divider()
109 evport->qos.group != group || evport->qos.min_rate < max_guarantee) in esw_qos_calculate_min_rate_divider()
111 max_guarantee = evport->qos.min_rate; in esw_qos_calculate_min_rate_divider()
126 static u32 esw_qos_calc_bw_share(u32 min_rate, u32 divider, u32 fw_max) in esw_qos_calc_bw_share() argument
129 return MLX5_RATE_TO_BW_SHARE(min_rate, divider, fw_max); in esw_qos_calc_bw_share()
148 bw_share = esw_qos_calc_bw_share(evport->qos.min_rate, divider, fw_max_bw_share); in esw_qos_normalize_vports_min_rate()
172 bw_share = esw_qos_calc_bw_share(group->min_rate, divider, fw_max_bw_share); in esw_qos_normalize_groups_min_rate()
196 u32 min_rate, struct netlink_ext_ack *extack) in esw_qos_set_vport_min_rate() argument
[all …]
Dqos.h10 u32 max_rate, u32 min_rate);
/linux-6.6.21/drivers/clk/imx/
Dclk-pllv3.c172 unsigned long min_rate = parent_rate * 54 / 2; in clk_pllv3_sys_round_rate() local
178 else if (rate < min_rate) in clk_pllv3_sys_round_rate()
179 rate = min_rate; in clk_pllv3_sys_round_rate()
189 unsigned long min_rate = parent_rate * 54 / 2; in clk_pllv3_sys_set_rate() local
193 if (rate < min_rate || rate > max_rate) in clk_pllv3_sys_set_rate()
233 unsigned long min_rate = parent_rate * 27; in clk_pllv3_av_round_rate() local
242 else if (rate < min_rate) in clk_pllv3_av_round_rate()
243 rate = min_rate; in clk_pllv3_av_round_rate()
265 unsigned long min_rate = parent_rate * 27; in clk_pllv3_av_set_rate() local
272 if (rate < min_rate || rate > max_rate) in clk_pllv3_av_set_rate()
/linux-6.6.21/drivers/clk/
Dclk-scmi.c55 fmin = clk->info->range.min_rate; in scmi_clk_round_rate()
138 unsigned long min_rate, max_rate; in scmi_clk_ops_init() local
158 min_rate = sclk->info->list.rates[0]; in scmi_clk_ops_init()
161 min_rate = sclk->info->range.min_rate; in scmi_clk_ops_init()
165 clk_hw_set_rate_range(&sclk->hw, min_rate, max_rate); in scmi_clk_ops_init()
Dclk.c78 unsigned long min_rate; member
102 unsigned long min_rate; member
590 if (req->min_rate < old_req->min_rate) in clk_core_forward_rate_req()
591 req->min_rate = old_req->min_rate; in clk_core_forward_rate_req()
703 unsigned long *min_rate, in clk_core_get_boundaries() argument
710 *min_rate = core->min_rate; in clk_core_get_boundaries()
714 *min_rate = max(*min_rate, clk_user->min_rate); in clk_core_get_boundaries()
729 void clk_hw_get_rate_range(struct clk_hw *hw, unsigned long *min_rate, in clk_hw_get_rate_range() argument
732 clk_core_get_boundaries(hw->core, min_rate, max_rate); in clk_hw_get_rate_range()
737 unsigned long min_rate, in clk_core_check_boundaries() argument
[all …]
/linux-6.6.21/drivers/clk/starfive/
Dclk-starfive-jh71x0.c81 unsigned long rate = clamp(req->rate, req->min_rate, req->max_rate); in jh71x0_clk_determine_rate()
98 if (result < req->min_rate && div > 1) in jh71x0_clk_determine_rate()
132 unsigned long rate = clamp(req->rate, req->min_rate, req->max_rate); in jh71x0_clk_frac_determine_rate()
140 if (result < req->min_rate && div100 > JH71X0_CLK_FRAC_MIN) in jh71x0_clk_frac_determine_rate()
/linux-6.6.21/drivers/clk/sunxi-ng/
Dccu_nm.h32 unsigned int min_rate; member
100 .min_rate = _min_rate, \
129 .min_rate = _min_rate, \
/linux-6.6.21/drivers/net/ethernet/huawei/hinic/
Dhinic_sriov.c135 u32 max_rate, u32 min_rate) in hinic_set_vf_tx_rate_max_min() argument
144 rate_cfg.min_rate = min_rate; in hinic_set_vf_tx_rate_max_min()
151 HW_VF_ID_TO_OS(vf_id), max_rate, min_rate, err, in hinic_set_vf_tx_rate_max_min()
158 nic_io->vf_infos[HW_VF_ID_TO_OS(vf_id)].min_rate = min_rate; in hinic_set_vf_tx_rate_max_min()
188 nic_io->vf_infos[HW_VF_ID_TO_OS(vf_id)].min_rate = 0; in hinic_set_vf_rate_limit()
194 u32 max_rate, u32 min_rate) in hinic_set_vf_tx_rate() argument
198 err = hinic_set_vf_tx_rate_max_min(hwdev, vf_id, max_rate, min_rate); in hinic_set_vf_tx_rate()
202 if (min_rate) { in hinic_set_vf_tx_rate()
245 vf_info->min_rate); in hinic_init_vf_config()
249 vf_info->min_rate); in hinic_init_vf_config()
[all …]
/linux-6.6.21/drivers/clk/at91/
Dclk-generated.c121 if (tmp_rate < req->min_rate || tmp_rate > req->max_rate) in clk_generated_best_diff()
140 unsigned long min_rate, parent_rate; in clk_generated_determine_rate() local
160 min_rate = DIV_ROUND_CLOSEST(parent_rate, GENERATED_MAX_DIV + 1); in clk_generated_determine_rate()
162 (gck->range.max && min_rate > gck->range.max)) in clk_generated_determine_rate()
/linux-6.6.21/drivers/net/ethernet/mellanox/mlx5/core/
Drl.c164 return (rate <= table->max_rate && rate >= table->min_rate); in mlx5_rl_is_in_range()
254 rate, table->min_rate, table->max_rate); in mlx5_rl_add_rate_raw()
379 table->min_rate = MLX5_CAP_QOS(dev, packet_pacing_min_rate); in mlx5_init_rl_table()
383 table->min_rate >> 10, in mlx5_init_rl_table()
/linux-6.6.21/drivers/media/platform/qcom/camss/
Dcamss-vfe.c457 u64 min_rate = 0; in vfe_set_clock_rates() local
475 if (min_rate < tmp) in vfe_set_clock_rates()
476 min_rate = tmp; in vfe_set_clock_rates()
479 camss_add_clock_margin(&min_rate); in vfe_set_clock_rates()
482 if (min_rate < clock->freq[j]) in vfe_set_clock_rates()
493 if (min_rate == 0) in vfe_set_clock_rates()
540 u64 min_rate = 0; in vfe_check_clock_rates() local
558 if (min_rate < tmp) in vfe_check_clock_rates()
559 min_rate = tmp; in vfe_check_clock_rates()
562 camss_add_clock_margin(&min_rate); in vfe_check_clock_rates()
[all …]
Dcamss-csiphy.c146 u64 min_rate = link_freq / 4; in csiphy_set_clock_rates() local
149 camss_add_clock_margin(&min_rate); in csiphy_set_clock_rates()
152 if (min_rate < clock->freq[j]) in csiphy_set_clock_rates()
163 if (min_rate == 0) in csiphy_set_clock_rates()
/linux-6.6.21/net/dccp/ccids/
Dccid3.c117 __u64 min_rate = 2 * hc->tx_x_recv; in ccid3_hc_tx_update_x() local
128 min_rate = rfc3390_initial_rate(sk); in ccid3_hc_tx_update_x()
129 min_rate = max(min_rate, 2 * hc->tx_x_recv); in ccid3_hc_tx_update_x()
134 hc->tx_x = min(((__u64)hc->tx_x_calc) << 6, min_rate); in ccid3_hc_tx_update_x()
139 hc->tx_x = min(2 * hc->tx_x, min_rate); in ccid3_hc_tx_update_x()
/linux-6.6.21/drivers/net/ethernet/aquantia/atlantic/
Daq_main.c434 u64 min_rate = mqprio->min_rate[i]; in aq_ndo_setup_tc() local
436 do_div(min_rate, AQ_MBPS_DIVISOR); in aq_ndo_setup_tc()
437 aq_nic_setup_tc_min_rate(aq_nic, i, (u32)min_rate); in aq_ndo_setup_tc()
/linux-6.6.21/drivers/net/ethernet/chelsio/cxgb4/
Dcxgb4_tc_mqprio.c11 u64 min_rate = 0, max_rate = 0, max_link_rate; in cxgb4_mqprio_validate() local
77 min_rate += (mqprio->min_rate[i] * 8); in cxgb4_mqprio_validate()
84 if (min_rate > max_link_rate || max_rate > max_link_rate) { in cxgb4_mqprio_validate()
87 min_rate, max_rate, max_link_rate); in cxgb4_mqprio_validate()
341 p.u.params.minrate = div_u64(mqprio->min_rate[i] * 8, 1000); in cxgb4_mqprio_alloc_tc()
/linux-6.6.21/net/sched/
Dsch_mqprio.c29 u64 min_rate[TC_QOPT_MAX_QUEUE]; member
59 mqprio.min_rate[i] = priv->min_rate[i]; in mqprio_enable_offload()
302 priv->min_rate[i] = nla_get_u64(attr); in mqprio_parse_nlattr()
501 sizeof(priv->min_rate[i]), in dump_rates()
502 &priv->min_rate[i])) in dump_rates()
/linux-6.6.21/include/linux/qed/
Dqed_iov_if.h29 u32 min_rate, u32 max_rate);
/linux-6.6.21/drivers/clk/qcom/
Dclk-hfpll.h27 unsigned long min_rate; member
/linux-6.6.21/drivers/phy/cadence/
Dcdns-dphy-rx.c62 unsigned int min_rate; member
109 if (rate < bands[0].min_rate) in cdns_dphy_rx_get_band_ctrl()

12345