Home
last modified time | relevance | path

Searched refs:max_key (Results 1 – 23 of 23) sorted by relevance

/external/libdrm/amdgpu/
Dhandle_table.c34 if (key >= table->max_key) { in handle_table_insert()
36 uint32_t max_key = ALIGN(key + 1, alignment); in handle_table_insert() local
39 values = realloc(table->values, max_key * sizeof(void *)); in handle_table_insert()
43 memset(values + table->max_key, 0, (max_key - table->max_key) * in handle_table_insert()
46 table->max_key = max_key; in handle_table_insert()
55 if (key < table->max_key) in handle_table_remove()
61 if (key < table->max_key) in handle_table_lookup()
70 table->max_key = 0; in handle_table_fini()
Dhandle_table.h31 uint32_t max_key; member
Damdgpu_bo.c549 for (i = 0; i < dev->bo_handles.max_key; i++) { in amdgpu_find_bo_by_cpu_mapping()
558 if (i < dev->bo_handles.max_key) { in amdgpu_find_bo_by_cpu_mapping()
/external/ltp/testcases/kernel/syscalls/add_key/
Dadd_key05.c64 static inline void parse_proc_key_users(int *used_key, int *max_key, int *used_bytes, int *max_byte… in parse_proc_key_users() argument
74 if (max_key) in parse_proc_key_users()
75 *max_key = val[1]; in parse_proc_key_users()
146 int i, used_key, max_key; in verify_max_keys() local
150 parse_proc_key_users(&used_key, &max_key, NULL, NULL); in verify_max_keys()
152 for (i = used_key + 1; i <= max_key; i++) { in verify_max_keys()
172 parse_proc_key_users(&used_key, &max_key, NULL, NULL); in verify_max_keys()
173 if (used_key == max_key) in verify_max_keys()
174 tst_res(TPASS, "allow reaching the max key(%u) exactly", max_key); in verify_max_keys()
176 tst_res(TFAIL, "max used key %u, key allow max key %u", used_key, max_key); in verify_max_keys()
/external/rust/android-crates-io/crates/itertools/src/
Dminmax.rs54 let (mut min, mut max, mut min_key, mut max_key) = match it.next() { in minmax_impl()
85 } else if !lt(&first, &max, &first_key, &max_key) { in minmax_impl()
99 if !lt(&second, &max, &second_key, &max_key) { in minmax_impl()
101 max_key = second_key; in minmax_impl()
108 if !lt(&first, &max, &first_key, &max_key) { in minmax_impl()
110 max_key = first_key; in minmax_impl()
/external/cronet/stable/third_party/rust/chromium_crates_io/vendor/itertools-0.11.0/src/
Dminmax.rs55 let (mut min, mut max, mut min_key, mut max_key) = match it.next() { in minmax_impl()
84 } else if !lt(&first, &max, &first_key, &max_key) { in minmax_impl()
98 if !lt(&second, &max, &second_key, &max_key) { in minmax_impl()
100 max_key = second_key; in minmax_impl()
107 if !lt(&first, &max, &first_key, &max_key) { in minmax_impl()
109 max_key = first_key; in minmax_impl()
/external/cronet/tot/third_party/rust/chromium_crates_io/vendor/itertools-0.11.0/src/
Dminmax.rs55 let (mut min, mut max, mut min_key, mut max_key) = match it.next() { in minmax_impl()
84 } else if !lt(&first, &max, &first_key, &max_key) { in minmax_impl()
98 if !lt(&second, &max, &second_key, &max_key) { in minmax_impl()
100 max_key = second_key; in minmax_impl()
107 if !lt(&first, &max, &first_key, &max_key) { in minmax_impl()
109 max_key = first_key; in minmax_impl()
/external/federated-compute/fcp/tensorflow/
Dserve_slices.py36 def serve_slices(callback_token, server_val, max_key, select_fn_initialize_op, argument
84 max_key=tf.convert_to_tensor(max_key, dtype=tf.int32),
Dserve_slices_op.cc139 int32_t max_key; in Compute() local
140 OP_REQUIRES_OK(context, get_scalar_input(context, "max_key", &max_key)); in Compute()
174 (**callback)(callback_token, std::move(server_val), max_key, in Compute()
Dmake_serve_slices_test_graph.py47 max_key=MAX_KEY,
/external/pytorch/aten/src/ATen/cuda/
Dcub.h13 inline int get_num_bits(uint64_t max_key) { in get_num_bits() argument
15 while (max_key > 1) { in get_num_bits()
16 max_key >>= 1; in get_num_bits()
/external/linux-kselftest/tools/testing/selftests/bpf/prog_tests/
Dbpf_loop.c145 const int max_key = 12; in check_stack() local
157 for (key = 1; key <= max_key; ++key) { in check_stack()
167 for (key = 1; key <= max_key; ++key) { in check_stack()
/external/federated-compute/fcp/tensorflow/python/
Dserve_slices_registry.cc86 std::vector<tensorflow::Tensor> server_val, int32_t max_key, in enter()
96 max_key, std::move(select_fn_initialize_op), in enter()
Dserve_slices_registry_test.py45 max_key=MAX_KEY,
/external/federated-compute/fcp/demo/
Dplan_utils.py145 max_key: int,
155 for i in range(0, max_key + 1):
Dplan_utils_test.py122 max_key=NUM_SLICES - 1,
/external/zucchini/
Dsuffix_array_unittest.cc118 uint16_t max_key) { in BucketCount() argument
120 return SaisImpl::MakeBucketCount(str.begin(), str.size(), max_key); in BucketCount()
/external/pytorch/test/quantization/fx/
Dtest_model_report_fx.py1422 max_key = InputWeightEqualizationDetector.ACTIVATION_PREFIX
1423 max_key += InputWeightEqualizationDetector.GLOBAL_MAX_KEY
1427 global_max = block_1_lin_recs[max_key]
1450 max_key = InputWeightEqualizationDetector.WEIGHT_PREFIX
1451 max_key += InputWeightEqualizationDetector.GLOBAL_MAX_KEY
1454 global_max = block_1_lin_recs[max_key]
/external/rust/android-crates-io/crates/pdl-compiler/src/
Dast.rs224 pub max_key: usize, field
382 max_key: 0, in new()
Dparser.rs637 file.max_key = context.key.get(); in parse_toplevel()
Danalyzer.rs1712 max_key: file.max_key, in inline_groups()
/external/rust/android-crates-io/crates/rayon/src/iter/
Dmod.rs1612 fn max_key<T, K: Ord>(a: (K, T), b: (K, T)) -> (K, T) { in max_by_key() function
1619 let (_, x) = self.map(key(f)).reduce_with(max_key)?; in max_by_key()
/external/python/asn1crypto/asn1crypto/
Dcore.py2293 max_key = len(new_native) - 1
2294 if key > max_key:
2295 new_native.extend([0] * (key - max_key))