Lines Matching defs:base

53  * TTM_REF_USAGE is a simple refcount on a base object.
98 * @type: derived type this object is base class for.
106 * including the hash entry. A reference to a base object can
114 * "base" should be set to NULL by the function.
121 * This struct is intended to be used as a base struct for objects that
130 void (*refcount_release) (struct ttm_base_object **base);
131 void (*ref_obj_release) (struct ttm_base_object *base,
140 * struct ttm_prime_object - Modified base object that is prime-aware
142 * @base: struct ttm_base_object that we derive from
146 * the value of @base::object_type to ttm_prime_type
150 * we set @base::refcount_release to our own release method.
154 struct ttm_base_object base;
166 * @base: The struct ttm_base_object to initialize.
177 struct ttm_base_object *base,
207 * caller doesn't yet have a reference to the base object.
218 * Decrements the base object refcount and clears the pointer pointed to by
229 * @base: The base object to reference.
236 * Checks that the base object is shareable and adds a ref object to it.
238 * Adding a ref object to a base object is basically like referencing the
239 * base object, but a user-space application holds the reference. When the
245 * will hold a single reference on a base object.
248 struct ttm_base_object *base,
253 struct ttm_base_object *base);
258 * @key: Key representing the base object.
262 * on the base object identified by @key. If there are no duplicate
263 * references, the ref object will be destroyed and the base object
300 * @hash_order: Order of hash table used to hash the base objects.
304 * data structures needed for ttm base and ref objects.
340 ttm_base_object_type(struct ttm_base_object *base)
342 return (base->object_type == ttm_prime_type) ?
343 container_of(base, struct ttm_prime_object, base)->real_type :
344 base->object_type;
353 kfree_rcu(__obj, __prime.base.rhead)
356 * Extra memory required by the base object's idr storage, which is allocated
357 * separately from the base object itself. We estimate an on-average 128 bytes
366 * ttm_base_object_noref_release - release a base object pointer looked up
369 * Releases a base object pointer looked up with ttm_base_object_noref_lookup().