Lines Matching refs:idr_ref
153 if (atomic_dec_and_test(chan_dev->idr_ref)) {
157 kfree(chan_dev->idr_ref);
673 atomic_t *idr_ref;
710 idr_ref = kmalloc(sizeof(*idr_ref), GFP_KERNEL);
711 if (!idr_ref)
715 kfree(idr_ref);
719 atomic_set(idr_ref, 0);
738 chan->dev->idr_ref = idr_ref;
740 atomic_inc(idr_ref);
749 atomic_dec(idr_ref);
783 if (atomic_read(idr_ref) == 0) {
787 kfree(idr_ref);