Lines Matching defs:obj

71 static const char *get_pin_flag(struct drm_i915_gem_object *obj)
73 if (obj->user_pin_count > 0)
75 else if (obj->pin_count > 0)
81 static const char *get_tiling_flag(struct drm_i915_gem_object *obj)
83 switch (obj->tiling_mode) {
102 describe_obj(struct sbuf *m, struct drm_i915_gem_object *obj)
105 &obj->base,
106 get_pin_flag(obj),
107 get_tiling_flag(obj),
108 obj->base.size / 1024,
109 obj->base.read_domains,
110 obj->base.write_domain,
111 obj->last_read_seqno,
112 obj->last_write_seqno,
113 obj->last_fenced_seqno,
114 cache_level_str(obj->cache_level),
115 obj->dirty ? " dirty" : "",
116 obj->madv == I915_MADV_DONTNEED ? " purgeable" : "");
117 if (obj->base.name)
118 seq_printf(m, " (name: %d)", obj->base.name);
119 if (obj->pin_count)
120 seq_printf(m, " (pinned x %d)", obj->pin_count);
121 if (obj->pin_display)
123 if (obj->fence_reg != I915_FENCE_REG_NONE)
124 seq_printf(m, " (fence: %d)", obj->fence_reg);
125 if (obj->gtt_space != NULL)
127 obj->gtt_offset, (unsigned int)obj->gtt_space->size);
128 if (obj->pin_mappable || obj->fault_mappable) {
130 if (obj->pin_mappable)
132 if (obj->fault_mappable)
137 if (obj->ring != NULL)
138 seq_printf(m, " (%s)", obj->ring->name);
146 struct drm_i915_gem_object *obj;
168 list_for_each_entry(obj, head, mm_list) {
170 describe_obj(m, obj);
172 total_obj_size += obj->base.size;
173 total_gtt_size += obj->gtt_space->size;
184 list_for_each_entry(obj, list, member) { \
185 size += obj->gtt_space->size; \
187 if (obj->map_and_fenceable) { \
188 mappable_size += obj->gtt_space->size; \
199 struct drm_i915_gem_object *obj;
224 list_for_each_entry(obj, &dev_priv->mm.unbound_list, gtt_list) {
225 size += obj->base.size, ++count;
226 if (obj->madv == I915_MADV_DONTNEED)
227 purgeable_size += obj->base.size, ++purgeable_count;
232 list_for_each_entry(obj, &dev_priv->mm.bound_list, gtt_list) {
233 if (obj->fault_mappable) {
234 size += obj->gtt_space->size;
237 if (obj->pin_mappable) {
238 mappable_size += obj->gtt_space->size;
241 if (obj->madv == I915_MADV_DONTNEED) {
242 purgeable_size += obj->base.size;
265 struct drm_i915_gem_object *obj;
273 list_for_each_entry(obj, &dev_priv->mm.bound_list, gtt_list) {
274 if (list == PINNED_LIST && obj->pin_count == 0)
278 describe_obj(m, obj);
280 total_obj_size += obj->base.size;
281 total_gtt_size += obj->gtt_space->size;
322 struct drm_i915_gem_object *obj = work->old_fb_obj;
323 if (obj)
324 seq_printf(m, "Old framebuffer gtt_offset 0x%08x\n", obj->gtt_offset);
327 struct drm_i915_gem_object *obj = work->pending_flip_obj;
328 if (obj)
329 seq_printf(m, "New framebuffer gtt_offset 0x%08x\n", obj->gtt_offset);
502 struct drm_i915_gem_object *obj = dev_priv->fence_regs[i].obj;
506 if (obj == NULL)
509 describe_obj(m, obj);
706 struct drm_i915_error_object *obj;
708 if ((obj = error->ring[i].batchbuffer)) {
711 obj->gtt_offset);
713 for (page = 0; page < obj->page_count; page++) {
715 seq_printf(m, "%08x : %08x\n", offset, obj->pages[page][elt]);
733 if ((obj = error->ring[i].ringbuffer)) {
736 obj->gtt_offset);
738 for (page = 0; page < obj->page_count; page++) {
742 obj->pages[page][elt]);
1253 seq_printf(m, "fbcon size: %d x %d, depth %d, %d bpp, obj ",
1258 describe_obj(m, fb->obj);
1265 seq_printf(m, "user size: %d x %d, depth %d, %d bpp, obj ",
1270 describe_obj(m, fb->obj);