Home
last modified time | relevance | path

Searched refs:opts (Results 1 – 25 of 423) sorted by relevance

12345678910>>...17

/linux-6.1.9/tools/objtool/
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()
66 OPT_BOOLEAN('i', "ibt", &opts.ibt, "validate and annotate IBT"),
67 OPT_BOOLEAN('m', "mcount", &opts.mcount, "annotate mcount/fentry calls for ftrace"),
68 OPT_BOOLEAN('n', "noinstr", &opts.noinstr, "validate noinstr rules"),
69 OPT_BOOLEAN('o', "orc", &opts.orc, "generate ORC metadata"),
70 OPT_BOOLEAN('r', "retpoline", &opts.retpoline, "validate and annotate retpoline usage"),
71 OPT_BOOLEAN(0, "rethunk", &opts.rethunk, "validate and annotate rethunk usage"),
[all …]
/linux-6.1.9/drivers/usb/gadget/function/
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->lock); \
[all …]
Df_uac1.c434 struct f_uac1_opts *opts = g_audio_to_uac1_opts(audio); in in_rq_cur() local
442 if ((FUIN_EN(opts) && (entity_id == USB_IN_FU_ID)) || in in_rq_cur()
443 (FUOUT_EN(opts) && (entity_id == USB_OUT_FU_ID))) { in in_rq_cur()
446 if (FUIN_EN(opts) && (entity_id == USB_IN_FU_ID)) in in_rq_cur()
485 struct f_uac1_opts *opts = g_audio_to_uac1_opts(audio); in in_rq_min() local
493 if ((FUIN_EN(opts) && (entity_id == USB_IN_FU_ID)) || in in_rq_min()
494 (FUOUT_EN(opts) && (entity_id == USB_OUT_FU_ID))) { in in_rq_min()
497 if (FUIN_EN(opts) && (entity_id == USB_IN_FU_ID)) in in_rq_min()
505 min_db = opts->p_volume_min; in in_rq_min()
507 min_db = opts->c_volume_min; in in_rq_min()
[all …]
Duvc_configfs.c124 struct f_uvc_opts *opts; \
132 opts = to_f_uvc_opts(opts_item); \
134 mutex_lock(&opts->lock); \
136 mutex_unlock(&opts->lock); \
147 struct f_uvc_opts *opts; \
156 opts = to_f_uvc_opts(opts_item); \
158 mutex_lock(&opts->lock); \
159 if (ch->linked || opts->refcnt) { \
175 mutex_unlock(&opts->lock); \
242 struct f_uvc_opts *opts; \
[all …]
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()
884 if (EPOUT_FBACK_IN_EN(opts)) { in setup_headers()
[all …]
Df_uvc.c601 struct f_uvc_opts *opts; in uvc_function_bind() local
606 opts = fi_to_f_uvc_opts(f->fi); in uvc_function_bind()
608 opts->streaming_interval = clamp(opts->streaming_interval, 1U, 16U); in uvc_function_bind()
609 opts->streaming_maxpacket = clamp(opts->streaming_maxpacket, 1U, 3072U); in uvc_function_bind()
610 opts->streaming_maxburst = min(opts->streaming_maxburst, 15U); in uvc_function_bind()
613 if (opts->streaming_maxburst && in uvc_function_bind()
614 (opts->streaming_maxpacket % 1024) != 0) { in uvc_function_bind()
615 opts->streaming_maxpacket = roundup(opts->streaming_maxpacket, 1024); in uvc_function_bind()
617 opts->streaming_maxpacket); in uvc_function_bind()
627 if (opts->streaming_maxpacket <= 1024) { in uvc_function_bind()
[all …]
/linux-6.1.9/drivers/nvme/host/
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()
115 if (ctrl->opts->mask & NVMF_OPT_HOST_IFACE) in nvmf_get_address()
117 (len) ? "," : "", ctrl->opts->host_iface); in nvmf_get_address()
390 if (ctrl->opts->disable_sqflow) in nvmf_connect_admin_queue()
397 uuid_copy(&data->hostid, &ctrl->opts->host->id); in nvmf_connect_admin_queue()
[all …]
/linux-6.1.9/net/mptcp/
Doptions.c399 unsigned int *size, struct mptcp_out_options *opts) in mptcp_syn_options() argument
408 opts->suboptions = OPTION_MPTCP_MPC_SYN; in mptcp_syn_options()
409 opts->csum_reqd = mptcp_is_checksum_enabled(sock_net(sk)); in mptcp_syn_options()
410 opts->allow_join_id0 = mptcp_allow_join_id0(sock_net(sk)); in mptcp_syn_options()
416 opts->suboptions = OPTION_MPTCP_MPJ_SYN; in mptcp_syn_options()
417 opts->join_id = subflow->local_id; in mptcp_syn_options()
418 opts->token = subflow->remote_token; in mptcp_syn_options()
419 opts->nonce = subflow->local_nonce; in mptcp_syn_options()
420 opts->backup = subflow->request_bkup; in mptcp_syn_options()
441 struct mptcp_out_options *opts) in mptcp_established_options_mp() argument
[all …]
/linux-6.1.9/tools/testing/selftests/bpf/prog_tests/
Dkprobe_multi_test.c60 static void test_link_api(struct bpf_link_create_opts *opts) in test_link_api() argument
71 link1_fd = bpf_link_create(prog_fd, 0, BPF_TRACE_KPROBE_MULTI, opts); in test_link_api()
75 opts->kprobe_multi.flags = BPF_F_KPROBE_MULTI_RETURN; in test_link_api()
77 link2_fd = bpf_link_create(prog_fd, 0, BPF_TRACE_KPROBE_MULTI, opts); in test_link_api()
99 LIBBPF_OPTS(bpf_link_create_opts, opts); in test_link_api_addrs()
111 opts.kprobe_multi.addrs = (const unsigned long*) addrs; in test_link_api_addrs()
112 opts.kprobe_multi.cnt = ARRAY_SIZE(addrs); in test_link_api_addrs()
113 test_link_api(&opts); in test_link_api_addrs()
118 LIBBPF_OPTS(bpf_link_create_opts, opts); in test_link_api_syms()
130 opts.kprobe_multi.syms = syms; in test_link_api_syms()
[all …]
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.ctx_size_in = sizeof(ctx_in); in test_xdp_context_test_run()
[all …]
Dbpf_cookie.c23 DECLARE_LIBBPF_OPTS(bpf_kprobe_opts, opts); in kprobe_subtest()
28 opts.bpf_cookie = 0x1; in kprobe_subtest()
29 opts.retprobe = false; in kprobe_subtest()
31 SYS_NANOSLEEP_KPROBE_NAME, &opts); in kprobe_subtest()
35 opts.bpf_cookie = 0x2; in kprobe_subtest()
36 opts.retprobe = false; in kprobe_subtest()
38 SYS_NANOSLEEP_KPROBE_NAME, &opts); in kprobe_subtest()
43 opts.bpf_cookie = 0x10; in kprobe_subtest()
44 opts.retprobe = true; in kprobe_subtest()
46 SYS_NANOSLEEP_KPROBE_NAME, &opts); in kprobe_subtest()
[all …]
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 …]
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 …]
/linux-6.1.9/tools/perf/util/
Drecord.c95 void evlist__config(struct evlist *evlist, struct record_opts *opts, struct callchain_param *callch… in evlist__config() argument
100 bool sample_id = opts->sample_id; in evlist__config()
106 if (opts->group) in evlist__config()
110 opts->no_inherit = true; in evlist__config()
115 evsel__config(evsel, opts, callchain); in evlist__config()
124 if (opts->full_auxtrace || opts->sample_identifier) { in evlist__config()
157 static int record_opts__config_freq(struct record_opts *opts) in record_opts__config_freq() argument
159 bool user_freq = opts->user_freq != UINT_MAX; in record_opts__config_freq()
160 bool user_interval = opts->user_interval != ULLONG_MAX; in record_opts__config_freq()
169 opts->default_interval = opts->user_interval; in record_opts__config_freq()
[all …]
/linux-6.1.9/tools/testing/selftests/bpf/progs/
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
79 ct = bpf_skb_ct_lookup(ctx, &tup, sizeof(tup.ipv4), &opts, sizeof(opts)); in write_not_allowlisted_field()
89 struct bpf_ct_opts___local opts = {}; in set_timeout_after_insert() local
93 ct = bpf_skb_ct_alloc(ctx, &tup, sizeof(tup.ipv4), &opts, sizeof(opts)); in set_timeout_after_insert()
[all …]
/linux-6.1.9/net/netfilter/
Dnf_synproxy_core.c29 const struct tcphdr *th, struct synproxy_options *opts) in synproxy_parse_options() argument
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->tsecr = get_unaligned_be32(ptr + 4); in synproxy_parse_options()
[all …]
Dnf_conntrack_bpf.c102 u32 tuple_len, struct bpf_ct_opts *opts, u32 opts_len, in __bpf_nf_ct_alloc_entry() argument
109 if (!opts || !bpf_tuple || opts->reserved[0] || opts->reserved[1] || in __bpf_nf_ct_alloc_entry()
113 if (unlikely(opts->netns_id < BPF_F_CURRENT_NETNS)) in __bpf_nf_ct_alloc_entry()
116 err = bpf_nf_ct_tuple_parse(bpf_tuple, tuple_len, opts->l4proto, in __bpf_nf_ct_alloc_entry()
121 err = bpf_nf_ct_tuple_parse(bpf_tuple, tuple_len, opts->l4proto, in __bpf_nf_ct_alloc_entry()
126 if (opts->netns_id >= 0) { in __bpf_nf_ct_alloc_entry()
127 net = get_net_ns_by_id(net, opts->netns_id); in __bpf_nf_ct_alloc_entry()
141 if (opts->netns_id >= 0) in __bpf_nf_ct_alloc_entry()
149 u32 tuple_len, struct bpf_ct_opts *opts, in __bpf_nf_ct_lookup() argument
157 if (!opts || !bpf_tuple || opts->reserved[0] || opts->reserved[1] || in __bpf_nf_ct_lookup()
[all …]
/linux-6.1.9/tools/lib/bpf/
Dbpf.c170 const struct bpf_map_create_opts *opts) in bpf_map_create() argument
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_node, 0); in bpf_map_create()
[all …]
Dlibbpf_probes.c24 LIBBPF_OPTS(bpf_prog_load_opts, opts, in probe_prog_load()
35 opts.expected_attach_type = BPF_CGROUP_INET4_CONNECT; in probe_prog_load()
38 opts.expected_attach_type = BPF_CGROUP_GETSOCKOPT; in probe_prog_load()
41 opts.expected_attach_type = BPF_SK_LOOKUP; in probe_prog_load()
44 opts.kern_version = get_kernel_version(); in probe_prog_load()
47 opts.expected_attach_type = BPF_LIRC_MODE2; in probe_prog_load()
51 opts.log_buf = buf; in probe_prog_load()
52 opts.log_size = sizeof(buf); in probe_prog_load()
53 opts.log_level = 1; in probe_prog_load()
55 opts.expected_attach_type = BPF_TRACE_FENTRY; in probe_prog_load()
[all …]
/linux-6.1.9/tools/perf/arch/x86/util/
Dintel-bts.c107 struct record_opts *opts) in intel_bts_recording_options() argument
116 if (opts->auxtrace_sample_mode) { in intel_bts_recording_options()
122 btsr->snapshot_mode = opts->auxtrace_snapshot_mode; in intel_bts_recording_options()
134 opts->full_auxtrace = true; in intel_bts_recording_options()
138 if (opts->auxtrace_snapshot_mode && !opts->full_auxtrace) { in intel_bts_recording_options()
143 if (!opts->full_auxtrace) in intel_bts_recording_options()
146 if (opts->full_auxtrace && !perf_cpu_map__empty(cpus)) { in intel_bts_recording_options()
152 if (opts->auxtrace_snapshot_mode) { in intel_bts_recording_options()
153 if (!opts->auxtrace_snapshot_size && !opts->auxtrace_mmap_pages) { in intel_bts_recording_options()
155 opts->auxtrace_mmap_pages = MiB(4) / page_size; in intel_bts_recording_options()
[all …]
/linux-6.1.9/drivers/net/ppp/
Dppp_mppe.h34 #define MPPE_OPTS_TO_CI(opts, ci) \ argument
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) \ argument
60 opts = 0; \
64 opts |= MPPE_OPT_STATEFUL; \
68 opts |= MPPE_OPT_128; \
70 opts |= MPPE_OPT_40; \
74 opts |= MPPE_OPT_56; \
[all …]
/linux-6.1.9/tools/perf/arch/arm64/util/
Darm-spe.c91 arm_spe_snapshot_resolve_auxtrace_defaults(struct record_opts *opts, in arm_spe_snapshot_resolve_auxtrace_defaults() argument
108 if (!opts->auxtrace_snapshot_size && !opts->auxtrace_mmap_pages) { in arm_spe_snapshot_resolve_auxtrace_defaults()
110 opts->auxtrace_mmap_pages = MiB(4) / page_size; in arm_spe_snapshot_resolve_auxtrace_defaults()
112 opts->auxtrace_mmap_pages = KiB(128) / page_size; in arm_spe_snapshot_resolve_auxtrace_defaults()
113 if (opts->mmap_pages == UINT_MAX) in arm_spe_snapshot_resolve_auxtrace_defaults()
114 opts->mmap_pages = KiB(256) / page_size; in arm_spe_snapshot_resolve_auxtrace_defaults()
116 } else if (!opts->auxtrace_mmap_pages && !privileged && opts->mmap_pages == UINT_MAX) { in arm_spe_snapshot_resolve_auxtrace_defaults()
117 opts->mmap_pages = KiB(256) / page_size; in arm_spe_snapshot_resolve_auxtrace_defaults()
124 if (!opts->auxtrace_snapshot_size) in arm_spe_snapshot_resolve_auxtrace_defaults()
125 opts->auxtrace_snapshot_size = opts->auxtrace_mmap_pages * (size_t)page_size; in arm_spe_snapshot_resolve_auxtrace_defaults()
[all …]
/linux-6.1.9/tools/testing/selftests/netfilter/
Dnf-queue.c29 static struct options opts; variable
90 if (opts.verbose > 0) in queue_cb()
99 if (opts.verbose > 0) { in queue_cb()
113 if (opts.count_packets) in queue_cb()
227 queue_num = opts.queue_num; in open_queue()
237 flags = opts.gso_enabled ? NFQA_CFG_F_GSO : 0; in open_queue()
248 tv.tv_sec = opts.timeout; in open_queue()
249 if (opts.timeout && setsockopt(mnl_socket_get_fd(nl), in open_queue()
313 if (opts.delay_ms) in mainloop()
314 sleep_ms(opts.delay_ms); in mainloop()
[all …]
/linux-6.1.9/tools/perf/
Dbuiltin-record.c155 struct record_opts opts; member
205 return rec->opts.threads_spec; in record__threads_enabled()
510 struct record_opts *opts = (struct record_opts *)opt->value; in record__aio_parse() local
513 opts->nr_cblocks = 0; in record__aio_parse()
516 opts->nr_cblocks = strtol(str, NULL, 0); in record__aio_parse()
517 if (!opts->nr_cblocks) in record__aio_parse()
518 opts->nr_cblocks = nr_cblocks_default; in record__aio_parse()
548 return rec->opts.nr_cblocks > 0; in record__aio_enabled()
557 struct record_opts *opts = (struct record_opts *)opt->value; in record__mmap_flush_parse() local
570 opts->mmap_flush = parse_tag_value(str, tags); in record__mmap_flush_parse()
[all …]
/linux-6.1.9/tools/lib/subcmd/
Dparse-options.c696 static void print_option_help(const struct option *opts, int full) in print_option_help() argument
701 if (opts->type == OPTION_GROUP) { in print_option_help()
703 if (*opts->help) in print_option_help()
704 fprintf(stderr, "%s\n", opts->help); in print_option_help()
707 if (!full && (opts->flags & PARSE_OPT_HIDDEN)) in print_option_help()
709 if (opts->flags & PARSE_OPT_DISABLED) in print_option_help()
713 if (opts->short_name) in print_option_help()
714 pos += fprintf(stderr, "-%c", opts->short_name); in print_option_help()
718 if (opts->long_name && opts->short_name) in print_option_help()
720 if (opts->long_name) in print_option_help()
[all …]

12345678910>>...17