Lines Matching refs:quota
216 int quota;
259 if (req < counts->quota)
260 counts->spare += counts->quota - req;
261 else if (req > counts->quota)
273 pr_debug("rtas_msi: calc quota for %s, request %d\n", pci_name(dev),
298 counts.quota = total / counts.num_devices;
299 if (request <= counts.quota)
307 /* If the quota isn't an integer multiple of the total, we can
311 /* Divide any spare by the number of over-quota requestors */
313 counts.quota += counts.spare / counts.over_quota;
315 /* And finally clamp the request to the possibly adjusted quota */
316 request = min(counts.quota, request);
318 pr_debug("rtas_msi: request clamped to quota %d\n", request);
346 int quota, rc;
358 quota = msi_quota_for_device(pdev, nvec);
360 if (quota && quota < nvec)
361 return quota;
365 * so we round up if the quota will allow it.
369 quota = msi_quota_for_device(pdev, m);
371 if (quota >= m)