/linux-6.12.1/drivers/net/ethernet/mellanox/mlx5/core/esw/diag/ |
D | qos_tracepoint.h | 30 TP_PROTO(const struct mlx5_vport *vport, u32 bw_share, u32 max_rate), 31 TP_ARGS(vport, bw_share, max_rate), 36 __field(unsigned int, max_rate) 43 __entry->max_rate = max_rate; 48 __entry->bw_share, __entry->max_rate, __entry->group 53 TP_PROTO(const struct mlx5_vport *vport, u32 bw_share, u32 max_rate), 54 TP_ARGS(vport, bw_share, max_rate) 58 TP_PROTO(const struct mlx5_vport *vport, u32 bw_share, u32 max_rate), 59 TP_ARGS(vport, bw_share, max_rate) 97 unsigned int tsar_ix, u32 bw_share, u32 max_rate), [all …]
|
/linux-6.12.1/drivers/net/ethernet/mellanox/mlx5/core/esw/ |
D | qos.c | 19 u32 max_rate; member 26 u32 tsar_ix, u32 max_rate, u32 bw_share) in esw_qos_tsar_config() argument 33 MLX5_SET(scheduling_context, sched_ctx, max_average_bw, max_rate); in esw_qos_tsar_config() 46 u32 max_rate, u32 bw_share, struct netlink_ext_ack *extack) in esw_qos_group_config() argument 54 max_rate, bw_share); in esw_qos_group_config() 58 trace_mlx5_esw_group_qos_config(dev, group, group->tsar_ix, bw_share, max_rate); in esw_qos_group_config() 65 u32 max_rate, u32 bw_share, in esw_qos_vport_config() argument 76 max_rate, bw_share); in esw_qos_vport_config() 85 trace_mlx5_esw_vport_qos_config(vport, bw_share, max_rate); in esw_qos_vport_config() 154 err = esw_qos_vport_config(esw, evport, evport->qos.max_rate, bw_share, extack); in esw_qos_normalize_vports_min_rate() [all …]
|
/linux-6.12.1/tools/perf/util/ |
D | record.c | 154 unsigned int max_rate; in record_opts__config_freq() local 178 if (get_max_rate(&max_rate)) in record_opts__config_freq() 184 if (user_freq && (max_rate < opts->freq)) { in record_opts__config_freq() 189 max_rate); in record_opts__config_freq() 196 max_rate, opts->freq, max_rate); in record_opts__config_freq() 198 opts->freq = max_rate; in record_opts__config_freq() 205 if (max_rate < opts->freq) { in record_opts__config_freq() 209 opts->freq, max_rate); in record_opts__config_freq() 210 opts->freq = max_rate; in record_opts__config_freq()
|
/linux-6.12.1/drivers/memory/tegra/ |
D | tegra20-emc.c | 194 unsigned long max_rate; member 212 unsigned long max_rate; member 674 unsigned long max_rate, in emc_round_rate() argument 690 if (emc->timings[i].rate > max_rate) { in emc_round_rate() 706 rate, min_rate, max_rate); in emc_round_rate() 719 emc->requested_rate[i].max_rate = ULONG_MAX; in tegra_emc_rate_requests_init() 729 unsigned long min_rate = 0, max_rate = ULONG_MAX; in emc_request_rate() local 737 max_rate = min(new_max_rate, max_rate); in emc_request_rate() 740 max_rate = min(req->max_rate, max_rate); in emc_request_rate() 744 if (min_rate > max_rate) { in emc_request_rate() [all …]
|
D | tegra186-emc.c | 32 unsigned long max_rate; member 127 *rate = emc->debugfs.max_rate; in tegra186_emc_debug_max_rate_get() 144 emc->debugfs.max_rate = rate; in tegra186_emc_debug_max_rate_set() 178 emc->debugfs.max_rate = 0; in tegra186_emc_get_emc_dvfs_latency() 195 if (emc->dvfs[i].rate > emc->debugfs.max_rate) in tegra186_emc_get_emc_dvfs_latency() 196 emc->debugfs.max_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()
|
D | tegra30-emc.c | 352 unsigned long max_rate; member 383 unsigned long max_rate; member 1192 unsigned long max_rate, in emc_round_rate() argument 1208 if (emc->timings[i].rate > max_rate) { in emc_round_rate() 1224 rate, min_rate, max_rate); in emc_round_rate() 1237 emc->requested_rate[i].max_rate = ULONG_MAX; in tegra_emc_rate_requests_init() 1247 unsigned long min_rate = 0, max_rate = ULONG_MAX; in emc_request_rate() local 1255 max_rate = min(new_max_rate, max_rate); in emc_request_rate() 1258 max_rate = min(req->max_rate, max_rate); in emc_request_rate() 1262 if (min_rate > max_rate) { in emc_request_rate() [all …]
|
D | tegra124-emc.c | 478 unsigned long max_rate; member 501 unsigned long max_rate; member 1052 emc->requested_rate[i].max_rate = ULONG_MAX; in tegra_emc_rate_requests_init() 1062 unsigned long min_rate = 0, max_rate = ULONG_MAX; in emc_request_rate() local 1070 max_rate = min(new_max_rate, max_rate); in emc_request_rate() 1073 max_rate = min(req->max_rate, max_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() 1092 emc->requested_rate[type].max_rate = new_max_rate; in emc_request_rate() 1104 ret = emc_request_rate(emc, rate, req->max_rate, type); in emc_set_min_rate() [all …]
|
/linux-6.12.1/drivers/clk/tegra/ |
D | clk-audio-sync.c | 25 if (rate > sync->max_rate) in clk_sync_source_round_rate() 47 unsigned long max_rate) in tegra_clk_register_sync_source() argument 59 sync->max_rate = max_rate; in tegra_clk_register_sync_source()
|
/linux-6.12.1/sound/soc/codecs/ |
D | wm8782.c | 34 int max_rate; member 44 8000, priv->max_rate); in wm8782_dai_startup() 148 priv->max_rate = 48000; in wm8782_probe() 151 priv->max_rate = 96000; in wm8782_probe() 154 priv->max_rate = 192000; in wm8782_probe()
|
/linux-6.12.1/drivers/net/wireless/marvell/mwifiex/ |
D | 11ac.c | 47 u16 max_rate = 0; in mwifiex_convert_mcsmap_to_maxrate() local 71 max_rate = max_rate_lgi_160MHZ[nss - 1][mcs]; in mwifiex_convert_mcsmap_to_maxrate() 72 if (!max_rate) in mwifiex_convert_mcsmap_to_maxrate() 74 max_rate = max_rate_lgi_160MHZ[nss - 1][mcs - 1]; in mwifiex_convert_mcsmap_to_maxrate() 76 max_rate = max_rate_lgi_80MHZ[nss - 1][mcs]; in mwifiex_convert_mcsmap_to_maxrate() 77 if (!max_rate) in mwifiex_convert_mcsmap_to_maxrate() 79 max_rate = max_rate_lgi_80MHZ[nss - 1][mcs - 1]; in mwifiex_convert_mcsmap_to_maxrate() 82 return max_rate; in mwifiex_convert_mcsmap_to_maxrate()
|
/linux-6.12.1/drivers/clk/imx/ |
D | clk-pllv3.c | 173 unsigned long max_rate = parent_rate * 108 / 2; in clk_pllv3_sys_round_rate() local 176 if (rate > max_rate) in clk_pllv3_sys_round_rate() 177 rate = max_rate; in clk_pllv3_sys_round_rate() 190 unsigned long max_rate = parent_rate * 108 / 2; in clk_pllv3_sys_set_rate() local 193 if (rate < min_rate || rate > max_rate) in clk_pllv3_sys_set_rate() 234 unsigned long max_rate = parent_rate * 54; in clk_pllv3_av_round_rate() local 240 if (rate > max_rate) in clk_pllv3_av_round_rate() 241 rate = max_rate; in clk_pllv3_av_round_rate() 266 unsigned long max_rate = parent_rate * 54; 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 | 32 .max_rate = 2900000000UL, 49 .max_rate = 1478400000UL, 66 .max_rate = 2016000000UL, 83 .max_rate = 902400000UL,
|
/linux-6.12.1/drivers/clocksource/ |
D | timer-microchip-pit64b.c | 240 u32 max_rate) in mchp_pit64b_pres_compute() argument 246 if (tmp <= max_rate) in mchp_pit64b_pres_compute() 292 unsigned long max_rate) in mchp_pit64b_init_mode() argument 305 gclk_round = clk_round_rate(timer->gclk, max_rate); in mchp_pit64b_init_mode() 312 mchp_pit64b_pres_compute(&pres, gclk_round, max_rate); in mchp_pit64b_init_mode() 313 best_diff = abs(gclk_round / (pres + 1) - max_rate); in mchp_pit64b_init_mode() 324 mchp_pit64b_pres_compute(&pres, pclk_rate, max_rate); in mchp_pit64b_init_mode() 325 diff = abs(pclk_rate / (pres + 1) - max_rate); in mchp_pit64b_init_mode()
|
/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() 51 if (current_rate > max_rate) in ccu_is_better_rate() 157 if (cclk->max_rate) in sunxi_ccu_probe() 159 cclk->max_rate); in sunxi_ccu_probe()
|
/linux-6.12.1/drivers/staging/rtl8723bs/core/ |
D | rtw_ioctl_set.c | 473 u16 rate = 0, max_rate = 0; in rtw_get_cur_max_rate() local 490 max_rate = rtw_mcs_rate(psta->bw_mode == CHANNEL_WIDTH_40 ? 1 : 0, in rtw_get_cur_max_rate() 496 if (rate > max_rate) in rtw_get_cur_max_rate() 497 max_rate = rate; in rtw_get_cur_max_rate() 501 max_rate = max_rate*10/2; in rtw_get_cur_max_rate() 504 return max_rate; in rtw_get_cur_max_rate()
|
/linux-6.12.1/drivers/gpu/drm/nouveau/ |
D | nouveau_dp.c | 143 u32 max_rate = dpcd[DP_MAX_LINK_RATE] * 27000; in nouveau_dp_probe_dpcd() local 148 if (rate && rate < max_rate) in nouveau_dp_probe_dpcd() 149 max_rate = rate; in nouveau_dp_probe_dpcd() 152 max_rate = min_t(int, max_rate, outp->dcb->dpconf.link_bw); in nouveau_dp_probe_dpcd() 155 if (rates[i] <= max_rate) { in nouveau_dp_probe_dpcd() 545 unsigned int max_rate, mode_rate, ds_max_dotclock, clock = mode->clock; in nv50_dp_mode_valid() local 558 max_rate = outp->dp.link_nr * outp->dp.link_bw; in nv50_dp_mode_valid() 560 if (mode_rate > max_rate) in nv50_dp_mode_valid()
|
/linux-6.12.1/drivers/net/ethernet/microchip/sparx5/ |
D | sparx5_sdlb.c | 38 u64 max_rate) in sparx5_sdlb_pup_interval_get() argument 44 return div64_u64((8 * clk_hz * max_token), max_rate); in sparx5_sdlb_pup_interval_get() 199 if (rate_bps < group->max_rate) in sparx5_sdlb_group_get_by_rate() 303 void sparx5_sdlb_group_init(struct sparx5 *sparx5, u64 max_rate, u32 min_burst, in sparx5_sdlb_group_init() argument 323 sparx5_sdlb_pup_interval_get(sparx5, max_token, max_rate); in sparx5_sdlb_group_init()
|
/linux-6.12.1/drivers/clk/ |
D | clk.c | 84 unsigned long max_rate; member 108 unsigned long max_rate; member 684 if (req->max_rate > old_req->max_rate) in clk_core_forward_rate_req() 685 req->max_rate = old_req->max_rate; in clk_core_forward_rate_req() 795 unsigned long *max_rate) in clk_core_get_boundaries() argument 802 *max_rate = core->max_rate; in clk_core_get_boundaries() 808 *max_rate = min(*max_rate, clk_user->max_rate); in clk_core_get_boundaries() 821 unsigned long *max_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() 829 unsigned long max_rate) in clk_core_check_boundaries() argument [all …]
|
D | clk-scmi.c | 73 fmax = clk->info->range.max_rate; in scmi_clk_round_rate() 226 unsigned long min_rate, max_rate; in scmi_clk_ops_init() local 248 max_rate = sclk->info->list.rates[num_rates - 1]; in scmi_clk_ops_init() 251 max_rate = sclk->info->range.max_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/renesas/ |
D | rcar-gen3-cpg.c | 74 max_mult = min(div64_ul(req->max_rate, prate), 128ULL); in cpg_pll_clk_determine_rate() 168 unsigned long max_rate; /* Maximum rate for normal mode */ member 196 rate = min(req->rate, req->max_rate); in cpg_z_clk_determine_rate() 197 if (rate <= zclk->max_rate) { in cpg_z_clk_determine_rate() 199 prate = zclk->max_rate; in cpg_z_clk_determine_rate() 209 max_mult = min(div64_ul(req->max_rate * 32ULL, prate), 32ULL); in cpg_z_clk_determine_rate() 301 zclk->max_rate = clk_hw_get_rate(clk_hw_get_parent(&zclk->hw)) / in __cpg_z_clk_register()
|
D | rcar-gen4-cpg.c | 110 max_mult = min(div64_ul(req->max_rate, prate), 256ULL); in cpg_pll_8_25_clk_determine_rate() 271 unsigned long max_rate; /* Maximum rate for normal mode */ member 299 rate = min(req->rate, req->max_rate); in cpg_z_clk_determine_rate() 300 if (rate <= zclk->max_rate) { in cpg_z_clk_determine_rate() 302 prate = zclk->max_rate; in cpg_z_clk_determine_rate() 312 max_mult = min(div64_ul(req->max_rate * 32ULL, prate), 32ULL); in cpg_z_clk_determine_rate() 407 zclk->max_rate = clk_hw_get_rate(clk_hw_get_parent(&zclk->hw)) / in cpg_z_clk_register()
|
/linux-6.12.1/drivers/clk/bcm/ |
D | clk-raspberrypi.c | 234 req->rate = clamp(req->rate, req->min_rate, req->max_rate); in raspberrypi_fw_dumb_determine_rate() 261 u32 min_rate, max_rate; in raspberrypi_clk_register() local 290 &max_rate); in raspberrypi_clk_register() 301 clk_hw_set_rate_range(&data->hw, min_rate, max_rate); in raspberrypi_clk_register() 315 clk_hw_set_rate_range(&data->hw, variant->min_rate, max_rate); in raspberrypi_clk_register()
|
/linux-6.12.1/sound/usb/ |
D | format.c | 309 unsigned int max_rate; in focusrite_valid_sample_rate() local 322 max_rate = combine_quad(&fmt[6]); in focusrite_valid_sample_rate() 325 if (max_rate != 48000 && in focusrite_valid_sample_rate() 326 max_rate != 96000 && in focusrite_valid_sample_rate() 327 max_rate != 192000 && in focusrite_valid_sample_rate() 328 max_rate != 384000) { in focusrite_valid_sample_rate() 332 fp->iface, fp->altsetting, max_rate); in focusrite_valid_sample_rate() 337 return rate <= max_rate; in focusrite_valid_sample_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 143 rate_cfg.max_rate = max_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() 157 nic_io->vf_infos[HW_VF_ID_TO_OS(vf_id)].max_rate = max_rate; in hinic_set_vf_tx_rate_max_min() 187 nic_io->vf_infos[HW_VF_ID_TO_OS(vf_id)].max_rate = tx_rate; 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() 209 return hinic_set_vf_rate_limit(hwdev, vf_id, max_rate); in hinic_set_vf_tx_rate() 243 if (vf_info->max_rate) { in hinic_init_vf_config() 244 err = hinic_set_vf_tx_rate(hwdev, vf_id, vf_info->max_rate, in hinic_init_vf_config() [all …]
|
/linux-6.12.1/drivers/phy/rockchip/ |
D | phy-rockchip-inno-dsidphy.c | 202 enum phy_max_rate max_rate; member 390 if (inno->pdata->max_rate == MAX_2_5GHZ) { in inno_dsidphy_mipi_mode_enable() 467 if (inno->pdata->max_rate == MAX_1GHZ) { in inno_dsidphy_mipi_mode_enable() 490 if (inno->pdata->max_rate == MAX_2_5GHZ) in inno_dsidphy_mipi_mode_enable() 497 if (inno->pdata->max_rate == MAX_2_5GHZ) in inno_dsidphy_mipi_mode_enable() 502 if (inno->pdata->max_rate == MAX_2_5GHZ) in inno_dsidphy_mipi_mode_enable() 682 .max_rate = MAX_1GHZ, 688 .max_rate = MAX_2_5GHZ,
|