Lines Matching defs:phys_obj
628 if (obj->phys_obj) {
3358 if (obj->phys_obj)
3799 struct drm_i915_gem_phys_object *phys_obj;
3805 phys_obj = kzalloc(sizeof(struct drm_i915_gem_phys_object), GFP_KERNEL);
3806 if (!phys_obj)
3809 phys_obj->id = id;
3811 phys_obj->handle = drm_pci_alloc(dev, size, 0, 0xffffffff, 1);
3812 if (!phys_obj->handle) {
3817 dev_priv->mm.phys_objs[id - 1] = phys_obj;
3821 kfree(phys_obj, sizeof (struct drm_i915_gem_phys_object));
3828 struct drm_i915_gem_phys_object *phys_obj;
3833 phys_obj = dev_priv->mm.phys_objs[id - 1];
3834 if (phys_obj->cur_obj) {
3835 i915_gem_detach_phys_object(dev, phys_obj->cur_obj);
3838 drm_pci_free(phys_obj->handle);
3839 kfree(phys_obj, sizeof (struct drm_i915_gem_phys_object));
3857 if (!obj->phys_obj)
3870 char *src = (caddr_t)(obj->phys_obj->handle->vaddr + (i * PAGE_SIZE));
3879 obj->phys_obj->cur_obj = NULL;
3880 obj->phys_obj = NULL;
3897 if (obj->phys_obj) {
3898 if (obj->phys_obj->id == id)
3914 obj->phys_obj = dev_priv->mm.phys_objs[id - 1];
3915 obj->phys_obj->cur_obj = obj;
3929 char *src = (caddr_t)(obj->phys_obj->handle->vaddr + (i * PAGE_SIZE));
3953 obj_addr = (void *)(uintptr_t)(obj->phys_obj->handle->vaddr + args->offset);