Lines Matching refs:entry
449 void hashbin_insert(hashbin_t* hashbin, irda_queue_t* entry, long hashv, in hashbin_insert() argument
475 entry->q_hash = hashv; in hashbin_insert()
477 strlcpy( entry->q_name, name, sizeof(entry->q_name)); in hashbin_insert()
483 entry); in hashbin_insert()
505 irda_queue_t *entry = NULL; in hashbin_remove_first() local
512 entry = hashbin_get_first( hashbin); in hashbin_remove_first()
513 if ( entry != NULL) { in hashbin_remove_first()
519 hashv = entry->q_hash; in hashbin_remove_first()
526 entry); in hashbin_remove_first()
528 entry->q_next = NULL; in hashbin_remove_first()
529 entry->q_prev = NULL; in hashbin_remove_first()
535 if ( entry == hashbin->hb_current) in hashbin_remove_first()
544 return entry; in hashbin_remove_first()
566 irda_queue_t* entry; in hashbin_remove() local
588 entry = hashbin->hb_queue[ bin ]; in hashbin_remove()
589 if ( entry ) { in hashbin_remove()
594 if ( entry->q_hash == hashv ) { in hashbin_remove()
599 if ( strcmp( entry->q_name, name) == 0) in hashbin_remove()
609 entry = entry->q_next; in hashbin_remove()
610 } while ( entry != hashbin->hb_queue[ bin ] ); in hashbin_remove()
618 entry); in hashbin_remove()
625 if ( entry == hashbin->hb_current) in hashbin_remove()
637 return entry; in hashbin_remove()
655 void* hashbin_remove_this( hashbin_t* hashbin, irda_queue_t* entry) in hashbin_remove_this() argument
665 IRDA_ASSERT( entry != NULL, return NULL;); in hashbin_remove_this()
673 if((entry->q_next == NULL) || (entry->q_prev == NULL)) { in hashbin_remove_this()
674 entry = NULL; in hashbin_remove_this()
681 hashv = entry->q_hash; in hashbin_remove_this()
688 entry); in hashbin_remove_this()
690 entry->q_next = NULL; in hashbin_remove_this()
691 entry->q_prev = NULL; in hashbin_remove_this()
697 if ( entry == hashbin->hb_current) in hashbin_remove_this()
705 return entry; in hashbin_remove_this()
720 irda_queue_t* entry; in hashbin_find() local
737 entry = hashbin->hb_queue[ bin]; in hashbin_find()
738 if ( entry ) { in hashbin_find()
743 if ( entry->q_hash == hashv ) { in hashbin_find()
748 if ( strcmp( entry->q_name, name ) == 0 ) { in hashbin_find()
749 return entry; in hashbin_find()
752 return entry; in hashbin_find()
755 entry = entry->q_next; in hashbin_find()
756 } while ( entry != hashbin->hb_queue[ bin ] ); in hashbin_find()
775 irda_queue_t* entry; in hashbin_lock_find() local
783 entry = hashbin_find(hashbin, hashv, name); in hashbin_lock_find()
788 return entry; in hashbin_lock_find()
806 irda_queue_t* entry; in hashbin_find_next() local
816 entry = hashbin_find(hashbin, hashv, name); in hashbin_find_next()
821 if(entry) { in hashbin_find_next()
822 hashbin->hb_current = entry; in hashbin_find_next()
830 return entry; in hashbin_find_next()
842 irda_queue_t *entry; in hashbin_get_first() local
852 entry = hashbin->hb_queue[ i]; in hashbin_get_first()
853 if ( entry) { in hashbin_get_first()
854 hashbin->hb_current = entry; in hashbin_get_first()
855 return entry; in hashbin_get_first()
877 irda_queue_t* entry; in hashbin_get_next() local
888 entry = hashbin->hb_current->q_next; in hashbin_get_next()
889 bin = GET_HASHBIN( entry->q_hash); in hashbin_get_next()
895 if ( entry != hashbin->hb_queue[ bin ]) { in hashbin_get_next()
896 hashbin->hb_current = entry; in hashbin_get_next()
898 return entry; in hashbin_get_next()
912 entry = hashbin->hb_queue[ i]; in hashbin_get_next()
913 if ( entry) { in hashbin_get_next()
914 hashbin->hb_current = entry; in hashbin_get_next()
916 return entry; in hashbin_get_next()