Lines Matching refs:entry

363    PUSER_HANDLE_ENTRY entry;  in alloc_user_entry()  local
368 entry = ht->freelist; in alloc_user_entry()
369 ht->freelist = entry->ptr; in alloc_user_entry()
372 return entry; in alloc_user_entry()
398 entry = &ht->handles[ht->nb_handles++]; in alloc_user_entry()
400 entry->generation = 1; in alloc_user_entry()
404 return entry; in alloc_user_entry()
417 __inline static void *free_user_entry(PUSER_HANDLE_TABLE ht, PUSER_HANDLE_ENTRY entry) in free_user_entry() argument
424 switch (entry->type) in free_user_entry()
429 ppi = ((PTHREADINFO)entry->pi)->ppi; in free_user_entry()
435 ppi = entry->pi; in free_user_entry()
441 ppi->DbgHandleCount[entry->type]--; in free_user_entry()
445 ret = entry->ptr; in free_user_entry()
446 entry->ptr = ht->freelist; in free_user_entry()
447 entry->type = 0; in free_user_entry()
448 entry->flags = 0; in free_user_entry()
449 entry->pi = NULL; in free_user_entry()
450 ht->freelist = entry; in free_user_entry()
464 PUSER_HANDLE_ENTRY entry = alloc_user_entry(ht); in UserAllocHandle() local
465 if (!entry) in UserAllocHandle()
467 entry->ptr = object; in UserAllocHandle()
468 entry->type = type; in UserAllocHandle()
469 entry->flags = 0; in UserAllocHandle()
470 entry->pi = HandleOwner; in UserAllocHandle()
471 if (++entry->generation >= 0xffff) in UserAllocHandle()
472 entry->generation = 1; in UserAllocHandle()
477 return entry_to_handle(ht, entry ); in UserAllocHandle()
483 PUSER_HANDLE_ENTRY entry; in UserGetObjectNoErr() local
487 if (!(entry = handle_to_entry(ht, handle )) || entry->type != type) in UserGetObjectNoErr()
491 return entry->ptr; in UserGetObjectNoErr()
497 PUSER_HANDLE_ENTRY entry; in UserGetObject() local
501 if (!(entry = handle_to_entry(ht, handle )) || entry->type != type) in UserGetObject()
506 return entry->ptr; in UserGetObject()
513 PUSER_HANDLE_ENTRY entry; in get_user_full_handle() local
517 if (!(entry = handle_to_entry(ht, handle ))) in get_user_full_handle()
519 return entry_to_handle( ht, entry ); in get_user_full_handle()
526 PUSER_HANDLE_ENTRY entry; in get_user_object_handle() local
528 if (!(entry = handle_to_entry(ht, *handle )) || entry->type != type) in get_user_object_handle()
530 *handle = entry_to_handle( ht, entry ); in get_user_object_handle()
531 return entry->ptr; in get_user_object_handle()
623 PUSER_HANDLE_ENTRY entry; in UserMarkObjectDestroy() local
626 entry = handle_to_entry(gHandleTable, ObjHead->h); in UserMarkObjectDestroy()
628 ASSERT(entry != NULL); in UserMarkObjectDestroy()
630 entry->flags |= HANDLEENTRY_DESTROY; in UserMarkObjectDestroy()
634 entry->flags &= ~HANDLEENTRY_INDESTROY; in UserMarkObjectDestroy()
653 PUSER_HANDLE_ENTRY entry; in UserDereferenceObject() local
656 entry = handle_to_entry(gHandleTable, ObjHead->h); in UserDereferenceObject()
658 ASSERT(entry != NULL); in UserDereferenceObject()
660 ASSERT(entry->flags & HANDLEENTRY_INDESTROY); in UserDereferenceObject()
662 type = entry->type; in UserDereferenceObject()
667 free_user_entry(gHandleTable, entry ); in UserDereferenceObject()
688 PUSER_HANDLE_ENTRY entry; in UserFreeHandle() local
690 if (!(entry = handle_to_entry( ht, handle ))) in UserFreeHandle()
696 entry->flags = HANDLEENTRY_INDESTROY; in UserFreeHandle()
698 return UserDereferenceObject(entry->ptr); in UserFreeHandle()
705 PUSER_HANDLE_ENTRY entry; in UserObjectInDestroy() local
707 if (!(entry = handle_to_entry( gHandleTable, h ))) in UserObjectInDestroy()
712 return (entry->flags & HANDLEENTRY_INDESTROY); in UserObjectInDestroy()
797 PUSER_HANDLE_ENTRY entry; in NtUserValidateHandleSecure() local
802 if (!(entry = handle_to_entry(gHandleTable, handle ))) in NtUserValidateHandleSecure()
807 uType = entry->type; in NtUserValidateHandleSecure()
812 ppi = ((PTHREADINFO)entry->pi)->ppi; in NtUserValidateHandleSecure()
820 ppi = entry->pi; in NtUserValidateHandleSecure()