Home
last modified time | relevance | path

Searched refs:hmap (Results 1 - 7 of 7) sorted by relevance

/kernel/linux/linux-6.6/tools/testing/selftests/bpf/progs/
H A Dtimer.c21 } hmap SEC(".maps");
229 val = bpf_map_lookup_elem(&hmap, &key); in bpf_timer_test()
231 if (bpf_timer_init(&val->timer, &hmap, CLOCK_BOOTTIME) != 0) in bpf_timer_test()
253 bpf_map_update_elem(&hmap, &key, &init, 0); in BPF_PROG2()
254 val = bpf_map_lookup_elem(&hmap, &key); in BPF_PROG2()
256 bpf_timer_init(&val->timer, &hmap, CLOCK_BOOTTIME); in BPF_PROG2()
258 bpf_map_update_elem(&hmap, &key, &init, 0); in BPF_PROG2()
271 bpf_map_update_elem(&hmap, &key, &init, 0); in BPF_PROG2()
272 val = bpf_map_lookup_elem(&hmap, &key); in BPF_PROG2()
274 bpf_timer_init(&val->timer, &hmap, CLOCK_BOOTTIM in BPF_PROG2()
[all...]
H A Dasync_stack_depth.c16 } hmap SEC(".maps");
39 elem = bpf_map_lookup_elem(&hmap, &(int){0}); in pseudo_call_check()
54 elem = bpf_map_lookup_elem(&hmap, &(int){0}); in async_call_root_check()
H A Dtest_spin_lock.c19 } hmap SEC(".maps");
60 val = bpf_map_lookup_elem(&hmap, &key); in bpf_spin_lock_test()
62 bpf_map_update_elem(&hmap, &key, &zero, 0); in bpf_spin_lock_test()
63 val = bpf_map_lookup_elem(&hmap, &key); in bpf_spin_lock_test()
H A Dtimer_crash.c24 } hmap SEC(".maps");
27 int crash_map = 0; /* 0 for amap, 1 for hmap */
33 void *map = crash_map ? (void *)&hmap : (void *)&amap; in sys_enter()
43 * pointer was overwritten, for hmap we need to use bpf_timer_cancel. in sys_enter()
/kernel/linux/linux-5.10/tools/testing/selftests/bpf/progs/
H A Dtest_spin_lock.c18 } hmap SEC(".maps");
59 val = bpf_map_lookup_elem(&hmap, &key); in bpf_sping_lock_test()
61 bpf_map_update_elem(&hmap, &key, &zero, 0); in bpf_sping_lock_test()
62 val = bpf_map_lookup_elem(&hmap, &key); in bpf_sping_lock_test()
/kernel/linux/linux-5.10/drivers/scsi/cxlflash/
H A Dmain.c1770 struct sisl_host_map __iomem *hmap; in init_global() local
1788 hmap = hwq->host_map; in init_global()
1790 writeq_be((u64) hwq->hrrq_start, &hmap->rrq_start); in init_global()
1791 writeq_be((u64) hwq->hrrq_end, &hmap->rrq_end); in init_global()
1795 writeq_be((u64)hwq->hsq_start, &hmap->sq_start); in init_global()
1796 writeq_be((u64)hwq->hsq_end, &hmap->sq_end); in init_global()
/kernel/linux/linux-6.6/drivers/scsi/cxlflash/
H A Dmain.c1747 struct sisl_host_map __iomem *hmap; in init_global() local
1765 hmap = hwq->host_map; in init_global()
1767 writeq_be((u64) hwq->hrrq_start, &hmap->rrq_start); in init_global()
1768 writeq_be((u64) hwq->hrrq_end, &hmap->rrq_end); in init_global()
1772 writeq_be((u64)hwq->hsq_start, &hmap->sq_start); in init_global()
1773 writeq_be((u64)hwq->hsq_end, &hmap->sq_end); in init_global()

Completed in 12 milliseconds