Home
last modified time | relevance | path

Searched refs:opts (Results 1 - 25 of 741) sorted by relevance

12345678910>>...30

/kernel/linux/linux-6.6/tools/testing/selftests/bpf/prog_tests/
H A Dverifier_log.c36 static int load_prog(struct bpf_prog_load_opts *opts, bool expect_load_error) in load_prog() argument
41 "GPL", insns, insn_cnt, opts); in load_prog()
49 LIBBPF_OPTS(bpf_prog_load_opts, opts); in verif_log_subtest()
77 opts.log_buf = logs.reference; in verif_log_subtest()
78 opts.log_size = sizeof(logs.reference); in verif_log_subtest()
79 opts.log_level = log_level | 8 /* BPF_LOG_FIXED */; in verif_log_subtest()
80 load_prog(&opts, expect_load_error); in verif_log_subtest()
100 opts.log_buf = logs.buf; in verif_log_subtest()
101 opts.log_level = log_level | 8; /* fixed-length log */ in verif_log_subtest()
102 opts in verif_log_subtest()
255 load_btf(struct bpf_btf_load_opts *opts, bool expect_err) load_btf() argument
[all...]
H A Dxdp_context_test_run.c6 void test_xdp_context_error(int prog_fd, struct bpf_test_run_opts opts, in test_xdp_context_error() argument
21 opts.ctx_in = &ctx; in test_xdp_context_error()
22 opts.ctx_size_in = sizeof(ctx); in test_xdp_context_error()
23 err = bpf_prog_test_run_opts(prog_fd, &opts); in test_xdp_context_error()
34 DECLARE_LIBBPF_OPTS(bpf_test_run_opts, opts, in test_xdp_context_test_run()
50 opts.ctx_in = bad_ctx; in test_xdp_context_test_run()
51 opts.ctx_size_in = sizeof(bad_ctx); in test_xdp_context_test_run()
52 err = bpf_prog_test_run_opts(prog_fd, &opts); in test_xdp_context_test_run()
58 opts.ctx_in = &ctx_in; in test_xdp_context_test_run()
59 opts in test_xdp_context_test_run()
[all...]
H A Dkprobe_multi_test.c61 static void test_link_api(struct bpf_link_create_opts *opts) in test_link_api() argument
72 link1_fd = bpf_link_create(prog_fd, 0, BPF_TRACE_KPROBE_MULTI, opts); in test_link_api()
76 opts->kprobe_multi.flags = BPF_F_KPROBE_MULTI_RETURN; in test_link_api()
78 link2_fd = bpf_link_create(prog_fd, 0, BPF_TRACE_KPROBE_MULTI, opts); in test_link_api()
100 LIBBPF_OPTS(bpf_link_create_opts, opts); in test_link_api_addrs()
112 opts.kprobe_multi.addrs = (const unsigned long*) addrs; in test_link_api_addrs()
113 opts.kprobe_multi.cnt = ARRAY_SIZE(addrs); in test_link_api_addrs()
114 test_link_api(&opts); in test_link_api_addrs()
119 LIBBPF_OPTS(bpf_link_create_opts, opts); in test_link_api_syms()
131 opts in test_link_api_syms()
137 test_attach_api(const char *pattern, struct bpf_kprobe_multi_opts *opts) test_attach_api() argument
[all...]
H A Duprobe_multi_test.c153 __test_attach_api(const char *binary, const char *pattern, struct bpf_uprobe_multi_opts *opts, in __test_attach_api() argument
163 opts->retprobe = false; in __test_attach_api()
165 binary, pattern, opts); in __test_attach_api()
169 opts->retprobe = true; in __test_attach_api()
171 binary, pattern, opts); in __test_attach_api()
175 opts->retprobe = false; in __test_attach_api()
177 binary, pattern, opts); in __test_attach_api()
181 opts->retprobe = true; in __test_attach_api()
183 pid, binary, pattern, opts); in __test_attach_api()
187 opts in __test_attach_api()
200 test_attach_api(const char *binary, const char *pattern, struct bpf_uprobe_multi_opts *opts) test_attach_api() argument
[all...]
H A Dbpf_cookie.c24 DECLARE_LIBBPF_OPTS(bpf_kprobe_opts, opts); in kprobe_subtest()
29 opts.bpf_cookie = 0x1; in kprobe_subtest()
30 opts.retprobe = false; in kprobe_subtest()
32 SYS_NANOSLEEP_KPROBE_NAME, &opts); in kprobe_subtest()
36 opts.bpf_cookie = 0x2; in kprobe_subtest()
37 opts.retprobe = false; in kprobe_subtest()
39 SYS_NANOSLEEP_KPROBE_NAME, &opts); in kprobe_subtest()
44 opts.bpf_cookie = 0x10; in kprobe_subtest()
45 opts.retprobe = true; in kprobe_subtest()
47 SYS_NANOSLEEP_KPROBE_NAME, &opts); in kprobe_subtest()
[all...]
H A Draw_tp_test_run.c16 LIBBPF_OPTS(bpf_test_run_opts, opts, in test_raw_tp_test_run()
46 opts.ctx_in = args; in test_raw_tp_test_run()
47 opts.ctx_size_in = sizeof(__u64); in test_raw_tp_test_run()
49 err = bpf_prog_test_run_opts(prog_fd, &opts); in test_raw_tp_test_run()
52 opts.ctx_size_in = sizeof(args); in test_raw_tp_test_run()
53 err = bpf_prog_test_run_opts(prog_fd, &opts); in test_raw_tp_test_run()
55 ASSERT_EQ(opts.retval, expected_retval, "check_retval"); in test_raw_tp_test_run()
61 opts.cpu = i; in test_raw_tp_test_run()
62 opts.retval = 0; in test_raw_tp_test_run()
63 err = bpf_prog_test_run_opts(prog_fd, &opts); in test_raw_tp_test_run()
[all...]
H A Dlog_buf.c33 LIBBPF_OPTS(bpf_object_open_opts, opts); in obj_load_log_buf()
47 opts.kernel_log_buf = obj_log_buf; in obj_load_log_buf()
48 opts.kernel_log_size = log_buf_sz; in obj_load_log_buf()
49 opts.kernel_log_level = 4; /* for BTF this will turn into 1 */ in obj_load_log_buf()
54 skel = test_log_buf__open_opts(&opts); in obj_load_log_buf()
101 opts.kernel_log_buf = NULL; /* let everything through into print callback */ in obj_load_log_buf()
102 opts.kernel_log_size = 0; in obj_load_log_buf()
103 opts.kernel_log_level = 1; in obj_load_log_buf()
105 skel = test_log_buf__open_opts(&opts); in obj_load_log_buf()
151 LIBBPF_OPTS(bpf_prog_load_opts, opts); in bpf_prog_load_log_buf()
[all...]
/kernel/linux/linux-6.6/tools/objtool/
H A Dbuiltin-check.c17 struct opts opts; variable
32 opts.dump_orc = true; in parse_dump()
51 opts.hack_jump_label = true; in parse_hacks()
56 opts.hack_noinstr = true; in parse_hacks()
61 opts.hack_skylake = true; in parse_hacks()
71 OPT_BOOLEAN('i', "ibt", &opts.ibt, "validate and annotate IBT"),
72 OPT_BOOLEAN('m', "mcount", &opts.mcount, "annotate mcount/fentry calls for ftrace"),
73 OPT_BOOLEAN('n', "noinstr", &opts.noinstr, "validate noinstr rules"),
74 OPT_BOOLEAN('o', "orc", &opts
[all...]
/kernel/linux/linux-6.6/drivers/usb/gadget/function/
H A Du_ether_configfs.h19 struct f_##_f_##_opts *opts = to_f_##_f_##_opts(item); \
21 usb_put_function_instance(&opts->func_inst); \
32 struct f_##_f_##_opts *opts = to_f_##_f_##_opts(item); \
35 mutex_lock(&opts->lock); \
36 result = gether_get_dev_addr(opts->net, page, PAGE_SIZE); \
37 mutex_unlock(&opts->lock); \
45 struct f_##_f_##_opts *opts = to_f_##_f_##_opts(item); \
48 mutex_lock(&opts->lock); \
49 if (opts->refcnt) { \
50 mutex_unlock(&opts
[all...]
H A Df_uac2.c803 static void setup_headers(struct f_uac2_opts *opts, in setup_headers() argument
845 if (EPIN_EN(opts)) in setup_headers()
847 if (EPOUT_EN(opts)) { in setup_headers()
851 if (FUOUT_EN(opts)) in setup_headers()
855 if (EPIN_EN(opts)) { in setup_headers()
858 if (FUIN_EN(opts)) in setup_headers()
864 if (EPOUT_EN(opts)) in setup_headers()
867 if (FUOUT_EN(opts) || FUIN_EN(opts)) { in setup_headers()
873 if (EPOUT_EN(opts)) { in setup_headers()
905 setup_descriptor(struct f_uac2_opts *opts) setup_descriptor() argument
987 struct f_uac2_opts *opts = g_audio_to_uac2_opts(agdev); afunc_validate_opts() local
1518 struct f_uac2_opts *opts = g_audio_to_uac2_opts(agdev); in_rq_cur() local
1595 struct f_uac2_opts *opts = g_audio_to_uac2_opts(agdev); in_rq_range() local
1717 struct f_uac2_opts *opts = g_audio_to_uac2_opts(agdev); out_rq_cur_complete() local
1766 struct f_uac2_opts *opts = g_audio_to_uac2_opts(agdev); out_rq_cur() local
1862 struct f_uac2_opts *opts = to_f_uac2_opts(item); f_uac2_attr_release() local
2136 struct f_uac2_opts *opts; afunc_free_inst() local
2144 struct f_uac2_opts *opts; afunc_alloc_inst() local
2189 struct f_uac2_opts *opts; afunc_free() local
2217 struct f_uac2_opts *opts; afunc_alloc() local
[all...]
H A Duvc_configfs.c190 struct f_uvc_opts *opts; \
198 opts = to_f_uvc_opts(opts_item); \
200 mutex_lock(&opts->lock); \
202 mutex_unlock(&opts->lock); \
213 struct f_uvc_opts *opts; \
222 opts = to_f_uvc_opts(opts_item); \
224 mutex_lock(&opts->lock); \
225 if (ch->linked || opts->refcnt) { \
241 mutex_unlock(&opts->lock); \
308 struct f_uvc_opts *opts; \
344 struct f_uvc_opts *opts; uvcg_default_processing_bm_controls_store() local
399 struct f_uvc_opts *opts; uvcg_default_processing_bm_controls_show() local
513 struct f_uvc_opts *opts; uvcg_default_camera_bm_controls_store() local
569 struct f_uvc_opts *opts; uvcg_default_camera_bm_controls_show() local
677 struct f_uvc_opts *opts; uvcg_default_output_b_source_id_show() local
703 struct f_uvc_opts *opts; uvcg_default_output_b_source_id_store() local
823 struct f_uvc_opts *opts; uvcg_extension_b_num_controls_store() local
857 struct f_uvc_opts *opts; uvcg_extension_b_nr_in_pins_store() local
910 struct f_uvc_opts *opts; uvcg_extension_b_control_size_store() local
960 struct f_uvc_opts *opts; uvcg_extension_guid_extension_code_show() local
983 struct f_uvc_opts *opts; uvcg_extension_guid_extension_code_store() local
1012 struct f_uvc_opts *opts; uvcg_extension_ba_source_id_show() local
1040 struct f_uvc_opts *opts; uvcg_extension_ba_source_id_store() local
1091 struct f_uvc_opts *opts; uvcg_extension_bm_controls_show() local
1119 struct f_uvc_opts *opts; uvcg_extension_bm_controls_store() local
1218 struct f_uvc_opts *opts; uvcg_extension_drop_link() local
1250 struct f_uvc_opts *opts; uvcg_extension_drop() local
1269 struct f_uvc_opts *opts; uvcg_extension_make() local
1342 struct f_uvc_opts *opts; uvcg_control_class_allow_link() local
1384 struct f_uvc_opts *opts; uvcg_control_class_drop_link() local
1471 struct f_uvc_opts *opts; uvcg_default_control_b_interface_number_show() local
1496 struct f_uvc_opts *opts; uvcg_default_control_enable_interrupt_ep_show() local
1519 struct f_uvc_opts *opts; uvcg_default_control_enable_interrupt_ep_store() local
1671 struct f_uvc_opts *opts; uvcg_format_bma_controls_show() local
1698 struct f_uvc_opts *opts; uvcg_format_bma_controls_store() local
1739 struct f_uvc_opts *opts; uvcg_streaming_header_allow_link() local
1803 struct f_uvc_opts *opts; uvcg_streaming_header_drop_link() local
1987 struct f_uvc_opts *opts; uvcg_frame_b_frame_index_show() local
2031 struct f_uvc_opts *opts; uvcg_frame_dw_frame_interval_show() local
2057 struct f_uvc_opts *opts; uvcg_frame_dw_frame_interval_store() local
2131 struct f_uvc_opts *opts; uvcg_frame_make() local
2185 struct f_uvc_opts *opts; uvcg_frame_drop() local
2238 struct f_uvc_opts *opts; uvcg_uncompressed_guid_format_show() local
2260 struct f_uvc_opts *opts; uvcg_uncompressed_guid_format_store() local
3076 struct f_uvc_opts *opts; uvcg_streaming_class_allow_link() local
3149 struct f_uvc_opts *opts; uvcg_streaming_class_drop_link() local
3241 struct f_uvc_opts *opts; uvcg_default_streaming_b_interface_number_show() local
3288 struct f_uvc_opts *opts = to_f_uvc_opts(item); uvc_func_item_release() local
3299 struct f_uvc_opts *opts; uvc_func_allow_link() local
3337 struct f_uvc_opts *opts; uvc_func_drop_link() local
3473 uvcg_attach_configfs(struct f_uvc_opts *opts) uvcg_attach_configfs() argument
[all...]
/kernel/linux/linux-5.10/drivers/usb/gadget/function/
H A Du_ether_configfs.h19 struct f_##_f_##_opts *opts = to_f_##_f_##_opts(item); \
21 usb_put_function_instance(&opts->func_inst); \
32 struct f_##_f_##_opts *opts = to_f_##_f_##_opts(item); \
35 mutex_lock(&opts->lock); \
36 result = gether_get_dev_addr(opts->net, page, PAGE_SIZE); \
37 mutex_unlock(&opts->lock); \
45 struct f_##_f_##_opts *opts = to_f_##_f_##_opts(item); \
48 mutex_lock(&opts->lock); \
49 if (opts->refcnt) { \
50 mutex_unlock(&opts
[all...]
/kernel/linux/linux-5.10/drivers/nvme/host/
H A Dfabrics.c107 if (ctrl->opts->mask & NVMF_OPT_TRADDR) in nvmf_get_address()
108 len += scnprintf(buf, size, "traddr=%s", ctrl->opts->traddr); in nvmf_get_address()
109 if (ctrl->opts->mask & NVMF_OPT_TRSVCID) in nvmf_get_address()
111 (len) ? "," : "", ctrl->opts->trsvcid); in nvmf_get_address()
112 if (ctrl->opts->mask & NVMF_OPT_HOST_TRADDR) in nvmf_get_address()
114 (len) ? "," : "", ctrl->opts->host_traddr); in nvmf_get_address()
392 if (ctrl->opts->disable_sqflow) in nvmf_connect_admin_queue()
399 uuid_copy(&data->hostid, &ctrl->opts->host->id); in nvmf_connect_admin_queue()
401 strncpy(data->subsysnqn, ctrl->opts->subsysnqn, NVMF_NQN_SIZE); in nvmf_connect_admin_queue()
402 strncpy(data->hostnqn, ctrl->opts in nvmf_connect_admin_queue()
528 nvmf_lookup_transport( struct nvmf_ctrl_options *opts) nvmf_lookup_transport() argument
626 nvmf_parse_options(struct nvmf_ctrl_options *opts, const char *buf) nvmf_parse_options() argument
910 nvmf_check_required_opts(struct nvmf_ctrl_options *opts, unsigned int required_opts) nvmf_check_required_opts() argument
930 nvmf_ip_options_match(struct nvme_ctrl *ctrl, struct nvmf_ctrl_options *opts) nvmf_ip_options_match() argument
960 nvmf_check_allowed_opts(struct nvmf_ctrl_options *opts, unsigned int allowed_opts) nvmf_check_allowed_opts() argument
980 nvmf_free_options(struct nvmf_ctrl_options *opts) nvmf_free_options() argument
1001 struct nvmf_ctrl_options *opts; nvmf_create_ctrl() local
[all...]
/kernel/linux/linux-6.6/drivers/nvme/host/
H A Dfabrics.c133 if (ctrl->opts->mask & NVMF_OPT_TRADDR) in nvmf_get_address()
134 len += scnprintf(buf, size, "traddr=%s", ctrl->opts->traddr); in nvmf_get_address()
135 if (ctrl->opts->mask & NVMF_OPT_TRSVCID) in nvmf_get_address()
137 (len) ? "," : "", ctrl->opts->trsvcid); in nvmf_get_address()
138 if (ctrl->opts->mask & NVMF_OPT_HOST_TRADDR) in nvmf_get_address()
140 (len) ? "," : "", ctrl->opts->host_traddr); in nvmf_get_address()
141 if (ctrl->opts->mask & NVMF_OPT_HOST_IFACE) in nvmf_get_address()
143 (len) ? "," : "", ctrl->opts->host_iface); in nvmf_get_address()
387 uuid_copy(&data->hostid, &ctrl->opts->host->id); in nvmf_connect_data_prep()
389 strncpy(data->subsysnqn, ctrl->opts in nvmf_connect_data_prep()
610 nvmf_lookup_transport( struct nvmf_ctrl_options *opts) nvmf_lookup_transport() argument
655 nvmf_parse_options(struct nvmf_ctrl_options *opts, const char *buf) nvmf_parse_options() argument
999 nvmf_set_io_queues(struct nvmf_ctrl_options *opts, u32 nr_io_queues, u32 io_queues[HCTX_MAX_TYPES]) nvmf_set_io_queues() argument
1035 struct nvmf_ctrl_options *opts = ctrl->opts; nvmf_map_queues() local
1075 nvmf_check_required_opts(struct nvmf_ctrl_options *opts, unsigned int required_opts) nvmf_check_required_opts() argument
1095 nvmf_ip_options_match(struct nvme_ctrl *ctrl, struct nvmf_ctrl_options *opts) nvmf_ip_options_match() argument
1138 nvmf_check_allowed_opts(struct nvmf_ctrl_options *opts, unsigned int allowed_opts) nvmf_check_allowed_opts() argument
1158 nvmf_free_options(struct nvmf_ctrl_options *opts) nvmf_free_options() argument
1184 struct nvmf_ctrl_options *opts; nvmf_create_ctrl() local
[all...]
/kernel/linux/linux-5.10/net/mptcp/
H A Doptions.c334 unsigned int *size, struct mptcp_out_options *opts) in mptcp_syn_options()
343 opts->suboptions = OPTION_MPTCP_MPC_SYN; in mptcp_syn_options()
349 opts->suboptions = OPTION_MPTCP_MPJ_SYN; in mptcp_syn_options()
350 opts->join_id = subflow->local_id; in mptcp_syn_options()
351 opts->token = subflow->remote_token; in mptcp_syn_options()
352 opts->nonce = subflow->local_nonce; in mptcp_syn_options()
353 opts->backup = subflow->request_bkup; in mptcp_syn_options()
396 struct mptcp_out_options *opts) in mptcp_established_options_mp()
424 opts->ext_copy.data_len = data_len; in mptcp_established_options_mp()
425 opts in mptcp_established_options_mp()
333 mptcp_syn_options(struct sock *sk, const struct sk_buff *skb, unsigned int *size, struct mptcp_out_options *opts) mptcp_syn_options() argument
393 mptcp_established_options_mp(struct sock *sk, struct sk_buff *skb, unsigned int *size, unsigned int remaining, struct mptcp_out_options *opts) mptcp_established_options_mp() argument
484 mptcp_established_options_dss(struct sock *sk, struct sk_buff *skb, unsigned int *size, unsigned int remaining, struct mptcp_out_options *opts) mptcp_established_options_dss() argument
579 mptcp_established_options_add_addr(struct sock *sk, unsigned int *size, unsigned int remaining, struct mptcp_out_options *opts) mptcp_established_options_add_addr() argument
627 mptcp_established_options_rm_addr(struct sock *sk, unsigned int *size, unsigned int remaining, struct mptcp_out_options *opts) mptcp_established_options_rm_addr() argument
652 mptcp_established_options(struct sock *sk, struct sk_buff *skb, unsigned int *size, unsigned int remaining, struct mptcp_out_options *opts) mptcp_established_options() argument
697 mptcp_synack_options(const struct request_sock *req, unsigned int *size, struct mptcp_out_options *opts) mptcp_synack_options() argument
981 mptcp_write_options(__be32 *ptr, struct mptcp_out_options *opts) mptcp_write_options() argument
[all...]
/kernel/linux/linux-6.6/tools/testing/selftests/bpf/progs/
H A Dtest_bpf_nf_fail.c30 struct bpf_ct_opts___local opts = {}; in alloc_release() local
34 ct = bpf_skb_ct_alloc(ctx, &tup, sizeof(tup.ipv4), &opts, sizeof(opts)); in alloc_release()
44 struct bpf_ct_opts___local opts = {}; in insert_insert() local
48 ct = bpf_skb_ct_alloc(ctx, &tup, sizeof(tup.ipv4), &opts, sizeof(opts)); in insert_insert()
61 struct bpf_ct_opts___local opts = {}; in lookup_insert() local
65 ct = bpf_skb_ct_lookup(ctx, &tup, sizeof(tup.ipv4), &opts, sizeof(opts)); in lookup_insert()
75 struct bpf_ct_opts___local opts in write_not_allowlisted_field() local
89 struct bpf_ct_opts___local opts = {}; set_timeout_after_insert() local
106 struct bpf_ct_opts___local opts = {}; set_status_after_insert() local
123 struct bpf_ct_opts___local opts = {}; change_timeout_after_alloc() local
137 struct bpf_ct_opts___local opts = {}; change_status_after_alloc() local
[all...]
/kernel/linux/linux-5.10/net/netfilter/
H A Dnf_synproxy_core.c29 const struct tcphdr *th, struct synproxy_options *opts) in synproxy_parse_options()
41 opts->options = 0; in synproxy_parse_options()
64 opts->mss_option = get_unaligned_be16(ptr); in synproxy_parse_options()
65 opts->options |= NF_SYNPROXY_OPT_MSS; in synproxy_parse_options()
70 opts->wscale = *ptr; in synproxy_parse_options()
71 if (opts->wscale > TCP_MAX_WSCALE) in synproxy_parse_options()
72 opts->wscale = TCP_MAX_WSCALE; in synproxy_parse_options()
73 opts->options |= NF_SYNPROXY_OPT_WSCALE; in synproxy_parse_options()
78 opts->tsval = get_unaligned_be32(ptr); in synproxy_parse_options()
79 opts in synproxy_parse_options()
28 synproxy_parse_options(const struct sk_buff *skb, unsigned int doff, const struct tcphdr *th, struct synproxy_options *opts) synproxy_parse_options() argument
98 synproxy_options_size(const struct synproxy_options *opts) synproxy_options_size() argument
115 synproxy_build_options(struct tcphdr *th, const struct synproxy_options *opts) synproxy_build_options() argument
152 synproxy_init_timestamp_cookie(const struct nf_synproxy_info *info, struct synproxy_options *opts) synproxy_init_timestamp_cookie() argument
173 synproxy_check_timestamp_cookie(struct synproxy_options *opts) synproxy_check_timestamp_cookie() argument
470 synproxy_send_client_synack(struct net *net, const struct sk_buff *skb, const struct tcphdr *th, const struct synproxy_options *opts) synproxy_send_client_synack() argument
513 synproxy_send_server_syn(struct net *net, const struct sk_buff *skb, const struct tcphdr *th, const struct synproxy_options *opts, u32 recv_seq) synproxy_send_server_syn() argument
558 synproxy_send_server_ack(struct net *net, const struct ip_ct_tcp *state, const struct sk_buff *skb, const struct tcphdr *th, const struct synproxy_options *opts) synproxy_send_server_ack() argument
597 synproxy_send_client_ack(struct net *net, const struct sk_buff *skb, const struct tcphdr *th, const struct synproxy_options *opts) synproxy_send_client_ack() argument
636 synproxy_recv_client_ack(struct net *net, const struct sk_buff *skb, const struct tcphdr *th, struct synproxy_options *opts, u32 recv_seq) synproxy_recv_client_ack() argument
670 struct synproxy_options opts = {}; ipv4_synproxy_hook() local
882 synproxy_send_client_synack_ipv6(struct net *net, const struct sk_buff *skb, const struct tcphdr *th, const struct synproxy_options *opts) synproxy_send_client_synack_ipv6() argument
927 synproxy_send_server_syn_ipv6(struct net *net, const struct sk_buff *skb, const struct tcphdr *th, const struct synproxy_options *opts, u32 recv_seq) synproxy_send_server_syn_ipv6() argument
972 synproxy_send_server_ack_ipv6(struct net *net, const struct ip_ct_tcp *state, const struct sk_buff *skb, const struct tcphdr *th, const struct synproxy_options *opts) synproxy_send_server_ack_ipv6() argument
1012 synproxy_send_client_ack_ipv6(struct net *net, const struct sk_buff *skb, const struct tcphdr *th, const struct synproxy_options *opts) synproxy_send_client_ack_ipv6() argument
1052 synproxy_recv_client_ack_ipv6(struct net *net, const struct sk_buff *skb, const struct tcphdr *th, struct synproxy_options *opts, u32 recv_seq) synproxy_recv_client_ack_ipv6() argument
1087 struct synproxy_options opts = {}; ipv6_synproxy_hook() local
[all...]
/kernel/linux/linux-6.6/net/netfilter/
H A Dnf_synproxy_core.c29 const struct tcphdr *th, struct synproxy_options *opts) in synproxy_parse_options()
41 opts->options = 0; in synproxy_parse_options()
64 opts->mss_option = get_unaligned_be16(ptr); in synproxy_parse_options()
65 opts->options |= NF_SYNPROXY_OPT_MSS; in synproxy_parse_options()
70 opts->wscale = *ptr; in synproxy_parse_options()
71 if (opts->wscale > TCP_MAX_WSCALE) in synproxy_parse_options()
72 opts->wscale = TCP_MAX_WSCALE; in synproxy_parse_options()
73 opts->options |= NF_SYNPROXY_OPT_WSCALE; in synproxy_parse_options()
78 opts->tsval = get_unaligned_be32(ptr); in synproxy_parse_options()
79 opts in synproxy_parse_options()
28 synproxy_parse_options(const struct sk_buff *skb, unsigned int doff, const struct tcphdr *th, struct synproxy_options *opts) synproxy_parse_options() argument
98 synproxy_options_size(const struct synproxy_options *opts) synproxy_options_size() argument
115 synproxy_build_options(struct tcphdr *th, const struct synproxy_options *opts) synproxy_build_options() argument
152 synproxy_init_timestamp_cookie(const struct nf_synproxy_info *info, struct synproxy_options *opts) synproxy_init_timestamp_cookie() argument
173 synproxy_check_timestamp_cookie(struct synproxy_options *opts) synproxy_check_timestamp_cookie() argument
447 synproxy_send_client_synack(struct net *net, const struct sk_buff *skb, const struct tcphdr *th, const struct synproxy_options *opts) synproxy_send_client_synack() argument
490 synproxy_send_server_syn(struct net *net, const struct sk_buff *skb, const struct tcphdr *th, const struct synproxy_options *opts, u32 recv_seq) synproxy_send_server_syn() argument
535 synproxy_send_server_ack(struct net *net, const struct ip_ct_tcp *state, const struct sk_buff *skb, const struct tcphdr *th, const struct synproxy_options *opts) synproxy_send_server_ack() argument
574 synproxy_send_client_ack(struct net *net, const struct sk_buff *skb, const struct tcphdr *th, const struct synproxy_options *opts) synproxy_send_client_ack() argument
613 synproxy_recv_client_ack(struct net *net, const struct sk_buff *skb, const struct tcphdr *th, struct synproxy_options *opts, u32 recv_seq) synproxy_recv_client_ack() argument
647 struct synproxy_options opts = {}; ipv4_synproxy_hook() local
859 synproxy_send_client_synack_ipv6(struct net *net, const struct sk_buff *skb, const struct tcphdr *th, const struct synproxy_options *opts) synproxy_send_client_synack_ipv6() argument
904 synproxy_send_server_syn_ipv6(struct net *net, const struct sk_buff *skb, const struct tcphdr *th, const struct synproxy_options *opts, u32 recv_seq) synproxy_send_server_syn_ipv6() argument
949 synproxy_send_server_ack_ipv6(struct net *net, const struct ip_ct_tcp *state, const struct sk_buff *skb, const struct tcphdr *th, const struct synproxy_options *opts) synproxy_send_server_ack_ipv6() argument
989 synproxy_send_client_ack_ipv6(struct net *net, const struct sk_buff *skb, const struct tcphdr *th, const struct synproxy_options *opts) synproxy_send_client_ack_ipv6() argument
1029 synproxy_recv_client_ack_ipv6(struct net *net, const struct sk_buff *skb, const struct tcphdr *th, struct synproxy_options *opts, u32 recv_seq) synproxy_recv_client_ack_ipv6() argument
1064 struct synproxy_options opts = {}; ipv6_synproxy_hook() local
[all...]
/kernel/linux/linux-6.6/tools/perf/util/
H A Drecord.c95 void evlist__config(struct evlist *evlist, struct record_opts *opts, struct callchain_param *callchain) in evlist__config() argument
100 bool sample_id = opts->sample_id; in evlist__config()
103 opts->no_inherit = true; in evlist__config()
108 evsel__config(evsel, opts, callchain); in evlist__config()
117 if (opts->full_auxtrace || opts->sample_identifier) { in evlist__config()
150 static int record_opts__config_freq(struct record_opts *opts) in record_opts__config_freq() argument
152 bool user_freq = opts->user_freq != UINT_MAX; in record_opts__config_freq()
153 bool user_interval = opts->user_interval != ULLONG_MAX; in record_opts__config_freq()
162 opts in record_opts__config_freq()
216 record_opts__config(struct record_opts *opts) record_opts__config() argument
274 struct record_opts *opts = opt->value; record__parse_freq() local
[all...]
/kernel/linux/linux-5.10/drivers/net/ppp/
H A Dppp_mppe.h9 /* unsupported opts */
33 /* Build a CI from mppe opts (see RFC 3078) */
34 #define MPPE_OPTS_TO_CI(opts, ci) \
39 if (opts & MPPE_OPT_STATEFUL) \
48 if (opts & MPPE_OPT_128) \
50 if (opts & MPPE_OPT_40) \
56 #define MPPE_CI_TO_OPTS(ci, opts) \
60 opts = 0; \
64 opts |= MPPE_OPT_STATEFUL; \
68 opts |
[all...]
/kernel/linux/linux-6.6/drivers/net/ppp/
H A Dppp_mppe.h9 /* unsupported opts */
33 /* Build a CI from mppe opts (see RFC 3078) */
34 #define MPPE_OPTS_TO_CI(opts, ci) \
39 if (opts & MPPE_OPT_STATEFUL) \
48 if (opts & MPPE_OPT_128) \
50 if (opts & MPPE_OPT_40) \
56 #define MPPE_CI_TO_OPTS(ci, opts) \
60 opts = 0; \
64 opts |= MPPE_OPT_STATEFUL; \
68 opts |
[all...]
/kernel/linux/linux-6.6/tools/lib/bpf/
H A Dbpf.c170 const struct bpf_map_create_opts *opts) in bpf_map_create()
180 if (!OPTS_VALID(opts, bpf_map_create_opts)) in bpf_map_create()
190 attr.btf_fd = OPTS_GET(opts, btf_fd, 0); in bpf_map_create()
191 attr.btf_key_type_id = OPTS_GET(opts, btf_key_type_id, 0); in bpf_map_create()
192 attr.btf_value_type_id = OPTS_GET(opts, btf_value_type_id, 0); in bpf_map_create()
193 attr.btf_vmlinux_value_type_id = OPTS_GET(opts, btf_vmlinux_value_type_id, 0); in bpf_map_create()
195 attr.inner_map_fd = OPTS_GET(opts, inner_map_fd, 0); in bpf_map_create()
196 attr.map_flags = OPTS_GET(opts, map_flags, 0); in bpf_map_create()
197 attr.map_extra = OPTS_GET(opts, map_extra, 0); in bpf_map_create()
198 attr.numa_node = OPTS_GET(opts, numa_nod in bpf_map_create()
165 bpf_map_create(enum bpf_map_type map_type, const char *map_name, __u32 key_size, __u32 value_size, __u32 max_entries, const struct bpf_map_create_opts *opts) bpf_map_create() argument
230 bpf_prog_load(enum bpf_prog_type prog_type, const char *prog_name, const char *license, const struct bpf_insn *insns, size_t insn_cnt, struct bpf_prog_load_opts *opts) bpf_prog_load() argument
516 bpf_map_batch_common(int cmd, int fd, void *in_batch, void *out_batch, void *keys, void *values, __u32 *count, const struct bpf_map_batch_opts *opts) bpf_map_batch_common() argument
544 bpf_map_delete_batch(int fd, const void *keys, __u32 *count, const struct bpf_map_batch_opts *opts) bpf_map_delete_batch() argument
551 bpf_map_lookup_batch(int fd, void *in_batch, void *out_batch, void *keys, void *values, __u32 *count, const struct bpf_map_batch_opts *opts) bpf_map_lookup_batch() argument
559 bpf_map_lookup_and_delete_batch(int fd, void *in_batch, void *out_batch, void *keys, void *values, __u32 *count, const struct bpf_map_batch_opts *opts) bpf_map_lookup_and_delete_batch() argument
568 bpf_map_update_batch(int fd, const void *keys, const void *values, __u32 *count, const struct bpf_map_batch_opts *opts) bpf_map_update_batch() argument
575 bpf_obj_pin_opts(int fd, const char *pathname, const struct bpf_obj_pin_opts *opts) bpf_obj_pin_opts() argument
604 bpf_obj_get_opts(const char *pathname, const struct bpf_obj_get_opts *opts) bpf_obj_get_opts() argument
632 bpf_prog_attach_opts(int prog_fd, int target, enum bpf_attach_type type, const struct bpf_prog_attach_opts *opts) bpf_prog_attach_opts() argument
670 bpf_prog_detach_opts(int prog_fd, int target, enum bpf_attach_type type, const struct bpf_prog_detach_opts *opts) bpf_prog_detach_opts() argument
717 bpf_link_create(int prog_fd, int target_fd, enum bpf_attach_type attach_type, const struct bpf_link_create_opts *opts) bpf_link_create() argument
866 bpf_link_update(int link_fd, int new_prog_fd, const struct bpf_link_update_opts *opts) bpf_link_update() argument
905 bpf_prog_query_opts(int target, enum bpf_attach_type type, struct bpf_prog_query_opts *opts) bpf_prog_query_opts() argument
953 bpf_prog_test_run_opts(int prog_fd, struct bpf_test_run_opts *opts) bpf_prog_test_run_opts() argument
1024 bpf_prog_get_fd_by_id_opts(__u32 id, const struct bpf_get_fd_by_id_opts *opts) bpf_prog_get_fd_by_id_opts() argument
1047 bpf_map_get_fd_by_id_opts(__u32 id, const struct bpf_get_fd_by_id_opts *opts) bpf_map_get_fd_by_id_opts() argument
1070 bpf_btf_get_fd_by_id_opts(__u32 id, const struct bpf_get_fd_by_id_opts *opts) bpf_btf_get_fd_by_id_opts() argument
1093 bpf_link_get_fd_by_id_opts(__u32 id, const struct bpf_get_fd_by_id_opts *opts) bpf_link_get_fd_by_id_opts() argument
1167 bpf_btf_load(const void *btf_data, size_t btf_size, struct bpf_btf_load_opts *opts) bpf_btf_load() argument
1256 bpf_prog_bind_map(int prog_fd, int map_fd, const struct bpf_prog_bind_opts *opts) bpf_prog_bind_map() argument
[all...]
/kernel/linux/linux-6.6/net/mptcp/
H A Doptions.c405 unsigned int *size, struct mptcp_out_options *opts) in mptcp_syn_options()
414 opts->suboptions = OPTION_MPTCP_MPC_SYN; in mptcp_syn_options()
415 opts->csum_reqd = mptcp_is_checksum_enabled(sock_net(sk)); in mptcp_syn_options()
416 opts->allow_join_id0 = mptcp_allow_join_id0(sock_net(sk)); in mptcp_syn_options()
422 opts->suboptions = OPTION_MPTCP_MPJ_SYN; in mptcp_syn_options()
423 opts->join_id = subflow->local_id; in mptcp_syn_options()
424 opts->token = subflow->remote_token; in mptcp_syn_options()
425 opts->nonce = subflow->local_nonce; in mptcp_syn_options()
426 opts->backup = subflow->request_bkup; in mptcp_syn_options()
446 struct mptcp_out_options *opts) in mptcp_established_options_mp()
404 mptcp_syn_options(struct sock *sk, const struct sk_buff *skb, unsigned int *size, struct mptcp_out_options *opts) mptcp_syn_options() argument
443 mptcp_established_options_mp(struct sock *sk, struct sk_buff *skb, bool snd_data_fin_enable, unsigned int *size, struct mptcp_out_options *opts) mptcp_established_options_mp() argument
556 mptcp_established_options_dss(struct sock *sk, struct sk_buff *skb, bool snd_data_fin_enable, unsigned int *size, struct mptcp_out_options *opts) mptcp_established_options_dss() argument
649 mptcp_established_options_add_addr(struct sock *sk, struct sk_buff *skb, unsigned int *size, unsigned int remaining, struct mptcp_out_options *opts) mptcp_established_options_add_addr() argument
704 mptcp_established_options_rm_addr(struct sock *sk, unsigned int *size, unsigned int remaining, struct mptcp_out_options *opts) mptcp_established_options_rm_addr() argument
734 mptcp_established_options_mp_prio(struct sock *sk, unsigned int *size, unsigned int remaining, struct mptcp_out_options *opts) mptcp_established_options_mp_prio() argument
760 mptcp_established_options_rst(struct sock *sk, struct sk_buff *skb, unsigned int *size, unsigned int remaining, struct mptcp_out_options *opts) mptcp_established_options_rst() argument
779 mptcp_established_options_fastclose(struct sock *sk, unsigned int *size, unsigned int remaining, struct mptcp_out_options *opts) mptcp_established_options_fastclose() argument
802 mptcp_established_options_mp_fail(struct sock *sk, unsigned int *size, unsigned int remaining, struct mptcp_out_options *opts) mptcp_established_options_mp_fail() argument
825 mptcp_established_options(struct sock *sk, struct sk_buff *skb, unsigned int *size, unsigned int remaining, struct mptcp_out_options *opts) mptcp_established_options() argument
896 mptcp_synack_options(const struct request_sock *req, unsigned int *size, struct mptcp_out_options *opts) mptcp_synack_options() argument
1344 mptcp_write_options(struct tcphdr *th, __be32 *ptr, struct tcp_sock *tp, struct mptcp_out_options *opts) mptcp_write_options() argument
[all...]
/kernel/linux/linux-5.10/tools/perf/util/
H A Drecord.c92 void perf_evlist__config(struct evlist *evlist, struct record_opts *opts, in perf_evlist__config() argument
98 bool sample_id = opts->sample_id; in perf_evlist__config()
104 if (opts->group) in perf_evlist__config()
108 opts->no_inherit = true; in perf_evlist__config()
113 evsel__config(evsel, opts, callchain); in perf_evlist__config()
122 if (opts->full_auxtrace) { in perf_evlist__config()
155 static int record_opts__config_freq(struct record_opts *opts) in record_opts__config_freq() argument
157 bool user_freq = opts->user_freq != UINT_MAX; in record_opts__config_freq()
160 if (opts->user_interval != ULLONG_MAX) in record_opts__config_freq()
161 opts in record_opts__config_freq()
215 record_opts__config(struct record_opts *opts) record_opts__config() argument
270 struct record_opts *opts = opt->value; record__parse_freq() local
[all...]
/kernel/linux/linux-5.10/tools/perf/
H A Dbuiltin-record.c90 struct record_opts opts; member
407 struct record_opts *opts = (struct record_opts *)opt->value; in record__aio_parse() local
410 opts->nr_cblocks = 0; in record__aio_parse()
413 opts->nr_cblocks = strtol(str, NULL, 0); in record__aio_parse()
414 if (!opts->nr_cblocks) in record__aio_parse()
415 opts->nr_cblocks = nr_cblocks_default; in record__aio_parse()
445 return rec->opts.nr_cblocks > 0; in record__aio_enabled()
454 struct record_opts *opts = (struct record_opts *)opt->value; in record__mmap_flush_parse() local
467 opts->mmap_flush = parse_tag_value(str, tags); in record__mmap_flush_parse()
468 if (opts in record__mmap_flush_parse()
488 struct record_opts *opts = opt->value; record__parse_comp_level() local
841 struct record_opts *opts = &rec->opts; record__mmap_evlist() local
885 struct record_opts *opts = &rec->opts; record__open() local
1379 struct record_opts *opts = &rec->opts; record__synthesize() local
1523 struct record_opts *opts = &rec->opts; record__setup_sb_evlist() local
1613 struct record_opts *opts = &rec->opts; __cmd_record() local
2164 struct record_opts *opts = (struct record_opts *)opt->value; record__parse_affinity() local
2208 struct record_opts *opts = opt->value; record__parse_mmap_pages() local
2251 struct record_opts *opts = opt->value; parse_control_option() local
[all...]

Completed in 17 milliseconds

12345678910>>...30