Merge "gpu: ion: Add EXPORT_SYMBOL to functions" into msm-3.0

This commit is contained in:
Linux Build Service Account
2012-01-26 16:02:11 -08:00
committed by QuIC Gerrit Code Review

View File

@@ -438,6 +438,7 @@ end:
ion_buffer_put(buffer); ion_buffer_put(buffer);
return handle; return handle;
} }
EXPORT_SYMBOL(ion_alloc);
void ion_free(struct ion_client *client, struct ion_handle *handle) void ion_free(struct ion_client *client, struct ion_handle *handle)
{ {
@@ -455,6 +456,7 @@ void ion_free(struct ion_client *client, struct ion_handle *handle)
} }
ion_handle_put(handle); ion_handle_put(handle);
} }
EXPORT_SYMBOL(ion_free);
static void ion_client_get(struct ion_client *client); static void ion_client_get(struct ion_client *client);
static int ion_client_put(struct ion_client *client); static int ion_client_put(struct ion_client *client);
@@ -512,6 +514,7 @@ int ion_phys(struct ion_client *client, struct ion_handle *handle,
ret = buffer->heap->ops->phys(buffer->heap, buffer, addr, len); ret = buffer->heap->ops->phys(buffer->heap, buffer, addr, len);
return ret; return ret;
} }
EXPORT_SYMBOL(ion_phys);
void *ion_map_kernel(struct ion_client *client, struct ion_handle *handle, void *ion_map_kernel(struct ion_client *client, struct ion_handle *handle,
unsigned long flags) unsigned long flags)
@@ -558,6 +561,7 @@ out:
mutex_unlock(&client->lock); mutex_unlock(&client->lock);
return vaddr; return vaddr;
} }
EXPORT_SYMBOL(ion_map_kernel);
int __ion_iommu_map(struct ion_buffer *buffer, int __ion_iommu_map(struct ion_buffer *buffer,
int domain_num, int partition_num, unsigned long align, int domain_num, int partition_num, unsigned long align,
@@ -776,6 +780,7 @@ out:
mutex_unlock(&client->lock); mutex_unlock(&client->lock);
return sglist; return sglist;
} }
EXPORT_SYMBOL(ion_map_dma);
void ion_unmap_kernel(struct ion_client *client, struct ion_handle *handle) void ion_unmap_kernel(struct ion_client *client, struct ion_handle *handle)
{ {
@@ -791,6 +796,7 @@ void ion_unmap_kernel(struct ion_client *client, struct ion_handle *handle)
mutex_unlock(&buffer->lock); mutex_unlock(&buffer->lock);
mutex_unlock(&client->lock); mutex_unlock(&client->lock);
} }
EXPORT_SYMBOL(ion_unmap_kernel);
void ion_unmap_dma(struct ion_client *client, struct ion_handle *handle) void ion_unmap_dma(struct ion_client *client, struct ion_handle *handle)
{ {
@@ -806,7 +812,7 @@ void ion_unmap_dma(struct ion_client *client, struct ion_handle *handle)
mutex_unlock(&buffer->lock); mutex_unlock(&buffer->lock);
mutex_unlock(&client->lock); mutex_unlock(&client->lock);
} }
EXPORT_SYMBOL(ion_unmap_dma);
struct ion_buffer *ion_share(struct ion_client *client, struct ion_buffer *ion_share(struct ion_client *client,
struct ion_handle *handle) struct ion_handle *handle)
@@ -828,6 +834,7 @@ struct ion_buffer *ion_share(struct ion_client *client,
*/ */
return handle->buffer; return handle->buffer;
} }
EXPORT_SYMBOL(ion_share);
struct ion_handle *ion_import(struct ion_client *client, struct ion_handle *ion_import(struct ion_client *client,
struct ion_buffer *buffer) struct ion_buffer *buffer)
@@ -849,6 +856,7 @@ end:
mutex_unlock(&client->lock); mutex_unlock(&client->lock);
return handle; return handle;
} }
EXPORT_SYMBOL(ion_import);
static int check_vaddr_bounds(unsigned long start, unsigned long end) static int check_vaddr_bounds(unsigned long start, unsigned long end)
{ {
@@ -937,6 +945,7 @@ end:
fput(file); fput(file);
return handle; return handle;
} }
EXPORT_SYMBOL(ion_import_fd);
static int ion_debug_client_show(struct seq_file *s, void *unused) static int ion_debug_client_show(struct seq_file *s, void *unused)
{ {
@@ -1137,6 +1146,7 @@ void ion_client_destroy(struct ion_client *client)
if (client) if (client)
ion_client_put(client); ion_client_put(client);
} }
EXPORT_SYMBOL(ion_client_destroy);
int ion_handle_get_flags(struct ion_client *client, struct ion_handle *handle, int ion_handle_get_flags(struct ion_client *client, struct ion_handle *handle,
unsigned long *flags) unsigned long *flags)