Lines Matching refs:quota
224 int quota;
267 if (req < counts->quota)
268 counts->spare += counts->quota - req;
269 else if (req > counts->quota)
281 pr_debug("rtas_msi: calc quota for %s, request %d\n", pci_name(dev),
306 counts.quota = total / counts.num_devices;
307 if (request <= counts.quota)
315 /* If the quota isn't an integer multiple of the total, we can
319 /* Divide any spare by the number of over-quota requestors */
321 counts.quota += counts.spare / counts.over_quota;
323 /* And finally clamp the request to the possibly adjusted quota */
324 request = min(counts.quota, request);
326 pr_debug("rtas_msi: request clamped to quota %d\n", request);
374 int hwirq, virq, i, quota, rc;
388 quota = msi_quota_for_device(pdev, nvec);
390 if (quota && quota < nvec)
391 return quota;
398 * so we round up if the quota will allow it.
402 quota = msi_quota_for_device(pdev, m);
404 if (quota >= m)