Searched refs:mm (Results 1 - 18 of 18) sorted by relevance

/solaris-x11-s11/open-src/kernel/drm/src/
H A Ddrm_mm.c53 static struct drm_mm_node *drm_mm_kmalloc(struct drm_mm *mm, int atomic) argument
63 spin_lock(&mm->unused_lock);
64 if (list_empty(&mm->unused_nodes))
68 list_entry(mm->unused_nodes.next,
71 --mm->num_unused;
73 spin_unlock(&mm->unused_lock);
83 int drm_mm_pre_get(struct drm_mm *mm) argument
87 spin_lock(&mm->unused_lock);
88 while (mm->num_unused < MM_UNUSED_TARGET) {
89 spin_unlock(&mm
110 struct drm_mm *mm = hole_node->mm; local
150 drm_mm_create_block(struct drm_mm *mm, unsigned long start, unsigned long size, bool atomic) argument
216 drm_mm_insert_node_generic(struct drm_mm *mm, struct drm_mm_node *node, unsigned long size, unsigned alignment, unsigned long color) argument
231 drm_mm_insert_node(struct drm_mm *mm, struct drm_mm_node *node, unsigned long size, unsigned alignment) argument
243 struct drm_mm *mm = hole_node->mm; local
314 drm_mm_insert_node_in_range_generic(struct drm_mm *mm, struct drm_mm_node *node, unsigned long size, unsigned alignment, unsigned long color, unsigned long start, unsigned long end) argument
332 drm_mm_insert_node_in_range(struct drm_mm *mm, struct drm_mm_node *node, unsigned long size, unsigned alignment, unsigned long start, unsigned long end) argument
344 struct drm_mm *mm = node->mm; local
381 struct drm_mm *mm = node->mm; local
409 drm_mm_search_free_generic(const struct drm_mm *mm, unsigned long size, unsigned alignment, unsigned long color, bool best_match) argument
448 drm_mm_search_free_in_range_generic(const struct drm_mm *mm, unsigned long size, unsigned alignment, unsigned long color, unsigned long start, unsigned long end, bool best_match) argument
520 drm_mm_init_scan(struct drm_mm *mm, unsigned long size, unsigned alignment, unsigned long color) argument
544 drm_mm_init_scan_with_range(struct drm_mm *mm, unsigned long size, unsigned alignment, unsigned long color, unsigned long start, unsigned long end) argument
571 struct drm_mm *mm = node->mm; local
631 struct drm_mm *mm = node->mm; local
650 drm_mm_clean(struct drm_mm * mm) argument
658 drm_mm_init(struct drm_mm * mm, unsigned long start, unsigned long size) argument
682 drm_mm_takedown(struct drm_mm * mm) argument
720 drm_mm_debug_table(struct drm_mm *mm, const char *prefix) argument
740 drm_mm_initialized(struct drm_mm *mm) argument
802 drm_mm_search_free(const struct drm_mm *mm, unsigned long size, unsigned alignment, bool best_match) argument
809 drm_mm_search_free_in_range( const struct drm_mm *mm, unsigned long size, unsigned alignment, unsigned long start, unsigned long end, bool best_match) argument
[all...]
/solaris-x11-s11/open-src/kernel/sys/drm/
H A Ddrm_mm.h60 struct drm_mm *mm; member in struct:drm_mm_node
92 extern bool drm_mm_initialized(struct drm_mm *mm);
97 #define drm_mm_for_each_node(entry, type, mm) list_for_each_entry(entry, type, \
98 &(mm)->head_node.node_list, \
100 #define drm_mm_for_each_scanned_node_reverse(entry, n, mm) \
101 for (entry = (mm)->prev_scanned_node, \
112 #define drm_mm_for_each_hole(entry, mm, hole_start, hole_end) \
113 for (entry = list_entry((mm)->hole_stack.next, struct drm_mm_node, hole_stack); \
114 (entry) && (&entry->hole_stack != &(mm)->hole_stack ? \
123 extern struct drm_mm_node *drm_mm_create_block(struct drm_mm *mm,
[all...]
/solaris-x11-s11/open-src/kernel/i915/src/
H A Di915_gem_stolen.c87 base -= dev_priv->mm.gtt->stolen_size;
103 compressed_fb = drm_mm_search_free(&dev_priv->mm.stolen,
106 compressed_fb = drm_mm_search_free(&dev_priv->mm.stolen,
118 compressed_llb = drm_mm_search_free(&dev_priv->mm.stolen,
129 dev_priv->mm.stolen_base + compressed_fb->start);
131 dev_priv->mm.stolen_base + compressed_llb->start);
152 if (!drm_mm_initialized(&dev_priv->mm.stolen))
184 if (!drm_mm_initialized(&dev_priv->mm.stolen))
188 drm_mm_takedown(&dev_priv->mm.stolen);
196 dev_priv->mm
[all...]
H A Di915_gem_evict.c84 drm_mm_init_scan_with_range(&dev_priv->mm.gtt_space,
88 drm_mm_init_scan(&dev_priv->mm.gtt_space,
92 list_for_each_entry(obj, struct drm_i915_gem_object, &dev_priv->mm.inactive_list, mm_list) {
101 list_for_each_entry(obj, struct drm_i915_gem_object, &dev_priv->mm.active_list, mm_list) {
163 lists_empty = (list_empty(&dev_priv->mm.inactive_list) &&
164 list_empty(&dev_priv->mm.active_list));
180 &dev_priv->mm.inactive_list, mm_list)
H A Di915_gem_tiling.c203 dev_priv->mm.bit_6_swizzle_x = swizzle_x;
204 dev_priv->mm.bit_6_swizzle_y = swizzle_y;
325 args->swizzle_mode = dev_priv->mm.bit_6_swizzle_x;
327 args->swizzle_mode = dev_priv->mm.bit_6_swizzle_y;
436 args->swizzle_mode = dev_priv->mm.bit_6_swizzle_x;
439 args->swizzle_mode = dev_priv->mm.bit_6_swizzle_y;
H A Di915_gem.c76 dev_priv->mm.object_count++;
77 dev_priv->mm.object_memory += size;
83 dev_priv->mm.object_count--;
84 dev_priv->mm.object_memory -= size;
171 list_for_each_entry(obj, struct drm_i915_gem_object, &dev_priv->mm.bound_list, global_list)
244 * Creates a new mm object and returns a handle to it.
802 bool interruptible = dev_priv->mm.interruptible;
878 BUG_ON(!dev_priv->mm.interruptible);
1374 list_add_tail(&obj->global_list, &dev_priv->mm.unbound_list, (caddr_t)obj);
1400 list_move_tail(&obj->mm_list, &dev_priv->mm
[all...]
H A Di915_gem_gtt.c232 struct i915_hw_ppgtt *ppgtt = dev_priv->mm.aliasing_ppgtt;
408 dev_priv->mm.aliasing_ppgtt = ppgtt;
416 struct i915_hw_ppgtt *ppgtt = dev_priv->mm.aliasing_ppgtt;
422 dev_priv->mm.aliasing_ppgtt = NULL;
452 i915_ggtt_clear_range(dev_priv->mm.gtt_start / PAGE_SIZE,
453 (dev_priv->mm.gtt_end - dev_priv->mm.gtt_start) / PAGE_SIZE);
456 list_for_each_entry(obj, struct drm_i915_gem_object, &dev_priv->mm.bound_list, global_list) {
483 * mapped BAR (dev_priv->mm.gtt->gtt).
647 drm_mm_init(&dev_priv->mm
[all...]
H A Di915_drv.c570 dev_priv->mm.suspended = 0;
849 !dev_priv->mm.suspended) {
853 dev_priv->mm.suspended = 0;
861 if (dev_priv->mm.aliasing_ppgtt) {
862 ret = dev_priv->mm.aliasing_ppgtt->enable(dev);
1089 drm_mm_takedown(&dev_priv->mm.stolen);
H A Di915_dma.c985 value = dev_priv->mm.aliasing_ppgtt ? 1 : 0;
1236 dev_priv->mm.suspended = 0;
1270 dev_priv->mm.suspended = 0;
1280 drm_mm_takedown(&dev_priv->mm.gtt_space);
1487 dev_priv->mm.suspended = 1;
1583 drm_mm_takedown(&dev_priv->mm.gtt_space);
1671 spin_lock_init(&i915_file_priv->mm.lock);
1672 INIT_LIST_HEAD(&i915_file_priv->mm.request_list);
H A Di915_gem_execbuffer.c324 if (dev_priv->mm.aliasing_ppgtt && !obj->has_aliasing_ppgtt_mapping) {
325 i915_ppgtt_bind_object(dev_priv->mm.aliasing_ppgtt,
887 if (dev_priv->mm.suspended || dev_priv->gpu_hang) {
H A Di915_irq.c1498 offset = dev_priv->mm.stolen_base;
1682 list_for_each_entry(obj, &dev_priv->mm.active_list, mm_list) {
1757 list_for_each_entry(obj, &dev_priv->mm.bound_list, global_list) {
1891 list_for_each_entry(obj, &dev_priv->mm.active_list, mm_list)
1894 list_for_each_entry(obj, &dev_priv->mm.bound_list, global_list)
1913 &dev_priv->mm.active_list);
1919 &dev_priv->mm.bound_list);
H A Di915_drv.h965 * that wait for dev_priv->mm.wedged to settle.
1130 struct i915_gem_mm mm; member in struct:drm_i915_private
1421 } mm; member in struct:drm_i915_file_private
1869 return dev_priv->mm.bit_6_swizzle_x == I915_BIT_6_SWIZZLE_9_10_17 &&
H A Dintel_pm.c3489 pcbr_offset = (pcbr & (~4095)) - dev_priv->mm.stolen_base;
3511 pctx_paddr = dev_priv->mm.stolen_base + pctx->stolen->start;
3702 was_interruptible = dev_priv->mm.interruptible;
3703 dev_priv->mm.interruptible = false;
3712 dev_priv->mm.interruptible = was_interruptible;
3734 dev_priv->mm.interruptible = was_interruptible;
H A Dintel_ringbuffer.c1504 dev_priv->mm.interruptible);
1596 dev_priv->mm.interruptible);
H A Dintel_display.c1810 dev_priv->mm.interruptible = false;
1826 dev_priv->mm.interruptible = true;
1832 dev_priv->mm.interruptible = true;
2118 bool was_interruptible = dev_priv->mm.interruptible;
2129 dev_priv->mm.interruptible = false;
2131 dev_priv->mm.interruptible = was_interruptible;
3535 dev_priv->mm.interruptible = false;
3537 dev_priv->mm.interruptible = true;
/solaris-x11-s11/open-src/driver/efb/sun-src/src/
H A Defb_driver.c369 int mm; local
373 for (mm = 0; pScrn->display->modes[mm] != NULL && !found; mm++) {
374 modes = pScrn->display->modes[mm];
533 int mm; local
536 for (mm = 0; pScrn->display->modes[mm] != NULL && !found; mm++) {
537 modes = pScrn->display->modes[mm];
[all...]
/solaris-x11-s11/open-src/app/gfx-utils/sun-src/vts/ast/
H A Dtools.c897 register uint_t mm; local
931 mm = GAbsY;
935 mm = GAbsX;
945 err = (int)(2 * mm) - (int)MM;
946 k1 = 2 * mm;
947 k2 = (int)(2 * mm) - (int)(2 * MM);
/solaris-x11-s11/open-src/kernel/mdb/modules/
H A Di915.c463 dev_priv->mm.object_count, dev_priv->mm.object_memory);
512 ret = obj_walk_list((uintptr_t)dev_priv->mm.active_list.next,
523 ret = obj_walk_list((uintptr_t)dev_priv->mm.inactive_list.next,
533 ret = obj_walk_list((uintptr_t)dev_priv->mm.bound_list.next,
544 ret = obj_walk_list((uintptr_t)dev_priv->mm.unbound_list.next,
1956 swizzle_string(dev_priv->mm.bit_6_swizzle_x));
1958 swizzle_string(dev_priv->mm.bit_6_swizzle_y));
2082 if (dev_priv->mm.aliasing_ppgtt) {
2085 (uintptr_t)dev_priv->mm
[all...]

Completed in 110 milliseconds