Lines Matching refs:key
100 _citrus_db_lookup(struct _citrus_db *db, struct _citrus_region *key,
125 db->db_hashfunc(db->db_hashfunc_closure, key)%num_entries;
155 /* compare key length */
156 if (be32toh(dex->dex_key_size) == _region_size(key)) {
157 /* seek to the head of the key. */
161 /* get the region of the key */
163 _region_size(key)) == NULL)
165 /* compare key byte stream */
166 if (memcmp(_region_head(&r), _region_head(key),
167 _region_size(key)) == 0) {
186 _citrus_db_lookup_by_string(struct _citrus_db *db, const char *key,
192 _region_init(&r, __UNCONST(key), strlen(key));
198 _citrus_db_lookup8_by_string(struct _citrus_db *db, const char *key,
204 ret = _citrus_db_lookup_by_string(db, key, &r, dl);
218 _citrus_db_lookup16_by_string(struct _citrus_db *db, const char *key,
225 ret = _citrus_db_lookup_by_string(db, key, &r, dl);
241 _citrus_db_lookup32_by_string(struct _citrus_db *db, const char *key,
248 ret = _citrus_db_lookup_by_string(db, key, &r, dl);
264 _citrus_db_lookup_string_by_string(struct _citrus_db *db, const char *key,
271 ret = _citrus_db_lookup_by_string(db, key, &r, dl);
302 struct _region *key, struct _region *data)
326 /* seek to the head of the key. */
329 /* get the region of the key. */
330 if (_memstream_getregion(&ms, key, be32toh(dex->dex_key_size))==NULL)