Lines Matching refs:mapped_idx
345 struct private_handle_t *handle, int &mapped_idx) in c2d_get_gpuaddr() argument
381 mapped_idx = freeindex; in c2d_get_gpuaddr()
387 static void unmap_gpuaddr(copybit_context_t* ctx, int mapped_idx) in unmap_gpuaddr() argument
389 if (!ctx || (mapped_idx == -1)) in unmap_gpuaddr()
392 if (ctx->mapped_gpu_addr[mapped_idx]) { in unmap_gpuaddr()
393 LINK_c2dUnMapAddr( (void*)ctx->mapped_gpu_addr[mapped_idx]); in unmap_gpuaddr()
394 ctx->mapped_gpu_addr[mapped_idx] = 0; in unmap_gpuaddr()
502 const eC2DFlags flags, int &mapped_idx) in set_image() argument
509 mapped_idx = -1; in set_image()
528 gpuaddr = c2d_get_gpuaddr(ctx, handle, mapped_idx); in set_image()
561 unmap_gpuaddr(ctx, mapped_idx); in set_image()
579 unmap_gpuaddr(ctx, mapped_idx); in set_image()
600 unmap_gpuaddr(ctx, mapped_idx); in set_image()
605 unmap_gpuaddr(ctx, mapped_idx); in set_image()