Lines Matching defs:hash_entry

55 	sip_hash_t	*hash_entry;
65 hash_entry = &sip_hash[hindex];
66 (void) pthread_mutex_lock(&hash_entry->sip_hash_mutex);
67 if (hash_entry->hash_count == 0) {
68 assert(hash_entry->hash_head == NULL);
69 assert(hash_entry->hash_tail == NULL);
70 hash_entry->hash_head = new_obj;
72 hash_entry->hash_tail->next_obj = new_obj;
73 new_obj->prev_obj = hash_entry->hash_tail;
75 hash_entry->hash_tail = new_obj;
76 hash_entry->hash_count++;
77 (void) pthread_mutex_unlock(&hash_entry->sip_hash_mutex);
92 sip_hash_t *hash_entry;
94 hash_entry = &sip_hash[hindex];
95 (void) pthread_mutex_lock(&hash_entry->sip_hash_mutex);
96 tmp = hash_entry->hash_head;
97 for (count = 0; count < hash_entry->hash_count; count++) {
100 &hash_entry->sip_hash_mutex);
105 (void) pthread_mutex_unlock(&hash_entry->sip_hash_mutex);
116 sip_hash_t *hash_entry;
122 hash_entry = &sip_hash[count];
123 (void) pthread_mutex_lock(&hash_entry->sip_hash_mutex);
124 tmp = hash_entry->hash_head;
125 for (hcount = 0; hcount < hash_entry->hash_count; hcount++) {
130 (void) pthread_mutex_unlock(&hash_entry->sip_hash_mutex);
143 sip_hash_t *hash_entry;
148 hash_entry = &sip_hash[hindex];
149 (void) pthread_mutex_lock(&hash_entry->sip_hash_mutex);
150 tmp = hash_entry->hash_head;
151 for (count = 0; count < hash_entry->hash_count; count++) {
153 if (tmp == hash_entry->hash_head) {
155 hash_entry->hash_head = tmp->next_obj;
158 assert(hash_entry->hash_tail ==
159 hash_entry->hash_head);
160 hash_entry->hash_head = NULL;
161 hash_entry->hash_tail = NULL;
170 assert(hash_entry->hash_tail == tmp);
172 hash_entry->hash_tail =
179 hash_entry->hash_count--;
181 &hash_entry->sip_hash_mutex);
188 &hash_entry->sip_hash_mutex);
193 (void) pthread_mutex_unlock(&hash_entry->sip_hash_mutex);