Searched refs:refcount (Results 1 - 25 of 77) sorted by relevance

1234

/external/e2fsprogs/e2fsck/
H A Dea_refcount.c19 * reference counts. Once the refcount has dropped to zero, it is
35 void ea_refcount_free(ext2_refcount_t refcount) argument
37 if (!refcount)
40 if (refcount->list)
41 ext2fs_free_mem(&refcount->list);
42 ext2fs_free_mem(&refcount);
47 ext2_refcount_t refcount; local
51 retval = ext2fs_get_mem(sizeof(struct ea_refcount), &refcount);
54 memset(refcount, 0, sizeof(struct ea_refcount));
58 refcount
84 refcount_collapse(ext2_refcount_t refcount) argument
109 insert_refcount_el(ext2_refcount_t refcount, blk_t blk, int pos) argument
151 get_refcount_el(ext2_refcount_t refcount, blk_t blk, int create) argument
226 ea_refcount_fetch(ext2_refcount_t refcount, blk_t blk, int *ret) argument
240 ea_refcount_increment(ext2_refcount_t refcount, blk_t blk, int *ret) argument
254 ea_refcount_decrement(ext2_refcount_t refcount, blk_t blk, int *ret) argument
269 ea_refcount_store(ext2_refcount_t refcount, blk_t blk, int count) argument
283 ext2fs_get_refcount_size(ext2_refcount_t refcount) argument
291 ea_refcount_intr_begin(ext2_refcount_t refcount) argument
297 ea_refcount_intr_next(ext2_refcount_t refcount, int *ret) argument
318 ea_refcount_validate(ext2_refcount_t refcount, FILE *out) argument
388 ext2_refcount_t refcount; local
[all...]
H A De2fsck.h186 * Define the extended attribute refcount structure
235 ext2_refcount_t refcount; member in struct:e2fsck_struct
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, in
[all...]
H A De2fsck.c88 if (ctx->refcount) {
89 ea_refcount_free(ctx->refcount);
90 ctx->refcount = 0;
/external/dbus/dbus/
H A Ddbus-resources.c54 int refcount; /**< reference count */ member in struct:DBusCounter
85 counter->refcount = 1;
96 * Increments refcount of the counter
104 _dbus_assert (counter->refcount > 0);
106 counter->refcount += 1;
112 * Decrements refcount of the counter and possibly
120 _dbus_assert (counter->refcount > 0);
122 counter->refcount -= 1;
124 if (counter->refcount == 0)
H A Ddbus-message-private.h62 int refcount; /**< Reference count. */ member in struct:DBusMessageLoader
90 DBusAtomic refcount; /**< Reference count */ member in struct:DBusMessage
H A Ddbus-pending-call.c62 DBusAtomic refcount; /**< reference count */ member in struct:DBusPendingCall
133 pending->refcount.value = 1;
376 pending->refcount.value += 1;
437 _dbus_assert (pending->refcount.value > 0);
439 pending->refcount.value -= 1;
440 last_unref = pending->refcount.value == 0;
540 _dbus_atomic_inc (&pending->refcount);
543 _dbus_assert (pending->refcount.value > 0);
545 pending->refcount.value += 1;
569 last_unref = (_dbus_atomic_dec (&pending->refcount)
[all...]
H A Ddbus-server.c101 server->refcount.value = 1;
196 /** Function to be called in protected_change_watch() with refcount held */
199 /** Function to be called in protected_change_watch() with refcount held */
202 /** Function to be called in protected_change_watch() with refcount held */
312 /** Function to be called in protected_change_timeout() with refcount held */
315 /** Function to be called in protected_change_timeout() with refcount held */
318 /** Function to be called in protected_change_timeout() with refcount held */
435 _dbus_assert (server->refcount.value > 0);
440 _dbus_atomic_inc (&server->refcount);
442 _dbus_assert (server->refcount
[all...]
H A Ddbus-dataslot.h49 int refcount; /**< Number of uses of the slot */ member in struct:DBusAllocatedSlot
H A Ddbus-timeout.c41 int refcount; /**< Reference count */ member in struct:DBusTimeout
73 timeout->refcount = 1;
94 timeout->refcount += 1;
109 _dbus_assert (timeout->refcount > 0);
111 timeout->refcount -= 1;
112 if (timeout->refcount == 0)
H A Ddbus-watch.c41 int refcount; /**< Reference count */ member in struct:DBusWatch
84 watch->refcount = 1;
105 watch->refcount += 1;
120 _dbus_assert (watch->refcount > 0);
122 watch->refcount -= 1;
123 if (watch->refcount == 0)
H A Ddbus-mainloop.c56 int refcount; member in struct:DBusLoop
73 int refcount; member in struct:__anon1766
115 cb->callback.refcount = 1;
139 cb->callback.refcount = 1;
150 _dbus_assert (cb->refcount > 0);
152 cb->refcount += 1;
160 _dbus_assert (cb->refcount > 0);
162 cb->refcount -= 1;
164 if (cb->refcount == 0)
225 loop->refcount
[all...]
H A Ddbus-dataslot.c57 * not -1, this function just increments the refcount for
93 allocator->allocated_slots[slot].refcount += 1;
108 allocator->allocated_slots[slot].refcount = 1;
132 allocator->allocated_slots[slot].refcount = 1;
139 _dbus_assert (allocator->allocated_slots[slot].refcount == 1);
170 _dbus_assert (allocator->allocated_slots[*slot_id_p].refcount > 0);
172 allocator->allocated_slots[*slot_id_p].refcount -= 1;
174 if (allocator->allocated_slots[*slot_id_p].refcount > 0)
180 /* refcount is 0, free the slot */
H A Ddbus-userdb.c448 db->refcount = 1;
493 * Increments refcount of user database.
500 _dbus_assert (db->refcount > 0);
502 db->refcount += 1;
509 * Decrements refcount of user database.
515 _dbus_assert (db->refcount > 0);
517 db->refcount -= 1;
518 if (db->refcount == 0)
H A Ddbus-transport-protected.h82 int refcount; /**< Reference count. */ member in struct:DBusTransport
/external/kernel-headers/original/linux/
H A Dkref.h24 atomic_t refcount; member in struct:kref
H A Ddmaengine.h69 * @refcount: local_t used for open-coded "bigref" counting
75 local_t refcount; member in struct:dma_chan_percpu
88 * @refcount: kref, used in "bigref" slow-mode
104 struct kref refcount; member in struct:dma_chan
118 kref_get(&chan->refcount);
120 local_inc(&(per_cpu_ptr(chan->local, get_cpu())->refcount));
128 kref_put(&chan->refcount, dma_chan_cleanup);
130 local_dec(&(per_cpu_ptr(chan->local, get_cpu())->refcount));
165 * @refcount: reference count
183 struct kref refcount; member in struct:dma_device
[all...]
/external/srec/srec/crec/
H A Dsrec_tokens.c278 awtoken->refcount = 0;
309 awtoken->refcount = 1;
318 ASSERT(old_token->refcount >= 1);
319 if (--old_token->refcount <= 0)
326 return old_token->refcount; /* return zero if truly freed */
332 ASSERT(old_token->refcount >= 1);
333 if (--old_token->refcount <= 0)
339 /* *(ddp++) = '0' + awtoken->refcount; */
/external/qemu/block/
H A Dqcow2-refcount.c35 /* refcount handling */
136 /* Note: we cannot update the refcount now to avoid recursion */
173 /* Find L1 index and grow refcount table if needed */
181 /* Load or allocate the refcount block */
184 /* create a new refcount block */
185 /* Note: we cannot update the refcount now to avoid recursion */
233 /* XXX: cache several refcount block clusters ? */
255 int block_index, refcount; local
258 /* Only write refcount block to disk when we are done with it */
273 /* Load the refcount bloc
449 int refcount; local
471 int l2_size, i, j, l1_modified, l2_modified, nb_csectors, refcount; local
637 int i, l2_size, nb_csectors, refcount; local
722 int i, refcount, ret; local
[all...]
/external/e2fsprogs/lib/ext2fs/
H A Dext2fsP.h70 int refcount; member in struct:ext2_inode_cache
H A Dext2_io.h51 int refcount; member in struct:struct_io_channel
87 #define io_channel_bumpcount(c) ((c)->refcount++)
/external/dbus/bus/
H A Dactivation.c46 int refcount; member in struct:BusActivation
60 int refcount; member in struct:__anon1701
67 int refcount; member in struct:__anon1702
87 int refcount; member in struct:__anon1703
102 _dbus_assert (dir->refcount);
104 dir->refcount++;
116 _dbus_assert (dir->refcount > 0);
117 dir->refcount--;
119 if (dir->refcount > 0)
154 _dbus_assert (pending_activation->refcount >
[all...]
H A Dservices.c40 int refcount; member in struct:BusService
49 int refcount; member in struct:BusOwner
60 int refcount; member in struct:BusRegistry
80 registry->refcount = 1;
112 _dbus_assert (registry->refcount > 0);
113 registry->refcount += 1;
121 _dbus_assert (registry->refcount > 0);
122 registry->refcount -= 1;
124 if (registry->refcount == 0)
194 result->refcount
[all...]
H A Dpolicy.c43 rule->refcount = 1;
79 _dbus_assert (rule->refcount > 0);
81 rule->refcount += 1;
89 _dbus_assert (rule->refcount > 0);
91 rule->refcount -= 1;
93 if (rule->refcount == 0)
126 int refcount; member in struct:BusPolicy
169 policy->refcount = 1;
193 _dbus_assert (policy->refcount > 0);
195 policy->refcount
681 int refcount; member in struct:BusClientPolicy
[all...]
/external/wpa_supplicant/
H A Dl2_packet_ndis.c60 int refcount; member in struct:l2_packet_ndisuio_global
309 l2 = l2_ndisuio_global->l2[l2_ndisuio_global->refcount - 1];
362 if (l2_ndisuio_global->refcount >= 2) {
367 l2_ndisuio_global->refcount++;
372 l2_ndisuio_global->l2[l2_ndisuio_global->refcount - 1] = l2;
387 if (l2_ndisuio_global->refcount > 1) {
459 l2_ndisuio_global->refcount--;
460 l2_ndisuio_global->l2[l2_ndisuio_global->refcount] = NULL;
461 if (l2_ndisuio_global->refcount) {
/external/wpa_supplicant_6/wpa_supplicant/src/l2_packet/
H A Dl2_packet_ndis.c60 int refcount; member in struct:l2_packet_ndisuio_global
309 l2 = l2_ndisuio_global->l2[l2_ndisuio_global->refcount - 1];
362 if (l2_ndisuio_global->refcount >= 2) {
367 l2_ndisuio_global->refcount++;
372 l2_ndisuio_global->l2[l2_ndisuio_global->refcount - 1] = l2;
387 if (l2_ndisuio_global->refcount > 1) {
459 l2_ndisuio_global->refcount--;
460 l2_ndisuio_global->l2[l2_ndisuio_global->refcount] = NULL;
461 if (l2_ndisuio_global->refcount) {

Completed in 199 milliseconds

1234