Loading drivers/staging/android/ion/ion.c +0 −9 Original line number Diff line number Diff line Loading @@ -1311,12 +1311,3 @@ struct ion_device *ion_device_create(void) return idev; } EXPORT_SYMBOL(ion_device_create); void ion_device_destroy(struct ion_device *dev) { misc_deregister(&dev->dev); debugfs_remove_recursive(dev->debug_root); /* XXX need to free the heaps and clients ? */ kfree(dev); } EXPORT_SYMBOL(ion_device_destroy); drivers/staging/android/ion/ion.h +0 −17 Original line number Diff line number Diff line Loading @@ -272,12 +272,6 @@ bool ion_buffer_fault_user_mappings(struct ion_buffer *buffer); */ struct ion_device *ion_device_create(void); /** * ion_device_destroy - free and device and it's resource * @dev: the device */ void ion_device_destroy(struct ion_device *dev); /** * ion_device_add_heap - adds a heap to the ion device * @dev: the device Loading Loading @@ -374,25 +368,19 @@ size_t ion_heap_freelist_size(struct ion_heap *heap); */ struct ion_heap *ion_heap_create(struct ion_platform_heap *heap_data); void ion_heap_destroy(struct ion_heap *heap); struct ion_heap *ion_system_heap_create(struct ion_platform_heap *unused); void ion_system_heap_destroy(struct ion_heap *heap); struct ion_heap *ion_system_contig_heap_create(struct ion_platform_heap *heap); void ion_system_contig_heap_destroy(struct ion_heap *heap); struct ion_heap *ion_carveout_heap_create(struct ion_platform_heap *heap_data); void ion_carveout_heap_destroy(struct ion_heap *heap); struct ion_heap *ion_chunk_heap_create(struct ion_platform_heap *heap_data); void ion_chunk_heap_destroy(struct ion_heap *heap); #ifdef CONFIG_CMA struct ion_heap *ion_secure_cma_heap_create(struct ion_platform_heap *data); void ion_secure_cma_heap_destroy(struct ion_heap *heap); struct ion_heap *ion_cma_heap_create(struct ion_platform_heap *data); void ion_cma_heap_destroy(struct ion_heap *heap); #else static inline struct ion_heap *ion_secure_cma_heap_create(struct ion_platform_heap *h) Loading @@ -406,19 +394,14 @@ static inline struct ion_heap *ion_cma_heap_create(struct ion_platform_heap *h) { return NULL; } static inline void ion_cma_heap_destroy(struct ion_heap *h) {} #endif struct ion_heap *ion_system_secure_heap_create(struct ion_platform_heap *heap); void ion_system_secure_heap_destroy(struct ion_heap *heap); struct ion_heap *ion_cma_secure_heap_create(struct ion_platform_heap *heap); void ion_cma_secure_heap_destroy(struct ion_heap *heap); struct ion_heap *ion_secure_carveout_heap_create( struct ion_platform_heap *heap); void ion_secure_carveout_heap_destroy(struct ion_heap *heap); /** * functions for creating and destroying a heap pool -- allows you Loading drivers/staging/android/ion/ion_carveout_heap.c +2 −2 Original line number Diff line number Diff line Loading @@ -172,7 +172,7 @@ struct ion_heap *ion_carveout_heap_create(struct ion_platform_heap *heap_data) return __ion_carveout_heap_create(heap_data, true); } void ion_carveout_heap_destroy(struct ion_heap *heap) static void ion_carveout_heap_destroy(struct ion_heap *heap) { struct ion_carveout_heap *carveout_heap = container_of(heap, struct ion_carveout_heap, heap); Loading Loading @@ -320,7 +320,7 @@ static int ion_sc_add_child(struct ion_sc_heap *manager, return -EINVAL; } void ion_secure_carveout_heap_destroy(struct ion_heap *heap) static void ion_secure_carveout_heap_destroy(struct ion_heap *heap) { struct ion_sc_heap *manager = container_of(heap, struct ion_sc_heap, heap); Loading drivers/staging/android/ion/ion_chunk_heap.c +0 −10 Original line number Diff line number Diff line Loading @@ -165,13 +165,3 @@ struct ion_heap *ion_chunk_heap_create(struct ion_platform_heap *heap_data) kfree(chunk_heap); return ERR_PTR(ret); } void ion_chunk_heap_destroy(struct ion_heap *heap) { struct ion_chunk_heap *chunk_heap = container_of(heap, struct ion_chunk_heap, heap); gen_pool_destroy(chunk_heap->pool); kfree(chunk_heap); chunk_heap = NULL; } drivers/staging/android/ion/ion_cma_heap.c +0 −14 Original line number Diff line number Diff line Loading @@ -198,13 +198,6 @@ struct ion_heap *ion_cma_heap_create(struct ion_platform_heap *data) return &cma_heap->heap; } void ion_cma_heap_destroy(struct ion_heap *heap) { struct ion_cma_heap *cma_heap = to_cma_heap(heap); kfree(cma_heap); } static void ion_secure_cma_free(struct ion_buffer *buffer) { if (ion_hyp_unassign_sg_from_flags(buffer->sg_table, buffer->flags, Loading Loading @@ -266,10 +259,3 @@ struct ion_heap *ion_cma_secure_heap_create(struct ion_platform_heap *data) cma_heap->heap.type = (enum ion_heap_type)ION_HEAP_TYPE_HYP_CMA; return &cma_heap->heap; } void ion_cma_secure_heap_destroy(struct ion_heap *heap) { struct ion_cma_heap *cma_heap = to_cma_heap(heap); kfree(cma_heap); } Loading
drivers/staging/android/ion/ion.c +0 −9 Original line number Diff line number Diff line Loading @@ -1311,12 +1311,3 @@ struct ion_device *ion_device_create(void) return idev; } EXPORT_SYMBOL(ion_device_create); void ion_device_destroy(struct ion_device *dev) { misc_deregister(&dev->dev); debugfs_remove_recursive(dev->debug_root); /* XXX need to free the heaps and clients ? */ kfree(dev); } EXPORT_SYMBOL(ion_device_destroy);
drivers/staging/android/ion/ion.h +0 −17 Original line number Diff line number Diff line Loading @@ -272,12 +272,6 @@ bool ion_buffer_fault_user_mappings(struct ion_buffer *buffer); */ struct ion_device *ion_device_create(void); /** * ion_device_destroy - free and device and it's resource * @dev: the device */ void ion_device_destroy(struct ion_device *dev); /** * ion_device_add_heap - adds a heap to the ion device * @dev: the device Loading Loading @@ -374,25 +368,19 @@ size_t ion_heap_freelist_size(struct ion_heap *heap); */ struct ion_heap *ion_heap_create(struct ion_platform_heap *heap_data); void ion_heap_destroy(struct ion_heap *heap); struct ion_heap *ion_system_heap_create(struct ion_platform_heap *unused); void ion_system_heap_destroy(struct ion_heap *heap); struct ion_heap *ion_system_contig_heap_create(struct ion_platform_heap *heap); void ion_system_contig_heap_destroy(struct ion_heap *heap); struct ion_heap *ion_carveout_heap_create(struct ion_platform_heap *heap_data); void ion_carveout_heap_destroy(struct ion_heap *heap); struct ion_heap *ion_chunk_heap_create(struct ion_platform_heap *heap_data); void ion_chunk_heap_destroy(struct ion_heap *heap); #ifdef CONFIG_CMA struct ion_heap *ion_secure_cma_heap_create(struct ion_platform_heap *data); void ion_secure_cma_heap_destroy(struct ion_heap *heap); struct ion_heap *ion_cma_heap_create(struct ion_platform_heap *data); void ion_cma_heap_destroy(struct ion_heap *heap); #else static inline struct ion_heap *ion_secure_cma_heap_create(struct ion_platform_heap *h) Loading @@ -406,19 +394,14 @@ static inline struct ion_heap *ion_cma_heap_create(struct ion_platform_heap *h) { return NULL; } static inline void ion_cma_heap_destroy(struct ion_heap *h) {} #endif struct ion_heap *ion_system_secure_heap_create(struct ion_platform_heap *heap); void ion_system_secure_heap_destroy(struct ion_heap *heap); struct ion_heap *ion_cma_secure_heap_create(struct ion_platform_heap *heap); void ion_cma_secure_heap_destroy(struct ion_heap *heap); struct ion_heap *ion_secure_carveout_heap_create( struct ion_platform_heap *heap); void ion_secure_carveout_heap_destroy(struct ion_heap *heap); /** * functions for creating and destroying a heap pool -- allows you Loading
drivers/staging/android/ion/ion_carveout_heap.c +2 −2 Original line number Diff line number Diff line Loading @@ -172,7 +172,7 @@ struct ion_heap *ion_carveout_heap_create(struct ion_platform_heap *heap_data) return __ion_carveout_heap_create(heap_data, true); } void ion_carveout_heap_destroy(struct ion_heap *heap) static void ion_carveout_heap_destroy(struct ion_heap *heap) { struct ion_carveout_heap *carveout_heap = container_of(heap, struct ion_carveout_heap, heap); Loading Loading @@ -320,7 +320,7 @@ static int ion_sc_add_child(struct ion_sc_heap *manager, return -EINVAL; } void ion_secure_carveout_heap_destroy(struct ion_heap *heap) static void ion_secure_carveout_heap_destroy(struct ion_heap *heap) { struct ion_sc_heap *manager = container_of(heap, struct ion_sc_heap, heap); Loading
drivers/staging/android/ion/ion_chunk_heap.c +0 −10 Original line number Diff line number Diff line Loading @@ -165,13 +165,3 @@ struct ion_heap *ion_chunk_heap_create(struct ion_platform_heap *heap_data) kfree(chunk_heap); return ERR_PTR(ret); } void ion_chunk_heap_destroy(struct ion_heap *heap) { struct ion_chunk_heap *chunk_heap = container_of(heap, struct ion_chunk_heap, heap); gen_pool_destroy(chunk_heap->pool); kfree(chunk_heap); chunk_heap = NULL; }
drivers/staging/android/ion/ion_cma_heap.c +0 −14 Original line number Diff line number Diff line Loading @@ -198,13 +198,6 @@ struct ion_heap *ion_cma_heap_create(struct ion_platform_heap *data) return &cma_heap->heap; } void ion_cma_heap_destroy(struct ion_heap *heap) { struct ion_cma_heap *cma_heap = to_cma_heap(heap); kfree(cma_heap); } static void ion_secure_cma_free(struct ion_buffer *buffer) { if (ion_hyp_unassign_sg_from_flags(buffer->sg_table, buffer->flags, Loading Loading @@ -266,10 +259,3 @@ struct ion_heap *ion_cma_secure_heap_create(struct ion_platform_heap *data) cma_heap->heap.type = (enum ion_heap_type)ION_HEAP_TYPE_HYP_CMA; return &cma_heap->heap; } void ion_cma_secure_heap_destroy(struct ion_heap *heap) { struct ion_cma_heap *cma_heap = to_cma_heap(heap); kfree(cma_heap); }