Lines Matching refs:order
534 * reallocates the buffer list of the same size order to accommodate the new
546 int order;
559 order = drm_order(request->size);
560 size = 1 << order;
564 page_order = order - PAGE_SHIFT > 0 ? order - PAGE_SHIFT : 0;
571 DRM_DEBUG("order: %d\n", order);
578 if (order < DRM_MIN_ORDER || order > DRM_MAX_ORDER)
590 entry = &dma->bufs[order];
594 return -ENOMEM; /* May only call once for each order */
620 buf->order = order;
697 int order;
716 order = drm_order(request->size);
717 size = 1 << order;
721 page_order = order - PAGE_SHIFT > 0 ? order - PAGE_SHIFT : 0;
728 DRM_DEBUG("order: %d\n", order);
735 if (order < DRM_MIN_ORDER || order > DRM_MAX_ORDER)
747 entry = &dma->bufs[order];
751 return -ENOMEM; /* May only call once for each order */
778 buf->order = order;
967 * Verifies that the size order is bounded between the admissible orders and
977 int order;
988 order = drm_order(request->size);
989 if (order < DRM_MIN_ORDER || order > DRM_MAX_ORDER)
991 entry = &dma->bufs[order];
1191 * Compute size order. Returns the exponent of the smaller power of two which
1195 * \return order.
1201 int order;
1204 for (order = 0, tmp = size >> 1; tmp; tmp >>= 1, order++) ;
1207 ++order;
1209 return order;