Lines Matching defs:kref
474 kref_init(&chan->kref);
485 static void l2cap_chan_destroy(struct kref *kref)
487 struct l2cap_chan *chan = container_of(kref, struct l2cap_chan, kref);
500 BT_DBG("chan %p orig refcnt %u", c, kref_read(&c->kref));
502 kref_get(&c->kref);
507 BT_DBG("chan %p orig refcnt %u", c, kref_read(&c->kref));
509 if (!kref_get_unless_zero(&c->kref))
517 BT_DBG("chan %p orig refcnt %u", c, kref_read(&c->kref));
519 kref_put(&c->kref, l2cap_chan_destroy);
1805 static void l2cap_conn_free(struct kref *ref)