Lines Matching refs:screen
24 nouveau_buffer_allocate(struct nouveau_screen *screen,
33 buf->mm = nouveau_mm_allocate(screen->mm_VRAM, size,
36 return nouveau_buffer_allocate(screen, buf, NOUVEAU_BO_GART);
39 buf->mm = nouveau_mm_allocate(screen->mm_GART, size,
78 nouveau_buffer_reallocate(struct nouveau_screen *screen,
83 return nouveau_buffer_allocate(screen, buf, domain);
114 mm = nouveau_mm_allocate(nv->screen->mm_GART, size, &bounce, &offset);
121 if (nouveau_bo_map(bounce, NOUVEAU_BO_RD, nv->screen->client))
151 mm = nouveau_mm_allocate(nv->screen->mm_GART, size, &bounce, &offset);
155 nouveau_bo_map(bounce, 0, nv->screen->client);
163 release_allocation(&mm, nv->screen->fence.current);
269 ret = nouveau_bo_map(buf->bo, flags, nv->screen->client);
333 if (nouveau_bo_map(res->bo, flags, nv->screen->client))
356 struct nouveau_screen *screen = nouveau_screen(pscreen);
367 buffer->base.screen = pscreen;
370 (screen->vidmem_bindings & screen->sysmem_bindings)) {
387 if (buffer->base.bind & screen->vidmem_bindings)
390 if (buffer->base.bind & screen->sysmem_bindings)
393 ret = nouveau_buffer_allocate(screen, buffer, buffer->domain);
418 buffer->base.screen = pscreen;
442 if (nouveau_bo_map(bo, NOUVEAU_BO_RD, nv->screen->client))
454 struct nouveau_screen *screen = nv->screen;
464 if (!nouveau_buffer_allocate(screen, buf, new_domain))
466 ret = nouveau_bo_map(buf->bo, 0, nv->screen->client);
487 nouveau_buffer_allocate(screen, buf, new_domain);
494 release_allocation(&mm, screen->fence.current);
497 if (!nouveau_buffer_allocate(screen, buf, NOUVEAU_BO_VRAM))
517 struct nouveau_screen *screen = nouveau_screen(buf->base.screen);
523 if (!nouveau_buffer_reallocate(screen, buf, NOUVEAU_BO_GART))
526 ret = nouveau_bo_map(buf->bo, 0, nv->screen->client);
541 return nouveau_bo_new(nv->screen->device, NOUVEAU_BO_GART | NOUVEAU_BO_MAP,
614 ret = nouveau_bo_map(bo, NOUVEAU_BO_WR, nv->screen->client);