Searched refs:idr_ref (Results 1 - 2 of 2) sorted by relevance

/linux-4.4.14/drivers/dma/
H A Ddmaengine.c162 if (atomic_dec_and_test(chan_dev->idr_ref)) { chan_dev_release()
166 kfree(chan_dev->idr_ref); chan_dev_release()
842 atomic_t *idr_ref; dma_async_device_register() local
879 idr_ref = kmalloc(sizeof(*idr_ref), GFP_KERNEL); dma_async_device_register()
880 if (!idr_ref) dma_async_device_register()
884 kfree(idr_ref); dma_async_device_register()
888 atomic_set(idr_ref, 0); dma_async_device_register()
907 chan->dev->idr_ref = idr_ref; dma_async_device_register()
909 atomic_inc(idr_ref); dma_async_device_register()
918 atomic_dec(idr_ref); dma_async_device_register()
952 if (atomic_read(idr_ref) == 0) { dma_async_device_register()
956 kfree(idr_ref); dma_async_device_register()
/linux-4.4.14/include/linux/
H A Ddmaengine.h288 * @idr_ref: reference count to gate release of dma_device dev_id
294 atomic_t *idr_ref; member in struct:dma_chan_dev

Completed in 315 milliseconds