Lines Matching refs:refs

201     sm->refs   = 2;  in new_stub_manager()
299 ULONG refs; in stub_manager_int_addref() local
302 refs = ++This->refs; in stub_manager_int_addref()
305 TRACE("before %d\n", refs - 1); in stub_manager_int_addref()
307 return refs; in stub_manager_int_addref()
313 ULONG refs; in stub_manager_int_release() local
317 refs = --This->refs; in stub_manager_int_release()
319 TRACE("after %d\n", refs); in stub_manager_int_release()
322 if (!refs) in stub_manager_int_release()
328 if (!refs) in stub_manager_int_release()
331 return refs; in stub_manager_int_release()
408 ULONG stub_manager_ext_addref(struct stub_manager *m, ULONG refs, BOOL tableweak) in stub_manager_ext_addref() argument
415 first_extern_ref = refs && !m->extrefs; in stub_manager_ext_addref()
418 refs = min(refs, (ULONG_MAX-1 - m->extrefs)); in stub_manager_ext_addref()
419 rc = (m->extrefs += refs); in stub_manager_ext_addref()
426 … TRACE("added %u refs to %p (oid %s), rc is now %u\n", refs, m, wine_dbgstr_longlong(m->oid), rc); in stub_manager_ext_addref()
439 ULONG stub_manager_ext_release(struct stub_manager *m, ULONG refs, BOOL tableweak, BOOL last_unlock… in stub_manager_ext_release() argument
447 refs = min(refs, m->extrefs); in stub_manager_ext_release()
448 rc = (m->extrefs -= refs); in stub_manager_ext_release()
455 last_extern_ref = refs && !m->extrefs; in stub_manager_ext_release()
459 …TRACE("removed %u refs from %p (oid %s), rc is now %u\n", refs, m, wine_dbgstr_longlong(m->oid), r… in stub_manager_ext_release()
593 void stub_manager_release_marshal_data(struct stub_manager *m, ULONG refs, const IPID *ipid, BOOL t… in stub_manager_release_marshal_data() argument
601 refs = 0; in stub_manager_release_marshal_data()
603 refs = 1; in stub_manager_release_marshal_data()
605 stub_manager_ext_release(m, refs, tableweak, !tableweak); in stub_manager_release_marshal_data()
631 LONG refs; member
650 This->refs = 1; in RemUnknown_Construct()
677 ULONG refs; in RemUnknown_AddRef() local
680 refs = InterlockedIncrement(&This->refs); in RemUnknown_AddRef()
682 TRACE("%p before: %d\n", iface, refs-1); in RemUnknown_AddRef()
683 return refs; in RemUnknown_AddRef()
688 ULONG refs; in RemUnknown_Release() local
691 refs = InterlockedDecrement(&This->refs); in RemUnknown_Release()
692 if (!refs) in RemUnknown_Release()
695 TRACE("%p after: %d\n", iface, refs); in RemUnknown_Release()
696 return refs; in RemUnknown_Release()