Lines Matching full:rates
54 link->rates[i] = 0; in drm_dp_link_reset()
60 * drm_dp_link_add_rate() - add a rate to the list of supported rates
64 * Add a link rate to the list of supported link rates.
68 * - ENOSPC if the maximum number of supported rates has been reached
82 if (rate <= link->rates[pivot]) in drm_dp_link_add_rate()
85 if (pivot != link->num_rates && rate == link->rates[pivot]) in drm_dp_link_add_rate()
89 link->rates[i] = link->rates[i - 1]; in drm_dp_link_add_rate()
91 link->rates[pivot] = rate; in drm_dp_link_add_rate()
98 * drm_dp_link_remove_rate() - remove a rate from the list of supported rates
102 * Removes a link rate from the list of supported link rates.
106 * - EINVAL if the specified rate is not among the supported rates
116 if (rate == link->rates[i]) in drm_dp_link_remove_rate()
125 link->rates[i] = link->rates[i + 1]; in drm_dp_link_remove_rate()
133 * drm_dp_link_update_rates() - normalize the supported link rates array
134 * @link: the link for which to normalize the supported link rates
137 * of supported link rates. This function removes any stale entries, compacts
149 if (link->rates[i] != 0) in drm_dp_link_update_rates()
150 link->rates[count++] = link->rates[i]; in drm_dp_link_update_rates()
154 link->rates[i] = 0; in drm_dp_link_update_rates()
391 /* available link symbol clock rates */ in drm_dp_link_choose()
392 static const unsigned int rates[3] = { 162000, 270000, 540000 }; in drm_dp_link_choose() local
403 for (j = 0; j < ARRAY_SIZE(rates) && rates[j] <= rate; j++) { in drm_dp_link_choose()
408 * Link rates in the DRM DP helpers are really link in drm_dp_link_choose()
412 capacity = lanes[i] * (rates[j] * 10) * 8 / 10; in drm_dp_link_choose()
416 lanes[i], rates[j], requirement, in drm_dp_link_choose()
419 link->rate = rates[j]; in drm_dp_link_choose()