/linux-6.12.1/drivers/clk/bcm/ |
D | clk-raspberrypi.c | 62 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.12.1/drivers/memory/tegra/ |
D | tegra20-emc.c | 193 unsigned long min_rate; member 211 unsigned long min_rate; member 673 unsigned long min_rate, in emc_round_rate() argument 684 min_rate = min(min_rate, emc->timings[emc->num_timings - 1].rate); in emc_round_rate() 693 if (emc->timings[i].rate < min_rate) in emc_round_rate() 697 if (emc->timings[i].rate < min_rate) in emc_round_rate() 706 rate, min_rate, max_rate); in emc_round_rate() 718 emc->requested_rate[i].min_rate = 0; in tegra_emc_rate_requests_init() 729 unsigned long min_rate = 0, max_rate = ULONG_MAX; in emc_request_rate() local 736 min_rate = max(new_min_rate, min_rate); in emc_request_rate() [all …]
|
D | tegra30-emc.c | 351 unsigned long min_rate; member 382 unsigned long min_rate; member 1191 unsigned long min_rate, in emc_round_rate() argument 1202 min_rate = min(min_rate, emc->timings[emc->num_timings - 1].rate); in emc_round_rate() 1211 if (emc->timings[i].rate < min_rate) in emc_round_rate() 1215 if (emc->timings[i].rate < min_rate) in emc_round_rate() 1224 rate, min_rate, max_rate); in emc_round_rate() 1236 emc->requested_rate[i].min_rate = 0; in tegra_emc_rate_requests_init() 1247 unsigned long min_rate = 0, max_rate = ULONG_MAX; in emc_request_rate() local 1254 min_rate = max(new_min_rate, min_rate); in emc_request_rate() [all …]
|
D | tegra124-emc.c | 477 unsigned long min_rate; member 500 unsigned long min_rate; member 1051 emc->requested_rate[i].min_rate = 0; in tegra_emc_rate_requests_init() 1062 unsigned long min_rate = 0, max_rate = ULONG_MAX; in emc_request_rate() local 1069 min_rate = max(new_min_rate, min_rate); in emc_request_rate() 1072 min_rate = max(req->min_rate, min_rate); in emc_request_rate() 1077 if (min_rate > max_rate) { in emc_request_rate() 1079 __func__, type, min_rate, max_rate); in emc_request_rate() 1087 err = dev_pm_opp_set_rate(emc->dev, min_rate); in emc_request_rate() 1091 emc->requested_rate[type].min_rate = new_min_rate; in emc_request_rate() [all …]
|
D | tegra186-emc.c | 31 unsigned long min_rate; member 97 *rate = emc->debugfs.min_rate; in tegra186_emc_debug_min_rate_get() 114 emc->debugfs.min_rate = rate; in tegra186_emc_debug_min_rate_set() 177 emc->debugfs.min_rate = ULONG_MAX; in tegra186_emc_get_emc_dvfs_latency() 192 if (emc->dvfs[i].rate < emc->debugfs.min_rate) in tegra186_emc_get_emc_dvfs_latency() 193 emc->debugfs.min_rate = emc->dvfs[i].rate; in tegra186_emc_get_emc_dvfs_latency() 202 err = clk_set_rate_range(emc->clk, emc->debugfs.min_rate, emc->debugfs.max_rate); in tegra186_emc_get_emc_dvfs_latency() 205 emc->debugfs.min_rate, emc->debugfs.max_rate, emc->clk); in tegra186_emc_get_emc_dvfs_latency()
|
/linux-6.12.1/drivers/net/ethernet/mellanox/mlx5/core/esw/ |
D | qos.c | 20 u32 min_rate; member 103 if (group->min_rate < max_guarantee) in esw_qos_calculate_min_rate_divider() 105 max_guarantee = group->min_rate; in esw_qos_calculate_min_rate_divider() 110 evport->qos.group != group || evport->qos.min_rate < max_guarantee) in esw_qos_calculate_min_rate_divider() 112 max_guarantee = evport->qos.min_rate; in esw_qos_calculate_min_rate_divider() 127 static u32 esw_qos_calc_bw_share(u32 min_rate, u32 divider, u32 fw_max) in esw_qos_calc_bw_share() argument 130 return MLX5_RATE_TO_BW_SHARE(min_rate, divider, fw_max); in esw_qos_calc_bw_share() 149 bw_share = esw_qos_calc_bw_share(evport->qos.min_rate, divider, fw_max_bw_share); in esw_qos_normalize_vports_min_rate() 173 bw_share = esw_qos_calc_bw_share(group->min_rate, divider, fw_max_bw_share); in esw_qos_normalize_groups_min_rate() 197 u32 min_rate, struct netlink_ext_ack *extack) in esw_qos_set_vport_min_rate() argument [all …]
|
D | qos.h | 10 u32 max_rate, u32 min_rate);
|
/linux-6.12.1/drivers/clk/imx/ |
D | clk-pllv3.c | 172 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.12.1/drivers/clk/qcom/ |
D | hfpll.c | 31 .min_rate = 537600000UL, 48 .min_rate = 902400000UL, 65 .min_rate = 940800000UL, 82 .min_rate = 556800000UL,
|
D | clk-hfpll.h | 28 unsigned long min_rate; member
|
/linux-6.12.1/drivers/clk/sunxi-ng/ |
D | ccu_common.c | 47 unsigned long min_rate, max_rate; in ccu_is_better_rate() local 49 clk_hw_get_rate_range(&common->hw, &min_rate, &max_rate); in ccu_is_better_rate() 54 if (current_rate < min_rate) in ccu_is_better_rate() 158 clk_hw_set_rate_range(&cclk->hw, cclk->min_rate, in sunxi_ccu_probe() 161 WARN(cclk->min_rate, in sunxi_ccu_probe()
|
D | ccu_nm.h | 32 unsigned int min_rate; member 100 .min_rate = _min_rate, \ 129 .min_rate = _min_rate, \
|
/linux-6.12.1/drivers/clk/ |
D | clk.c | 83 unsigned long min_rate; member 107 unsigned long min_rate; member 681 if (req->min_rate < old_req->min_rate) in clk_core_forward_rate_req() 682 req->min_rate = old_req->min_rate; in clk_core_forward_rate_req() 794 unsigned long *min_rate, in clk_core_get_boundaries() argument 801 *min_rate = core->min_rate; in clk_core_get_boundaries() 805 *min_rate = max(*min_rate, clk_user->min_rate); in clk_core_get_boundaries() 820 void clk_hw_get_rate_range(struct clk_hw *hw, unsigned long *min_rate, in clk_hw_get_rate_range() argument 823 clk_core_get_boundaries(hw->core, min_rate, max_rate); in clk_hw_get_rate_range() 828 unsigned long min_rate, in clk_core_check_boundaries() argument [all …]
|
D | clk-scmi.c | 72 fmin = clk->info->range.min_rate; in scmi_clk_round_rate() 226 unsigned long min_rate, max_rate; in scmi_clk_ops_init() local 247 min_rate = sclk->info->list.rates[0]; in scmi_clk_ops_init() 250 min_rate = sclk->info->range.min_rate; in scmi_clk_ops_init() 254 clk_hw_set_rate_range(&sclk->hw, min_rate, max_rate); in scmi_clk_ops_init()
|
/linux-6.12.1/drivers/clk/starfive/ |
D | clk-starfive-jh71x0.c | 81 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.12.1/drivers/net/ethernet/huawei/hinic/ |
D | hinic_sriov.c | 135 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.12.1/drivers/clk/at91/ |
D | clk-generated.c | 121 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.12.1/drivers/net/ethernet/mellanox/mlx5/core/ |
D | rl.c | 164 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.12.1/net/dccp/ccids/ |
D | ccid3.c | 117 __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.12.1/drivers/net/ethernet/aquantia/atlantic/ |
D | aq_main.c | 434 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.12.1/drivers/gpu/drm/nouveau/ |
D | nouveau_dp.c | 422 u32 min_rate; in nouveau_dp_train() local 427 min_rate = outp->dp.link_nr * outp->dp.rate[0].rate; in nouveau_dp_train() 429 min_rate = DIV_ROUND_UP(khz * bpc * 3, 8); in nouveau_dp_train() 432 outp->base.base.name, mst, min_rate); in nouveau_dp_train() 446 if (outp->dp.rate[rate].rate * nr >= min_rate) { in nouveau_dp_train()
|
/linux-6.12.1/drivers/media/platform/qcom/camss/ |
D | camss-vfe.c | 663 u64 min_rate = 0; in vfe_set_clock_rates() local 681 if (min_rate < tmp) in vfe_set_clock_rates() 682 min_rate = tmp; in vfe_set_clock_rates() 685 camss_add_clock_margin(&min_rate); in vfe_set_clock_rates() 688 if (min_rate < clock->freq[j]) in vfe_set_clock_rates() 699 if (min_rate == 0) in vfe_set_clock_rates() 744 u64 min_rate = 0; in vfe_check_clock_rates() local 762 if (min_rate < tmp) in vfe_check_clock_rates() 763 min_rate = tmp; in vfe_check_clock_rates() 766 camss_add_clock_margin(&min_rate); in vfe_check_clock_rates() [all …]
|
/linux-6.12.1/drivers/net/ethernet/chelsio/cxgb4/ |
D | cxgb4_tc_mqprio.c | 11 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.12.1/net/sched/ |
D | sch_mqprio.c | 29 u64 min_rate[TC_QOPT_MAX_QUEUE]; member 59 mqprio.min_rate[i] = priv->min_rate[i]; in mqprio_enable_offload() 300 priv->min_rate[i] = nla_get_u64(attr); in mqprio_parse_nlattr() 499 sizeof(priv->min_rate[i]), in dump_rates() 500 &priv->min_rate[i])) in dump_rates()
|
/linux-6.12.1/include/linux/qed/ |
D | qed_iov_if.h | 29 u32 min_rate, u32 max_rate);
|