Lines Matching refs:entry

447 void hashbin_insert(hashbin_t* hashbin, irda_queue_t* entry, long hashv,  in hashbin_insert()  argument
471 entry->q_hash = hashv; in hashbin_insert()
473 strlcpy( entry->q_name, name, sizeof(entry->q_name)); in hashbin_insert()
479 entry); in hashbin_insert()
501 irda_queue_t *entry = NULL; in hashbin_remove_first() local
508 entry = hashbin_get_first( hashbin); in hashbin_remove_first()
509 if ( entry != NULL) { in hashbin_remove_first()
515 hashv = entry->q_hash; in hashbin_remove_first()
522 entry); in hashbin_remove_first()
524 entry->q_next = NULL; in hashbin_remove_first()
525 entry->q_prev = NULL; in hashbin_remove_first()
531 if ( entry == hashbin->hb_current) in hashbin_remove_first()
540 return entry; in hashbin_remove_first()
562 irda_queue_t* entry; in hashbin_remove() local
582 entry = hashbin->hb_queue[ bin ]; in hashbin_remove()
583 if ( entry ) { in hashbin_remove()
588 if ( entry->q_hash == hashv ) { in hashbin_remove()
593 if ( strcmp( entry->q_name, name) == 0) in hashbin_remove()
603 entry = entry->q_next; in hashbin_remove()
604 } while ( entry != hashbin->hb_queue[ bin ] ); in hashbin_remove()
612 entry); in hashbin_remove()
619 if ( entry == hashbin->hb_current) in hashbin_remove()
631 return entry; in hashbin_remove()
649 void* hashbin_remove_this( hashbin_t* hashbin, irda_queue_t* entry) in hashbin_remove_this() argument
657 IRDA_ASSERT( entry != NULL, return NULL;); in hashbin_remove_this()
665 if((entry->q_next == NULL) || (entry->q_prev == NULL)) { in hashbin_remove_this()
666 entry = NULL; in hashbin_remove_this()
673 hashv = entry->q_hash; in hashbin_remove_this()
680 entry); in hashbin_remove_this()
682 entry->q_next = NULL; in hashbin_remove_this()
683 entry->q_prev = NULL; in hashbin_remove_this()
689 if ( entry == hashbin->hb_current) in hashbin_remove_this()
697 return entry; in hashbin_remove_this()
712 irda_queue_t* entry; in hashbin_find() local
729 entry = hashbin->hb_queue[ bin]; in hashbin_find()
730 if ( entry ) { in hashbin_find()
735 if ( entry->q_hash == hashv ) { in hashbin_find()
740 if ( strcmp( entry->q_name, name ) == 0 ) { in hashbin_find()
741 return entry; in hashbin_find()
744 return entry; in hashbin_find()
747 entry = entry->q_next; in hashbin_find()
748 } while ( entry != hashbin->hb_queue[ bin ] ); in hashbin_find()
767 irda_queue_t* entry; in hashbin_lock_find() local
775 entry = hashbin_find(hashbin, hashv, name); in hashbin_lock_find()
780 return entry; in hashbin_lock_find()
798 irda_queue_t* entry; in hashbin_find_next() local
808 entry = hashbin_find(hashbin, hashv, name); in hashbin_find_next()
813 if(entry) { in hashbin_find_next()
814 hashbin->hb_current = entry; in hashbin_find_next()
822 return entry; in hashbin_find_next()
834 irda_queue_t *entry; in hashbin_get_first() local
844 entry = hashbin->hb_queue[ i]; in hashbin_get_first()
845 if ( entry) { in hashbin_get_first()
846 hashbin->hb_current = entry; in hashbin_get_first()
847 return entry; in hashbin_get_first()
869 irda_queue_t* entry; in hashbin_get_next() local
880 entry = hashbin->hb_current->q_next; in hashbin_get_next()
881 bin = GET_HASHBIN( entry->q_hash); in hashbin_get_next()
887 if ( entry != hashbin->hb_queue[ bin ]) { in hashbin_get_next()
888 hashbin->hb_current = entry; in hashbin_get_next()
890 return entry; in hashbin_get_next()
904 entry = hashbin->hb_queue[ i]; in hashbin_get_next()
905 if ( entry) { in hashbin_get_next()
906 hashbin->hb_current = entry; in hashbin_get_next()
908 return entry; in hashbin_get_next()