Lines Matching defs:shrink
33 * struct ttm_mem_shrink - callback to shrink TTM memory usage.
49 * @shrink: A single callback to shrink TTM memory usage. Extend this
55 * @work: The workqueue callback for the shrink queue.
56 * @lock: Lock to protect the @shrink - and the memory accounting members,
72 struct ttm_mem_shrink *shrink;
85 * @shrink: The object to initialize.
89 static inline void ttm_mem_init_shrink(struct ttm_mem_shrink *shrink,
92 shrink->do_shrink = func;
99 * @shrink: An initialized struct ttm_mem_shrink object to register.
106 struct ttm_mem_shrink *shrink)
109 if (glob->shrink != NULL) {
113 glob->shrink = shrink;
122 * @shrink: A previously registert struct ttm_mem_shrink object.
127 struct ttm_mem_shrink *shrink)
130 MPASS(glob->shrink == shrink);
131 glob->shrink = NULL;