Home
last modified time | relevance | path

Searched refs:refcount (Results 1 – 2 of 2) sorted by relevance

/system/bt/osi/src/
Dbuffer.c31 size_t refcount; member
42 buffer->refcount = 1; in buffer_new()
61 ret->refcount = SIZE_MAX; in buffer_new_slice()
64 ++buf->root->refcount; in buffer_new_slice()
75 if (--buffer->root->refcount == 0) in buffer_free()
78 } else if (--buffer->refcount == 0) { in buffer_free()
/system/core/sdcard/
Dsdcard.c148 __u32 refcount; member
270 node->refcount++; in acquire_node_locked()
271 TRACE("ACQUIRE %p (%s) rc=%d\n", node, node->name, node->refcount); in acquire_node_locked()
278 TRACE("RELEASE %p (%s) rc=%d\n", node, node->name, node->refcount); in release_node_locked()
279 if (node->refcount > 0) { in release_node_locked()
280 node->refcount--; in release_node_locked()
281 if (!node->refcount) { in release_node_locked()
1847 global.root.refcount = 2; in run()