Lines Matching defs:order
50 * Compute order. Can be made faster.
55 int order = 0;
59 order ++;
61 if (size & ~(1 << order))
62 ++order;
64 return (order);
404 int order;
415 order = drm_order(request->size);
416 size = 1 << order;
420 page_order = order - PAGE_SHIFT > 0 ? order - PAGE_SHIFT : 0;
425 entry = &dma->bufs[order];
427 /* No more than one allocation per order */
446 buf->order = order;
512 int order;
521 order = drm_order(request->size);
522 size = 1 << order;
526 page_order = order - PAGE_SHIFT > 0 ? order - PAGE_SHIFT : 0;
530 entry = &dma->bufs[order];
546 buf->order = order;
597 int order, ret;
606 order = drm_order(request->size);
607 if (order < DRM_MIN_ORDER || order > DRM_MAX_ORDER) {
617 /* No more than one allocation per order */
618 if (dev->dma->bufs[order].buf_count != 0) {
633 int order, ret;
642 order = drm_order(request->size);
643 if (order < DRM_MIN_ORDER || order > DRM_MAX_ORDER) {
654 /* No more than one allocation per order */
655 if (dev->dma->bufs[order].buf_count != 0) {