| /linux/tools/testing/selftests/bpf/prog_tests/ |
| A D | verifier_log.c | 102 opts.log_size = 25; in verif_log_subtest() 131 opts.log_size = i; in verif_log_subtest() 189 opts.log_buf = NULL; in verif_log_subtest() 191 opts.log_size = 0; in verif_log_subtest() 211 opts.log_size = 0; in verif_log_subtest() 316 opts.log_size = 25; in verif_btf_log_subtest() 335 opts.log_size = i; in verif_btf_log_subtest() 375 opts.log_size = 0; in verif_btf_log_subtest() 383 opts.log_level = 1; in verif_btf_log_subtest() 394 opts.log_level = 1; in verif_btf_log_subtest() [all …]
|
| 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 | 154 if (opts) { in test_attach_api() 211 opts.syms = syms; in test_attach_api_syms() 253 opts.syms = syms; in test_attach_api_fails() 268 opts.syms = NULL; in test_attach_api_fails() 282 opts.addrs = NULL; in test_attach_api_fails() 283 opts.syms = NULL; in test_attach_api_fails() 298 opts.syms = NULL; in test_attach_api_fails() 299 opts.cnt = 0; in test_attach_api_fails() 313 opts.syms = NULL; in test_attach_api_fails() 655 opts.cnt = cnt; in test_kprobe_multi_bench_attach() [all …]
|
| A D | bpf_cookie.c | 29 opts.bpf_cookie = 0x1; in kprobe_subtest() 30 opts.retprobe = false; in kprobe_subtest() 36 opts.bpf_cookie = 0x2; in kprobe_subtest() 37 opts.retprobe = false; in kprobe_subtest() 44 opts.bpf_cookie = 0x10; in kprobe_subtest() 45 opts.retprobe = true; in kprobe_subtest() 51 opts.bpf_cookie = 0x20; in kprobe_subtest() 52 opts.retprobe = true; in kprobe_subtest() 211 opts.syms = syms; in kprobe_multi_attach_api_subtest() 229 opts.retprobe = true; in kprobe_multi_attach_api_subtest() [all …]
|
| A D | local_kptr_stash.c | 11 LIBBPF_OPTS(bpf_test_run_opts, opts, in test_local_kptr_stash_simple() 25 ASSERT_OK(opts.retval, "local_kptr_stash_add_nodes retval"); in test_local_kptr_stash_simple() 32 LIBBPF_OPTS(bpf_test_run_opts, opts, in test_local_kptr_stash_plain() 46 ASSERT_OK(opts.retval, "local_kptr_stash_add_plain retval"); in test_local_kptr_stash_plain() 53 LIBBPF_OPTS(bpf_test_run_opts, opts, in test_local_kptr_stash_local_with_root() 74 LIBBPF_OPTS(bpf_test_run_opts, opts, in test_local_kptr_stash_unstash() 88 ASSERT_OK(opts.retval, "local_kptr_stash_add_nodes retval"); in test_local_kptr_stash_unstash() 99 LIBBPF_OPTS(bpf_test_run_opts, opts, in test_refcount_acquire_without_unstash() 112 &opts); in test_refcount_acquire_without_unstash() 118 ASSERT_OK(opts.retval, "stash_refcounted_node retval"); in test_refcount_acquire_without_unstash() [all …]
|
| A D | uprobe_multi_test.c | 266 opts->retprobe = false; in __test_attach_api() 272 opts->retprobe = true; in __test_attach_api() 278 opts->retprobe = false; in __test_attach_api() 284 opts->retprobe = true; in __test_attach_api() 290 opts->retprobe = false; in __test_attach_api() 356 opts.syms = syms; in test_attach_api_syms() 386 LIBBPF_OPTS_RESET(opts, in test_attach_api_fails() 410 LIBBPF_OPTS_RESET(opts, in test_attach_api_fails() 422 LIBBPF_OPTS_RESET(opts, in test_attach_api_fails() 561 opts.syms = syms; in attach_uprobe_fail_trap() [all …]
|
| A D | log_buf.c | 103 opts.kernel_log_size = 0; in obj_load_log_buf() 104 opts.kernel_log_level = 1; in obj_load_log_buf() 160 opts.log_buf = log_buf; in bpf_prog_load_log_buf() 161 opts.log_size = log_buf_sz; in bpf_prog_load_log_buf() 165 opts.log_level = 0; in bpf_prog_load_log_buf() 176 opts.log_level = 2; in bpf_prog_load_log_buf() 187 opts.log_level = 0; in bpf_prog_load_log_buf() 222 opts.log_buf = log_buf; in bpf_btf_load_log_buf() 227 opts.log_level = 0; in bpf_btf_load_log_buf() 237 opts.log_level = 2; in bpf_btf_load_log_buf() [all …]
|
| /linux/tools/objtool/ |
| A D | builtin-check.c | 17 struct opts opts; variable 32 opts.dump_orc = true; in parse_dump() 136 opts.ibt || in opts_valid() 139 opts.orc || in opts_valid() 142 opts.sls || in opts_valid() 154 if (opts.unret && !opts.rethunk) { in opts_valid() 159 if (opts.dump_orc) in opts_valid() 168 if (opts.mnop && !opts.mcount) { in mnop_opts_valid() 178 if (opts.link) in link_opts_valid() 192 if (opts.ibt) { in link_opts_valid() [all …]
|
| /linux/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 | 345 struct f_uvc_opts *opts; in uvcg_default_processing_bm_controls_store() local 356 mutex_lock(&opts->lock); in uvcg_default_processing_bm_controls_store() 357 if (opts->refcnt) { in uvcg_default_processing_bm_controls_store() 400 struct f_uvc_opts *opts; in uvcg_default_processing_bm_controls_show() local 413 mutex_lock(&opts->lock); in uvcg_default_processing_bm_controls_show() 527 if (opts->refcnt) { in uvcg_default_camera_bm_controls_store() 3181 if (opts->refcnt) in uvcg_streaming_class_drop_link() 3355 opts->iad_index = 0; in uvc_func_drop_link() 3357 opts->vs0_index = 0; in uvc_func_drop_link() 3359 opts->vs1_index = 0; in uvc_func_drop_link() [all …]
|
| A D | f_uac2.c | 854 if (FUOUT_EN(opts) || FUIN_EN(opts)) { in setup_headers() 980 if (!opts->p_chmask && !opts->c_chmask) in afunc_validate_opts() 986 else if ((opts->p_ssize < 1) || (opts->p_ssize > 4)) in afunc_validate_opts() 988 else if ((opts->c_ssize < 1) || (opts->c_ssize > 4)) in afunc_validate_opts() 995 else if (opts->p_volume_max <= opts->p_volume_min) in afunc_validate_opts() 997 else if (opts->c_volume_max <= opts->c_volume_min) in afunc_validate_opts() 1004 else if ((opts->p_volume_max - opts->p_volume_min) % opts->p_volume_res) in afunc_validate_opts() 1006 else if ((opts->c_volume_max - opts->c_volume_min) % opts->c_volume_res) in afunc_validate_opts() 2027 memset(opts->name##s, 0x00, sizeof(opts->name##s)); \ 2191 opts = kzalloc(sizeof(*opts), GFP_KERNEL); in afunc_alloc_inst() [all …]
|
| A D | f_uac1.c | 1157 if (FUOUT_EN(opts) || FUIN_EN(opts)) in setup_descriptor() 1183 if (!opts->p_chmask && !opts->c_chmask) { in f_audio_validate_opts() 1192 } else if ((opts->p_ssize < 1) || (opts->p_ssize > 4)) { in f_audio_validate_opts() 1206 if (opts->p_volume_max <= opts->p_volume_min) { in f_audio_validate_opts() 1209 } else if (opts->c_volume_max <= opts->c_volume_min) { in f_audio_validate_opts() 1220 if ((opts->p_volume_max - opts->p_volume_min) % opts->p_volume_res) { in f_audio_validate_opts() 1223 } else if ((opts->c_volume_max - opts->c_volume_min) % opts->c_volume_res) { in f_audio_validate_opts() 1610 memset(opts->name##s, 0x00, sizeof(opts->name##s)); \ 1744 kfree(opts); in f_audio_free_inst() 1751 opts = kzalloc(sizeof(*opts), GFP_KERNEL); in f_audio_alloc_inst() [all …]
|
| /linux/tools/lib/bpf/ |
| A D | bpf.c | 572 count, opts); in bpf_map_lookup_and_delete_batch() 652 flags = OPTS_GET(opts, flags, 0); in bpf_prog_attach_opts() 819 if (!OPTS_ZEROED(opts, tcx)) in bpf_link_create() 835 if (!OPTS_ZEROED(opts, netkit)) in bpf_link_create() 839 if (!OPTS_ZEROED(opts, flags)) in bpf_link_create() 859 if (!OPTS_ZEROED(opts, sz)) in bpf_link_create() 901 if (OPTS_GET(opts, old_prog_fd, 0) && OPTS_GET(opts, old_map_fd, 0)) in bpf_link_update() 965 opts.query_flags = query_flags; in bpf_prog_query() 966 opts.prog_ids = prog_ids; in bpf_prog_query() 967 opts.prog_cnt = *prog_cnt; 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() 214 if (opts) in libbpf_probe_bpf_prog_type() 383 opts.btf_fd = btf_fd; in probe_map_create() 409 if (opts) in libbpf_probe_bpf_map_type() 417 const void *opts) in libbpf_probe_bpf_helper() argument [all …]
|
| /linux/drivers/nvme/host/ |
| A D | fabrics.c | 729 opts->kato = 0; in nvmf_parse_options() 1070 if (!opts->kato) in nvmf_parse_options() 1098 if (opts->nr_write_queues && opts->nr_io_queues < nr_io_queues) { in nvmf_set_io_queues() 1131 struct nvmf_ctrl_options *opts = ctrl->opts; in nvmf_map_queues() local 1195 strcmp(opts->traddr, ctrl->opts->traddr) || in nvmf_ip_options_match() 1196 strcmp(opts->trsvcid, ctrl->opts->trsvcid)) in nvmf_ip_options_match() 1214 if (strcmp(opts->host_traddr, ctrl->opts->host_traddr)) in nvmf_ip_options_match() 1223 if (strcmp(opts->host_iface, ctrl->opts->host_iface)) in nvmf_ip_options_match() 1267 kfree(opts); in nvmf_free_options() 1287 opts = kzalloc(sizeof(*opts), GFP_KERNEL); in nvmf_create_ctrl() [all …]
|
| /linux/net/mptcp/ |
| A D | options.c | 672 len = mptcp_add_addr_len(opts->addr.family, echo, !!opts->addr.port); in mptcp_established_options_add_addr() 686 opts->ahmac = 0; in mptcp_established_options_add_addr() 699 opts->addr.id, opts->ahmac, echo, ntohs(opts->addr.port)); in mptcp_established_options_add_addr() 835 opts->suboptions = 0; in mptcp_established_options() 917 subflow_req, opts->backup, opts->join_id, in mptcp_synack_options() 918 opts->thmac, opts->nonce); in mptcp_synack_options() 1495 opts->backup, opts->join_id); in mptcp_write_options() 1503 opts->backup, opts->join_id); in mptcp_write_options() 1526 if (opts->ahmac) { in mptcp_write_options() 1545 if (opts->ahmac) { in mptcp_write_options() [all …]
|
| /linux/tools/testing/vsock/ |
| A D | vsock_test.c | 143 fd = vsock_stream_connect(opts->peer_cid, opts->peer_port); in test_stream_client_close_client() 178 fd = vsock_stream_connect(opts->peer_cid, opts->peer_port); in test_stream_server_close_client() 220 fds[i] = vsock_stream_connect(opts->peer_cid, opts->peer_port); in test_stream_multiconn_client() 272 fd = vsock_seqpacket_connect(opts->peer_cid, opts->peer_port); in test_msg_peek_client() 274 fd = vsock_stream_connect(opts->peer_cid, opts->peer_port); in test_msg_peek_client() 368 fd = vsock_seqpacket_connect(opts->peer_cid, opts->peer_port); in test_seqpacket_msg_bounds_client() 844 fd = vsock_stream_connect(opts->peer_cid, opts->peer_port); in test_stream_poll_rcvlowat_client() 991 fd = vsock_stream_connect(opts->peer_cid, opts->peer_port); in test_stream_virtio_skb_merge_client() 1113 fd = vsock_stream_connect(opts->peer_cid, opts->peer_port); in test_stream_shutwr_client() 1156 fd = vsock_stream_connect(opts->peer_cid, opts->peer_port); in test_stream_shutrd_client() [all …]
|
| /linux/net/netfilter/ |
| A D | nf_conntrack_bpf.c | 122 if (opts->reserved[0] || opts->reserved[1] || opts->reserved[2]) in __bpf_nf_ct_alloc_entry() 125 if (opts->ct_zone_id) in __bpf_nf_ct_alloc_entry() 152 opts->ct_zone_id, opts->ct_zone_dir, 0); in __bpf_nf_ct_alloc_entry() 188 if (opts->reserved[0] || opts->reserved[1] || opts->reserved[2]) in __bpf_nf_ct_lookup() 191 if (opts->ct_zone_id) in __bpf_nf_ct_lookup() 194 if (unlikely(opts->l4proto != IPPROTO_TCP && opts->l4proto != IPPROTO_UDP)) in __bpf_nf_ct_lookup() 214 opts->ct_zone_id, opts->ct_zone_dir, 0); in __bpf_nf_ct_lookup() 302 if (opts) in bpf_xdp_ct_alloc() 337 if (opts) in bpf_xdp_ct_lookup() 370 if (opts) in bpf_skb_ct_alloc() [all …]
|
| 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 …]
|
| /linux/tools/testing/selftests/bpf/progs/ |
| A D | test_bpf_nf_fail.c | 31 struct bpf_ct_opts___local opts = {}; in alloc_release() local 35 ct = bpf_skb_ct_alloc(ctx, &tup, sizeof(tup.ipv4), &opts, sizeof(opts)); in alloc_release() 45 struct bpf_ct_opts___local opts = {}; in insert_insert() local 49 ct = bpf_skb_ct_alloc(ctx, &tup, sizeof(tup.ipv4), &opts, sizeof(opts)); in insert_insert() 62 struct bpf_ct_opts___local opts = {}; in lookup_insert() local 66 ct = bpf_skb_ct_lookup(ctx, &tup, sizeof(tup.ipv4), &opts, sizeof(opts)); in lookup_insert() 80 ct = bpf_skb_ct_lookup(ctx, &tup, sizeof(tup.ipv4), &opts, sizeof(opts)); in write_not_allowlisted_field() 94 ct = bpf_skb_ct_alloc(ctx, &tup, sizeof(tup.ipv4), &opts, sizeof(opts)); in set_timeout_after_insert() 111 ct = bpf_skb_ct_alloc(ctx, &tup, sizeof(tup.ipv4), &opts, sizeof(opts)); in set_status_after_insert() 128 ct = bpf_skb_ct_alloc(ctx, &tup, sizeof(tup.ipv4), &opts, sizeof(opts)); in change_timeout_after_alloc() [all …]
|
| /linux/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/tools/perf/arch/arm64/util/ |
| A D | arm-spe.c | 86 if (!opts->auxtrace_snapshot_size && !opts->auxtrace_mmap_pages) { in arm_spe_snapshot_resolve_auxtrace_defaults() 94 } else if (!opts->auxtrace_mmap_pages && !privileged && opts->mmap_pages == UINT_MAX) { in arm_spe_snapshot_resolve_auxtrace_defaults() 103 opts->auxtrace_snapshot_size = opts->auxtrace_mmap_pages * (size_t)page_size; in arm_spe_snapshot_resolve_auxtrace_defaults() 109 if (!opts->auxtrace_mmap_pages) { in arm_spe_snapshot_resolve_auxtrace_defaults() 196 opts->full_auxtrace = true; in arm_spe_recording_options() 200 if (!opts->full_auxtrace) in arm_spe_recording_options() 211 if (!opts->auxtrace_snapshot_size || !opts->auxtrace_mmap_pages) in arm_spe_recording_options() 217 if (opts->auxtrace_snapshot_size > opts->auxtrace_mmap_pages * (size_t)page_size) { in arm_spe_recording_options() 227 if (!opts->auxtrace_snapshot_size || !opts->auxtrace_mmap_pages) { in arm_spe_recording_options() 245 if (opts->auxtrace_mmap_pages) { in arm_spe_recording_options() [all …]
|
| /linux/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/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/net/xfrm/ |
| A D | xfrm_state_bpf.c | 71 if (!opts || opts__sz < sizeof(opts->error)) in bpf_xdp_get_xfrm_state() 75 opts->error = -EINVAL; in bpf_xdp_get_xfrm_state() 79 if (unlikely(opts->netns_id < BPF_F_CURRENT_NETNS)) { in bpf_xdp_get_xfrm_state() 80 opts->error = -EINVAL; in bpf_xdp_get_xfrm_state() 84 if (opts->netns_id >= 0) { in bpf_xdp_get_xfrm_state() 85 net = get_net_ns_by_id(net, opts->netns_id); in bpf_xdp_get_xfrm_state() 87 opts->error = -ENONET; in bpf_xdp_get_xfrm_state() 92 x = xfrm_state_lookup(net, opts->mark, &opts->daddr, opts->spi, in bpf_xdp_get_xfrm_state() 93 opts->proto, opts->family); in bpf_xdp_get_xfrm_state() 95 if (opts->netns_id >= 0) in bpf_xdp_get_xfrm_state() [all …]
|