Home
last modified time | relevance | path

Searched refs:BPF_CORE_WRITE_BITFIELD (Results 1 – 3 of 3) sorted by relevance

/linux-6.12.1/tools/testing/selftests/bpf/progs/
Dverifier_bitfield_write.c34 BPF_CORE_WRITE_BITFIELD(&bitfields, ub2, 3); in single_field_roundtrip()
50 BPF_CORE_WRITE_BITFIELD(&bitfields, ub2, 1); in multiple_field_roundtrip()
51 BPF_CORE_WRITE_BITFIELD(&bitfields, sb4, -1); in multiple_field_roundtrip()
70 BPF_CORE_WRITE_BITFIELD(&bitfields, ub1, 1); in adjacent_field_roundtrip()
71 BPF_CORE_WRITE_BITFIELD(&bitfields, ub2, 3); in adjacent_field_roundtrip()
91 BPF_CORE_WRITE_BITFIELD(&bitfields, ub1, 1); in multibyte_field_roundtrip()
92 BPF_CORE_WRITE_BITFIELD(&bitfields, ub7, 16); in multibyte_field_roundtrip()
Dtest_tunnel_kern.c188 BPF_CORE_WRITE_BITFIELD(&md.u.md2, dir, direction); in erspan_set_tunnel()
189 BPF_CORE_WRITE_BITFIELD(&md.u.md2, hwid, (hwid & 0xf)); in erspan_set_tunnel()
190 BPF_CORE_WRITE_BITFIELD(&md.u.md2, hwid_upper, (hwid >> 4) & 0x3); in erspan_set_tunnel()
268 BPF_CORE_WRITE_BITFIELD(&md.u.md2, dir, direction); in ip4ip6erspan_set_tunnel()
269 BPF_CORE_WRITE_BITFIELD(&md.u.md2, hwid, (hwid & 0xf)); in ip4ip6erspan_set_tunnel()
270 BPF_CORE_WRITE_BITFIELD(&md.u.md2, hwid_upper, (hwid >> 4) & 0x3); in ip4ip6erspan_set_tunnel()
/linux-6.12.1/tools/lib/bpf/
Dbpf_core_read.h121 #define BPF_CORE_WRITE_BITFIELD(s, field, new_val) ({ \ macro