Lines Matching defs:rates
54 link->rates[i] = 0;
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])
85 if (pivot != link->num_rates && rate == link->rates[pivot])
89 link->rates[i] = link->rates[i - 1];
91 link->rates[pivot] = 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])
125 link->rates[i] = link->rates[i + 1];
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)
150 link->rates[count++] = link->rates[i];
154 link->rates[i] = 0;
391 /* available link symbol clock rates */
392 static const unsigned int rates[3] = { 162000, 270000, 540000 };
403 for (j = 0; j < ARRAY_SIZE(rates) && rates[j] <= rate; j++) {
408 * Link rates in the DRM DP helpers are really link
412 capacity = lanes[i] * (rates[j] * 10) * 8 / 10;
416 lanes[i], rates[j], requirement,
419 link->rate = rates[j];