Searched refs:linear_sz (Results 1 – 3 of 3) sorted by relevance
| /linux/arch/powerpc/mm/nohash/ |
| H A D | kaslr_booke.c | 287 unsigned long ram, linear_sz; in kaslr_choose_location() local 312 linear_sz = min_t(unsigned long, ram, SZ_512M); in kaslr_choose_location() 315 if (linear_sz < SZ_64M) in kaslr_choose_location() 326 regions.pa_end = memstart_addr + linear_sz; in kaslr_choose_location() 339 index %= linear_sz / SZ_64M; in kaslr_choose_location()
|
| /linux/net/bpf/ |
| H A D | test_run.c | 1043 u32 linear_sz = kattr->test.data_size_in; in bpf_prog_test_run_skb() local 1093 linear_sz = max(ETH_HLEN, ctx->data_end); in bpf_prog_test_run_skb() 1097 linear_sz = min_t(u32, linear_sz, PAGE_SIZE - headroom - tailroom); in bpf_prog_test_run_skb() 1099 data = bpf_test_init(kattr, linear_sz, linear_sz, headroom, tailroom); in bpf_prog_test_run_skb() 1123 __skb_put(skb, linear_sz); in bpf_prog_test_run_skb() 1125 if (unlikely(kattr->test.data_size_in > linear_sz)) { in bpf_prog_test_run_skb() 1128 u32 copied = linear_sz; in bpf_prog_test_run_skb() 1257 WARN_ON_ONCE(linear_sz == kattr->test.data_size_in); in bpf_prog_test_run_skb() 1338 u32 linear_sz = kattr->test.data_size_in; in bpf_prog_test_run_xdp() local 1385 linear_sz = ctx->data_end; in bpf_prog_test_run_xdp() [all …]
|
| /linux/tools/testing/selftests/bpf/ |
| H A D | test_loader.c | 72 int linear_sz; member 641 err = parse_int(val, &spec->linear_sz, "test linear size"); in parse_test_spec() 1086 static int do_prog_test_run(int fd_prog, int *retval, bool empty_opts, int linear_sz) in do_prog_test_run() argument 1100 if (linear_sz) { in do_prog_test_run() 1101 ctx.data_end = linear_sz; in do_prog_test_run() 1487 spec->linear_sz); in run_subtest()
|