Home
last modified time | relevance | path

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

1234

/drivers/memory/tegra/
Dtegra20-emc.c172 unsigned long min_rate; member
190 unsigned long min_rate; member
505 unsigned long min_rate, in emc_round_rate() argument
516 min_rate = min(min_rate, emc->timings[emc->num_timings - 1].rate); in emc_round_rate()
525 if (emc->timings[i].rate < min_rate) in emc_round_rate()
529 if (emc->timings[i].rate < min_rate) in emc_round_rate()
538 rate, min_rate, max_rate); in emc_round_rate()
550 emc->requested_rate[i].min_rate = 0; in tegra_emc_rate_requests_init()
561 unsigned long min_rate = 0, max_rate = ULONG_MAX; in emc_request_rate() local
568 min_rate = max(new_min_rate, min_rate); in emc_request_rate()
[all …]
Dtegra186-emc.c29 unsigned long min_rate; member
106 *rate = emc->debugfs.min_rate; in tegra186_emc_debug_min_rate_get()
123 emc->debugfs.min_rate = rate; in tegra186_emc_debug_min_rate_set()
201 emc->debugfs.min_rate = ULONG_MAX; in tegra186_emc_probe()
219 if (emc->dvfs[i].rate < emc->debugfs.min_rate) in tegra186_emc_probe()
220 emc->debugfs.min_rate = emc->dvfs[i].rate; in tegra186_emc_probe()
229 err = clk_set_rate_range(emc->clk, emc->debugfs.min_rate, in tegra186_emc_probe()
234 emc->debugfs.min_rate, emc->debugfs.max_rate, in tegra186_emc_probe()
Dtegra30-emc.c338 unsigned long min_rate; member
369 unsigned long min_rate; member
1083 unsigned long min_rate, in emc_round_rate() argument
1094 min_rate = min(min_rate, emc->timings[emc->num_timings - 1].rate); in emc_round_rate()
1103 if (emc->timings[i].rate < min_rate) in emc_round_rate()
1107 if (emc->timings[i].rate < min_rate) in emc_round_rate()
1116 rate, min_rate, max_rate); in emc_round_rate()
1128 emc->requested_rate[i].min_rate = 0; in tegra_emc_rate_requests_init()
1139 unsigned long min_rate = 0, max_rate = ULONG_MAX; in emc_request_rate() local
1146 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 …]
Dtegra210-emc-core.c1643 *rate = emc->debugfs.min_rate; in tegra210_emc_debug_min_rate_get()
1660 emc->debugfs.min_rate = rate; in tegra210_emc_debug_min_rate_set()
1736 emc->debugfs.min_rate = ULONG_MAX; in tegra210_emc_debugfs_init()
1740 if (emc->timings[i].rate * 1000UL < emc->debugfs.min_rate) in tegra210_emc_debugfs_init()
1741 emc->debugfs.min_rate = emc->timings[i].rate * 1000UL; in tegra210_emc_debugfs_init()
1748 emc->debugfs.min_rate = clk_get_rate(emc->clk); in tegra210_emc_debugfs_init()
1749 emc->debugfs.max_rate = emc->debugfs.min_rate; in tegra210_emc_debugfs_init()
1752 err = clk_set_rate_range(emc->clk, emc->debugfs.min_rate, in tegra210_emc_debugfs_init()
1756 emc->debugfs.min_rate, emc->debugfs.max_rate, in tegra210_emc_debugfs_init()
/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()
197 u32 min_rate, in mlx5_esw_qos_set_vport_min_rate() argument
[all …]
Dqos.h11 u32 min_rate,
/drivers/clk/
Dclk-scmi.c55 fmin = clk->info->range.min_rate; in scmi_clk_round_rate()
108 unsigned long min_rate, max_rate; in scmi_clk_ops_init() local
128 min_rate = sclk->info->list.rates[0]; in scmi_clk_ops_init()
131 min_rate = sclk->info->range.min_rate; in scmi_clk_ops_init()
135 clk_hw_set_rate_range(&sclk->hw, min_rate, max_rate); in scmi_clk_ops_init()
Dclk.c80 unsigned long min_rate; member
104 unsigned long min_rate; member
619 unsigned long *min_rate, in clk_core_get_boundaries() argument
626 *min_rate = core->min_rate; in clk_core_get_boundaries()
630 *min_rate = max(*min_rate, clk_user->min_rate); in clk_core_get_boundaries()
637 unsigned long min_rate, in clk_core_check_boundaries() argument
644 if (min_rate > core->max_rate || max_rate < core->min_rate) in clk_core_check_boundaries()
648 if (min_rate > user->max_rate || max_rate < user->min_rate) in clk_core_check_boundaries()
654 void clk_hw_set_rate_range(struct clk_hw *hw, unsigned long min_rate, in clk_hw_set_rate_range() argument
657 hw->core->min_rate = min_rate; in clk_hw_set_rate_range()
[all …]
/drivers/clk/imx/
Dclk-pllv3.c171 unsigned long min_rate = parent_rate * 54 / 2; in clk_pllv3_sys_round_rate() local
177 else if (rate < min_rate) in clk_pllv3_sys_round_rate()
178 rate = min_rate; in clk_pllv3_sys_round_rate()
188 unsigned long min_rate = parent_rate * 54 / 2; in clk_pllv3_sys_set_rate() local
192 if (rate < min_rate || rate > max_rate) in clk_pllv3_sys_set_rate()
232 unsigned long min_rate = parent_rate * 27; in clk_pllv3_av_round_rate() local
241 else if (rate < min_rate) in clk_pllv3_av_round_rate()
242 rate = min_rate; in clk_pllv3_av_round_rate()
264 unsigned long min_rate = parent_rate * 27; in clk_pllv3_av_set_rate() local
271 if (rate < min_rate || rate > max_rate) in clk_pllv3_av_set_rate()
/drivers/clk/sunxi-ng/
Dccu_nm.h32 unsigned int min_rate; member
100 .min_rate = _min_rate, \
128 .min_rate = _min_rate, \
Dccu_mp.c288 req->min_rate *= 2; in ccu_mp_mmc_determine_rate()
297 req->min_rate /= 2; in ccu_mp_mmc_determine_rate()
Dccu_nm.c129 if (rate < nm->min_rate) { in ccu_nm_round_rate()
130 rate = nm->min_rate; in ccu_nm_round_rate()
/drivers/clk/bcm/
Dclk-raspberrypi.c173 req->rate = clamp(req->rate, req->min_rate, req->max_rate); in raspberrypi_fw_dumb_determine_rate()
190 u32 min_rate, max_rate; in raspberrypi_clk_register() local
209 &min_rate); in raspberrypi_clk_register()
229 clk_hw_set_rate_range(&data->hw, min_rate, max_rate); in raspberrypi_clk_register()
/drivers/net/ethernet/huawei/hinic/
Dhinic_sriov.c133 u32 max_rate, u32 min_rate) in hinic_set_vf_tx_rate_max_min() argument
142 rate_cfg.min_rate = min_rate; in hinic_set_vf_tx_rate_max_min()
149 HW_VF_ID_TO_OS(vf_id), max_rate, min_rate, err, in hinic_set_vf_tx_rate_max_min()
156 nic_io->vf_infos[HW_VF_ID_TO_OS(vf_id)].min_rate = min_rate; in hinic_set_vf_tx_rate_max_min()
186 nic_io->vf_infos[HW_VF_ID_TO_OS(vf_id)].min_rate = 0; in hinic_set_vf_rate_limit()
192 u32 max_rate, u32 min_rate) in hinic_set_vf_tx_rate() argument
196 err = hinic_set_vf_tx_rate_max_min(hwdev, vf_id, max_rate, min_rate); in hinic_set_vf_tx_rate()
200 if (min_rate) { in hinic_set_vf_tx_rate()
243 vf_info->min_rate); in hinic_init_vf_config()
247 vf_info->min_rate); in hinic_init_vf_config()
[all …]
/drivers/clk/at91/
Dclk-generated.c110 if (tmp_rate < req->min_rate || tmp_rate > req->max_rate) in clk_generated_best_diff()
130 unsigned long min_rate, parent_rate; in clk_generated_determine_rate() local
150 min_rate = DIV_ROUND_CLOSEST(parent_rate, GENERATED_MAX_DIV + 1); in clk_generated_determine_rate()
152 (gck->range.max && min_rate > gck->range.max)) in clk_generated_determine_rate()
/drivers/net/ethernet/aquantia/atlantic/
Daq_main.c402 u64 min_rate = mqprio->min_rate[i]; in aq_ndo_setup_tc() local
404 do_div(min_rate, AQ_MBPS_DIVISOR); in aq_ndo_setup_tc()
405 aq_nic_setup_tc_min_rate(aq_nic, i, (u32)min_rate); in aq_ndo_setup_tc()
/drivers/media/platform/qcom/camss/
Dcamss-vfe.c455 u64 min_rate = 0; in vfe_set_clock_rates() local
473 if (min_rate < tmp) in vfe_set_clock_rates()
474 min_rate = tmp; in vfe_set_clock_rates()
477 camss_add_clock_margin(&min_rate); in vfe_set_clock_rates()
480 if (min_rate < clock->freq[j]) in vfe_set_clock_rates()
491 if (min_rate == 0) in vfe_set_clock_rates()
538 u64 min_rate = 0; in vfe_check_clock_rates() local
556 if (min_rate < tmp) in vfe_check_clock_rates()
557 min_rate = tmp; in vfe_check_clock_rates()
560 camss_add_clock_margin(&min_rate); in vfe_check_clock_rates()
[all …]
Dcamss-csiphy.c145 u64 min_rate = link_freq / 4; in csiphy_set_clock_rates() local
148 camss_add_clock_margin(&min_rate); in csiphy_set_clock_rates()
151 if (min_rate < clock->freq[j]) in csiphy_set_clock_rates()
162 if (min_rate == 0) in csiphy_set_clock_rates()
Dcamss-csid.c105 u64 min_rate = link_freq / 4; in csid_set_clock_rates() local
108 camss_add_clock_margin(&min_rate); in csid_set_clock_rates()
111 if (min_rate < clock->freq[j]) in csid_set_clock_rates()
122 if (min_rate == 0) in csid_set_clock_rates()
/drivers/net/ethernet/mellanox/mlx5/core/
Drl.c165 return (rate <= table->max_rate && rate >= table->min_rate); in mlx5_rl_is_in_range()
255 rate, table->min_rate, table->max_rate); in mlx5_rl_add_rate_raw()
380 table->min_rate = MLX5_CAP_QOS(dev, packet_pacing_min_rate); in mlx5_init_rl_table()
384 table->min_rate >> 10, in mlx5_init_rl_table()
/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()
/drivers/clk/qcom/
Dclk-hfpll.h27 unsigned long min_rate; member
Dhfpll.c30 .min_rate = 537600000UL,
/drivers/clk/renesas/
Dclk-div6.c122 max_div = req->min_rate ? min(prate / req->min_rate, 64UL) : 64; in cpg_div6_clock_determine_rate()

1234