Searched refs:BPF_CORE_WRITE_BITFIELD (Results 1 – 3 of 3) sorted by relevance
/linux-6.12.1/tools/testing/selftests/bpf/progs/ |
D | verifier_bitfield_write.c | 34 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()
|
D | test_tunnel_kern.c | 188 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/ |
D | bpf_core_read.h | 121 #define BPF_CORE_WRITE_BITFIELD(s, field, new_val) ({ \ macro
|