Home
last modified time | relevance | path

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

12345

/external/e2fsprogs/e2fsck/
Dea_refcount.c35 void ea_refcount_free(ext2_refcount_t refcount) in ea_refcount_free() argument
37 if (!refcount) in ea_refcount_free()
40 if (refcount->list) in ea_refcount_free()
41 ext2fs_free_mem(&refcount->list); in ea_refcount_free()
42 ext2fs_free_mem(&refcount); in ea_refcount_free()
47 ext2_refcount_t refcount; in ea_refcount_create() local
51 retval = ext2fs_get_mem(sizeof(struct ea_refcount), &refcount); in ea_refcount_create()
54 memset(refcount, 0, sizeof(struct ea_refcount)); in ea_refcount_create()
58 refcount->size = size; in ea_refcount_create()
62 refcount->size, bytes); in ea_refcount_create()
[all …]
De2fsck.h235 ext2_refcount_t refcount; member
401 extern void ea_refcount_free(ext2_refcount_t refcount);
402 extern errcode_t ea_refcount_fetch(ext2_refcount_t refcount, blk_t blk,
404 extern errcode_t ea_refcount_increment(ext2_refcount_t refcount,
406 extern errcode_t ea_refcount_decrement(ext2_refcount_t refcount,
408 extern errcode_t ea_refcount_store(ext2_refcount_t refcount,
410 extern blk_t ext2fs_get_refcount_size(ext2_refcount_t refcount);
411 extern void ea_refcount_intr_begin(ext2_refcount_t refcount);
412 extern blk_t ea_refcount_intr_next(ext2_refcount_t refcount, int *ret);
/external/dbus/dbus/
Ddbus-resources.c54 int refcount; /**< reference count */ member
85 counter->refcount = 1; in _dbus_counter_new()
104 _dbus_assert (counter->refcount > 0); in _dbus_counter_ref()
106 counter->refcount += 1; in _dbus_counter_ref()
120 _dbus_assert (counter->refcount > 0); in _dbus_counter_unref()
122 counter->refcount -= 1; in _dbus_counter_unref()
124 if (counter->refcount == 0) in _dbus_counter_unref()
Ddbus-server.c101 server->refcount.value = 1; in _dbus_server_init_base()
435 _dbus_assert (server->refcount.value > 0); in _dbus_server_ref_unlocked()
440 _dbus_atomic_inc (&server->refcount); in _dbus_server_ref_unlocked()
442 _dbus_assert (server->refcount.value > 0); in _dbus_server_ref_unlocked()
444 server->refcount.value += 1; in _dbus_server_ref_unlocked()
461 _dbus_assert (server->refcount.value > 0); in _dbus_server_unref_unlocked()
466 last_unref = (_dbus_atomic_dec (&server->refcount) == 1); in _dbus_server_unref_unlocked()
468 _dbus_assert (server->refcount.value > 0); in _dbus_server_unref_unlocked()
470 server->refcount.value -= 1; in _dbus_server_unref_unlocked()
471 last_unref = (server->refcount.value == 0); in _dbus_server_unref_unlocked()
[all …]
Ddbus-pending-call.c62 DBusAtomic refcount; /**< reference count */ member
133 pending->refcount.value = 1; in _dbus_pending_call_new_unlocked()
376 pending->refcount.value += 1; in _dbus_pending_call_ref_unlocked()
437 _dbus_assert (pending->refcount.value > 0); in _dbus_pending_call_unref_and_unlock()
439 pending->refcount.value -= 1; in _dbus_pending_call_unref_and_unlock()
440 last_unref = pending->refcount.value == 0; in _dbus_pending_call_unref_and_unlock()
540 _dbus_atomic_inc (&pending->refcount); in dbus_pending_call_ref()
543 _dbus_assert (pending->refcount.value > 0); in dbus_pending_call_ref()
545 pending->refcount.value += 1; in dbus_pending_call_ref()
569 last_unref = (_dbus_atomic_dec (&pending->refcount) == 1); in dbus_pending_call_unref()
[all …]
Ddbus-mainloop.c56 int refcount; member
73 int refcount; member
115 cb->callback.refcount = 1; in watch_callback_new()
139 cb->callback.refcount = 1; in timeout_callback_new()
150 _dbus_assert (cb->refcount > 0); in callback_ref()
152 cb->refcount += 1; in callback_ref()
160 _dbus_assert (cb->refcount > 0); in callback_unref()
162 cb->refcount -= 1; in callback_unref()
164 if (cb->refcount == 0) in callback_unref()
225 loop->refcount = 1; in _dbus_loop_new()
[all …]
Ddbus-timeout.c41 int refcount; /**< Reference count */ member
73 timeout->refcount = 1; in _dbus_timeout_new()
94 timeout->refcount += 1; in _dbus_timeout_ref()
109 _dbus_assert (timeout->refcount > 0); in _dbus_timeout_unref()
111 timeout->refcount -= 1; in _dbus_timeout_unref()
112 if (timeout->refcount == 0) in _dbus_timeout_unref()
Ddbus-dataslot.c93 allocator->allocated_slots[slot].refcount += 1; in _dbus_data_slot_allocator_alloc()
108 allocator->allocated_slots[slot].refcount = 1; in _dbus_data_slot_allocator_alloc()
132 allocator->allocated_slots[slot].refcount = 1; in _dbus_data_slot_allocator_alloc()
139 _dbus_assert (allocator->allocated_slots[slot].refcount == 1); in _dbus_data_slot_allocator_alloc()
170 _dbus_assert (allocator->allocated_slots[*slot_id_p].refcount > 0); in _dbus_data_slot_allocator_free()
172 allocator->allocated_slots[*slot_id_p].refcount -= 1; in _dbus_data_slot_allocator_free()
174 if (allocator->allocated_slots[*slot_id_p].refcount > 0) in _dbus_data_slot_allocator_free()
Ddbus-watch.c41 int refcount; /**< Reference count */ member
84 watch->refcount = 1; in _dbus_watch_new()
105 watch->refcount += 1; in _dbus_watch_ref()
120 _dbus_assert (watch->refcount > 0); in _dbus_watch_unref()
122 watch->refcount -= 1; in _dbus_watch_unref()
123 if (watch->refcount == 0) in _dbus_watch_unref()
Ddbus-userdb.c448 db->refcount = 1; in _dbus_user_database_new()
500 _dbus_assert (db->refcount > 0); in _dbus_user_database_ref()
502 db->refcount += 1; in _dbus_user_database_ref()
515 _dbus_assert (db->refcount > 0); in _dbus_user_database_unref()
517 db->refcount -= 1; in _dbus_user_database_unref()
518 if (db->refcount == 0) in _dbus_user_database_unref()
Ddbus-message-private.h62 int refcount; /**< Reference count. */ member
90 DBusAtomic refcount; /**< Reference count */ member
/external/qemu/block/
Dqcow2-refcount.c255 int block_index, refcount; in update_refcount() local
289 refcount = be16_to_cpu(s->refcount_block_cache[block_index]); in update_refcount()
290 refcount += addend; in update_refcount()
291 if (refcount < 0 || refcount > 0xffff) in update_refcount()
293 if (refcount == 0 && cluster_index < s->free_cluster_index) { in update_refcount()
296 s->refcount_block_cache[block_index] = cpu_to_be16(refcount); in update_refcount()
449 int refcount; in qcow2_create_refcount_update() local
458 refcount = be16_to_cpu(*p); in qcow2_create_refcount_update()
459 refcount++; in qcow2_create_refcount_update()
460 *p = cpu_to_be16(refcount); in qcow2_create_refcount_update()
[all …]
/external/tesseract/liblept/
Dpix.h77 l_uint32 refcount; /* reference count (1 if no clones) */ member
341 l_uint32 refcount; /* reference count (1 if no clones) */ member
368 l_uint32 refcount; /* reference count (1 if no clones) */ member
377 l_uint32 refcount; /* reference count (1 if no clones) */ member
400 l_int32 refcount; /* reference count (1 if no clones) */ member
457 l_int32 refcount; /* reference count (1 if no clones) */ member
475 l_int32 refcount; /* reference count (1 if no clones) */ member
Darray.h43 l_int32 refcount; /* reference count (1 if no clones) */ member
90 l_int32 refcount; /* reference count (1 if no clones) */ member
Dfpix1.c103 fpixd->refcount = 1; in fpixCreate()
388 return fpix->refcount; in fpixGetRefcount()
401 fpix->refcount += delta; in fpixChangeRefcount()
510 dpix->refcount = 1; in dpixCreate()
795 return dpix->refcount; in dpixGetRefcount()
808 dpix->refcount += delta; in dpixChangeRefcount()
/external/tesseract/include/
Dpix.h75 l_uint32 refcount; /* reference count (1 if no clones) */ member
339 l_uint32 refcount; /* reference count (1 if no clones) */ member
366 l_uint32 refcount; /* reference count (1 if no clones) */ member
375 l_uint32 refcount; /* reference count (1 if no clones) */ member
398 l_int32 refcount; /* reference count (1 if no clones) */ member
455 l_int32 refcount; /* reference count (1 if no clones) */ member
473 l_int32 refcount; /* reference count (1 if no clones) */ member
Darray.h43 l_int32 refcount; /* reference count (1 if no clones) */ member
90 l_int32 refcount; /* reference count (1 if no clones) */ member
/external/dbus/bus/
Dpolicy.c43 rule->refcount = 1; in bus_policy_rule_new()
79 _dbus_assert (rule->refcount > 0); in bus_policy_rule_ref()
81 rule->refcount += 1; in bus_policy_rule_ref()
89 _dbus_assert (rule->refcount > 0); in bus_policy_rule_unref()
91 rule->refcount -= 1; in bus_policy_rule_unref()
93 if (rule->refcount == 0) in bus_policy_rule_unref()
126 int refcount; member
169 policy->refcount = 1; in bus_policy_new()
193 _dbus_assert (policy->refcount > 0); in bus_policy_ref()
195 policy->refcount += 1; in bus_policy_ref()
[all …]
Dservices.c40 int refcount; member
49 int refcount; member
60 int refcount; member
80 registry->refcount = 1; in bus_registry_new()
112 _dbus_assert (registry->refcount > 0); in bus_registry_ref()
113 registry->refcount += 1; in bus_registry_ref()
121 _dbus_assert (registry->refcount > 0); in bus_registry_unref()
122 registry->refcount -= 1; in bus_registry_unref()
124 if (registry->refcount == 0) in bus_registry_unref()
194 result->refcount = 1; in bus_owner_new()
[all …]
Dactivation.c46 int refcount; member
60 int refcount; member
67 int refcount; member
87 int refcount; member
102 _dbus_assert (dir->refcount);
104 dir->refcount++;
116 _dbus_assert (dir->refcount > 0); in bus_service_directory_unref()
117 dir->refcount--; in bus_service_directory_unref()
119 if (dir->refcount > 0) in bus_service_directory_unref()
154 _dbus_assert (pending_activation->refcount > 0); in bus_pending_activation_ref()
[all …]
/external/opencore/oscl/oscl/osclutil/src/
Doscl_media_data.h78 refcount(0), ptr(bufptr), free_function(the_free_function), buf_mgr(0) {};
81 refcount(0), ptr(bufptr), free_function(0), buf_mgr(the_buf_mgr) {};
85 ++refcount; in increment_refcnt()
89 if (!(--refcount)) in decrement_refcnt()
102 refcount = 0; in bind()
108 refcount = 0; in bind()
118 return refcount; in get_refcount()
132 refcount = 0; in reset()
137 int32 refcount;
Doscl_string_containers.cpp139 refcount = 0; in set()
145 refcount = 0; in set()
160 refcount = 0; in set()
166 refcount = 0; in set()
187 refcount = 0; in append()
193 refcount = 0; in append()
214 refcount = 0; in append()
220 refcount = 0; in append()
234 refcount++; in add_ref()
240 --refcount; in remove_ref()
[all …]
/external/opencore/oscl/oscl/osclbase/src/
Doscl_refcounter.h465 refcount++; in addRef()
470 --refcount; in removeRef()
471 if (refcount == 0) in removeRef()
477 return refcount; in getCount()
481 Oscl_DefAllocWithRefCounter(): refcount(1) in Oscl_DefAllocWithRefCounter()
483 uint32 refcount; variable
/external/srec/srec/crec/
Dsrec_tokens.c278 awtoken->refcount = 0; in initialize_free_altword_tokens()
309 awtoken->refcount = 1; in get_free_altword_token()
318 ASSERT(old_token->refcount >= 1); in free_altword_token()
319 if (--old_token->refcount <= 0) in free_altword_token()
326 return old_token->refcount; /* return zero if truly freed */ in free_altword_token()
332 ASSERT(old_token->refcount >= 1); in free_altword_token_batch()
333 if (--old_token->refcount <= 0) in free_altword_token_batch()
/external/wpa_supplicant/
Dl2_packet_ndis.c60 int refcount; member
309 l2 = l2_ndisuio_global->l2[l2_ndisuio_global->refcount - 1]; in l2_packet_rx_event()
362 if (l2_ndisuio_global->refcount >= 2) { in l2_packet_init()
367 l2_ndisuio_global->refcount++; in l2_packet_init()
372 l2_ndisuio_global->l2[l2_ndisuio_global->refcount - 1] = l2; in l2_packet_init()
387 if (l2_ndisuio_global->refcount > 1) { in l2_packet_init()
459 l2_ndisuio_global->refcount--; in l2_packet_deinit()
460 l2_ndisuio_global->l2[l2_ndisuio_global->refcount] = NULL; in l2_packet_deinit()
461 if (l2_ndisuio_global->refcount) { in l2_packet_deinit()

12345