Lines Matching refs:BUCKET
81 #define TDB_HASH_TOP(hash) (FREELIST_TOP + (BUCKET(hash)+1)*sizeof(tdb_off))
105 #define BUCKET(hash) ((hash) % tdb->header.hash_size)
1028 if (tdb_lock(tdb, BUCKET(hash), locktype) == -1)
1031 tdb_unlock(tdb, BUCKET(hash), locktype);
1117 tdb_unlock(tdb, BUCKET(rec.full_hash), F_RDLCK);
1133 tdb_unlock(tdb, BUCKET(rec.full_hash), F_RDLCK);
1358 if (tdb_unlock(tdb, BUCKET(tdb->travlocks.hash), F_WRLCK) != 0)
1395 tdb->travlocks.hash = BUCKET(rec.full_hash);
1414 if (tdb_unlock(tdb, BUCKET(oldhash), F_WRLCK) != 0)
1429 if (tdb_unlock(tdb, BUCKET(rec.full_hash), F_WRLCK) != 0)
1451 if (tdb_lock(tdb, BUCKET(hash), F_WRLCK) == -1)
1512 tdb_unlock(tdb, BUCKET(hash), F_WRLCK);
1567 if (tdb_lock(tdb, BUCKET(hash), F_WRLCK) == -1)
1638 tdb_unlock(tdb, BUCKET(hash), F_WRLCK);
1936 for (j = 0; j < i && BUCKET(tdb->lockedkeys[j+1]) < BUCKET(hash); j++);
1970 return tdb_lock(tdb, BUCKET(tdb_hash(&key)), F_WRLCK);
1975 return tdb_unlock(tdb, BUCKET(tdb_hash(&key)), F_WRLCK);
1981 return tdb_lock(tdb, BUCKET(tdb_hash(&key)), F_RDLCK);
1988 return tdb_unlock(tdb, BUCKET(tdb_hash(&key)), F_RDLCK);