Home
last modified time | relevance | path

Searched refs:map_value (Results 1 – 9 of 9) sorted by relevance

/linux-5.19.10/tools/testing/selftests/bpf/progs/
Dmap_kptr_fail.c7 struct map_value { struct
17 __type(value, struct map_value); argument
28 struct map_value *v; in size_not_bpf_dw()
42 struct map_value *v; in non_const_var_off()
60 struct map_value *v; in non_const_var_off_kptr_xchg()
78 struct map_value *v; in misaligned_access_write()
93 struct map_value *v; in misaligned_access_read()
107 struct map_value *v; in reject_var_off_store()
130 struct map_value *v; in reject_bad_type_match()
149 struct map_value *v; in marked_as_untrusted_or_null()
[all …]
Dmap_kptr.c6 struct map_value { struct
14 __type(value, struct map_value); argument
21 __type(value, struct map_value);
28 __type(value, struct map_value);
36 __type(value, struct map_value);
65 static void test_kptr_unref(struct map_value *v) in test_kptr_unref()
82 static void test_kptr_ref(struct map_value *v) in test_kptr_ref()
119 static void test_kptr_get(struct map_value *v) in test_kptr_get()
133 static void test_kptr(struct map_value *v) in test_kptr()
143 struct map_value *v; in test_map_kptr()
[all …]
/linux-5.19.10/tools/testing/selftests/bpf/prog_tests/
Dload_bytes_relative.c20 __u32 map_value = 0; in test_load_bytes_relative() local
57 err = bpf_map_lookup_elem(map_fd, &map_key, &map_value); in test_load_bytes_relative()
61 CHECK(map_value != 1, "bpf", "bpf program returned failure"); in test_load_bytes_relative()
/linux-5.19.10/tools/testing/selftests/bpf/
DREADME.rst60 // r9 is a pointer to map_value
64 math between map_value pointer and register with unbounded min value is not allowed
73 the insn 20 undoes map_value addition. It is currently impossible for the
/linux-5.19.10/drivers/ata/
Data_piix.c1362 u8 map_value; in piix_init_sata_map() local
1366 pci_read_config_byte(pdev, ICH5_PMR, &map_value); in piix_init_sata_map()
1368 map = map_db->map[map_value & map_db->mask]; in piix_init_sata_map()
1398 dev_err(&pdev->dev, "invalid MAP value %u\n", map_value); in piix_init_sata_map()
/linux-5.19.10/kernel/bpf/
Dhelpers.c1393 BPF_CALL_2(bpf_kptr_xchg, void *, map_value, void *, ptr) in BPF_CALL_2() argument
1395 unsigned long *kptr = map_value; in BPF_CALL_2()
Dhashtab.c747 void *map_value = elem->key + round_up(htab->map.key_size, 8); in check_and_free_fields() local
750 bpf_timer_cancel_and_free(map_value + htab->map.timer_off); in check_and_free_fields()
752 bpf_map_free_kptrs(&htab->map, map_value); in check_and_free_fields()
Dsyscall.c567 void bpf_map_free_kptrs(struct bpf_map *map, void *map_value) in bpf_map_free_kptrs() argument
577 btf_id_ptr = map_value + off_desc->offset; in bpf_map_free_kptrs()
/linux-5.19.10/include/linux/
Dbpf.h1499 void bpf_map_free_kptrs(struct bpf_map *map, void *map_value);