Lines Matching defs:order
537 * reallocates the buffer list of the same size order to accommodate the new
549 int order;
562 order = drm_order(request->size);
563 size = 1 << order;
567 page_order = order - PAGE_SHIFT > 0 ? order - PAGE_SHIFT : 0;
574 DRM_DEBUG("order: %d\n", order);
581 if (order < DRM_MIN_ORDER || order > DRM_MAX_ORDER)
593 entry = &dma->bufs[order];
597 return -ENOMEM; /* May only call once for each order */
623 buf->order = order;
700 int order;
719 order = drm_order(request->size);
720 size = 1 << order;
724 page_order = order - PAGE_SHIFT > 0 ? order - PAGE_SHIFT : 0;
731 DRM_DEBUG("order: %d\n", order);
738 if (order < DRM_MIN_ORDER || order > DRM_MAX_ORDER)
750 entry = &dma->bufs[order];
754 return -ENOMEM; /* May only call once for each order */
781 buf->order = order;
970 * Verifies that the size order is bounded between the admissible orders and
980 int order;
991 order = drm_order(request->size);
992 if (order < DRM_MIN_ORDER || order > DRM_MAX_ORDER)
994 entry = &dma->bufs[order];
1194 * Compute size order. Returns the exponent of the smaller power of two which
1198 * \return order.
1204 int order;
1207 for (order = 0, tmp = size >> 1; tmp; tmp >>= 1, order++) ;
1210 ++order;
1212 return order;