Home | History | Annotate | Download | only in pppd

Lines Matching refs:BUCKET

76 #define TDB_HASH_TOP(hash) (FREELIST_TOP + (BUCKET(hash)+1)*sizeof(tdb_off))
102 #define BUCKET(hash) ((hash) % tdb->header.hash_size)
1005 if (tdb_lock(tdb, BUCKET(hash), locktype) == -1)
1008 tdb_unlock(tdb, BUCKET(hash), locktype);
1085 /* find which hash bucket it is in */
1096 tdb_unlock(tdb, BUCKET(rec.full_hash), F_RDLCK);
1112 tdb_unlock(tdb, BUCKET(rec.full_hash), F_RDLCK);
1340 if (tdb_unlock(tdb, BUCKET(tdb->travlocks.hash), F_WRLCK) != 0)
1377 tdb->travlocks.hash = BUCKET(rec.full_hash);
1396 if (tdb_unlock(tdb, BUCKET(oldhash), F_WRLCK) != 0)
1411 if (tdb_unlock(tdb, BUCKET(rec.full_hash), F_WRLCK) != 0)
1435 /* find which hash bucket it is in */
1437 if (tdb_lock(tdb, BUCKET(hash), F_WRLCK) == -1)
1500 tdb_unlock(tdb, BUCKET(hash), F_WRLCK);
1551 /* find which hash bucket it is in */
1553 if (tdb_lock(tdb, BUCKET(hash), F_WRLCK) == -1)
1624 tdb_unlock(tdb, BUCKET(hash), F_WRLCK);
1931 return tdb_lock(tdb, BUCKET(tdb->hash_fn(&key)), F_WRLCK);
1936 return tdb_unlock(tdb, BUCKET(tdb->hash_fn(&key)), F_WRLCK);
1941 return tdb_lock(tdb, BUCKET(tdb->hash_fn(&key)), F_RDLCK);
1946 return tdb_unlock(tdb, BUCKET(tdb->hash_fn(&key)), F_RDLCK);