Lines Matching defs:obj

84 static const char *get_pin_flag(struct drm_i915_gem_object *obj)
86 if (obj->user_pin_count > 0)
88 else if (obj->pin_count > 0)
94 static const char *get_tiling_flag(struct drm_i915_gem_object *obj)
96 switch (obj->tiling_mode) {
115 describe_obj(struct sbuf *m, struct drm_i915_gem_object *obj)
119 &obj->base,
120 get_pin_flag(obj),
121 get_tiling_flag(obj),
122 obj->base.size / 1024,
123 obj->base.read_domains,
124 obj->base.write_domain,
125 obj->last_rendering_seqno,
126 obj->last_fenced_seqno,
127 cache_level_str(obj->cache_level),
128 obj->dirty ? " dirty" : "",
129 obj->madv == I915_MADV_DONTNEED ? " purgeable" : "");
130 if (obj->base.name)
131 sbuf_printf(m, " (name: %d)", obj->base.name);
132 if (obj->pin_display)
134 if (obj->fence_reg != I915_FENCE_REG_NONE)
135 sbuf_printf(m, " (fence: %d)", obj->fence_reg);
136 if (obj->gtt_space != NULL)
138 obj->gtt_offset, (unsigned int)obj->gtt_space->size);
139 if (obj->pin_mappable || obj->fault_mappable) {
141 if (obj->pin_mappable)
143 if (obj->fault_mappable)
148 if (obj->ring != NULL)
149 sbuf_printf(m, " (%s)", obj->ring->name);
157 struct drm_i915_gem_object *obj;
183 list_for_each_entry(obj, head, mm_list) {
185 describe_obj(m, obj);
187 total_obj_size += obj->base.size;
188 total_gtt_size += obj->gtt_space->size;
199 list_for_each_entry(obj, list, member) { \
200 size += obj->gtt_space->size; \
202 if (obj->map_and_fenceable) { \
203 mappable_size += obj->gtt_space->size; \
214 struct drm_i915_gem_object *obj;
239 list_for_each_entry(obj, &dev_priv->mm.gtt_list, gtt_list) {
240 if (obj->fault_mappable) {
241 size += obj->gtt_space->size;
244 if (obj->pin_mappable) {
245 mappable_size += obj->gtt_space->size;
266 struct drm_i915_gem_object *obj;
274 list_for_each_entry(obj, &dev_priv->mm.gtt_list, gtt_list) {
275 if (list == PINNED_LIST && obj->pin_count == 0)
279 describe_obj(m, obj);
281 total_obj_size += obj->base.size;
282 total_gtt_size += obj->gtt_space->size;
297 struct drm_i915_gem_object *obj;
326 obj = work->old_fb_obj;
327 if (obj)
328 sbuf_printf(m, "Old framebuffer gtt_offset 0x%08x\n", obj->gtt_offset);
331 obj = work->pending_flip_obj;
332 if (obj)
333 sbuf_printf(m, "New framebuffer gtt_offset 0x%08x\n", obj->gtt_offset);
521 struct drm_i915_gem_object *obj = dev_priv->fence_regs[i].obj;
524 if (obj == NULL)
527 describe_obj(m, obj);
713 struct drm_i915_error_object *obj;
715 if ((obj = error->ring[i].batchbuffer)) {
718 obj->gtt_offset);
720 for (page = 0; page < obj->page_count; page++) {
723 offset, obj->pages[page][elt]);
741 if ((obj = error->ring[i].ringbuffer)) {
744 obj->gtt_offset);
746 for (page = 0; page < obj->page_count; page++) {
750 obj->pages[page][elt]);
1256 sbuf_printf(m, "fbcon size: %d x %d, depth %d, %d bpp, obj ",
1261 describe_obj(m, fb->obj);
1268 sbuf_printf(m, "user size: %d x %d, depth %d, %d bpp, obj ",
1273 describe_obj(m, fb->obj);