Lines Matching refs:backet
62 /* Lookup and return hash backet in hash. If there is no
63 corresponding hash backet and alloc_func is specified, create new
64 hash backet. */
71 struct hash_backet *backet;
76 for (backet = hash->index[index]; backet != NULL; backet = backet->next)
77 if (backet->key == key && (*hash->hash_cmp) (backet->data, data) == 1)
78 return backet->data;
86 backet = XMALLOC (MTYPE_HASH_BACKET, sizeof (struct hash_backet));
87 backet->data = newdata;
88 backet->key = key;
89 backet->next = hash->index[index];
90 hash->index[index] = backet;
92 return backet->data;
106 hash backet. */
113 struct hash_backet *backet;
119 for (backet = pp = hash->index[index]; backet; backet = backet->next)
121 if (backet->key == key && (*hash->hash_cmp) (backet->data, data) == 1)
123 if (backet == pp)
124 hash->index[index] = backet->next;
126 pp->next = backet->next;
128 ret = backet->data;
129 XFREE (MTYPE_HASH_BACKET, backet);
133 pp = backet;