Lines Matching refs:key
98 _citrus_db_lookup(struct _citrus_db *db, struct _citrus_region *key,
121 hashval = db->db_hashfunc(key)%num_entries;
150 /* compare key length */
151 if (be32toh(dex->dex_key_size) == _region_size(key)) {
152 /* seek to the head of the key. */
156 /* get the region of the key */
158 _region_size(key)) == NULL)
160 /* compare key byte stream */
161 if (memcmp(_region_head(&r), _region_head(key),
162 _region_size(key)) == 0) {
181 _citrus_db_lookup_by_string(struct _citrus_db *db, const char *key,
186 _region_init(&r, __DECONST(void *, key), strlen(key));
192 _citrus_db_lookup8_by_string(struct _citrus_db *db, const char *key,
198 ret = _citrus_db_lookup_by_string(db, key, &r, dl);
212 _citrus_db_lookup16_by_string(struct _citrus_db *db, const char *key,
219 ret = _citrus_db_lookup_by_string(db, key, &r, dl);
235 _citrus_db_lookup32_by_string(struct _citrus_db *db, const char *key,
242 ret = _citrus_db_lookup_by_string(db, key, &r, dl);
258 _citrus_db_lookup_string_by_string(struct _citrus_db *db, const char *key,
264 ret = _citrus_db_lookup_by_string(db, key, &r, dl);
293 _citrus_db_get_entry(struct _citrus_db *db, int idx, struct _region *key,
317 /* seek to the head of the key. */
320 /* get the region of the key. */
321 if (_memstream_getregion(&ms, key, be32toh(dex->dex_key_size))==NULL)