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

1234

/netgear-R7000-V1.0.7.12_1.2.5/ap/gpl/samba-3.0.25b/source/tdb/include/
H A Dtdbback.h22 int backup_tdb(const char *old_name, const char *new_name, int hash_size);
/netgear-R7000-V1.0.7.12_1.2.5/ap/gpl/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-R7000-V1.0.7.12_1.2.5/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-R7000-V1.0.7.12_1.2.5/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,
/netgear-R7000-V1.0.7.12_1.2.5/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-R7000-V1.0.7.12_1.2.5/components/opensource/linux/linux-2.6.36/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-R7000-V1.0.7.12_1.2.5/components/opensource/linux/linux-2.6.36/fs/jbd/
H A Drevoke.c113 int hash_size; member in struct:jbd_revoke_table_s
136 (block << (hash_shift - 12))) & (table->hash_size - 1);
228 static struct jbd_revoke_table_s *journal_init_revoke_table(int hash_size) argument
231 int tmp = hash_size;
241 table->hash_size = hash_size;
244 kmalloc(hash_size * sizeof(struct list_head), GFP_KERNEL);
251 for (tmp = 0; tmp < hash_size; tmp++)
263 for (i = 0; i < table->hash_size; i++) {
273 int journal_init_revoke(journal_t *journal, int hash_size) argument
[all...]
/netgear-R7000-V1.0.7.12_1.2.5/components/opensource/linux/linux-2.6.36/fs/jbd2/
H A Drevoke.c113 int hash_size; member in struct:jbd2_revoke_table_s
137 (hash << (hash_shift - 12))) & (table->hash_size - 1);
227 static struct jbd2_revoke_table_s *jbd2_journal_init_revoke_table(int hash_size) argument
230 int tmp = hash_size;
240 table->hash_size = hash_size;
243 kmalloc(hash_size * sizeof(struct list_head), GFP_KERNEL);
250 for (tmp = 0; tmp < hash_size; tmp++)
262 for (i = 0; i < table->hash_size; i++) {
272 int jbd2_journal_init_revoke(journal_t *journal, int hash_size) argument
[all...]
/netgear-R7000-V1.0.7.12_1.2.5/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-R7000-V1.0.7.12_1.2.5/src/router/ppp/pppd/
H A Dtdb.h30 unsigned hash_size; /* number of hash entries */ member in struct:tdb_header
62 TDB_CONTEXT *tdb_open(char *name, int hash_size, int tdb_flags,
/netgear-R7000-V1.0.7.12_1.2.5/components/opensource/linux/linux-2.6.36/fs/
H A Ddcookies.c43 static size_t hash_size __read_mostly;
60 return (dcookie >> L1_CACHE_SHIFT) & (hash_size - 1);
232 hash_size = PAGE_SIZE / sizeof(struct list_head);
236 } while ((hash_size >> hash_bits) != 0);
243 hash_size = 1UL << hash_bits;
247 i = hash_size;
283 for (i = 0; i < hash_size; ++i) {
/netgear-R7000-V1.0.7.12_1.2.5/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-R7000-V1.0.7.12_1.2.5/ap/gpl/transmission/transmission-2.73/third-party/dht/
H A Ddht.h54 void dht_hash(void *hash_return, int hash_size,
/netgear-R7000-V1.0.7.12_1.2.5/ap/gpl/samba-3.0.25b/source/tdb/common/
H A Dopen.c50 static int tdb_new_database(struct tdb_context *tdb, int hash_size) argument
56 size = sizeof(struct tdb_header) + (hash_size+1)*sizeof(tdb_off_t);
62 newdb->hash_size = hash_size;
119 struct tdb_context *tdb_open(const char *name, int hash_size, int tdb_flags, argument
122 return tdb_open_ex(name, hash_size, tdb_flags, open_flags, mode, NULL, NULL);
132 struct tdb_context *tdb_open_ex(const char *name, int hash_size, int tdb_flags, argument
175 if (hash_size == 0)
176 hash_size = DEFAULT_HASH_SIZE;
188 if (tdb_new_database(tdb, hash_size) !
[all...]
H A Dtdb_private.h64 #define TDB_HASHTABLE_SIZE(tdb) ((tdb->header.hash_size+1)*sizeof(tdb_off_t))
65 #define TDB_DATA_START(hash_size) TDB_HASH_TOP(hash_size-1)
86 #define BUCKET(hash) ((hash) % tdb->header.hash_size)
118 u32 hash_size; /* number of hash entries */ member in struct:tdb_header
H A Dtdbback.c98 int backup_tdb(const char *old_name, const char *new_name, int hash_size) argument
126 hash_size ? hash_size : tdb_hash_size(tdb),
/netgear-R7000-V1.0.7.12_1.2.5/ap/gpl/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;
/netgear-R7000-V1.0.7.12_1.2.5/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-R7000-V1.0.7.12_1.2.5/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;
/netgear-R7000-V1.0.7.12_1.2.5/ap/gpl/samba-3.0.25b/source/tdb/swig/
H A DTdb.py40 def __init__(self, name, hash_size = 0, flags = TDB_DEFAULT,
42 self.tdb = tdb_open(name, hash_size, flags, open_flags, mode)

Completed in 235 milliseconds

1234