Lines Matching refs:fbo
447 struct ttm_buffer_object *fbo; in ttm_buffer_object_transfer() local
450 fbo = kmalloc(sizeof(*fbo), GFP_KERNEL); in ttm_buffer_object_transfer()
451 if (!fbo) in ttm_buffer_object_transfer()
454 *fbo = *bo; in ttm_buffer_object_transfer()
461 INIT_LIST_HEAD(&fbo->ddestroy); in ttm_buffer_object_transfer()
462 INIT_LIST_HEAD(&fbo->lru); in ttm_buffer_object_transfer()
463 INIT_LIST_HEAD(&fbo->swap); in ttm_buffer_object_transfer()
464 INIT_LIST_HEAD(&fbo->io_reserve_lru); in ttm_buffer_object_transfer()
465 drm_vma_node_reset(&fbo->vma_node); in ttm_buffer_object_transfer()
466 atomic_set(&fbo->cpu_writers, 0); in ttm_buffer_object_transfer()
468 kref_init(&fbo->list_kref); in ttm_buffer_object_transfer()
469 kref_init(&fbo->kref); in ttm_buffer_object_transfer()
470 fbo->destroy = &ttm_transfered_destroy; in ttm_buffer_object_transfer()
471 fbo->acc_size = 0; in ttm_buffer_object_transfer()
472 fbo->resv = &fbo->ttm_resv; in ttm_buffer_object_transfer()
473 reservation_object_init(fbo->resv); in ttm_buffer_object_transfer()
474 ret = ww_mutex_trylock(&fbo->resv->lock); in ttm_buffer_object_transfer()
477 *new_obj = fbo; in ttm_buffer_object_transfer()