Lines Matching refs:hash_fn
247 unsigned int (*hash_fn)(TDB_DATA *key); member
755 return tdb_lock(tdb, BUCKET(tdb->hash_fn(&key)), F_WRLCK); in tdb_chainlock()
763 return tdb_lock_nonblock(tdb, BUCKET(tdb->hash_fn(&key)), F_WRLCK); in tdb_chainlock_nonblock()
769 return tdb_lock(tdb, BUCKET(tdb->hash_fn(&key)), F_WRLCK | TDB_MARK_LOCK); in tdb_chainlock_mark()
775 return tdb_unlock(tdb, BUCKET(tdb->hash_fn(&key)), F_WRLCK | TDB_MARK_LOCK); in tdb_chainlock_unmark()
780 return tdb_unlock(tdb, BUCKET(tdb->hash_fn(&key)), F_WRLCK); in tdb_chainunlock()
785 return tdb_lock(tdb, BUCKET(tdb->hash_fn(&key)), F_RDLCK); in tdb_chainlock_read()
790 return tdb_unlock(tdb, BUCKET(tdb->hash_fn(&key)), F_RDLCK); in tdb_chainunlock_read()
2938 …tdb->travlocks.off = tdb_find_lock_hash(tdb, oldkey, tdb->hash_fn(&oldkey), tdb->travlocks.lock_rw… in tdb_nextkey()
3211 hash = tdb->hash_fn(&key); in tdb_fetch()
3249 hash = tdb->hash_fn(&key); in tdb_parse_record()
3281 u32 hash = tdb->hash_fn(&key); in tdb_exists()
3435 u32 hash = tdb->hash_fn(&key); in tdb_delete()
3487 hash = tdb->hash_fn(&key); in tdb_store()
3619 hash = tdb->hash_fn(&key); in tdb_append()
3833 tdb_hash_func hash_fn) in tdb_open_ex() argument
3858 tdb->hash_fn = hash_fn ? hash_fn : default_tdb_hash; in tdb_open_ex()