Lines Matching refs:bounce
109 struct nouveau_bo *bounce = NULL; in nouveau_buffer_download() local
114 mm = nouveau_mm_allocate(nv->screen->mm_GART, size, &bounce, &offset); in nouveau_buffer_download()
115 if (!bounce) in nouveau_buffer_download()
118 nv->copy_data(nv, bounce, offset, NOUVEAU_BO_GART, in nouveau_buffer_download()
121 if (nouveau_bo_map(bounce, NOUVEAU_BO_RD, nv->screen->client)) in nouveau_buffer_download()
123 memcpy(buf->data + start, (uint8_t *)bounce->map + offset, size); in nouveau_buffer_download()
127 nouveau_bo_ref(NULL, &bounce); in nouveau_buffer_download()
138 struct nouveau_bo *bounce = NULL; in nouveau_buffer_upload() local
151 mm = nouveau_mm_allocate(nv->screen->mm_GART, size, &bounce, &offset); in nouveau_buffer_upload()
152 if (!bounce) in nouveau_buffer_upload()
155 nouveau_bo_map(bounce, 0, nv->screen->client); in nouveau_buffer_upload()
156 memcpy((uint8_t *)bounce->map + offset, buf->data + start, size); in nouveau_buffer_upload()
159 bounce, offset, NOUVEAU_BO_GART, size); in nouveau_buffer_upload()
161 nouveau_bo_ref(NULL, &bounce); in nouveau_buffer_upload()