/netgear-WNDR4500-V1.0.1.40_1.0.68/src/router/dhcp6/ |
H A D | hash.c | 49 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 D | hash.h | 51 unsigned int hash_size; member in struct:hash_table 60 extern struct hash_table * hash_table_create(unsigned int hash_size,
|
/netgear-WNDR4500-V1.0.1.40_1.0.68/ap/gpl/samba-3.0.13/source/tdb/ |
H A D | spinlock.h | 39 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 D | spinlock.c | 421 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 D | tdb.h | 83 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 D | tdb.c | 109 #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-WNDR4500-V1.0.1.40_1.0.68/ap/gpl/ppp-2.4.4/pppd/ |
H A D | spinlock.h | 39 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 D | spinlock.c | 413 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 D | tdb.h | 83 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 D | tdb.c | 77 #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-WNDR4500-V1.0.1.40_1.0.68/ap/gpl/timemachine/netatalk-2.2.0/libatalk/tdb/ |
H A D | spinlock.h | 39 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 D | spinlock.c | 371 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
|
H A D | tdb.c | 105 #define BUCKET(hash) ((hash) % tdb->header.hash_size) 252 if (list < -1 || list >= (int)tdb->header.hash_size) { 291 if (list < -1 || list >= (int)tdb->header.hash_size) { 292 TDB_LOG((tdb, 0, "tdb_unlock: list %d invalid (%d)\n", list, tdb->header.hash_size)); 560 for (i=0;i<tdb->header.hash_size;i++) { 668 if (left > TDB_HASH_TOP(tdb->header.hash_size-1)) { 927 static int tdb_new_database(TDB_CONTEXT *tdb, int hash_size) argument 933 size = sizeof(struct tdb_header) + (hash_size+1)*sizeof(tdb_off); 939 newdb->hash_size = hash_size; 1670 tdb_open(const char *name, int hash_size, int tdb_flags, int open_flags, mode_t mode) argument 1677 tdb_open_ex(const char *name, int hash_size, int tdb_flags, int open_flags, mode_t mode, tdb_log_func log_fn) argument [all...] |
/netgear-WNDR4500-V1.0.1.40_1.0.68/src/linux/linux-2.6/fs/hfsplus_journal/ |
H A D | revoke.c | 89 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-WNDR4500-V1.0.1.40_1.0.68/src/linux/linux-2.6/fs/jbd/ |
H A D | revoke.c | 92 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-WNDR4500-V1.0.1.40_1.0.68/src/linux/linux-2.6/fs/jbd2/ |
H A D | revoke.c | 92 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-WNDR4500-V1.0.1.40_1.0.68/ap/gpl/ppp/pppd/ |
H A D | tdb.h | 30 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,
|
H A D | tdb.c | 49 #define BUCKET(hash) ((hash) % tdb->header.hash_size)
116 if (list < -1 || list >= (int)tdb->header.hash_size) {
135 if (list < -1 || list >= (int)tdb->header.hash_size) {
482 static int tdb_new_database(TDB_CONTEXT *tdb, int hash_size)
argument 493 header.hash_size = hash_size;
507 for (i=0;(hash_size+1)-i >= 16; i += 16) {
515 for (;i<hash_size+1; i++) {
534 printf("initialised database of hash_size %u\n",
535 hash_size);
1106 tdb_open(char *name, int hash_size, int tdb_flags, int open_flags, mode_t mode) argument [all...] |
/netgear-WNDR4500-V1.0.1.40_1.0.68/ap/gpl/timemachine/netatalk-2.2.0/etc/afpd/ |
H A D | hash.h | 44 extern hashcount_t hash_size(hash_t *); 68 #define hash_size(H) ((H)->hash_nchains) macro
|
/netgear-WNDR4500-V1.0.1.40_1.0.68/src/linux/linux-2.6/fs/ |
H A D | dcookies.c | 42 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-WNDR4500-V1.0.1.40_1.0.68/ap/gpl/timemachine/netatalk-2.2.0/include/atalk/ |
H A D | tdb.h | 65 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-WNDR4500-V1.0.1.40_1.0.68/ap/gpl/timemachine/netatalk-2.2.0/libatalk/cnid/tdb/ |
H A D | cnid_tdb_open.c | 74 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-WNDR4500-V1.0.1.40_1.0.68/src/router/flex/ |
H A D | sym.c | 154 /* 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-WNDR4500-V1.0.1.40_1.0.68/ap/gpl/dnsmasq-2.15/src/ |
H A D | cache.c | 19 static int bignames_left, log_queries, cache_size, hash_size; variable 53 /* hash_size is a power of two. */ 54 for (hash_size = 64; hash_size < cache_size/10; hash_size = hash_size << 1); 55 hash_table = safe_malloc(hash_size*sizeof(struct crec *)); 56 for(i=0; i < hash_size; i++) 71 /* hash_size is a power of two */ 72 return hash_table + (val & (hash_size [all...] |
/netgear-WNDR4500-V1.0.1.40_1.0.68/ap/gpl/dnsmasq-2.33/src/ |
H A D | cache.c | 19 static int bignames_left, log_queries, cache_size, hash_size; variable 60 /* hash_size is a power of two. */ 61 for (hash_size = 64; hash_size < cache_size/10; hash_size = hash_size << 1); 62 hash_table = safe_malloc(hash_size*sizeof(struct crec *)); 63 for(i=0; i < hash_size; i++) 78 /* hash_size is a power of two */ 79 return hash_table + (val & (hash_size [all...] |