Lines Matching refs:order
50 * Compute order. Can be made faster.
55 int order = 0;
59 order ++;
61 if (size & ~(1 << order))
62 ++order;
64 return (order);
419 int order;
430 order = drm_order(request->size);
431 size = 1 << order;
435 page_order = order - PAGE_SHIFT > 0 ? order - PAGE_SHIFT : 0;
440 entry = &dma->bufs[order];
442 /* No more than one allocation per order */
461 buf->order = order;
527 int order;
536 order = drm_order(request->size);
537 size = 1 << order;
541 page_order = order - PAGE_SHIFT > 0 ? order - PAGE_SHIFT : 0;
545 entry = &dma->bufs[order];
561 buf->order = order;
612 int order, ret;
621 order = drm_order(request->size);
622 if (order < DRM_MIN_ORDER || order > DRM_MAX_ORDER) {
632 /* No more than one allocation per order */
633 if (dev->dma->bufs[order].buf_count != 0) {
648 int order, ret;
657 order = drm_order(request->size);
658 if (order < DRM_MIN_ORDER || order > DRM_MAX_ORDER) {
669 /* No more than one allocation per order */
670 if (dev->dma->bufs[order].buf_count != 0) {