Lines Matching refs:obj

654 	if (ring->obj == NULL)
1539 i915_error_object_free(struct drm_i915_error_object *obj)
1543 if (obj == NULL)
1546 for (page = 0; page < obj->page_count; page++)
1547 kfree(obj->pages[page]);
1549 kfree(obj);
1572 struct drm_i915_gem_object *obj)
1574 err->size = obj->base.size;
1575 err->name = obj->base.name;
1576 err->rseqno = obj->last_read_seqno;
1577 err->wseqno = obj->last_write_seqno;
1578 err->gtt_offset = obj->gtt_offset;
1579 err->read_domains = obj->base.read_domains;
1580 err->write_domain = obj->base.write_domain;
1581 err->fence_reg = obj->fence_reg;
1583 if (obj->pin_count > 0)
1585 if (obj->user_pin_count > 0)
1587 err->tiling = obj->tiling_mode;
1588 err->dirty = obj->dirty;
1589 err->purgeable = obj->madv != I915_MADV_WILLNEED;
1590 err->ring = obj->ring ? obj->ring->id : -1;
1591 err->cache_level = obj->cache_level;
1597 struct drm_i915_gem_object *obj;
1600 list_for_each_entry(obj, head, mm_list) {
1601 capture_bo(err++, obj);
1612 struct drm_i915_gem_object *obj;
1615 list_for_each_entry(obj, head, global_list) {
1616 if (obj->pin_count == 0)
1619 capture_bo(err++, obj);
1663 struct drm_i915_gem_object *obj;
1675 obj = ring->private;
1676 if (acthd >= obj->gtt_offset &&
1677 acthd < obj->gtt_offset + obj->base.size)
1678 return i915_error_object_create(dev_priv, obj);
1682 list_for_each_entry(obj, &dev_priv->mm.active_list, mm_list) {
1683 if (obj->ring != ring)
1686 if (i915_seqno_passed(seqno, obj->last_read_seqno))
1689 if ((obj->base.read_domains & I915_GEM_DOMAIN_COMMAND) == 0)
1695 return i915_error_object_create(dev_priv, obj);
1751 struct drm_i915_gem_object *obj;
1757 list_for_each_entry(obj, &dev_priv->mm.bound_list, global_list) {
1758 if ((error->ccid & PAGE_MASK) == obj->gtt_offset) {
1760 obj, 1);
1780 i915_error_object_create(dev_priv, ring->obj);
1822 struct drm_i915_gem_object *obj;
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)
1895 if (obj->pin_count)
2105 struct drm_i915_gem_object *obj;
2126 obj = work->pending_flip_obj;
2130 obj->gtt_offset;
2133 stall_detected = I915_READ(dspaddr) == (obj->gtt_offset +