|
@@ -917,26 +917,6 @@ void ion_client_destroy(struct ion_client *client)
|
|
}
|
|
}
|
|
EXPORT_SYMBOL(ion_client_destroy);
|
|
EXPORT_SYMBOL(ion_client_destroy);
|
|
|
|
|
|
-struct sg_table *ion_sg_table(struct ion_client *client,
|
|
|
|
- struct ion_handle *handle)
|
|
|
|
-{
|
|
|
|
- struct ion_buffer *buffer;
|
|
|
|
- struct sg_table *table;
|
|
|
|
-
|
|
|
|
- mutex_lock(&client->lock);
|
|
|
|
- if (!ion_handle_validate(client, handle)) {
|
|
|
|
- pr_err("%s: invalid handle passed to map_dma.\n",
|
|
|
|
- __func__);
|
|
|
|
- mutex_unlock(&client->lock);
|
|
|
|
- return ERR_PTR(-EINVAL);
|
|
|
|
- }
|
|
|
|
- buffer = handle->buffer;
|
|
|
|
- table = buffer->sg_table;
|
|
|
|
- mutex_unlock(&client->lock);
|
|
|
|
- return table;
|
|
|
|
-}
|
|
|
|
-EXPORT_SYMBOL(ion_sg_table);
|
|
|
|
-
|
|
|
|
static void ion_buffer_sync_for_device(struct ion_buffer *buffer,
|
|
static void ion_buffer_sync_for_device(struct ion_buffer *buffer,
|
|
struct device *dev,
|
|
struct device *dev,
|
|
enum dma_data_direction direction);
|
|
enum dma_data_direction direction);
|