/kernel/linux/linux-5.10/drivers/memory/tegra/ |
D | tegra20-emc.c | 156 unsigned long min_rate; member 446 unsigned long min_rate, in emc_round_rate() argument 454 min_rate = min(min_rate, emc->timings[emc->num_timings - 1].rate); in emc_round_rate() 463 if (emc->timings[i].rate < min_rate) in emc_round_rate() 467 if (emc->timings[i].rate < min_rate) in emc_round_rate() 476 rate, min_rate, max_rate); in emc_round_rate() 553 *rate = emc->debugfs.min_rate; in tegra_emc_debug_min_rate_get() 570 emc->debugfs.min_rate = rate; in tegra_emc_debug_min_rate_set() 615 emc->debugfs.min_rate = ULONG_MAX; in tegra_emc_debugfs_init() 619 if (emc->timings[i].rate < emc->debugfs.min_rate) in tegra_emc_debugfs_init() [all …]
|
D | tegra186-emc.c | 29 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()
|
D | tegra30-emc.c | 352 unsigned long min_rate; member 1052 unsigned long min_rate, in emc_round_rate() argument 1060 min_rate = min(min_rate, emc->timings[emc->num_timings - 1].rate); in emc_round_rate() 1069 if (emc->timings[i].rate < min_rate) in emc_round_rate() 1073 if (emc->timings[i].rate < min_rate) in emc_round_rate() 1082 rate, min_rate, max_rate); in emc_round_rate() 1159 *rate = emc->debugfs.min_rate; in tegra_emc_debug_min_rate_get() 1176 emc->debugfs.min_rate = rate; in tegra_emc_debug_min_rate_set() 1221 emc->debugfs.min_rate = ULONG_MAX; in tegra_emc_debugfs_init() 1225 if (emc->timings[i].rate < emc->debugfs.min_rate) in tegra_emc_debugfs_init() [all …]
|
D | tegra124-emc.c | 481 unsigned long min_rate; member 1069 *rate = emc->debugfs.min_rate; in tegra_emc_debug_min_rate_get() 1086 emc->debugfs.min_rate = rate; in tegra_emc_debug_min_rate_set() 1139 emc->debugfs.min_rate = ULONG_MAX; in emc_debugfs_init() 1143 if (emc->timings[i].rate < emc->debugfs.min_rate) in emc_debugfs_init() 1144 emc->debugfs.min_rate = emc->timings[i].rate; in emc_debugfs_init() 1151 emc->debugfs.min_rate = clk_get_rate(emc->clk); in emc_debugfs_init() 1152 emc->debugfs.max_rate = emc->debugfs.min_rate; in emc_debugfs_init() 1155 err = clk_set_rate_range(emc->clk, emc->debugfs.min_rate, in emc_debugfs_init() 1159 emc->debugfs.min_rate, emc->debugfs.max_rate, in emc_debugfs_init()
|
D | tegra210-emc-core.c | 1643 *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()
|
/kernel/linux/linux-5.10/drivers/clk/ |
D | clk-scmi.c | 53 fmin = clk->info->range.min_rate; in scmi_clk_round_rate() 106 unsigned long min_rate, max_rate; in scmi_clk_ops_init() local 126 min_rate = sclk->info->list.rates[0]; in scmi_clk_ops_init() 129 min_rate = sclk->info->range.min_rate; in scmi_clk_ops_init() 133 clk_hw_set_rate_range(&sclk->hw, min_rate, max_rate); in scmi_clk_ops_init()
|
D | clk.c | 78 unsigned long min_rate; member 102 unsigned long min_rate; member 617 unsigned long *min_rate, in clk_core_get_boundaries() argument 624 *min_rate = core->min_rate; in clk_core_get_boundaries() 628 *min_rate = max(*min_rate, clk_user->min_rate); in clk_core_get_boundaries() 635 unsigned long min_rate, in clk_core_check_boundaries() argument 642 if (min_rate > core->max_rate || max_rate < core->min_rate) in clk_core_check_boundaries() 646 if (min_rate > user->max_rate || max_rate < user->min_rate) in clk_core_check_boundaries() 652 void clk_hw_set_rate_range(struct clk_hw *hw, unsigned long min_rate, in clk_hw_set_rate_range() argument 655 hw->core->min_rate = min_rate; in clk_hw_set_rate_range() [all …]
|
/kernel/linux/linux-5.10/drivers/clk/imx/ |
D | clk-pllv3.c | 171 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()
|
/kernel/linux/linux-5.10/drivers/clk/sunxi-ng/ |
D | ccu_nm.h | 32 unsigned int min_rate; member 100 .min_rate = _min_rate, \ 128 .min_rate = _min_rate, \
|
/kernel/linux/linux-5.10/drivers/clk/bcm/ |
D | clk-raspberrypi.c | 173 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()
|
/kernel/linux/linux-5.10/drivers/clk/at91/ |
D | clk-generated.c | 110 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()
|
/kernel/linux/linux-5.10/drivers/net/ethernet/huawei/hinic/ |
D | hinic_sriov.c | 133 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 …]
|
D | hinic_sriov.h | 41 u32 min_rate; member
|
/kernel/linux/linux-5.10/drivers/net/ethernet/mellanox/mlx5/core/ |
D | rl.c | 162 return (rate <= table->max_rate && rate >= table->min_rate); in mlx5_rl_is_in_range() 188 rate, table->min_rate, table->max_rate); in mlx5_rl_add_rate_raw() 314 table->min_rate = MLX5_CAP_QOS(dev, packet_pacing_min_rate); in mlx5_init_rl_table() 330 table->min_rate >> 10, in mlx5_init_rl_table()
|
D | eswitch.c | 2009 ivi->min_tx_rate = evport->info.min_rate; in mlx5_eswitch_get_vport_config() 2230 if (!evport->enabled || evport->info.min_rate < max_guarantee) in calculate_vports_min_rate_divider() 2232 max_guarantee = evport->info.min_rate; in calculate_vports_min_rate_divider() 2254 vport_min_rate = evport->info.min_rate; in normalize_vports_min_rate() 2278 u32 max_rate, u32 min_rate) in mlx5_eswitch_set_vport_rate() argument 2297 if ((min_rate && !min_rate_supported) || (max_rate && !max_rate_supported)) in mlx5_eswitch_set_vport_rate() 2302 if (min_rate == evport->info.min_rate) in mlx5_eswitch_set_vport_rate() 2305 previous_min_rate = evport->info.min_rate; in mlx5_eswitch_set_vport_rate() 2306 evport->info.min_rate = min_rate; in mlx5_eswitch_set_vport_rate() 2309 evport->info.min_rate = previous_min_rate; in mlx5_eswitch_set_vport_rate()
|
/kernel/linux/linux-5.10/drivers/net/ethernet/aquantia/atlantic/ |
D | aq_main.c | 402 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()
|
/kernel/linux/linux-5.10/drivers/gpu/drm/msm/dsi/pll/ |
D | dsi_pll.c | 56 if (rate < pll->min_rate) in msm_dsi_pll_helper_clk_round_rate() 57 return pll->min_rate; in msm_dsi_pll_helper_clk_round_rate()
|
/kernel/linux/linux-5.10/net/dccp/ccids/ |
D | ccid3.c | 114 __u64 min_rate = 2 * hc->tx_x_recv; in ccid3_hc_tx_update_x() local 125 min_rate = rfc3390_initial_rate(sk); in ccid3_hc_tx_update_x() 126 min_rate = max(min_rate, 2 * hc->tx_x_recv); in ccid3_hc_tx_update_x() 131 hc->tx_x = min(((__u64)hc->tx_x_calc) << 6, min_rate); in ccid3_hc_tx_update_x() 136 hc->tx_x = min(2 * hc->tx_x, min_rate); in ccid3_hc_tx_update_x()
|
/kernel/linux/linux-5.10/net/sched/ |
D | sch_mqprio.c | 26 u64 min_rate[TC_QOPT_MAX_QUEUE]; member 197 priv->min_rate[i] = *(u64 *)nla_data(attr); in mqprio_init() 259 mqprio.min_rate[i] = priv->min_rate[i]; in mqprio_init() 378 sizeof(priv->min_rate[i]), in dump_rates() 379 &priv->min_rate[i])) in dump_rates()
|
/kernel/linux/linux-5.10/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()
|
/kernel/linux/linux-5.10/include/linux/qed/ |
D | qed_iov_if.h | 29 u32 min_rate, u32 max_rate);
|
/kernel/linux/linux-5.10/drivers/clk/qcom/ |
D | clk-hfpll.h | 27 unsigned long min_rate; member
|
D | hfpll.c | 30 .min_rate = 537600000UL,
|
/kernel/linux/linux-5.10/drivers/media/platform/qcom/camss/ |
D | camss-csiphy.c | 123 u64 min_rate = pixel_clock * bpp / (2 * num_lanes * 4); in csiphy_set_clock_rates() local 126 camss_add_clock_margin(&min_rate); in csiphy_set_clock_rates() 129 if (min_rate < clock->freq[j]) in csiphy_set_clock_rates() 140 if (min_rate == 0) in csiphy_set_clock_rates()
|
D | camss-vfe.c | 1130 u64 min_rate = 0; in vfe_set_clock_rates() local 1148 if (min_rate < tmp) in vfe_set_clock_rates() 1149 min_rate = tmp; in vfe_set_clock_rates() 1152 camss_add_clock_margin(&min_rate); in vfe_set_clock_rates() 1155 if (min_rate < clock->freq[j]) in vfe_set_clock_rates() 1166 if (min_rate == 0) in vfe_set_clock_rates() 1212 u64 min_rate = 0; in vfe_check_clock_rates() local 1230 if (min_rate < tmp) in vfe_check_clock_rates() 1231 min_rate = tmp; in vfe_check_clock_rates() 1234 camss_add_clock_margin(&min_rate); in vfe_check_clock_rates() [all …]
|