Lines Matching defs:offsetof

78 	shim_prog = (const struct bpf_prog *)((void *)insn - offsetof(struct bpf_prog, insnsi));
100 shim_prog = (const struct bpf_prog *)((void *)insn - offsetof(struct bpf_prog, insnsi));
118 shim_prog = (const struct bpf_prog *)((void *)insn - offsetof(struct bpf_prog, insnsi));
2231 case offsetof(struct bpf_sysctl, write):
2239 case offsetof(struct bpf_sysctl, file_pos):
2254 offsetof(struct bpf_sysctl_kern, tmp_reg));
2258 offsetof(struct bpf_sysctl_kern, ppos));
2267 offsetof(struct bpf_sysctl_kern, tmp_reg));
2272 offsetof(struct bpf_sysctl_kern, ppos));
2367 case offsetof(struct bpf_sockopt, retval):
2372 case offsetof(struct bpf_sockopt, optname):
2374 case offsetof(struct bpf_sockopt, level):
2379 case offsetof(struct bpf_sockopt, optlen):
2387 case offsetof(struct bpf_sockopt, sk):
2392 case offsetof(struct bpf_sockopt, optval):
2397 case offsetof(struct bpf_sockopt, optval_end):
2402 case offsetof(struct bpf_sockopt, retval):
2417 offsetof(struct bpf_sockopt_kern, F))
2423 offsetof(struct bpf_sockopt_kern, F), \
2435 case offsetof(struct bpf_sockopt, sk):
2438 case offsetof(struct bpf_sockopt, level):
2444 case offsetof(struct bpf_sockopt, optname):
2450 case offsetof(struct bpf_sockopt, optlen):
2456 case offsetof(struct bpf_sockopt, retval):
2457 BUILD_BUG_ON(offsetof(struct bpf_cg_run_ctx, run_ctx) != 0);
2467 offsetof(struct bpf_sockopt_kern, tmp_reg));
2470 offsetof(struct bpf_sockopt_kern, current_task));
2473 offsetof(struct task_struct, bpf_ctx));
2477 offsetof(struct bpf_cg_run_ctx, retval),
2480 offsetof(struct bpf_sockopt_kern, tmp_reg));
2484 offsetof(struct bpf_sockopt_kern, current_task));
2487 offsetof(struct task_struct, bpf_ctx));
2490 offsetof(struct bpf_cg_run_ctx, retval));
2493 case offsetof(struct bpf_sockopt, optval):
2496 case offsetof(struct bpf_sockopt, optval_end):