Home
last modified time | relevance | path

Searched refs:ht (Results 1 – 25 of 691) sorted by relevance

12345678910>>...28

/external/mesa3d/src/util/
Dhash_table.c102 entry_is_deleted(const struct hash_table *ht, struct hash_entry *entry) in entry_is_deleted() argument
104 return entry->key == ht->deleted_key; in entry_is_deleted()
108 entry_is_present(const struct hash_table *ht, struct hash_entry *entry) in entry_is_present() argument
110 return entry->key != NULL && entry->key != ht->deleted_key; in entry_is_present()
119 struct hash_table *ht; in _mesa_hash_table_create() local
121 ht = ralloc(mem_ctx, struct hash_table); in _mesa_hash_table_create()
122 if (ht == NULL) in _mesa_hash_table_create()
125 ht->size_index = 0; in _mesa_hash_table_create()
126 ht->size = hash_sizes[ht->size_index].size; in _mesa_hash_table_create()
127 ht->rehash = hash_sizes[ht->size_index].rehash; in _mesa_hash_table_create()
[all …]
Dset.c111 struct set *ht; in _mesa_set_create() local
113 ht = ralloc(mem_ctx, struct set); in _mesa_set_create()
114 if (ht == NULL) in _mesa_set_create()
117 ht->size_index = 0; in _mesa_set_create()
118 ht->size = hash_sizes[ht->size_index].size; in _mesa_set_create()
119 ht->rehash = hash_sizes[ht->size_index].rehash; in _mesa_set_create()
120 ht->max_entries = hash_sizes[ht->size_index].max_entries; in _mesa_set_create()
121 ht->key_hash_function = key_hash_function; in _mesa_set_create()
122 ht->key_equals_function = key_equals_function; in _mesa_set_create()
123 ht->table = rzalloc_array(ht, struct set_entry, ht->size); in _mesa_set_create()
[all …]
Dhash_table.h65 void _mesa_hash_table_destroy(struct hash_table *ht,
67 void _mesa_hash_table_clear(struct hash_table *ht,
69 void _mesa_hash_table_set_deleted_key(struct hash_table *ht,
72 static inline uint32_t _mesa_hash_table_num_entries(struct hash_table *ht) in _mesa_hash_table_num_entries() argument
74 return ht->entries; in _mesa_hash_table_num_entries()
78 _mesa_hash_table_insert(struct hash_table *ht, const void *key, void *data);
80 _mesa_hash_table_insert_pre_hashed(struct hash_table *ht, uint32_t hash,
83 _mesa_hash_table_search(struct hash_table *ht, const void *key);
85 _mesa_hash_table_search_pre_hashed(struct hash_table *ht, uint32_t hash,
87 void _mesa_hash_table_remove(struct hash_table *ht,
[all …]
/external/mesa3d/src/gallium/auxiliary/util/
Du_handle_table.c64 struct handle_table *ht; in handle_table_create() local
66 ht = MALLOC_STRUCT(handle_table); in handle_table_create()
67 if (!ht) in handle_table_create()
70 ht->objects = (void **)CALLOC(HANDLE_TABLE_INITIAL_SIZE, sizeof(void *)); in handle_table_create()
71 if(!ht->objects) { in handle_table_create()
72 FREE(ht); in handle_table_create()
76 ht->size = HANDLE_TABLE_INITIAL_SIZE; in handle_table_create()
77 ht->filled = 0; in handle_table_create()
79 ht->destroy = NULL; in handle_table_create()
81 return ht; in handle_table_create()
[all …]
Du_hash_table.c82 struct util_hash_table *ht; in util_hash_table_create() local
84 ht = MALLOC_STRUCT(util_hash_table); in util_hash_table_create()
85 if (!ht) in util_hash_table_create()
88 ht->cso = cso_hash_create(); in util_hash_table_create()
89 if(!ht->cso) { in util_hash_table_create()
90 FREE(ht); in util_hash_table_create()
94 ht->hash = hash; in util_hash_table_create()
95 ht->compare = compare; in util_hash_table_create()
97 return ht; in util_hash_table_create()
102 util_hash_table_find_iter(struct util_hash_table *ht, in util_hash_table_find_iter() argument
[all …]
Du_handle_table.h63 handle_table_set_destroy(struct handle_table *ht,
73 handle_table_add(struct handle_table *ht,
80 handle_table_set(struct handle_table *ht,
90 handle_table_get(struct handle_table *ht,
95 handle_table_remove(struct handle_table *ht,
100 handle_table_destroy(struct handle_table *ht);
104 handle_table_get_first_handle(struct handle_table *ht);
108 handle_table_get_next_handle(struct handle_table *ht,
/external/python/cpython3/Modules/
Dhashtable.c79 static void hashtable_rehash(_Py_hashtable_t *ht);
108 _Py_hashtable_hash_ptr(struct _Py_hashtable_t *ht, const void *pkey) in _Py_hashtable_hash_ptr() argument
112 _Py_HASHTABLE_READ_KEY(ht, pkey, key); in _Py_hashtable_hash_ptr()
118 _Py_hashtable_compare_direct(_Py_hashtable_t *ht, const void *pkey, in _Py_hashtable_compare_direct() argument
122 return (memcmp(pkey, pkey2, ht->key_size) == 0); in _Py_hashtable_compare_direct()
147 _Py_hashtable_t *ht; in _Py_hashtable_new_full() local
158 ht = (_Py_hashtable_t *)alloc.malloc(sizeof(_Py_hashtable_t)); in _Py_hashtable_new_full()
159 if (ht == NULL) in _Py_hashtable_new_full()
160 return ht; in _Py_hashtable_new_full()
162 ht->num_buckets = round_size(init_size); in _Py_hashtable_new_full()
[all …]
Dhashtable.h75 typedef Py_uhash_t (*_Py_hashtable_hash_func) (struct _Py_hashtable_t *ht,
77 typedef int (*_Py_hashtable_compare_func) (struct _Py_hashtable_t *ht,
106 struct _Py_hashtable_t *ht,
111 _Py_hashtable_t *ht,
129 PyAPI_FUNC(void) _Py_hashtable_destroy(_Py_hashtable_t *ht);
134 PyAPI_FUNC(void) _Py_hashtable_clear(_Py_hashtable_t *ht);
136 typedef int (*_Py_hashtable_foreach_func) (_Py_hashtable_t *ht,
144 _Py_hashtable_t *ht,
148 PyAPI_FUNC(size_t) _Py_hashtable_size(_Py_hashtable_t *ht);
156 _Py_hashtable_t *ht,
[all …]
/external/virglrenderer/src/gallium/auxiliary/util/
Du_hash_table.c84 struct util_hash_table *ht; in util_hash_table_create() local
86 ht = MALLOC_STRUCT(util_hash_table); in util_hash_table_create()
87 if(!ht) in util_hash_table_create()
90 ht->cso = cso_hash_create(); in util_hash_table_create()
91 if(!ht->cso) { in util_hash_table_create()
92 FREE(ht); in util_hash_table_create()
96 ht->hash = hash; in util_hash_table_create()
97 ht->compare = compare; in util_hash_table_create()
98 ht->destroy = destroy; in util_hash_table_create()
100 return ht; in util_hash_table_create()
[all …]
/external/libdrm/amdgpu/
Dutil_hash_table.c75 struct util_hash_table *ht; in util_hash_table_create() local
77 ht = malloc(sizeof(struct util_hash_table)); in util_hash_table_create()
78 if(!ht) in util_hash_table_create()
81 ht->head = util_hash_create(); in util_hash_table_create()
82 if(!ht->head) { in util_hash_table_create()
83 free(ht); in util_hash_table_create()
87 ht->make_hash = hash; in util_hash_table_create()
88 ht->compare = compare; in util_hash_table_create()
90 return ht; in util_hash_table_create()
94 util_hash_table_find_iter(struct util_hash_table *ht, in util_hash_table_find_iter() argument
[all …]
/external/syzkaller/vendor/google.golang.org/grpc/transport/
Dhandler_server.go146 func (ht *serverHandlerTransport) Close() error {
147 ht.closeOnce.Do(ht.closeCloseChanOnce)
151 func (ht *serverHandlerTransport) closeCloseChanOnce() { close(ht.closedCh) }
153 func (ht *serverHandlerTransport) RemoteAddr() net.Addr { return strAddr(ht.req.RemoteAddr) }
178 func (ht *serverHandlerTransport) do(fn func()) error {
181 case <-ht.closedCh:
185 case ht.writes <- fn:
187 case <-ht.closedCh:
193 func (ht *serverHandlerTransport) WriteStatus(s *Stream, st *status.Status) error {
194 ht.writeStatusMu.Lock()
[all …]
/external/mesa3d/src/compiler/glsl/
Dir_clone.cpp41 ir_variable::clone(void *mem_ctx, struct hash_table *ht) const in clone()
63 var->constant_value = this->constant_value->clone(mem_ctx, ht); in clone()
67 this->constant_initializer->clone(mem_ctx, ht); in clone()
71 if (ht) in clone()
72 _mesa_hash_table_insert(ht, (void *)const_cast<ir_variable *>(this), var); in clone()
78 ir_swizzle::clone(void *mem_ctx, struct hash_table *ht) const in clone()
80 return new(mem_ctx) ir_swizzle(this->val->clone(mem_ctx, ht), this->mask); in clone()
84 ir_return::clone(void *mem_ctx, struct hash_table *ht) const in clone()
89 new_value = this->value->clone(mem_ctx, ht); in clone()
95 ir_discard::clone(void *mem_ctx, struct hash_table *ht) const in clone()
[all …]
Dstring_to_uint_map.h64 this->ht = _mesa_hash_table_create(NULL, _mesa_key_hash_string, in string_to_uint_map()
70 hash_table_call_foreach(this->ht, delete_key, NULL); in ~string_to_uint_map()
71 _mesa_hash_table_destroy(this->ht, NULL); in ~string_to_uint_map()
79 hash_table_call_foreach(this->ht, delete_key, NULL); in clear()
80 _mesa_hash_table_clear(this->ht, NULL); in clear()
98 hash_table_call_foreach(this->ht, subtract_one_wrapper, wrapper); in iterate()
114 hash_entry *entry = _mesa_hash_table_search(this->ht, in get()
141 struct hash_entry *entry = _mesa_hash_table_search(this->ht, dup_key); in put()
145 _mesa_hash_table_insert(this->ht, dup_key, in put()
173 struct hash_table *ht; member
/external/libnl/lib/
Dhashtable.c31 nl_hash_table_t *ht; in nl_hash_table_alloc() local
33 ht = calloc(1, sizeof (*ht)); in nl_hash_table_alloc()
34 if (!ht) in nl_hash_table_alloc()
37 ht->nodes = calloc(size, sizeof (*ht->nodes)); in nl_hash_table_alloc()
38 if (!ht->nodes) { in nl_hash_table_alloc()
39 free(ht); in nl_hash_table_alloc()
43 ht->size = size; in nl_hash_table_alloc()
45 return ht; in nl_hash_table_alloc()
56 void nl_hash_table_free(nl_hash_table_t *ht) in nl_hash_table_free() argument
60 for(i = 0; i < ht->size; i++) { in nl_hash_table_free()
[all …]
/external/libhevc/common/
Dihevc_sao.c80 WORD32 ht) in ihevc_sao_band_offset_luma() argument
88 for(row = 0; row < ht; row++) in ihevc_sao_band_offset_luma()
95 pu1_src_top[col] = pu1_src[(ht - 1) * src_strd + col]; in ihevc_sao_band_offset_luma()
108 for(row = 0; row < ht; row++) in ihevc_sao_band_offset_luma()
134 WORD32 ht) in ihevc_sao_band_offset_chroma() argument
143 for(row = 0; row < ht; row++) in ihevc_sao_band_offset_chroma()
152 pu1_src_top[col] = pu1_src[(ht - 1) * src_strd + col]; in ihevc_sao_band_offset_chroma()
168 for(row = 0; row < ht; row++) in ihevc_sao_band_offset_chroma()
196 WORD32 ht) in ihevc_sao_edge_offset_class0() argument
212 for(row = 0; row < ht; row++) in ihevc_sao_edge_offset_class0()
[all …]
Dihevc_inter_pred_filters.c113 WORD32 ht, in ihevc_inter_pred_luma_copy() argument
118 for(row = 0; row < ht; row++) in ihevc_inter_pred_luma_copy()
175 WORD32 ht, in ihevc_inter_pred_luma_horz() argument
181 for(row = 0; row < ht; row++) in ihevc_inter_pred_luma_horz()
248 WORD32 ht, in ihevc_inter_pred_luma_vert() argument
254 for(row = 0; row < ht; row++) in ihevc_inter_pred_luma_vert()
321 WORD32 ht, in ihevc_inter_pred_luma_copy_w16out() argument
326 for(row = 0; row < ht; row++) in ihevc_inter_pred_luma_copy_w16out()
387 WORD32 ht, in ihevc_inter_pred_luma_horz_w16out() argument
393 for(row = 0; row < ht; row++) in ihevc_inter_pred_luma_horz_w16out()
[all …]
Dihevc_padding.c91 WORD32 ht, in ihevc_pad_vert() argument
100 memcpy(pu1_src + (ht + row - 1) * src_strd, in ihevc_pad_vert()
101 pu1_src + (ht - 1) * src_strd, wd); in ihevc_pad_vert()
145 WORD32 ht, in ihevc_pad_horz_chroma() argument
157 for(row = 0; row < ht; row++) in ihevc_pad_horz_chroma()
212 WORD32 ht, in ihevc_pad_horz_luma() argument
218 for(row = 0; row < ht; row++) in ihevc_pad_horz_luma()
379 WORD32 ht, in ihevc_pad_left_luma() argument
384 for(row = 0; row < ht; row++) in ihevc_pad_left_luma()
435 WORD32 ht, in ihevc_pad_left_chroma() argument
[all …]
Dihevc_padding.h44 WORD32 ht,
51 WORD32 ht,
58 WORD32 ht,
65 WORD32 ht,
72 WORD32 ht,
79 WORD32 ht,
105 WORD32 ht,
110 WORD32 ht,
115 WORD32 ht,
120 WORD32 ht,
[all …]
/external/mesa3d/src/util/tests/hash_table/
Dcollision.c36 struct hash_table *ht; in main() local
47 ht = _mesa_hash_table_create(NULL, NULL, _mesa_key_string_equal); in main()
52 _mesa_hash_table_insert_pre_hashed(ht, bad_hash, str1, NULL); in main()
53 _mesa_hash_table_insert_pre_hashed(ht, bad_hash, str2, NULL); in main()
54 _mesa_hash_table_insert_pre_hashed(ht, bad_hash, str3, NULL); in main()
56 entry1 = _mesa_hash_table_search_pre_hashed(ht, bad_hash, str1); in main()
59 entry2 = _mesa_hash_table_search_pre_hashed(ht, bad_hash, str2); in main()
63 entry1 = _mesa_hash_table_search_pre_hashed(ht, bad_hash, str1); in main()
67 _mesa_hash_table_remove(ht, entry1); in main()
68 entry2 = _mesa_hash_table_search_pre_hashed(ht, bad_hash, str2); in main()
[all …]
Ddelete_and_lookup.c46 struct hash_table *ht; in main() local
54 ht = _mesa_hash_table_create(NULL, badhash, _mesa_key_string_equal); in main()
56 _mesa_hash_table_insert(ht, str1, NULL); in main()
57 _mesa_hash_table_insert(ht, str2, NULL); in main()
59 entry = _mesa_hash_table_search(ht, str2); in main()
62 entry = _mesa_hash_table_search(ht, str1); in main()
65 _mesa_hash_table_remove(ht, entry); in main()
67 entry = _mesa_hash_table_search(ht, str1); in main()
70 entry = _mesa_hash_table_search(ht, str2); in main()
73 _mesa_hash_table_destroy(ht, NULL); in main()
Ddelete_management.c48 struct hash_table *ht; in main() local
57 ht = _mesa_hash_table_create(NULL, key_value, uint32_t_key_equals); in main()
62 _mesa_hash_table_insert(ht, keys + i, NULL); in main()
66 entry = _mesa_hash_table_search(ht, &delete_value); in main()
67 _mesa_hash_table_remove(ht, entry); in main()
73 entry = _mesa_hash_table_search(ht, keys + i); in main()
79 for (entry = _mesa_hash_table_next_entry(ht, NULL); in main()
81 entry = _mesa_hash_table_next_entry(ht, entry)) { in main()
85 assert(ht->entries == 100); in main()
87 _mesa_hash_table_destroy(ht, NULL); in main()
Dclear.c55 struct hash_table *ht; in main() local
61 ht = _mesa_hash_table_create(NULL, key_hash, key_equal); in main()
65 _mesa_hash_table_insert(ht, make_key(i), &flags[i]); in main()
68 _mesa_hash_table_clear(ht, delete_function); in main()
69 assert(_mesa_hash_table_next_entry(ht, NULL) == NULL); in main()
76 _mesa_hash_table_insert(ht, make_key(i), &flags[i]); in main()
81 assert(_mesa_hash_table_search(ht, make_key(i))); in main()
84 hash_table_foreach(ht, entry) { in main()
88 _mesa_hash_table_destroy(ht, NULL); in main()
/external/grpc-grpc/src/php/ext/grpc/
Dphp7_wrapper.h83 #define PHP_GRPC_HASH_FOREACH_VAL_START(ht, data) \ argument
85 for (zend_hash_internal_pointer_reset(ht); \
86 zend_hash_get_current_data(ht, (void**)&tmp_data) == SUCCESS; \
87 zend_hash_move_forward(ht)) { \
90 #define PHP_GRPC_HASH_FOREACH_STR_KEY_VAL_START(ht, key, key_type, data) \ argument
94 for (zend_hash_internal_pointer_reset(ht); \
95 zend_hash_get_current_data(ht, (void**)&tmp##key) == SUCCESS; \
96 zend_hash_move_forward(ht)) { \
97 key_type = zend_hash_get_current_key_ex(ht, &key, &len##key, &index##key,\
104 #define PHP_GRPC_HASH_FOREACH_LONG_KEY_VAL_START(ht, key, key_type, index,\ argument
[all …]
/external/mesa3d/src/broadcom/compiler/
Dvir_lower_uniforms.c48 add_uniform(struct hash_table *ht, struct qreg reg) in add_uniform() argument
53 entry = _mesa_hash_table_search(ht, key); in add_uniform()
57 _mesa_hash_table_insert(ht, key, (void *)(uintptr_t)1); in add_uniform()
62 remove_uniform(struct hash_table *ht, struct qreg reg) in remove_uniform() argument
67 entry = _mesa_hash_table_search(ht, key); in remove_uniform()
71 _mesa_hash_table_remove(ht, entry); in remove_uniform()
114 struct hash_table *ht = in vir_lower_uniforms() local
129 add_uniform(ht, inst->src[i]); in vir_lower_uniforms()
133 while (ht->entries) { in vir_lower_uniforms()
140 hash_table_foreach(ht, entry) { in vir_lower_uniforms()
[all …]
/external/mesa3d/src/gallium/drivers/vc4/
Dvc4_qir_lower_uniforms.c48 add_uniform(struct hash_table *ht, struct qreg reg) in add_uniform() argument
53 entry = _mesa_hash_table_search(ht, key); in add_uniform()
57 _mesa_hash_table_insert(ht, key, (void *)(uintptr_t)1); in add_uniform()
62 remove_uniform(struct hash_table *ht, struct qreg reg) in remove_uniform() argument
67 entry = _mesa_hash_table_search(ht, key); in remove_uniform()
71 _mesa_hash_table_remove(ht, entry); in remove_uniform()
114 struct hash_table *ht = in qir_lower_uniforms() local
129 add_uniform(ht, inst->src[i]); in qir_lower_uniforms()
133 while (ht->entries) { in qir_lower_uniforms()
140 hash_table_foreach(ht, entry) { in qir_lower_uniforms()
[all …]

12345678910>>...28