Lines Matching refs:mapped_idx
336 struct private_handle_t *handle, int &mapped_idx) in c2d_get_gpuaddr() argument
377 mapped_idx = freeindex; in c2d_get_gpuaddr()
383 static void unmap_gpuaddr(copybit_context_t* ctx, int mapped_idx) in unmap_gpuaddr() argument
385 if (!ctx || (mapped_idx == -1)) in unmap_gpuaddr()
388 if (ctx->mapped_gpu_addr[mapped_idx]) { in unmap_gpuaddr()
389 LINK_c2dUnMapAddr( (void*)ctx->mapped_gpu_addr[mapped_idx]); in unmap_gpuaddr()
390 ctx->mapped_gpu_addr[mapped_idx] = 0; in unmap_gpuaddr()
495 const eC2DFlags flags, int &mapped_idx) in set_image() argument
502 mapped_idx = -1; in set_image()
521 gpuaddr = c2d_get_gpuaddr(ctx, handle, mapped_idx); in set_image()
550 unmap_gpuaddr(ctx, mapped_idx); in set_image()
568 unmap_gpuaddr(ctx, mapped_idx); in set_image()
589 unmap_gpuaddr(ctx, mapped_idx); in set_image()
594 unmap_gpuaddr(ctx, mapped_idx); in set_image()