Searched refs:size_default (Results 1 - 4 of 4) sorted by path

/linux-master/include/linux/
H A Dfilter.h899 bpf_ctx_narrow_access_ok(u32 off, u32 size, u32 size_default) argument
901 return size <= size_default && (size & (size - 1)) == 0;
905 bpf_ctx_narrow_access_offset(u32 off, u32 size, u32 size_default) argument
907 u8 access_off = off & (size_default - 1);
912 return size_default - (access_off + size);
/linux-master/kernel/bpf/
H A Dcgroup.c1639 const int size_default = sizeof(__u32); local
1652 bpf_ctx_record_field_size(info, size_default);
1653 if (!bpf_ctx_narrow_access_ok(off, size, size_default))
1657 if (size != size_default)
2199 const int size_default = sizeof(__u32); local
2208 bpf_ctx_record_field_size(info, size_default);
2209 return bpf_ctx_narrow_access_ok(off, size, size_default);
2212 bpf_ctx_record_field_size(info, size_default);
2213 return bpf_ctx_narrow_access_ok(off, size, size_default);
2215 return size == size_default;
2357 const int size_default = sizeof(__u32); local
[all...]
H A Dverifier.c19087 u32 target_size, size_default, off; local
19223 size_default = bpf_ctx_off_adjust_machine(ctx_field_size);
19239 insn->off = off & ~(size_default - 1);
19254 off, size, size_default) * 8;
/linux-master/net/core/
H A Dfilter.c8545 const int size_default = sizeof(__u32); local
8566 if (size != size_default)
8592 if (size != size_default)
8595 bpf_ctx_record_field_size(info, size_default);
8596 if (!bpf_ctx_narrow_access_ok(off, size, size_default))
8775 const int size_default = sizeof(__u32); local
8794 bpf_ctx_record_field_size(info, size_default);
8795 return bpf_ctx_narrow_access_ok(off, size, size_default);
8797 field_size = size == size_default ?
8798 size_default
9055 const int size_default = sizeof(__u32); local
9172 const int size_default = sizeof(__u32); local
9324 const int size_default = sizeof(__u32); local
11311 const u32 size_default = sizeof(__u32); local
[all...]

Completed in 491 milliseconds