Lines Matching refs:mapped_idx
343 struct private_handle_t *handle, int &mapped_idx) in c2d_get_gpuaddr() argument
379 mapped_idx = freeindex; in c2d_get_gpuaddr()
385 static void unmap_gpuaddr(copybit_context_t* ctx, int mapped_idx) in unmap_gpuaddr() argument
387 if (!ctx || (mapped_idx == -1)) in unmap_gpuaddr()
390 if (ctx->mapped_gpu_addr[mapped_idx]) { in unmap_gpuaddr()
391 LINK_c2dUnMapAddr( (void*)ctx->mapped_gpu_addr[mapped_idx]); in unmap_gpuaddr()
392 ctx->mapped_gpu_addr[mapped_idx] = 0; in unmap_gpuaddr()
500 const eC2DFlags flags, int &mapped_idx) in set_image() argument
507 mapped_idx = -1; in set_image()
526 gpuaddr = c2d_get_gpuaddr(ctx, handle, mapped_idx); in set_image()
559 unmap_gpuaddr(ctx, mapped_idx); in set_image()
577 unmap_gpuaddr(ctx, mapped_idx); in set_image()
598 unmap_gpuaddr(ctx, mapped_idx); in set_image()
603 unmap_gpuaddr(ctx, mapped_idx); in set_image()