Lines Matching refs:obj

243 static const char *get_pin_flag(struct drm_i915_gem_object *obj)
245 if (obj->user_pin_count > 0)
247 else if (obj->pin_count > 0)
253 static const char *get_tiling_flag(struct drm_i915_gem_object *obj)
255 switch (obj->tiling_mode) {
274 describe_obj(struct drm_i915_gem_object *obj)
278 &obj->base,
279 get_pin_flag(obj),
280 get_tiling_flag(obj),
281 obj->base.size / 1024,
282 obj->base.read_domains,
283 obj->base.write_domain,
284 obj->last_read_seqno,
285 obj->last_write_seqno,
286 obj->last_fenced_seqno,
287 cache_level_str(obj->cache_level),
288 obj->dirty ? " dirty" : "",
289 obj->madv == I915_MADV_DONTNEED ? " purgeable" : "");
290 if (obj->base.name)
291 mdb_printf(" (name: %d)", obj->base.name);
292 if (obj->pin_count)
293 mdb_printf(" (pinned x %d)", obj->pin_count);
294 if (obj->fence_reg != I915_FENCE_REG_NONE)
295 mdb_printf(" (fence: %d)", obj->fence_reg);
296 if (obj->gtt_space != NULL)
298 obj->gtt_offset, (unsigned int)obj->base.real_size);
299 if (obj->pin_mappable || obj->fault_mappable) {
301 if (obj->pin_mappable)
303 if (obj->fault_mappable)
312 i915_obj_info(struct drm_i915_gem_object *obj)
318 obj->base.real_size, obj->gtt_offset, obj->base.kaddr,
319 obj->base.pfnarray);
321 size += obj->base.real_size;
323 if (obj->map_and_fenceable) {
324 mappable_size += obj->base.real_size;
335 " obj:\tpointer to drm_i915_gem_object structure\n"
349 struct drm_i915_gem_object *obj;
364 obj = mdb_alloc(sizeof (struct drm_i915_gem_object), UM_SLEEP);
365 if (mdb_vread(obj, sizeof (struct drm_i915_gem_object),
373 i915_obj_info(obj);
376 mdb_free(obj, sizeof (struct drm_i915_gem_object));
394 mdb_printf("%s %20s %14s %9s %23s\n", "obj", "size", "gtt_off",
413 " obj:\tpointer to drm_i915_gem_object structure\n"
495 mdb_printf("%s %20s %14s %9s %23s\n", "obj", "size",
562 " obj:\tpointer to ring object's drm_i915_gem_object structure\n"
605 mdb_printf("Render ring mmio_base 0x%lx obj 0x%lx\n",
607 dev_priv->ring[0].obj);
611 mdb_printf("BLT ring mmio_base 0x%lx obj 0x%lx\n",
613 dev_priv->ring[2].obj);
617 mdb_printf("BSD ring mmio_base 0x%lx obj 0x%lx\n",
619 dev_priv->ring[1].obj);
870 struct drm_gem_object obj;
882 if (mdb_vread(&obj, sizeof (struct drm_gem_object), addr) == -1) {
899 mdb_printf("Dump obj history\n");
902 temp = (uintptr_t)obj.his_list.next;
1010 mdb_printf("obj: 0x%lx\n", obj_list[i]);
1323 struct drm_i915_gem_object obj;
1344 if (dev_priv->fence_regs[i].obj != NULL) {
1345 mdb_vread(&obj, sizeof (struct drm_i915_gem_object),
1346 (uintptr_t)dev_priv->fence_regs[i].obj);
1347 describe_obj(&obj);
1841 mdb_printf("fbcon size: %d x %d, depth %d, %d bpp, obj %p",