Lines Matching refs:idr_ref
153 if (atomic_dec_and_test(chan_dev->idr_ref)) { in chan_dev_release()
157 kfree(chan_dev->idr_ref); in chan_dev_release()
673 atomic_t *idr_ref; in dma_async_device_register() local
714 idr_ref = kmalloc(sizeof(*idr_ref), GFP_KERNEL); in dma_async_device_register()
715 if (!idr_ref) in dma_async_device_register()
719 kfree(idr_ref); in dma_async_device_register()
723 atomic_set(idr_ref, 0); in dma_async_device_register()
742 chan->dev->idr_ref = idr_ref; in dma_async_device_register()
744 atomic_inc(idr_ref); in dma_async_device_register()
753 atomic_dec(idr_ref); in dma_async_device_register()
787 if (atomic_read(idr_ref) == 0) { in dma_async_device_register()
791 kfree(idr_ref); in dma_async_device_register()