Home
last modified time | relevance | path

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

12345678910>>...23

/linux-6.15/tools/testing/selftests/bpf/prog_tests/
H A Dverifier_log.c102 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 …]
H A Dbpf_cookie.c29 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 …]
H A Dkprobe_multi_test.c155 if (opts) { in test_attach_api()
212 opts.syms = syms; in test_attach_api_syms()
254 opts.syms = syms; in test_attach_api_fails()
269 opts.syms = NULL; in test_attach_api_fails()
283 opts.addrs = NULL; in test_attach_api_fails()
284 opts.syms = NULL; in test_attach_api_fails()
299 opts.syms = NULL; in test_attach_api_fails()
300 opts.cnt = 0; in test_attach_api_fails()
314 opts.syms = NULL; in test_attach_api_fails()
681 opts.cnt = cnt; in test_kprobe_multi_bench_attach()
[all …]
H A Dlocal_kptr_stash.c11 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 …]
H A Dlog_buf.c103 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()
175 opts.log_level = 2; in bpf_prog_load_log_buf()
185 opts.log_level = 0; in bpf_prog_load_log_buf()
219 opts.log_buf = log_buf; in bpf_btf_load_log_buf()
224 opts.log_level = 0; in bpf_btf_load_log_buf()
234 opts.log_level = 2; in bpf_btf_load_log_buf()
[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()
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.15/tools/objtool/
H A Dbuiltin-check.c23 struct opts opts; variable
141 if (opts.mnop && !opts.mcount) { in opts_valid()
146 if (opts.noinstr && !opts.link) { in opts_valid()
151 if (opts.ibt && !opts.link) { in opts_valid()
156 if (opts.unret && !opts.link) { in opts_valid()
163 opts.ibt || in opts_valid()
166 opts.orc || in opts_valid()
169 opts.sls || in opts_valid()
181 if (opts.dump_orc) in opts_valid()
251 if (opts.output || opts.dryrun) in print_args()
[all …]
/linux-6.15/drivers/usb/gadget/function/
H A Du_ether_configfs.h35 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 …]
H A Df_uac2.c854 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()
2028 memset(opts->name##s, 0x00, sizeof(opts->name##s)); \
2192 opts = kzalloc(sizeof(*opts), GFP_KERNEL); in afunc_alloc_inst()
[all …]
H A Df_uac1.c1157 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 …]
H A Duvc_configfs.c345 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()
3506 if (opts->refcnt) in uvcg_streaming_class_drop_link()
3681 opts->iad_index = 0; in uvc_func_drop_link()
3683 opts->vs0_index = 0; in uvc_func_drop_link()
3685 opts->vs1_index = 0; in uvc_func_drop_link()
[all …]
H A Df_uvc.c661 opts->streaming_interval = clamp(opts->streaming_interval, 1U, 16U); in uvc_function_bind()
663 opts->streaming_maxburst = min(opts->streaming_maxburst, 15U); in uvc_function_bind()
874 kfree(opts); in uvc_free_inst()
886 opts = kzalloc(sizeof(*opts), GFP_KERNEL); in uvc_alloc_inst()
887 if (!opts) in uvc_alloc_inst()
945 opts->fs_control = in uvc_alloc_inst()
955 opts->ss_control = in uvc_alloc_inst()
966 kfree(opts); in uvc_alloc_inst()
978 if (!opts->header) in uvc_free()
980 --opts->refcnt; in uvc_free()
[all …]
/linux-6.15/drivers/nvme/host/
H A Dfabrics.c731 opts->kato = 0; in nvmf_parse_options()
1081 if (!opts->kato) in nvmf_parse_options()
1094 if (opts->tls) { in nvmf_parse_options()
1159 struct nvmf_ctrl_options *opts = ctrl->opts; in nvmf_map_queues() local
1223 strcmp(opts->traddr, ctrl->opts->traddr) || in nvmf_ip_options_match()
1224 strcmp(opts->trsvcid, ctrl->opts->trsvcid)) in nvmf_ip_options_match()
1242 if (strcmp(opts->host_traddr, ctrl->opts->host_traddr)) in nvmf_ip_options_match()
1251 if (strcmp(opts->host_iface, ctrl->opts->host_iface)) in nvmf_ip_options_match()
1295 kfree(opts); in nvmf_free_options()
1315 opts = kzalloc(sizeof(*opts), GFP_KERNEL); in nvmf_create_ctrl()
[all …]
/linux-6.15/tools/testing/vsock/
H A Dvsock_test.c133 fd = vsock_stream_connect(opts->peer_cid, opts->peer_port); in test_stream_client_close_client()
168 fd = vsock_stream_connect(opts->peer_cid, opts->peer_port); in test_stream_server_close_client()
210 fds[i] = vsock_stream_connect(opts->peer_cid, opts->peer_port); in test_stream_multiconn_client()
262 fd = vsock_seqpacket_connect(opts->peer_cid, opts->peer_port); in test_msg_peek_client()
264 fd = vsock_stream_connect(opts->peer_cid, opts->peer_port); in test_msg_peek_client()
358 fd = vsock_seqpacket_connect(opts->peer_cid, opts->peer_port); in test_seqpacket_msg_bounds_client()
836 fd = vsock_stream_connect(opts->peer_cid, opts->peer_port); in test_stream_poll_rcvlowat_client()
980 fd = vsock_stream_connect(opts->peer_cid, opts->peer_port); in test_stream_virtio_skb_merge_client()
1102 fd = vsock_stream_connect(opts->peer_cid, opts->peer_port); in test_stream_shutwr_client()
1145 fd = vsock_stream_connect(opts->peer_cid, opts->peer_port); in test_stream_shutrd_client()
[all …]
/linux-6.15/tools/lib/bpf/
H A Dbpf.c573 count, opts); in bpf_map_lookup_and_delete_batch()
653 flags = OPTS_GET(opts, flags, 0); in bpf_prog_attach_opts()
821 if (!OPTS_ZEROED(opts, tcx)) in bpf_link_create()
837 if (!OPTS_ZEROED(opts, netkit)) in bpf_link_create()
841 if (!OPTS_ZEROED(opts, flags)) in bpf_link_create()
861 if (!OPTS_ZEROED(opts, sz)) in bpf_link_create()
903 if (OPTS_GET(opts, old_prog_fd, 0) && OPTS_GET(opts, old_map_fd, 0)) in bpf_link_update()
967 opts.query_flags = query_flags; in bpf_prog_query()
968 opts.prog_ids = prog_ids; in bpf_prog_query()
969 opts.prog_cnt = *prog_cnt; in bpf_prog_query()
[all …]
H A Dlibbpf_probes.c134 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-6.15/net/mptcp/
H A Doptions.c689 opts->ahmac = 0; in mptcp_established_options_add_addr()
692 opts->addr = addr; in mptcp_established_options_add_addr()
703 opts->addr.id, opts->ahmac, echo, ntohs(opts->addr.port)); in mptcp_established_options_add_addr()
839 opts->suboptions = 0; in mptcp_established_options()
921 subflow_req, opts->backup, opts->join_id, in mptcp_synack_options()
922 opts->thmac, opts->nonce); in mptcp_synack_options()
1502 opts->backup, opts->join_id); in mptcp_write_options()
1510 opts->backup, opts->join_id); in mptcp_write_options()
1533 if (opts->ahmac) { in mptcp_write_options()
1552 if (opts->ahmac) { in mptcp_write_options()
[all …]
/linux-6.15/net/netfilter/
H A Dnf_conntrack_bpf.c122 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 …]
H A Dnf_synproxy_core.c41 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-6.15/tools/testing/selftests/bpf/progs/
H A Dtest_bpf_nf_fail.c31 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-6.15/tools/perf/util/
H A Drecord.c103 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.15/tools/perf/arch/x86/util/
H A Dintel-bts.c116 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.15/drivers/net/ppp/
H A 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.15/net/xfrm/
H A Dxfrm_state_bpf.c71 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 …]
/linux-6.15/tools/perf/arch/arm64/util/
H A Darm-spe.c201 if (!opts->auxtrace_snapshot_size && !opts->auxtrace_mmap_pages) { in arm_spe_snapshot_resolve_auxtrace_defaults()
209 } else if (!opts->auxtrace_mmap_pages && !privileged && opts->mmap_pages == UINT_MAX) { in arm_spe_snapshot_resolve_auxtrace_defaults()
218 opts->auxtrace_snapshot_size = opts->auxtrace_mmap_pages * (size_t)page_size; in arm_spe_snapshot_resolve_auxtrace_defaults()
302 if (!opts->auxtrace_snapshot_size || !opts->auxtrace_mmap_pages) in arm_spe_setup_aux_buffer()
308 if (opts->auxtrace_snapshot_size > opts->auxtrace_mmap_pages * (size_t)page_size) { in arm_spe_setup_aux_buffer()
318 if (!opts->auxtrace_snapshot_size || !opts->auxtrace_mmap_pages) { in arm_spe_setup_aux_buffer()
339 if (opts->auxtrace_mmap_pages) { in arm_spe_setup_aux_buffer()
354 struct record_opts *opts) in arm_spe_setup_tracking_event() argument
404 opts->full_auxtrace = true; in arm_spe_recording_options()
416 if (!opts->full_auxtrace) in arm_spe_recording_options()
[all …]

12345678910>>...23