Lines Matching refs:hash_fn
243 unsigned int (*hash_fn)(TDB_DATA *key); member
749 return tdb_lock(tdb, BUCKET(tdb->hash_fn(&key)), F_WRLCK); in tdb_chainlock()
757 return tdb_lock_nonblock(tdb, BUCKET(tdb->hash_fn(&key)), F_WRLCK); in tdb_chainlock_nonblock()
763 return tdb_lock(tdb, BUCKET(tdb->hash_fn(&key)), F_WRLCK | TDB_MARK_LOCK); in tdb_chainlock_mark()
769 return tdb_unlock(tdb, BUCKET(tdb->hash_fn(&key)), F_WRLCK | TDB_MARK_LOCK); in tdb_chainlock_unmark()
774 return tdb_unlock(tdb, BUCKET(tdb->hash_fn(&key)), F_WRLCK); in tdb_chainunlock()
779 return tdb_lock(tdb, BUCKET(tdb->hash_fn(&key)), F_RDLCK); in tdb_chainlock_read()
784 return tdb_unlock(tdb, BUCKET(tdb->hash_fn(&key)), F_RDLCK); in tdb_chainunlock_read()
2926 …tdb->travlocks.off = tdb_find_lock_hash(tdb, oldkey, tdb->hash_fn(&oldkey), tdb->travlocks.lock_rw… in tdb_nextkey()
3197 hash = tdb->hash_fn(&key); in tdb_fetch()
3235 hash = tdb->hash_fn(&key); in tdb_parse_record()
3267 u32 hash = tdb->hash_fn(&key); in tdb_exists()
3421 u32 hash = tdb->hash_fn(&key); in tdb_delete()
3473 hash = tdb->hash_fn(&key); in tdb_store()
3605 hash = tdb->hash_fn(&key); in tdb_append()
3816 tdb_hash_func hash_fn) in tdb_open_ex() argument
3841 tdb->hash_fn = hash_fn ? hash_fn : default_tdb_hash; in tdb_open_ex()