Lines Matching refs:mapped_idx
338 struct private_handle_t *handle, int &mapped_idx) in c2d_get_gpuaddr() argument
378 mapped_idx = freeindex; in c2d_get_gpuaddr()
384 static void unmap_gpuaddr(copybit_context_t* ctx, int mapped_idx) in unmap_gpuaddr() argument
386 if (!ctx || (mapped_idx == -1)) in unmap_gpuaddr()
389 if (ctx->mapped_gpu_addr[mapped_idx]) { in unmap_gpuaddr()
390 LINK_c2dUnMapAddr( (void*)ctx->mapped_gpu_addr[mapped_idx]); in unmap_gpuaddr()
391 ctx->mapped_gpu_addr[mapped_idx] = 0; in unmap_gpuaddr()
496 const eC2DFlags flags, int &mapped_idx) in set_image() argument
503 mapped_idx = -1; in set_image()
522 gpuaddr = c2d_get_gpuaddr(ctx, handle, mapped_idx); in set_image()
551 unmap_gpuaddr(ctx, mapped_idx); in set_image()
569 unmap_gpuaddr(ctx, mapped_idx); in set_image()
590 unmap_gpuaddr(ctx, mapped_idx); in set_image()
595 unmap_gpuaddr(ctx, mapped_idx); in set_image()