Lines Matching defs:kref
167 kref_get(&buf->chan->kref);
178 * @kref: target kernel reference that contains the relay channel
182 static void relay_destroy_channel(struct kref *kref)
184 struct rchan *chan = container_of(kref, struct rchan, kref);
207 kref_put(&chan->kref, relay_destroy_channel);
212 * @kref: target kernel reference that contains the relay buffer
218 static void relay_remove_buf(struct kref *kref)
220 struct rchan_buf *buf = container_of(kref, struct rchan_buf, kref);
289 kref_init(&buf->kref);
430 kref_put(&buf->kref, relay_remove_buf);
513 kref_init(&chan->kref);
533 kref_put(&chan->kref, relay_destroy_channel);
774 kref_put(&chan->kref, relay_destroy_channel);
816 kref_get(&buf->kref);
870 kref_put(&buf->kref, relay_remove_buf);