Lines Matching defs:count
138 int count, avail, actual;
151 ret = ddi_intr_get_nintrs(devinfo, DDI_INTR_TYPE_MSI, &count);
152 if ((ret != DDI_SUCCESS) || (count == 0)) {
154 "ret: %d, count: %d", ret, count);
166 if (avail < count) {
168 count, avail);
172 pdev->msi_size = count * sizeof (ddi_intr_handle_t);
176 count, &actual, DDI_INTR_ALLOC_NORMAL);
221 #define vblanktimestamp(dev, crtc, count) ( \
223 ((count) % DRM_VBLANKTIME_RBSIZE)])
279 * Disable vblank irq's on crtc, make sure that last vblank count
291 int count = DRM_TIMESTAMP_MAXRETRIES;
294 * so no updates of timestamps or count can happen after we've
303 * this point. Get current hardware vblank count and
310 * edge of a vblank interval, then we can lose 1 count if
317 } while (dev->last_vblank[crtc] != dev->driver->get_vblank_counter(dev, crtc) && (--count) && vblrc);
319 if (!count)
924 * Fetches the "cooked" vblank count value that represents the number of
941 * Fetches the "cooked" vblank count value that represents the number of
953 * that corresponds to current vblank count. Retry if
954 * count has incremented during readout. This works like
1066 * drm_vblank_get - get a reference count on vblank events
1070 * Acquire a reference count on vblank events to avoid having them disabled
1183 * to avoid corrupting the count if multiple, mismatch calls occur),
1297 DRM_DEBUG("event on vblank count %d, current %d, crtc %d\n",
1400 DRM_DEBUG("waiting on vblank count %d, crtc %d\n",
1490 /* Get current timestamp and count. */
1498 /* Update vblank timestamp and count if at least
1511 /* Increment cooked vblank count. This also atomically commits