Lines Matching defs:kref
319 kref_get(&req->kref);
324 if (kref_put(&req->kref, drbd_req_destroy))
369 if (!connection || !kref_get_unless_zero(&connection->kref))
413 kref_put(&connection->kref, drbd_destroy_connection);
419 void *data, struct kref *kref,
420 void (*release)(struct kref *))
432 && kref_get_unless_zero(kref))
438 kref_put(kref, release);
447 &resource->kref, drbd_destroy_resource);
453 kref_put(&resource->kref, drbd_destroy_resource);
555 &connection->kref, drbd_destroy_connection);
561 kref_put(&connection->kref, drbd_destroy_connection);
602 &connection->kref, drbd_destroy_connection);
608 kref_put(&connection->kref, drbd_destroy_connection);
749 &device->kref, drbd_destroy_device); \
754 kref_put(&device->kref, drbd_destroy_device); \