Lines Matching refs:otables
235 struct vmw_otable *otables; in vmw_otables_setup() local
239 otables = kzalloc(SVGA_OTABLE_DX9_MAX * sizeof(*otables), in vmw_otables_setup()
241 if (unlikely(otables == NULL)) { in vmw_otables_setup()
247 otables[SVGA_OTABLE_MOB].size = in vmw_otables_setup()
249 otables[SVGA_OTABLE_SURFACE].size = in vmw_otables_setup()
251 otables[SVGA_OTABLE_CONTEXT].size = in vmw_otables_setup()
253 otables[SVGA_OTABLE_SHADER].size = in vmw_otables_setup()
255 otables[SVGA_OTABLE_SCREEN_TARGET].size = in vmw_otables_setup()
261 otables[i].size = in vmw_otables_setup()
262 (otables[i].size + PAGE_SIZE - 1) & PAGE_MASK; in vmw_otables_setup()
263 bo_size += otables[i].size; in vmw_otables_setup()
289 &otables[i]); in vmw_otables_setup()
292 offset += otables[i].size; in vmw_otables_setup()
295 dev_priv->otables = otables; in vmw_otables_setup()
302 vmw_takedown_otable_base(dev_priv, i, &otables[i]); in vmw_otables_setup()
306 kfree(otables); in vmw_otables_setup()
326 &dev_priv->otables[i]); in vmw_otables_takedown()
335 kfree(dev_priv->otables); in vmw_otables_takedown()
336 dev_priv->otables = NULL; in vmw_otables_takedown()