Searched refs:htab (Results 1 – 3 of 3) sorted by relevance
/u-boot/lib/ |
A D | hashtable.c | 123 htab->size = nel; in hcreate_r() 124 htab->filled = 0; in hcreate_r() 127 htab->table = (struct env_entry_node *)calloc(htab->size + 1, in hcreate_r() 255 if (htab->change_ok != NULL && htab->change_ok( in _compare_and_overwrite_entry() 377 if (htab->filled == htab->size) { in hsearch_r() 408 if (htab->change_ok != NULL && htab->change_ok( in hsearch_r() 412 _hdelete(item.key, htab, &htab->table[idx].entry, idx); in hsearch_r() 423 _hdelete(item.key, htab, &htab->table[idx].entry, idx); in hsearch_r() 460 --htab->filled; in _hdelete() 626 htab, htab->size, htab->filled, (ulong)size); in hexport_r() [all …]
|
/u-boot/test/env/ |
A D | hashtable.c | 19 struct hsearch_data *htab, size_t size) in htab_fill() argument 92 struct hsearch_data htab; in env_test_htab_fill() local 94 memset(&htab, 0, sizeof(htab)); in env_test_htab_fill() 95 ut_asserteq(1, hcreate_r(SIZE, &htab)); in env_test_htab_fill() 99 ut_asserteq(SIZE, htab.filled); in env_test_htab_fill() 101 hdestroy_r(&htab); in env_test_htab_fill() 112 struct hsearch_data htab; in env_test_htab_deletes() local 114 memset(&htab, 0, sizeof(htab)); in env_test_htab_deletes() 115 ut_asserteq(1, hcreate_r(SIZE, &htab)); in env_test_htab_deletes() 120 ut_asserteq(SIZE / 2, htab.filled); in env_test_htab_deletes() [all …]
|
/u-boot/include/ |
A D | search.h | 62 int hcreate_r(size_t nel, struct hsearch_data *htab); 65 void hdestroy_r(struct hsearch_data *htab); 74 struct env_entry **retval, struct hsearch_data *htab, int flag); 81 struct hsearch_data *htab); 93 int hdelete_r(const char *key, struct hsearch_data *htab, int flag); 95 ssize_t hexport_r(struct hsearch_data *htab, const char sep, int flag, 102 int himport_r(struct hsearch_data *htab, const char *env, size_t size, 107 int hwalk_r(struct hsearch_data *htab,
|
Completed in 6 milliseconds