Home
last modified time | relevance | path

Searched refs:cap_entries (Results 1 – 4 of 4) sorted by relevance

/external/grpc-grpc/src/core/ext/transport/chttp2/transport/
Dhpack_table.cc178 tbl->max_entries = tbl->cap_entries = in grpc_chttp2_hptbl_init()
181 gpr_malloc(sizeof(*tbl->ents) * tbl->cap_entries)); in grpc_chttp2_hptbl_init()
182 memset(tbl->ents, 0, sizeof(*tbl->ents) * tbl->cap_entries); in grpc_chttp2_hptbl_init()
197 GRPC_MDELEM_UNREF(tbl->ents[(tbl->first_ent + i) % tbl->cap_entries]); in grpc_chttp2_hptbl_destroy()
212 (tbl->num_ents - 1u - tbl_index + tbl->first_ent) % tbl->cap_entries; in grpc_chttp2_hptbl_lookup()
227 tbl->first_ent = ((tbl->first_ent + 1) % tbl->cap_entries); in evict1()
238 ents[i] = tbl->ents[(tbl->first_ent + i) % tbl->cap_entries]; in rebuild_ents()
242 tbl->cap_entries = new_cap; in rebuild_ents()
282 if (tbl->max_entries > tbl->cap_entries) { in grpc_chttp2_hptbl_set_current_table_size()
283 rebuild_ents(tbl, GPR_MAX(tbl->max_entries, 2 * tbl->cap_entries)); in grpc_chttp2_hptbl_set_current_table_size()
[all …]
Dhpack_table.h64 uint32_t cap_entries; member
/external/rust/crates/grpcio-sys/grpc/src/core/ext/transport/chttp2/transport/
Dhpack_table.cc42 GRPC_MDELEM_UNREF(tbl->ents[(tbl->first_ent + i) % tbl->cap_entries]); in grpc_chttp2_hptbl_destroy()
55 (tbl->num_ents - 1u - tbl_index + tbl->first_ent) % tbl->cap_entries; in lookup_dynamic_index()
84 tbl->first_ent = ((tbl->first_ent + 1) % tbl->cap_entries); in evict1()
95 ents[i] = tbl->ents[(tbl->first_ent + i) % tbl->cap_entries]; in rebuild_ents()
99 tbl->cap_entries = new_cap; in rebuild_ents()
137 if (tbl->max_entries > tbl->cap_entries) { in grpc_chttp2_hptbl_set_current_table_size()
138 rebuild_ents(tbl, GPR_MAX(tbl->max_entries, 2 * tbl->cap_entries)); in grpc_chttp2_hptbl_set_current_table_size()
139 } else if (tbl->max_entries < tbl->cap_entries / 3) { in grpc_chttp2_hptbl_set_current_table_size()
141 if (new_cap != tbl->cap_entries) { in grpc_chttp2_hptbl_set_current_table_size()
187 tbl->ents[(tbl->first_ent + tbl->num_ents) % tbl->cap_entries] = in grpc_chttp2_hptbl_add()
[all …]
Dhpack_table.h82 uint32_t cap_entries = kInitialCapacity; member