Searched refs:hash_size (Results 1 - 25 of 56) sorted by relevance

123

/netgear-WNDR4500v2-V1.0.0.60_1.0.38/src/router/dhcp6/
H A Dhash.c49 unsigned int hash_size,
61 hash_tbl->hash_list = malloc(sizeof(struct hashlist_element *)*hash_size);
62 for (i=0; i<hash_size; i++) {
66 hash_tbl->hash_size = hash_size;
85 index = hash_tbl->hash_function(key) % hash_tbl->hash_size;
101 index = hash_tbl->hash_function(key) % hash_tbl->hash_size;
125 index = hash_tbl->hash_function(key) % hash_tbl->hash_size;
138 if((hash_tbl->hash_count)*100/(hash_tbl->hash_size) > 90) rc = 1;
143 int i, hash_size, inde local
48 hash_table_create( unsigned int hash_size, unsigned int (*hash_function)(const void *hash_key), void * (*find_hashkey)(const void *data), int (*compare_hashkey)(const void *data, const void *hashkey)) argument
[all...]
H A Dhash.h51 unsigned int hash_size; member in struct:hash_table
60 extern struct hash_table * hash_table_create(unsigned int hash_size,
/netgear-WNDR4500v2-V1.0.0.60_1.0.38/ap/gpl/samba-3.0.13/source/tdb/
H A Dspinlock.h39 int tdb_create_rwlocks(int fd, unsigned int hash_size);
42 #define TDB_SPINLOCK_SIZE(hash_size) (((hash_size) + 1) * sizeof(tdb_rwlock_t))
46 #define tdb_create_rwlocks(fd, hash_size) 0
52 int tdb_create_rwlocks(int fd, unsigned int hash_size);
55 #define TDB_SPINLOCK_SIZE(hash_size) 0
H A Dspinlock.c421 int tdb_create_rwlocks(int fd, unsigned int hash_size) argument
426 size = TDB_SPINLOCK_SIZE(hash_size);
431 for(i = 0; i < hash_size+1; i++) {
456 for(i = 0; i < tdb->header.hash_size+1; i++) {
463 int tdb_create_rwlocks(int fd, unsigned int hash_size) { return 0; } argument
H A Dtdb.h83 u32 hash_size; /* number of hash entries */ member in struct:tdb_header
123 TDB_CONTEXT *tdb_open(const char *name, int hash_size, int tdb_flags,
125 TDB_CONTEXT *tdb_open_ex(const char *name, int hash_size, int tdb_flags,
H A Dtdb.c109 #define TDB_DATA_START(hash_size) (TDB_HASH_TOP(hash_size-1) + TDB_SPINLOCK_SIZE(hash_size))
134 #define BUCKET(hash) ((hash) % tdb->header.hash_size)
290 if (list < -1 || list >= (int)tdb->header.hash_size) {
329 if (list < -1 || list >= (int)tdb->header.hash_size) {
330 TDB_LOG((tdb, 0, "tdb_unlock: list %d invalid (%d)\n", list, tdb->header.hash_size));
585 for (i=0;i<tdb->header.hash_size;i++) {
693 if (left > TDB_DATA_START(tdb->header.hash_size)) {
954 static int tdb_new_database(TDB_CONTEXT *tdb, int hash_size) argument
1711 tdb_open(const char *name, int hash_size, int tdb_flags, int open_flags, mode_t mode) argument
1718 tdb_open_ex(const char *name, int hash_size, int tdb_flags, int open_flags, mode_t mode, tdb_log_func log_fn, tdb_hash_func hash_fn) argument
[all...]
/netgear-WNDR4500v2-V1.0.0.60_1.0.38/ap/gpl/ppp-2.4.4/pppd/
H A Dspinlock.h39 int tdb_create_rwlocks(int fd, unsigned int hash_size);
42 #define TDB_SPINLOCK_SIZE(hash_size) (((hash_size) + 1) * sizeof(tdb_rwlock_t))
46 #define tdb_create_rwlocks(fd, hash_size) 0
52 int tdb_create_rwlocks(int fd, unsigned int hash_size);
55 #define TDB_SPINLOCK_SIZE(hash_size) 0
H A Dspinlock.c413 int tdb_create_rwlocks(int fd, unsigned int hash_size) argument
418 size = TDB_SPINLOCK_SIZE(hash_size);
423 for(i = 0; i < hash_size+1; i++) {
448 for(i = 0; i < tdb->header.hash_size+1; i++) {
455 int tdb_create_rwlocks(int fd, unsigned int hash_size) { return 0; } argument
H A Dtdb.h83 u32 hash_size; /* number of hash entries */ member in struct:tdb_header
123 TDB_CONTEXT *tdb_open(const char *name, int hash_size, int tdb_flags,
125 TDB_CONTEXT *tdb_open_ex(const char *name, int hash_size, int tdb_flags,
H A Dtdb.c77 #define TDB_DATA_START(hash_size) (TDB_HASH_TOP(hash_size-1) + TDB_SPINLOCK_SIZE(hash_size))
102 #define BUCKET(hash) ((hash) % tdb->header.hash_size)
258 if (list < -1 || list >= (int)tdb->header.hash_size) {
297 if (list < -1 || list >= (int)tdb->header.hash_size) {
298 TDB_LOG((tdb, 0, "tdb_unlock: list %d invalid (%d)\n", list, tdb->header.hash_size));
553 for (i=0;i<tdb->header.hash_size;i++) {
661 if (left > TDB_DATA_START(tdb->header.hash_size)) {
922 static int tdb_new_database(TDB_CONTEXT *tdb, int hash_size) argument
1669 tdb_open(const char *name, int hash_size, int tdb_flags, int open_flags, mode_t mode) argument
1676 tdb_open_ex(const char *name, int hash_size, int tdb_flags, int open_flags, mode_t mode, tdb_log_func log_fn, tdb_hash_func hash_fn) argument
[all...]
/netgear-WNDR4500v2-V1.0.0.60_1.0.38/ap/gpl/timemachine/netatalk-2.2.0/libatalk/tdb/
H A Dspinlock.h39 int tdb_create_rwlocks(int fd, unsigned int hash_size);
44 #define tdb_create_rwlocks(fd, hash_size) 0
50 int tdb_create_rwlocks(int fd, unsigned int hash_size);
H A Dspinlock.c371 int tdb_create_rwlocks(int fd, unsigned int hash_size) argument
376 size = (hash_size + 1) * sizeof(tdb_rwlock_t);
381 for(i = 0; i < hash_size+1; i++) {
406 for(i = 0; i < tdb->header.hash_size+1; i++) {
413 int tdb_create_rwlocks(int fd, unsigned int hash_size) { return 0; } argument
/netgear-WNDR4500v2-V1.0.0.60_1.0.38/ap/gpl/timemachine/netatalk-2.2.5/libatalk/tdb/
H A Dspinlock.h39 int tdb_create_rwlocks(int fd, unsigned int hash_size);
44 #define tdb_create_rwlocks(fd, hash_size) 0
50 int tdb_create_rwlocks(int fd, unsigned int hash_size);
H A Dspinlock.c371 int tdb_create_rwlocks(int fd, unsigned int hash_size) argument
376 size = (hash_size + 1) * sizeof(tdb_rwlock_t);
381 for(i = 0; i < hash_size+1; i++) {
406 for(i = 0; i < tdb->header.hash_size+1; i++) {
413 int tdb_create_rwlocks(int fd, unsigned int hash_size) { return 0; } argument
/netgear-WNDR4500v2-V1.0.0.60_1.0.38/src/linux/linux-2.6/fs/hfsplus_journal/
H A Drevoke.c89 int hash_size; member in struct:hfsplus_jbd_revoke_table_s
112 (block << (hash_shift - 12))) & (table->hash_size - 1);
194 int hfsplus_jbd_init_revoke(hfsplus_jbd_t *journal, int hash_size) argument
201 tmp = hash_size;
210 /* Check that the hash_size is a power of two */
211 HFSPLUS_J_ASSERT ((hash_size & (hash_size-1)) == 0);
213 journal->j_revoke->hash_size = hash_size;
218 kmalloc(hash_size * sizeo
[all...]
/netgear-WNDR4500v2-V1.0.0.60_1.0.38/src/linux/linux-2.6/fs/jbd/
H A Drevoke.c92 int hash_size; member in struct:jbd_revoke_table_s
115 (block << (hash_shift - 12))) & (table->hash_size - 1);
197 int journal_init_revoke(journal_t *journal, int hash_size) argument
204 tmp = hash_size;
213 /* Check that the hash_size is a power of two */
214 J_ASSERT ((hash_size & (hash_size-1)) == 0);
216 journal->j_revoke->hash_size = hash_size;
221 kmalloc(hash_size * sizeo
[all...]
/netgear-WNDR4500v2-V1.0.0.60_1.0.38/src/linux/linux-2.6/fs/jbd2/
H A Drevoke.c92 int hash_size; member in struct:jbd2_revoke_table_s
116 (hash << (hash_shift - 12))) & (table->hash_size - 1);
198 int jbd2_journal_init_revoke(journal_t *journal, int hash_size) argument
205 tmp = hash_size;
214 /* Check that the hash_size is a power of two */
215 J_ASSERT ((hash_size & (hash_size-1)) == 0);
217 journal->j_revoke->hash_size = hash_size;
222 kmalloc(hash_size * sizeo
[all...]
/netgear-WNDR4500v2-V1.0.0.60_1.0.38/ap/gpl/timemachine/netatalk-2.2.0/etc/afpd/
H A Dhash.h44 extern hashcount_t hash_size(hash_t *);
68 #define hash_size(H) ((H)->hash_nchains) macro
/netgear-WNDR4500v2-V1.0.0.60_1.0.38/ap/gpl/timemachine/netatalk-2.2.5/etc/afpd/
H A Dhash.h44 extern hashcount_t hash_size(hash_t *);
68 #define hash_size(H) ((H)->hash_nchains) macro
/netgear-WNDR4500v2-V1.0.0.60_1.0.38/src/linux/linux-2.6/fs/
H A Ddcookies.c42 static size_t hash_size __read_mostly;
59 return (dcookie >> L1_CACHE_SHIFT) & (hash_size - 1);
223 hash_size = PAGE_SIZE / sizeof(struct list_head);
227 } while ((hash_size >> hash_bits) != 0);
234 hash_size = 1UL << hash_bits;
238 i = hash_size;
270 for (i = 0; i < hash_size; ++i) {
/netgear-WNDR4500v2-V1.0.0.60_1.0.38/ap/gpl/timemachine/netatalk-2.2.0/include/atalk/
H A Dtdb.h65 u32 hash_size; /* number of hash entries */ member in struct:tdb_header
104 TDB_CONTEXT *tdb_open(const char *name, int hash_size, int tdb_flags,
106 TDB_CONTEXT *tdb_open_ex(const char *name, int hash_size, int tdb_flags,
/netgear-WNDR4500v2-V1.0.0.60_1.0.38/ap/gpl/timemachine/netatalk-2.2.5/include/atalk/
H A Dtdb.h65 u32 hash_size; /* number of hash entries */ member in struct:tdb_header
104 TDB_CONTEXT *tdb_open(const char *name, int hash_size, int tdb_flags,
106 TDB_CONTEXT *tdb_open_ex(const char *name, int hash_size, int tdb_flags,
/netgear-WNDR4500v2-V1.0.0.60_1.0.38/ap/gpl/timemachine/netatalk-2.2.0/libatalk/cnid/tdb/
H A Dcnid_tdb_open.c74 int hash_size = 131071; local
106 hash_size = 0;
116 db->tdb_cnid = tdb_open(path, hash_size, tdb_flags , O_RDWR | O_CREAT, 0666 & ~args->mask);
/netgear-WNDR4500v2-V1.0.0.60_1.0.38/ap/gpl/timemachine/netatalk-2.2.5/libatalk/cnid/tdb/
H A Dcnid_tdb_open.c74 int hash_size = 131071; local
106 hash_size = 0;
116 db->tdb_cnid = tdb_open(path, hash_size, tdb_flags , O_RDWR | O_CREAT, 0666 & ~args->mask);
/netgear-WNDR4500v2-V1.0.0.60_1.0.38/src/router/flex/
H A Dsym.c154 /* hashfunct - compute the hash value for "str" and hash size "hash_size" */
156 int hashfunct( str, hash_size )
158 int hash_size;
169 hashval %= hash_size;

Completed in 111 milliseconds

123