Lines Matching refs:ttm_object_file
77 struct ttm_object_file { struct
127 struct ttm_object_file *tfile;
132 static inline struct ttm_object_file *
133 ttm_object_file_ref(struct ttm_object_file *tfile) in ttm_object_file_ref()
139 static int ttm_tfile_find_ref_rcu(struct ttm_object_file *tfile, in ttm_tfile_find_ref_rcu()
154 static int ttm_tfile_find_ref(struct ttm_object_file *tfile, in ttm_tfile_find_ref()
171 struct ttm_object_file *tfile = in ttm_object_file_destroy()
172 container_of(kref, struct ttm_object_file, refcount); in ttm_object_file_destroy()
178 static inline void ttm_object_file_unref(struct ttm_object_file **p_tfile) in ttm_object_file_unref()
180 struct ttm_object_file *tfile = *p_tfile; in ttm_object_file_unref()
187 int ttm_base_object_init(struct ttm_object_file *tfile, in ttm_base_object_init()
254 struct ttm_base_object *ttm_base_object_lookup(struct ttm_object_file *tfile, in ttm_base_object_lookup()
290 int ttm_ref_object_add(struct ttm_object_file *tfile, in ttm_ref_object_add()
350 struct ttm_object_file *tfile = ref->tfile; in ttm_ref_object_release()
361 int ttm_ref_object_base_unref(struct ttm_object_file *tfile, in ttm_ref_object_base_unref()
380 void ttm_object_file_release(struct ttm_object_file **p_tfile) in ttm_object_file_release()
384 struct ttm_object_file *tfile = *p_tfile; in ttm_object_file_release()
405 struct ttm_object_file *ttm_object_file_init(struct ttm_object_device *tdev) in ttm_object_file_init()
407 struct ttm_object_file *tfile = kmalloc(sizeof(*tfile), GFP_KERNEL); in ttm_object_file_init()
537 int ttm_prime_fd_to_handle(struct ttm_object_file *tfile, in ttm_prime_fd_to_handle()
572 int ttm_prime_handle_to_fd(struct ttm_object_file *tfile, in ttm_prime_handle_to_fd()
653 int ttm_prime_object_init(struct ttm_object_file *tfile, size_t size, in ttm_prime_object_init()