Searched refs:tattr (Results 1 – 7 of 7) sorted by relevance
/linux/tools/testing/selftests/bpf/prog_tests/ |
H A D | skb_ctx.c | 23 LIBBPF_OPTS(bpf_test_run_opts, tattr, in test_skb_ctx() 41 tattr.ctx_size_in = 0; in test_skb_ctx() 42 err = bpf_prog_test_run_opts(prog_fd, &tattr); in test_skb_ctx() 44 tattr.ctx_size_in = sizeof(skb); in test_skb_ctx() 48 tattr.ctx_size_out = 0; in test_skb_ctx() 49 err = bpf_prog_test_run_opts(prog_fd, &tattr); in test_skb_ctx() 51 tattr.ctx_size_out = sizeof(skb); in test_skb_ctx() 56 err = bpf_prog_test_run_opts(prog_fd, &tattr); in test_skb_ctx() 61 err = bpf_prog_test_run_opts(prog_fd, &tattr); in test_skb_ctx() 68 err = bpf_prog_test_run_opts(prog_fd, &tattr); in test_skb_ctx() [all...] |
H A D | xdp_adjust_tail.c | 96 LIBBPF_OPTS(bpf_test_run_opts, tattr, in test_xdp_adjust_tail_grow2() 110 tattr.data_size_in = 64; /* Determine test case via pkt size */ in test_xdp_adjust_tail_grow2() 111 tattr.data_size_out = 128; /* Limit copy_size */ in test_xdp_adjust_tail_grow2() 113 err = bpf_prog_test_run_opts(prog_fd, &tattr); in test_xdp_adjust_tail_grow2() 116 ASSERT_EQ(tattr.retval, XDP_TX, "case-64 retval"); in test_xdp_adjust_tail_grow2() 117 ASSERT_EQ(tattr.data_size_out, 192, "case-64 data_size_out"); /* Expected grow size */ in test_xdp_adjust_tail_grow2() 129 tattr.data_size_in = 128; /* Determine test case via pkt size */ in test_xdp_adjust_tail_grow2() 130 tattr.data_size_out = sizeof(buf); /* Copy everything */ in test_xdp_adjust_tail_grow2() 131 err = bpf_prog_test_run_opts(prog_fd, &tattr); in test_xdp_adjust_tail_grow2() 135 ASSERT_EQ(tattr in test_xdp_adjust_tail_grow2() [all...] |
H A D | skb_load_bytes.c | 12 LIBBPF_OPTS(bpf_test_run_opts, tattr, in test_skb_load_bytes() 28 err = bpf_prog_test_run_opts(prog_fd, &tattr); in test_skb_load_bytes() 36 err = bpf_prog_test_run_opts(prog_fd, &tattr); in test_skb_load_bytes()
|
H A D | syscall.c | 23 LIBBPF_OPTS(bpf_test_run_opts, tattr, in test_syscall_load_prog() 36 err = bpf_prog_test_run_opts(prog_fd, &tattr); in test_syscall_load_prog() 38 ASSERT_EQ(tattr.retval, 1, "retval"); in test_syscall_load_prog()
|
/linux/samples/hid/ |
H A D | hid_surface_dial.c | 95 DECLARE_LIBBPF_OPTS(bpf_test_run_opts, tattr, in set_haptic() 106 err = bpf_prog_test_run_opts(haptic_fd, &tattr); in set_haptic()
|
/linux/tools/firewire/ |
H A D | nosy-dump.c | 875 struct termios tattr; in set_input_mode() local 888 tcgetattr(STDIN_FILENO, &tattr); in set_input_mode() 889 tattr.c_lflag &= ~(ICANON|ECHO); /* Clear ICANON and ECHO. */ in set_input_mode() 890 tattr.c_cc[VMIN] = 1; in set_input_mode() 891 tattr.c_cc[VTIME] = 0; in set_input_mode() 892 tcsetattr(STDIN_FILENO, TCSAFLUSH, &tattr); in set_input_mode()
|
/linux/security/selinux/ss/ |
H A D | services.c | 634 struct ebitmap *sattr, *tattr; in context_struct_compute_av() local 659 tattr = &policydb->type_attr_map_array[tcontext->type - 1]; in context_struct_compute_av() 661 ebitmap_for_each_positive_bit(tattr, tnode, j) { in context_struct_compute_av() 1040 struct ebitmap *sattr, *tattr; in security_compute_xperms_decision() local 1089 tattr = &policydb->type_attr_map_array[tcontext->type - 1]; in security_compute_xperms_decision() 1091 ebitmap_for_each_positive_bit(tattr, tnode, j) { in security_compute_xperms_decision()
|