Lines Matching defs:glob
110 * @glob: The struct ttm_mem_global object to register with.
117 static inline int ttm_mem_register_shrink(struct ttm_mem_global *glob,
120 spin_lock(&glob->lock);
121 if (glob->shrink != NULL) {
122 spin_unlock(&glob->lock);
125 glob->shrink = shrink;
126 spin_unlock(&glob->lock);
133 * @glob: The struct ttm_mem_global object to unregister from.
138 static inline void ttm_mem_unregister_shrink(struct ttm_mem_global *glob,
141 spin_lock(&glob->lock);
142 BUG_ON(glob->shrink != shrink);
143 glob->shrink = NULL;
144 spin_unlock(&glob->lock);
147 extern int ttm_mem_global_init(struct ttm_mem_global *glob);
148 extern void ttm_mem_global_release(struct ttm_mem_global *glob);
149 extern int ttm_mem_global_alloc(struct ttm_mem_global *glob, uint64_t memory,
151 extern void ttm_mem_global_free(struct ttm_mem_global *glob,
153 extern int ttm_mem_global_alloc_page(struct ttm_mem_global *glob,
156 extern void ttm_mem_global_free_page(struct ttm_mem_global *glob,