Searched refs:ref_count (Results 1 - 25 of 55) sorted by relevance

123

/macosx-10.10/pcre-7/pcre/
H A Dpcre_refcount.c76 re->ref_count = (-adjust > re->ref_count)? 0 :
77 (adjust + re->ref_count > 65535)? 65535 :
78 re->ref_count + adjust;
79 return re->ref_count;
/macosx-10.10/xnu-2782.1.97/osfmk/mach/
H A Dvm_region.h146 unsigned int ref_count; member in struct:vm_region_extended_info__legacy
173 unsigned int ref_count; member in struct:vm_region_extended_info
192 unsigned int ref_count; member in struct:vm_region_top_info
237 unsigned int ref_count; /* obj/map mappers, etc */ member in struct:vm_region_submap_info
264 unsigned int ref_count; /* obj/map mappers, etc */ member in struct:vm_region_submap_info_64
300 unsigned int ref_count; /* obj/map mappers, etc */ member in struct:vm_region_submap_short_info_64
356 int ref_count; member in struct:vm_page_info_basic
/macosx-10.10/xnu-2782.1.97/osfmk/kern/
H A Dsync_sema.h55 uint32_t ref_count; /* reference count */ member in struct:semaphore
H A Dcoalition.c98 uint32_t ref_count; /* Number of references to the memory containing this struct */
110 unsigned int reaped : 1; /* reaped, invisible to userspace, but waiting for ref_count to go to zero */
255 new_coal->ref_count = 2;
287 coal->ref_count--;
288 if (coal->ref_count == 0) {
292 uint32_t rc = coal->ref_count;
298 printf("%s: coal %llu ref_count-- -> %u%s\n", __func__, coal->id, rc,
342 if (coal->ref_count == 0) {
346 coal->ref_count++;
348 uint32_t rc = coal->ref_count;
[all...]
H A Dsync_sema.c189 s->ref_count = (task == kernel_task) ? 2 : 3;
1054 (void)hw_atomic_add(&semaphore->ref_count, 1);
1067 int ref_count; local
1070 ref_count = hw_atomic_sub(&semaphore->ref_count, 1);
1072 if (ref_count == 1) {
1082 ref_count = hw_atomic_sub(&semaphore->ref_count, 1);
1085 if (ref_count == 0) {
H A Dtask.h172 uint32_t ref_count; /* Number of references to me */ member in struct:task
380 (void)hw_atomic_add(&(task)->ref_count, 1)
383 hw_atomic_sub(&(task)->ref_count, 1)
H A Dthread.h226 uint32_t ref_count; /* number of references to me */ member in struct:thread
519 (void)hw_atomic_add(&(thread)->ref_count, 1)
522 hw_atomic_sub(&(thread)->ref_count, 1)
/macosx-10.10/cups-408/cups/cups/
H A Dstring.c92 item->ref_count ++;
96 "ref_count=%d", item, item->str, s, item->guard,
97 item->ref_count));
121 item->ref_count = 1;
128 "ref_count=%d", item, item->str, s, item->guard,
129 item->ref_count));
325 "ref_count=%d", key, key->str, key->guard, key->ref_count));
337 item->ref_count --;
339 if (!item->ref_count)
[all...]
H A Dstring-private.h68 unsigned int ref_count; /* Reference count */ member in struct:_cups_sp_item_s
/macosx-10.10/dyld-353.2.1/unit-tests/test-cases/prebased-performance/
H A Dfoo.c63 integer_t ref_count = 0; local
64 vm_map_page_query(task, start, &disposition, &ref_count);
/macosx-10.10/xnu-2782.1.97/osfmk/vm/
H A Dvm_swapfile_pager.c145 unsigned int ref_count; /* reference count */ member in struct:swapfile_pager
339 assert(pager->ref_count > 1); /* pager is alive and mapped */
491 assert(pager->ref_count > 0);
492 pager->ref_count++;
566 pager->ref_count--;
568 if (pager->ref_count == 1) {
578 } else if (pager->ref_count == 0) {
674 assert(pager->ref_count > 0); /* pager is alive */
682 pager->ref_count++;
733 assert(pager->ref_count >
[all...]
H A Dvm_apple_protect.c145 unsigned int ref_count; /* reference count */ member in struct:apple_protect_pager
366 assert(pager->ref_count > 1); /* pager is alive and mapped */
696 assert(pager->ref_count > 0);
697 pager->ref_count++;
788 pager->ref_count--;
790 if (pager->ref_count == 1) {
800 } else if (pager->ref_count == 0) {
899 assert(pager->ref_count > 0); /* pager is alive */
907 pager->ref_count++;
966 assert(pager->ref_count >
[all...]
H A Ddevice_vm.c90 unsigned int ref_count; /* reference count */ member in struct:device_pager
338 new_ref_count = hw_atomic_add(&device_object->ref_count, 1);
354 if (hw_atomic_sub(&device_object->ref_count, 1) == 0) {
460 device_object->ref_count = 1;
H A Dvm_object.c655 vm_object_template.ref_count = 1;
907 // if(object)dbgLog(object, object->ref_count, object->can_persist, 3); /* (TEST/DEBUG) */
916 OSAddAtomic(-1, &object->ref_count);
918 if (object->ref_count == 0) {
928 if (object->ref_count == 2 &&
935 } else if (object->ref_count == 2 &&
944 } else if (object->ref_count >= 2) {
959 ref_count_p = (volatile UInt32 *) &object->ref_count;
960 original_ref_count = object->ref_count;
962 * Test again as "ref_count" coul
[all...]
H A Dvm_object.h153 int ref_count; /* Number of references */ member in struct:vm_object
523 assert((RLObject)->ref_count > 0); \
524 (RLObject)->ref_count++; \
525 assert((RLObject)->ref_count > 1); \
534 assert((RLObject)->ref_count > 0); \
535 OSAddAtomic(1, &(RLObject)->ref_count); \
536 assert((RLObject)->ref_count > 0); \
H A Dvm32_user.c458 info->ref_count = info64.ref_count;
497 int *ref_count)
506 ref_count);
493 vm32_map_page_query( vm_map_t map, vm32_offset_t offset, int *disposition, int *ref_count) argument
H A Dvm_map.c756 result->ref_count = 1;
906 assert(map->ref_count >= map->res_count);
931 assert(map->ref_count >= map->res_count);
932 map->ref_count++;
957 assert(map->ref_count >= map->res_count);
3202 object->ref_count++;
3593 if ((map->mapped_in_other_pmaps) && (map->ref_count)) {
5445 if((map->mapped_in_other_pmaps) && (map->ref_count)
5478 if((map->mapped_in_other_pmaps) && (map->ref_count)
5603 map->ref_count !
11149 int ref_count; local
11231 register int ref_count; local
11366 register int ref_count; local
11484 register int ref_count; local
13492 vm_map_page_query_internal( vm_map_t target_map, vm_map_offset_t offset, int *disposition, int *ref_count) argument
13534 int ref_count; local
[all...]
H A Dvm_map.h180 int ref_count; /* Number of references */ member in struct:vm_named_entry
339 int ref_count; /* Reference count */ member in struct:_vm_map
623 Map->ref_count++; \
658 ++Map->ref_count; \
677 Map->ref_count++; \
710 map->ref_count++; \
720 c = --map->ref_count; \
863 int *ref_count);
H A Dbsd_vm.c118 unsigned int ref_count; /* reference count */ member in struct:vnode_pager
840 new_ref_count = hw_atomic_add(&vnode_object->ref_count, 1);
857 if (hw_atomic_sub(&vnode_object->ref_count, 1) == 0) {
1126 vnode_object->ref_count = 1;
1219 if (extended.external_pager && extended.ref_count == 2 && extended.share_mode == SM_SHARED)
1231 pinfo->pri_ref_count = extended.ref_count;
/macosx-10.10/dcerpc-61/dcerpc/idl_lib/
H A Dctxeertl.h110 long int ref_count; /* The number of threads currently using contexts member in struct:callee_client_entry_t
112 RPC_SS_THREADS_CONDITION_T cond_var; /* Used to signal when ref_count
H A Dctxeecli.c275 new_client->ref_count = 1;
285 new_client->ref_count = 0;
438 while (this_client->ref_count != 0)
564 (this_client->ref_count)++;
603 (this_client->ref_count)--;
608 else if ((this_client->count == 0) && (this_client->ref_count == 0))
662 (this_client->ref_count)++;
699 (this_client->ref_count)--;
704 else if ((this_client->count == 0) && (this_client->ref_count == 0))
/macosx-10.10/xnu-2782.1.97/bsd/netinet/
H A Dflow_divert.h49 int32_t ref_count; member in struct:flow_divert_pcb
/macosx-10.10/dcerpc-61/dcerpc/idl_compiler/
H A Dfe_pvt.h321 unsigned short int ref_count; /* Reference count. On a parameter, */ member in struct:fe_info_t
/macosx-10.10/emacs-93/emacs/src/
H A Dgtkutil.h74 int ref_count; member in struct:xg_menu_cb_data_
/macosx-10.10/libpcap-48/libpcap/
H A Dpcap-dos.c91 static int ref_count = 0; variable
194 pcap->fd = ++ref_count;
457 if (ref_count > 0)
458 ref_count--;
459 if (ref_count > 0)

Completed in 194 milliseconds

123