/linux-6.3-rc2/tools/objtool/ |
A D | builtin-check.c | 17 struct opts opts; variable 32 opts.dump_orc = true; in parse_dump() 131 opts.ibt || in opts_valid() 134 opts.orc || in opts_valid() 137 opts.sls || in opts_valid() 149 if (opts.unret && !opts.rethunk) { in opts_valid() 154 if (opts.dump_orc) in opts_valid() 163 if (opts.mnop && !opts.mcount) { in mnop_opts_valid() 173 if (opts.link) in link_opts_valid() 187 if (opts.ibt) { in link_opts_valid() [all …]
|
/linux-6.3-rc2/drivers/usb/gadget/function/ |
A D | u_ether_configfs.h | 35 mutex_lock(&opts->lock); \ 37 mutex_unlock(&opts->lock); \ 48 mutex_lock(&opts->lock); \ 49 if (opts->refcnt) { \ 70 mutex_lock(&opts->lock); \ 83 mutex_lock(&opts->lock); \ 84 if (opts->refcnt) { \ 105 mutex_lock(&opts->lock); \ 119 if (opts->refcnt) { \ 158 if (!opts->refcnt) \ [all …]
|
A D | uvc_configfs.c | 341 struct f_uvc_opts *opts; in uvcg_default_processing_bm_controls_show() local 354 mutex_lock(&opts->lock); in uvcg_default_processing_bm_controls_show() 452 struct f_uvc_opts *opts; in uvcg_default_camera_bm_controls_show() local 466 mutex_lock(&opts->lock); in uvcg_default_camera_bm_controls_show() 560 struct f_uvc_opts *opts; in uvcg_default_output_b_source_id_show() local 573 mutex_lock(&opts->lock); in uvcg_default_output_b_source_id_show() 3052 if (opts->refcnt) in uvcg_streaming_class_drop_link() 3226 opts->iad_index = 0; in uvc_func_drop_link() 3228 opts->vs0_index = 0; in uvc_func_drop_link() 3230 opts->vs1_index = 0; in uvc_func_drop_link() [all …]
|
A D | f_uac1.c | 1100 if (FUOUT_EN(opts) || FUIN_EN(opts)) in setup_descriptor() 1126 if (!opts->p_chmask && !opts->c_chmask) { in f_audio_validate_opts() 1135 } else if ((opts->p_ssize < 1) || (opts->p_ssize > 4)) { in f_audio_validate_opts() 1149 if (opts->p_volume_max <= opts->p_volume_min) { in f_audio_validate_opts() 1152 } else if (opts->c_volume_max <= opts->c_volume_min) { in f_audio_validate_opts() 1163 if ((opts->p_volume_max - opts->p_volume_min) % opts->p_volume_res) { in f_audio_validate_opts() 1166 } else if ((opts->c_volume_max - opts->c_volume_min) % opts->c_volume_res) { in f_audio_validate_opts() 1537 memset(opts->name##s, 0x00, sizeof(opts->name##s)); \ 1650 kfree(opts); in f_audio_free_inst() 1657 opts = kzalloc(sizeof(*opts), GFP_KERNEL); in f_audio_alloc_inst() [all …]
|
A D | f_uvc.c | 659 opts->streaming_interval = clamp(opts->streaming_interval, 1U, 16U); in uvc_function_bind() 661 opts->streaming_maxburst = min(opts->streaming_maxburst, 15U); in uvc_function_bind() 666 opts->streaming_maxpacket = roundup(opts->streaming_maxpacket, 1024); in uvc_function_bind() 859 kfree(opts); in uvc_free_inst() 871 opts = kzalloc(sizeof(*opts), GFP_KERNEL); in uvc_alloc_inst() 872 if (!opts) in uvc_alloc_inst() 930 opts->fs_control = in uvc_alloc_inst() 940 opts->ss_control = in uvc_alloc_inst() 951 kfree(opts); in uvc_alloc_inst() 964 --opts->refcnt; in uvc_free() [all …]
|
A D | f_uac2.c | 867 if (FUOUT_EN(opts) || FUIN_EN(opts)) { in setup_headers() 990 if (!opts->p_chmask && !opts->c_chmask) in afunc_validate_opts() 996 else if ((opts->p_ssize < 1) || (opts->p_ssize > 4)) in afunc_validate_opts() 998 else if ((opts->c_ssize < 1) || (opts->c_ssize > 4)) in afunc_validate_opts() 1005 else if (opts->p_volume_max <= opts->p_volume_min) in afunc_validate_opts() 1007 else if (opts->c_volume_max <= opts->c_volume_min) in afunc_validate_opts() 1014 else if ((opts->p_volume_max - opts->p_volume_min) % opts->p_volume_res) in afunc_validate_opts() 1016 else if ((opts->c_volume_max - opts->c_volume_min) % opts->c_volume_res) in afunc_validate_opts() 2018 memset(opts->name##s, 0x00, sizeof(opts->name##s)); \ 2146 opts = kzalloc(sizeof(*opts), GFP_KERNEL); in afunc_alloc_inst() [all …]
|
A D | f_uac1_legacy.c | 850 opts->name = num; \ 886 if (opts->refcnt) \ 933 kfree(opts->fn_play); in f_audio_free_inst() 934 if (opts->fn_cap_alloc) in f_audio_free_inst() 935 kfree(opts->fn_cap); in f_audio_free_inst() 937 kfree(opts->fn_cntl); in f_audio_free_inst() 938 kfree(opts); in f_audio_free_inst() 945 opts = kzalloc(sizeof(*opts), GFP_KERNEL); in f_audio_alloc_inst() 946 if (!opts) in f_audio_alloc_inst() 973 --opts->refcnt; in f_audio_free() [all …]
|
/linux-6.3-rc2/drivers/nvme/host/ |
A D | fabrics.c | 629 opts->kato = 0; in nvmf_parse_options() 684 opts->traddr = p; in nvmf_parse_options() 935 if (!opts->kato) in nvmf_parse_options() 948 if (!opts->host) { in nvmf_parse_options() 984 strcmp(opts->traddr, ctrl->opts->traddr) || in nvmf_ip_options_match() 985 strcmp(opts->trsvcid, ctrl->opts->trsvcid)) in nvmf_ip_options_match() 1003 if (strcmp(opts->host_traddr, ctrl->opts->host_traddr)) in nvmf_ip_options_match() 1012 if (strcmp(opts->host_iface, ctrl->opts->host_iface)) in nvmf_ip_options_match() 1054 kfree(opts); in nvmf_free_options() 1074 opts = kzalloc(sizeof(*opts), GFP_KERNEL); in nvmf_create_ctrl() [all …]
|
/linux-6.3-rc2/net/mptcp/ |
A D | options.c | 674 len = mptcp_add_addr_len(opts->addr.family, echo, !!opts->addr.port); in mptcp_established_options_add_addr() 688 opts->ahmac = 0; in mptcp_established_options_add_addr() 698 opts->addr.id, opts->ahmac, echo, ntohs(opts->addr.port)); in mptcp_established_options_add_addr() 834 opts->suboptions = 0; in mptcp_established_options() 916 subflow_req, opts->backup, opts->join_id, in mptcp_synack_options() 917 opts->thmac, opts->nonce); in mptcp_synack_options() 1479 opts->backup, opts->join_id); in mptcp_write_options() 1487 opts->backup, opts->join_id); in mptcp_write_options() 1510 if (opts->ahmac) { in mptcp_write_options() 1529 if (opts->ahmac) { in mptcp_write_options() [all …]
|
/linux-6.3-rc2/tools/testing/selftests/bpf/prog_tests/ |
A D | xdp_context_test_run.c | 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() 64 err = bpf_prog_test_run_opts(prog_fd, &opts); in test_xdp_context_test_run() [all …]
|
A D | kprobe_multi_test.c | 113 test_link_api(&opts); in test_link_api_addrs() 151 if (opts) { in test_attach_api() 208 opts.syms = syms; in test_attach_api_syms() 248 opts.syms = syms; in test_attach_api_fails() 262 opts.syms = NULL; in test_attach_api_fails() 275 opts.addrs = NULL; in test_attach_api_fails() 276 opts.syms = NULL; in test_attach_api_fails() 289 opts.addrs = NULL; in test_attach_api_fails() 290 opts.syms = NULL; in test_attach_api_fails() 291 opts.cnt = 0; in test_attach_api_fails() [all …]
|
A D | bpf_cookie.c | 28 opts.bpf_cookie = 0x1; in kprobe_subtest() 29 opts.retprobe = false; in kprobe_subtest() 35 opts.bpf_cookie = 0x2; in kprobe_subtest() 36 opts.retprobe = false; in kprobe_subtest() 43 opts.bpf_cookie = 0x10; in kprobe_subtest() 44 opts.retprobe = true; in kprobe_subtest() 50 opts.bpf_cookie = 0x20; in kprobe_subtest() 51 opts.retprobe = true; in kprobe_subtest() 210 opts.syms = syms; in kprobe_multi_attach_api_subtest() 228 opts.retprobe = true; in kprobe_multi_attach_api_subtest() [all …]
|
A D | log_buf.c | 102 opts.kernel_log_size = 0; in obj_load_log_buf() 103 opts.kernel_log_level = 1; in obj_load_log_buf() 159 opts.log_buf = log_buf; in bpf_prog_load_log_buf() 160 opts.log_size = log_buf_sz; in bpf_prog_load_log_buf() 164 opts.log_level = 0; in bpf_prog_load_log_buf() 175 opts.log_level = 2; in bpf_prog_load_log_buf() 186 opts.log_level = 0; in bpf_prog_load_log_buf() 221 opts.log_buf = log_buf; in bpf_btf_load_log_buf() 226 opts.log_level = 0; in bpf_btf_load_log_buf() 236 opts.log_level = 2; in bpf_btf_load_log_buf() [all …]
|
A D | raw_tp_test_run.c | 16 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() 61 opts.cpu = i; in test_raw_tp_test_run() 62 opts.retval = 0; in test_raw_tp_test_run() 70 opts.cpu = 0xffffffff; in test_raw_tp_test_run() 76 opts.cpu = 1; in test_raw_tp_test_run() [all …]
|
/linux-6.3-rc2/tools/testing/selftests/bpf/progs/ |
A D | test_bpf_nf_fail.c | 30 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() 79 ct = bpf_skb_ct_lookup(ctx, &tup, sizeof(tup.ipv4), &opts, sizeof(opts)); in write_not_allowlisted_field() 93 ct = bpf_skb_ct_alloc(ctx, &tup, sizeof(tup.ipv4), &opts, sizeof(opts)); in set_timeout_after_insert() 110 ct = bpf_skb_ct_alloc(ctx, &tup, sizeof(tup.ipv4), &opts, sizeof(opts)); in set_status_after_insert() 127 ct = bpf_skb_ct_alloc(ctx, &tup, sizeof(tup.ipv4), &opts, sizeof(opts)); in change_timeout_after_alloc() [all …]
|
/linux-6.3-rc2/net/netfilter/ |
A D | nf_synproxy_core.c | 41 opts->options = 0; in synproxy_parse_options() 155 opts->tsecr = opts->tsval; in synproxy_init_timestamp_cookie() 159 opts->tsval |= opts->wscale; in synproxy_init_timestamp_cookie() 162 opts->tsval |= 0xf; in synproxy_init_timestamp_cookie() 175 opts->wscale = opts->tsecr & 0xf; in synproxy_check_timestamp_cookie() 179 opts->options |= opts->tsecr & (1 << 4) ? NF_SYNPROXY_OPT_SACK_PERM : 0; in synproxy_check_timestamp_cookie() 181 opts->options |= opts->tsecr & (1 << 5) ? NF_SYNPROXY_OPT_ECN : 0; in synproxy_check_timestamp_cookie() 732 swap(opts.tsval, opts.tsecr); in ipv4_synproxy_hook() 738 swap(opts.tsval, opts.tsecr); in ipv4_synproxy_hook() 1155 swap(opts.tsval, opts.tsecr); in ipv6_synproxy_hook() [all …]
|
A D | nf_conntrack_bpf.c | 109 if (!opts || !bpf_tuple || opts->reserved[0] || opts->reserved[1] || in __bpf_nf_ct_alloc_entry() 126 if (opts->netns_id >= 0) { in __bpf_nf_ct_alloc_entry() 141 if (opts->netns_id >= 0) in __bpf_nf_ct_alloc_entry() 157 if (!opts || !bpf_tuple || opts->reserved[0] || opts->reserved[1] || in __bpf_nf_ct_lookup() 160 if (unlikely(opts->l4proto != IPPROTO_TCP && opts->l4proto != IPPROTO_UDP)) in __bpf_nf_ct_lookup() 170 if (opts->netns_id >= 0) { in __bpf_nf_ct_lookup() 177 if (opts->netns_id >= 0) in __bpf_nf_ct_lookup() 262 if (opts) in bpf_xdp_ct_alloc() 297 if (opts) in bpf_xdp_ct_lookup() 330 if (opts) in bpf_skb_ct_alloc() [all …]
|
/linux-6.3-rc2/tools/perf/util/ |
A D | record.c | 103 opts->no_inherit = true; in evlist__config() 117 if (opts->full_auxtrace || opts->sample_identifier) { in evlist__config() 162 opts->default_interval = opts->user_interval; in record_opts__config_freq() 164 opts->freq = opts->user_freq; in record_opts__config_freq() 170 opts->freq = 0; in record_opts__config_freq() 171 else if (opts->freq) { in record_opts__config_freq() 172 opts->default_interval = opts->freq; in record_opts__config_freq() 185 if (opts->strict_freq) { in record_opts__config_freq() 198 opts->freq = max_rate; in record_opts__config_freq() 210 opts->freq = max_rate; in record_opts__config_freq() [all …]
|
/linux-6.3-rc2/tools/lib/bpf/ |
A D | bpf.c | 566 count, opts); in bpf_map_lookup_and_delete_batch() 714 if (!OPTS_ZEROED(opts, perf_event)) in bpf_link_create() 731 if (!OPTS_ZEROED(opts, tracing)) in bpf_link_create() 735 if (!OPTS_ZEROED(opts, flags)) in bpf_link_create() 755 if (!OPTS_ZEROED(opts, sz)) in bpf_link_create() 822 struct bpf_prog_query_opts *opts) in bpf_prog_query_opts() argument 854 opts.query_flags = query_flags; in bpf_prog_query() 855 opts.prog_ids = prog_ids; in bpf_prog_query() 856 opts.prog_cnt = *prog_cnt; in bpf_prog_query() 861 *attach_flags = opts.attach_flags; in bpf_prog_query() [all …]
|
A D | libbpf_probes.c | 134 opts.log_buf = buf; in probe_prog_load() 136 opts.log_level = 1; in probe_prog_load() 141 opts.attach_btf_id = 1; in probe_prog_load() 147 opts.log_buf = buf; in probe_prog_load() 149 opts.log_level = 1; in probe_prog_load() 150 opts.attach_btf_id = 1; in probe_prog_load() 211 if (opts) in libbpf_probe_bpf_prog_type() 367 opts.btf_fd = btf_fd; in probe_map_create() 393 if (opts) in libbpf_probe_bpf_map_type() 401 const void *opts) in libbpf_probe_bpf_helper() argument [all …]
|
/linux-6.3-rc2/tools/perf/arch/x86/util/ |
A D | intel-bts.c | 116 if (opts->auxtrace_sample_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() 153 if (!opts->auxtrace_snapshot_size && !opts->auxtrace_mmap_pages) { in intel_bts_recording_options() 166 opts->auxtrace_snapshot_size = in intel_bts_recording_options() 181 if (!opts->auxtrace_snapshot_size || !opts->auxtrace_mmap_pages) { in intel_bts_recording_options() 190 if (opts->full_auxtrace && !opts->auxtrace_mmap_pages) { in intel_bts_recording_options() 201 if (opts->auxtrace_mmap_pages) { in intel_bts_recording_options() 232 if (opts->full_auxtrace) { in intel_bts_recording_options() [all …]
|
/linux-6.3-rc2/drivers/net/ppp/ |
A D | ppp_mppe.h | 34 #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.3-rc2/tools/perf/arch/arm64/util/ |
A D | arm-spe.c | 108 if (!opts->auxtrace_snapshot_size && !opts->auxtrace_mmap_pages) { 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() 125 opts->auxtrace_snapshot_size = opts->auxtrace_mmap_pages * (size_t)page_size; in arm_spe_snapshot_resolve_auxtrace_defaults() 131 if (!opts->auxtrace_mmap_pages) { in arm_spe_snapshot_resolve_auxtrace_defaults() 165 opts->full_auxtrace = true; in arm_spe_recording_options() 169 if (!opts->full_auxtrace) in arm_spe_recording_options() 180 if (!opts->auxtrace_snapshot_size || !opts->auxtrace_mmap_pages) in arm_spe_recording_options() 186 if (opts->auxtrace_snapshot_size > opts->auxtrace_mmap_pages * (size_t)page_size) { in arm_spe_recording_options() 196 if (!opts->auxtrace_snapshot_size || !opts->auxtrace_mmap_pages) { in arm_spe_recording_options() 214 if (opts->auxtrace_mmap_pages) { in arm_spe_recording_options() [all …]
|
/linux-6.3-rc2/tools/testing/selftests/netfilter/ |
A D | nf-queue.c | 29 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() 313 if (opts.delay_ms) in mainloop() 316 nlh = nfq_build_verdict(buf, id, opts.queue_num, opts.verdict); in mainloop() 344 opts.queue_num = 0; in parse_opts() 353 opts.verdict <<= 16; in parse_opts() 370 opts.verbose++; in parse_opts() 375 if (opts.verdict != NF_ACCEPT && (opts.verdict >> 16 == opts.queue_num)) { in parse_opts() [all …]
|
/linux-6.3-rc2/tools/perf/ |
A D | builtin-record.c | 1221 struct record_opts *opts = &rec->opts; in record__mmap_evlist() local 1232 opts->nr_cblocks, opts->affinity, in record__mmap_evlist() 1233 opts->mmap_flush, opts->comp_level) < 0) { in record__mmap_evlist() 1287 struct record_opts *opts = &rec->opts; in record__open() local 1970 struct record_opts *opts = &rec->opts; in record__synthesize() local 2096 struct record_opts *opts = &rec->opts; in record__setup_sb_evlist() local 2330 struct record_opts *opts = &rec->opts; in __cmd_record() local 3125 return evlist__parse_control(str, &opts->ctl_fd, &opts->ctl_fd_ack, &opts->ctl_fd_close); in parse_control_option() 3293 .opts = { 4180 rec->opts.ignore_missing_thread = rec->opts.target.uid != UINT_MAX || rec->opts.target.pid; in cmd_record() [all …]
|