Home
last modified time | relevance | path

Searched refs:index (Results 1 – 25 of 219) sorted by relevance

123456789

/tools/testing/radix-tree/
A Dtag_check.c19 item_check_absent(tree, index); in __simple_checks()
22 item_insert(tree, index); in __simple_checks()
24 item_tag_set(tree, index, tag); in __simple_checks()
33 item_insert(tree, index); in __simple_checks()
44 unsigned long index; in simple_checks() local
47 for (index = 0; index < 10000; index++) { in simple_checks()
136 unsigned long index = 0; in gang_check() local
140 index, BATCH, tag))) { in gang_check()
153 index = items[nr_found - 1]->index + 1; in gang_check()
171 unsigned long index; in do_thrash() local
[all …]
A Dtest.c14 return radix_tree_tag_set(root, index, tag); in item_tag_set()
32 ret->index = index; in item_create()
52 assert((item->index | mask) == (index | mask)); in item_sanity()
57 item_sanity(item, index); in item_free()
68 item_free(item, index); in item_delete()
81 struct item *item = xa_erase(xa, index); in item_delete_rcu()
84 item_sanity(item, index); in item_delete_rcu()
95 item = radix_tree_lookup(root, index); in item_check_present()
97 item_sanity(item, index); in item_check_present()
102 return radix_tree_lookup(root, index); in item_lookup()
[all …]
A Dtest.h9 unsigned long index; member
13 struct item *item_create(unsigned long index, unsigned int order);
14 int item_insert(struct radix_tree_root *root, unsigned long index);
15 void item_sanity(struct item *item, unsigned long index);
16 void item_free(struct item *item, unsigned long index);
17 int item_delete(struct radix_tree_root *root, unsigned long index);
18 int item_delete_rcu(struct xarray *xa, unsigned long index);
19 struct item *item_lookup(struct radix_tree_root *root, unsigned long index);
21 void item_check_present(struct radix_tree_root *root, unsigned long index);
22 void item_check_absent(struct radix_tree_root *root, unsigned long index);
[all …]
A Dregression3.c45 printv(2, "tagged %ld %p\n", iter.index, *slot); in regression3_test()
52 printv(2, "retry at %ld\n", iter.index); in regression3_test()
61 printv(2, "slot %ld %p\n", iter.index, *slot); in regression3_test()
67 printv(2, "retry at %ld\n", iter.index); in regression3_test()
74 printv(2, "slot %ld %p\n", iter.index, *slot); in regression3_test()
75 if (!iter.index) { in regression3_test()
76 printv(2, "next at %ld\n", iter.index); in regression3_test()
84 printv(2, "tagged %ld %p\n", iter.index, *slot); in regression3_test()
85 if (!iter.index) { in regression3_test()
86 printv(2, "next at %ld\n", iter.index); in regression3_test()
A Dbenchmark.c56 unsigned long index; in benchmark_insert() local
61 for (index = 0 ; index < size ; index += step) in benchmark_insert()
62 item_insert(root, index); in benchmark_insert()
77 unsigned long index; in benchmark_tagging() local
82 for (index = 0 ; index < size ; index += step) in benchmark_tagging()
83 radix_tree_tag_set(root, index, 0); in benchmark_tagging()
98 unsigned long index; in benchmark_delete() local
103 for (index = 0 ; index < size ; index += step) in benchmark_delete()
104 item_delete(root, index); in benchmark_delete()
A Dmultiorder.c18 XA_STATE_ORDER(xas, xa, index, order); in item_insert_order()
19 struct item *item = item_create(index, order); in item_insert_order()
65 assert((item->index | mask) == (index[i] | mask)); in multiorder_iteration()
101 for (k = i; index[k] < tag_index[i]; k++) in multiorder_tagged_iteration()
110 for (k = i; index[k] < tag_index[i]; k++) in multiorder_tagged_iteration()
129 for (k = i; index[k] < tag_index[i]; k++) in multiorder_tagged_iteration()
137 for (k = i; index[k] < tag_index[i]; k++) in multiorder_tagged_iteration()
229 item_insert_order(tree, index, order); in load_creator()
230 xa_set_mark(tree, index, XA_MARK_1); in load_creator()
231 item_delete_rcu(tree, index); in load_creator()
[all …]
/tools/testing/cxl/test/
A Dmock.c48 int index; in __wrap_is_acpi_device_node() local
67 int index, rc; in __wrap_acpi_table_parse_cedt() local
86 int index; in __wrap_acpi_evaluate_integer() local
104 int index; in __wrap_acpi_pci_find_root() local
123 int index; in __wrap_nvdimm_bus_register() local
138 int index; in __wrap_devm_cxl_setup_hdm() local
154 int rc, index; in __wrap_devm_cxl_add_passthrough_decoder() local
252 int index; in __wrap_devm_cxl_add_rch_dport() local
274 int index; in __wrap_cxl_rcd_component_reg_phys() local
290 int index; in __wrap_cxl_endpoint_parse_cdat() local
[all …]
/tools/testing/selftests/bpf/progs/
A Dtest_global_func_args.c28 save_value(index, s->v); in foo()
32 save_value(index, 0); in foo()
40 save_value(index, s->v); in bar()
44 save_value(index, 0); in bar()
60 __u32 index = 0; in test_cls() local
63 const int v = foo(index++, 0); in test_cls()
65 save_value(index++, v); in test_cls()
71 foo(index++, &s); in test_cls()
72 save_value(index++, s.v); in test_cls()
77 bar(index++, &global_variable); in test_cls()
[all …]
A Dpercpu_alloc_array.c30 int index = 0; in BPF_PROG() local
32 e = bpf_map_lookup_elem(&array, &index); in BPF_PROG()
54 int index = 0; in BPF_PROG() local
56 e = bpf_map_lookup_elem(&array, &index); in BPF_PROG()
81 int i, index = 0; in BPF_PROG() local
88 e = bpf_map_lookup_elem(&array, &index); in BPF_PROG()
114 int index = 0; in BPF_PROG() local
116 e = bpf_map_lookup_elem(&array, &index); in BPF_PROG()
133 int i, index = 0; in BPF_PROG() local
140 e = bpf_map_lookup_elem(&array, &index); in BPF_PROG()
A Dverifier_array_access.c11 unsigned int index; member
555 return val->index; in an_array_with_a_constant_no_nullness()
575 return val->index + val2->index; in multiple_array_with_a_constant_no_nullness()
593 return val->index; in an_array_with_a_32bit_constant_0_no_nullness()
608 return val->index; in a_pcpu_array_with_a_constant_no_nullness()
623 return val->index; in an_array_with_a_constant_no_nullness_out_of_bounds()
646 return val->index; in an_array_with_a_constant_too_small()
664 return val->index; in an_array_with_a_constant_too_big()
680 return val->index; in mixed_const_and_non_const_key_lookup()
713 return val->index; in non_stack_key_lookup()
[all …]
A Dbloom_filter_bench.c123 __u32 index = bpf_get_prandom_u32(); in bloom_hashmap_lookup() local
126 for (i = 0; i < 1024; i++, index += value_size) { in bloom_hashmap_lookup()
127 index = index & bitmask; in bloom_hashmap_lookup()
131 rand_vals + index); in bloom_hashmap_lookup()
143 rand_vals + index); in bloom_hashmap_lookup()
A Dpercpu_alloc_fail.c44 int index = 0; in BPF_PROG() local
46 e = bpf_map_lookup_elem(&array, &index); in BPF_PROG()
69 int index = 0; in BPF_PROG() local
71 e = bpf_map_lookup_elem(&array, &index); in BPF_PROG()
93 int index = 0; in BPF_PROG() local
95 e = bpf_map_lookup_elem(&array, &index); in BPF_PROG()
/tools/testing/selftests/drivers/ntsync/
A Dntsync.c113 *index = args.index; in wait_objs()
145 __u32 count, index; in TEST() local
179 EXPECT_EQ(0, index); in TEST()
184 EXPECT_EQ(0, index); in TEST()
280 EXPECT_EQ(0, index); in TEST()
285 EXPECT_EQ(0, index); in TEST()
329 EXPECT_EQ(0, index); in TEST()
346 EXPECT_EQ(0, index); in TEST()
359 EXPECT_EQ(0, index); in TEST()
407 EXPECT_EQ(0, index); in TEST()
[all …]
/tools/virtio/ringtest/
A Dring.c35 unsigned short index; member
99 .index = i, in alloc_ring()
114 unsigned head, index; in add_inbuf() local
133 index = ring[head].index; in add_inbuf()
134 data[index].buf = buf; in add_inbuf()
135 data[index].data = datap; in add_inbuf()
146 unsigned index; in get_buf() local
154 index = ring[head].index & (ring_size - 1); in get_buf()
156 *bufp = data[index].buf; in get_buf()
157 data[index].buf = NULL; in get_buf()
[all …]
A Dvirtio_ring_0_9.c155 unsigned index; in get_buf() local
160 index = ring.used->ring[head].id; in get_buf()
165 index &= ring_size - 1; in get_buf()
173 index = head; in get_buf()
176 index = ring.used->ring[head].id; in get_buf()
181 *lenp = ring.desc[index].len; in get_buf()
185 datap = data[index].data; in get_buf()
187 data[index].data = NULL; in get_buf()
189 ring.desc[index].next = guest.free_head; in get_buf()
190 guest.free_head = index; in get_buf()
[all …]
/tools/arch/x86/kcpuid/
A Dkcpuid.c53 u32 index; member
84 enum range_index index; member
88 { .index = RANGE_STD, },
89 { .index = RANGE_EXT, },
90 { .index = RANGE_TSM, },
91 { .index = RANGE_CTR, },
96 switch (range->index) { in range_to_str()
208 leaf->index = f; in cpuid_store()
250 if (max_func < range->index || max_func > (range->index + MAX_RANGE_INDEX_OFFSET)) { in setup_cpuid_range()
319 u32 index; in parse_line() local
[all …]
/tools/testing/selftests/powerpc/dexcr/
A Ddexcr.h34 unsigned int index; /* Aspect bit index in DEXCR */ member
43 .index = 0,
50 .index = 3,
57 .index = 4,
64 .index = 5,
71 .index = 6,
A Dlsdexcr.c37 unsigned int mask = DEXCR_PR_BIT(aspects[i].index); in print_dexcr()
59 mask = DEXCR_PR_BIT(aspect->index); in print_aspect()
67 printf("%12s %c (%d): ", aspect->name, effective & mask ? '*' : ' ', aspect->index); in print_aspect()
77 bool actual = effective & DEXCR_PR_BIT(aspect->index); in print_aspect_config()
105 if (hdexcr & DEXCR_PR_BIT(aspect->index)) { in print_aspect_config()
115 aspect->index, in print_aspect_config()
/tools/crypto/tcrypt/
A Dtcrypt_speed_compare.py120 for index in range(len(base[alg][op])):
122 "bit_key": base[alg][op][index]["bit_key"],
123 "byte_blocks": base[alg][op][index]["byte_blocks"],
125 if "operations" in base[alg][op][index].keys():
126 merged_item["base_ops"] = base[alg][op][index]["operations"]
127 merged_item["new_ops"] = new[alg][op][index]["operations"]
129 merged_item["base_cycles"] = base[alg][op][index]["cycles"]
130 merged_item["new_cycles"] = new[alg][op][index]["cycles"]
156 for index in range(len(merged[alg][op])):
157 item = merged[alg][op][index]
/tools/testing/selftests/arm64/mte/
A Dmte_common_util.c226 int index; in mte_allocate_file_memory() local
235 for (index = INIT_BUFFER_SIZE; index < size; index += INIT_BUFFER_SIZE) { in mte_allocate_file_memory()
241 index -= INIT_BUFFER_SIZE; in mte_allocate_file_memory()
242 if (write(fd, buffer, size - index) != size - index) { in mte_allocate_file_memory()
252 int index; in mte_allocate_file_memory_tag_range() local
262 for (index = INIT_BUFFER_SIZE; index < map_size; index += INIT_BUFFER_SIZE) in mte_allocate_file_memory_tag_range()
267 index -= INIT_BUFFER_SIZE; in mte_allocate_file_memory_tag_range()
268 if (write(fd, buffer, map_size - index) != map_size - index) { in mte_allocate_file_memory_tag_range()
/tools/testing/cxl/
A Dmock_acpi.c12 int index; in to_cxl_host_bridge() local
14 struct cxl_mock_ops *ops = get_cxl_mock_ops(&index); in to_cxl_host_bridge()
33 put_cxl_mock_ops(index); in to_cxl_host_bridge()
/tools/mm/
A Dpage-types.c256 unsigned long index, in do_u64_read() argument
261 if (index > ULONG_MAX / 8) in do_u64_read()
298 buf, index, pages); in kpagecount_read()
302 unsigned long index, in pagemap_read() argument
380 static unsigned long index; in show_page_range() local
405 index = offset; in show_page_range()
666 unsigned long index, in walk_pfn() argument
703 index += pages; in walk_pfn()
751 index += pages; in walk_vma()
762 while (index < end) { in walk_task()
[all …]
/tools/perf/util/arm-spe-decoder/
A Darm-spe-decoder.c25 static u64 arm_spe_calc_ip(int index, u64 payload) in arm_spe_calc_ip() argument
30 if (index == SPE_ADDR_PKT_HDR_INDEX_INS || in arm_spe_calc_ip()
31 index == SPE_ADDR_PKT_HDR_INDEX_BRANCH || in arm_spe_calc_ip()
32 index == SPE_ADDR_PKT_HDR_INDEX_PREV_BRANCH) { in arm_spe_calc_ip()
44 } else if (index == SPE_ADDR_PKT_HDR_INDEX_DATA_VIRT) { in arm_spe_calc_ip()
68 } else if (index == SPE_ADDR_PKT_HDR_INDEX_DATA_PHYS) { in arm_spe_calc_ip()
73 if (!(seen_idx & BIT(index))) { in arm_spe_calc_ip()
74 seen_idx |= BIT(index); in arm_spe_calc_ip()
75 pr_warning("ignoring unsupported address packet index: 0x%x\n", index); in arm_spe_calc_ip()
166 idx = decoder->packet.index; in arm_spe_read_record()
/tools/testing/selftests/drivers/net/mlxsw/spectrum-2/
A Dtc_flower.sh241 local index
250 index=$((BASE_INDEX - i))
262 handle $index \
278 index=$((BASE_INDEX - i))
287 handle $index flower
656 local index=$3
677 local index=$2
698 local index=$3
704 test_rule_del $iface $index
875 local index
[all …]
/tools/perf/ui/browsers/
A Dscripts.c31 int index; member
54 c->names[c->index] = name; in add_script_option()
55 if (asprintf(&c->paths[c->index], in add_script_option()
60 c->index++; in add_script_option()
70 if (c->index >= SCRIPT_MAX_NO) in scripts_config()
72 c->names[c->index] = strdup(var + 7); in scripts_config()
73 if (!c->names[c->index]) in scripts_config()
75 if (asprintf(&c->paths[c->index], "%s %s", value, in scripts_config()
78 c->index++; in scripts_config()
288 custom_perf = scriptc.index; in list_scripts()
[all …]

Completed in 29 milliseconds

123456789