Home
last modified time | relevance | path

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

12345678910>>...14

/linux/drivers/usb/gadget/function/
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 …]
A Df_uac1.c1036 if (FUOUT_EN(opts) || FUIN_EN(opts)) in setup_descriptor()
1062 if (!opts->p_chmask && !opts->c_chmask) { in f_audio_validate_opts()
1071 } else if ((opts->p_ssize < 1) || (opts->p_ssize > 4)) { in f_audio_validate_opts()
1074 } else if ((opts->c_ssize < 1) || (opts->c_ssize > 4)) { in f_audio_validate_opts()
1085 if (opts->p_volume_max <= opts->p_volume_min) { in f_audio_validate_opts()
1088 } else if (opts->c_volume_max <= opts->c_volume_min) { in f_audio_validate_opts()
1099 if ((opts->p_volume_max - opts->p_volume_min) % opts->p_volume_res) { in f_audio_validate_opts()
1102 } else if ((opts->c_volume_max - opts->c_volume_min) % opts->c_volume_res) { in f_audio_validate_opts()
1472 kfree(opts); in f_audio_free_inst()
1479 opts = kzalloc(sizeof(*opts), GFP_KERNEL); in f_audio_alloc_inst()
[all …]
A Duvc_configfs.c297 struct f_uvc_opts *opts; in uvcg_default_processing_bm_controls_show() local
310 mutex_lock(&opts->lock); in uvcg_default_processing_bm_controls_show()
408 struct f_uvc_opts *opts; in uvcg_default_camera_bm_controls_show() local
422 mutex_lock(&opts->lock); in uvcg_default_camera_bm_controls_show()
593 struct f_uvc_opts *opts; in uvcg_control_class_allow_link() local
608 mutex_lock(&opts->lock); in uvcg_control_class_allow_link()
635 struct f_uvc_opts *opts; in uvcg_control_class_drop_link() local
649 mutex_lock(&opts->lock); in uvcg_control_class_drop_link()
722 struct f_uvc_opts *opts; in uvcg_default_control_b_interface_number_show() local
730 mutex_lock(&opts->lock); in uvcg_default_control_b_interface_number_show()
[all …]
A Df_uac2.c781 if (FUOUT_EN(opts) || FUIN_EN(opts)) in setup_headers()
900 if (!opts->p_chmask && !opts->c_chmask) { in afunc_validate_opts()
909 } else if ((opts->p_ssize < 1) || (opts->p_ssize > 4)) { in afunc_validate_opts()
912 } else if ((opts->c_ssize < 1) || (opts->c_ssize > 4)) { in afunc_validate_opts()
923 if (opts->p_volume_max <= opts->p_volume_min) { in afunc_validate_opts()
926 } else if (opts->c_volume_max <= opts->c_volume_min) { in afunc_validate_opts()
937 if ((opts->p_volume_max - opts->p_volume_min) % opts->p_volume_res) { in afunc_validate_opts()
940 } else if ((opts->c_volume_max - opts->c_volume_min) % opts->c_volume_res) { in afunc_validate_opts()
1898 kfree(opts); in afunc_free_inst()
1905 opts = kzalloc(sizeof(*opts), GFP_KERNEL); in afunc_alloc_inst()
[all …]
A Df_uvc.c603 opts->streaming_interval = clamp(opts->streaming_interval, 1U, 16U); in uvc_function_bind()
605 opts->streaming_maxburst = min(opts->streaming_maxburst, 15U); in uvc_function_bind()
610 opts->streaming_maxpacket = roundup(opts->streaming_maxpacket, 1024); in uvc_function_bind()
781 kfree(opts); in uvc_free_inst()
794 opts = kzalloc(sizeof(*opts), GFP_KERNEL); in uvc_alloc_inst()
795 if (!opts) in uvc_alloc_inst()
854 opts->fs_control = in uvc_alloc_inst()
864 opts->ss_control = in uvc_alloc_inst()
872 kfree(opts); in uvc_alloc_inst()
884 --opts->refcnt; in uvc_free()
[all …]
A Df_uac1_legacy.c850 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 …]
A Df_sourcesink.c456 opts->refcnt--; in sourcesink_free_func()
910 if (opts->refcnt) { in f_ss_opts_pattern_store()
924 opts->pattern = num; in f_ss_opts_pattern_store()
953 if (opts->refcnt) { in f_ss_opts_isoc_interval_store()
996 if (opts->refcnt) { in f_ss_opts_isoc_maxpacket_store()
1039 if (opts->refcnt) { in f_ss_opts_isoc_mult_store()
1082 if (opts->refcnt) { in f_ss_opts_isoc_maxburst_store()
1125 if (opts->refcnt) { in f_ss_opts_bulk_buflen_store()
1163 if (opts->refcnt) { in f_ss_opts_bulk_qlen_store()
1201 if (opts->refcnt) { in f_ss_opts_iso_qlen_store()
[all …]
A Df_midi.c1149 if (opts->id) { in f_midi_opts_id_show()
1180 kfree(opts->id); in f_midi_opts_id_store()
1181 opts->id = c; in f_midi_opts_id_store()
1222 kfree(opts->id); in f_midi_free_inst()
1223 kfree(opts); in f_midi_free_inst()
1231 opts = kzalloc(sizeof(*opts), GFP_KERNEL); in f_midi_alloc_inst()
1232 if (!opts) in f_midi_alloc_inst()
1240 opts->qlen = 32; in f_midi_alloc_inst()
1243 opts->refcnt = 1; in f_midi_alloc_inst()
1306 if (opts->in_ports > MAX_PORTS || opts->out_ports > MAX_PORTS) { in f_midi_alloc()
[all …]
/linux/drivers/nvme/host/
A Dfabrics.c569 opts->kato = 0; in nvmf_parse_options()
624 opts->traddr = p; in nvmf_parse_options()
707 if (opts->host) { in nvmf_parse_options()
847 if (!opts->kato) in nvmf_parse_options()
860 if (!opts->host) { in nvmf_parse_options()
896 strcmp(opts->traddr, ctrl->opts->traddr) || in nvmf_ip_options_match()
897 strcmp(opts->trsvcid, ctrl->opts->trsvcid)) in nvmf_ip_options_match()
911 if (strcmp(opts->host_traddr, ctrl->opts->host_traddr)) in nvmf_ip_options_match()
951 kfree(opts); in nvmf_free_options()
970 opts = kzalloc(sizeof(*opts), GFP_KERNEL); in nvmf_create_ctrl()
[all …]
/linux/net/mptcp/
A Doptions.c570 if (opts->csum_reqd) in mptcp_established_options_dss()
682 opts->ahmac = 0; in mptcp_established_options_add_addr()
692 opts->addr.id, opts->ahmac, echo, ntohs(opts->addr.port)); in mptcp_established_options_add_addr()
803 opts->suboptions = 0; in mptcp_established_options()
880 subflow_req, opts->backup, opts->join_id, in mptcp_synack_options()
881 opts->thmac, opts->nonce); in mptcp_synack_options()
1376 opts->backup, opts->join_id); in mptcp_write_options()
1384 opts->backup, opts->join_id); in mptcp_write_options()
1406 if (opts->ahmac) { in mptcp_write_options()
1425 if (opts->ahmac) { in mptcp_write_options()
[all …]
/linux/tools/testing/selftests/bpf/prog_tests/
A Dbpf_cookie.c18 opts.bpf_cookie = 0x1; in kprobe_subtest()
19 opts.retprobe = false; in kprobe_subtest()
25 opts.bpf_cookie = 0x2; in kprobe_subtest()
26 opts.retprobe = false; in kprobe_subtest()
33 opts.bpf_cookie = 0x10; in kprobe_subtest()
34 opts.retprobe = true; in kprobe_subtest()
40 opts.bpf_cookie = 0x20; in kprobe_subtest()
41 opts.retprobe = true; in kprobe_subtest()
73 opts.retprobe = false; in uprobe_subtest()
88 opts.retprobe = true; in uprobe_subtest()
[all …]
A Dxdp_context_test_run.c21 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 …]
/linux/tools/perf/
A Dbuiltin-record.c846 struct record_opts *opts = &rec->opts; in record__mmap_evlist() local
857 opts->nr_cblocks, opts->affinity, in record__mmap_evlist()
858 opts->mmap_flush, opts->comp_level) < 0) { in record__mmap_evlist()
890 struct record_opts *opts = &rec->opts; in record__open() local
1391 struct record_opts *opts = &rec->opts; in record__synthesize() local
1512 struct record_opts *opts = &rec->opts; in record__setup_sb_evlist() local
1628 struct record_opts *opts = &rec->opts; in __cmd_record() local
2276 return evlist__parse_control(str, &opts->ctl_fd, &opts->ctl_fd_ack, &opts->ctl_fd_close); in parse_control_option()
2434 .opts = {
2892 rec->opts.ignore_missing_thread = rec->opts.target.uid != UINT_MAX || rec->opts.target.pid; in cmd_record()
[all …]
/linux/net/netfilter/
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()
755 swap(opts.tsval, opts.tsecr); in ipv4_synproxy_hook()
761 swap(opts.tsval, opts.tsecr); in ipv4_synproxy_hook()
1178 swap(opts.tsval, opts.tsecr); in ipv6_synproxy_hook()
[all …]
/linux/tools/perf/arch/x86/util/
A Dintel-bts.c116 if (opts->auxtrace_sample_mode) { in intel_bts_recording_options()
133 opts->full_auxtrace = true; in intel_bts_recording_options()
137 if (opts->auxtrace_snapshot_mode && !opts->full_auxtrace) { in intel_bts_recording_options()
142 if (!opts->full_auxtrace) in intel_bts_recording_options()
152 if (!opts->auxtrace_snapshot_size && !opts->auxtrace_mmap_pages) { in intel_bts_recording_options()
165 opts->auxtrace_snapshot_size = in intel_bts_recording_options()
180 if (!opts->auxtrace_snapshot_size || !opts->auxtrace_mmap_pages) { in intel_bts_recording_options()
189 if (opts->full_auxtrace && !opts->auxtrace_mmap_pages) { in intel_bts_recording_options()
200 if (opts->auxtrace_mmap_pages) { in intel_bts_recording_options()
231 if (opts->full_auxtrace) { in intel_bts_recording_options()
[all …]
A Dintel-pt.c650 if (opts->auxtrace_snapshot_mode && !opts->full_auxtrace) { in intel_pt_recording_options()
655 if (opts->auxtrace_snapshot_mode && opts->auxtrace_sample_mode) { in intel_pt_recording_options()
660 if (opts->use_clockid) { in intel_pt_recording_options()
668 if (!opts->full_auxtrace) in intel_pt_recording_options()
682 if (!opts->auxtrace_snapshot_size && !opts->auxtrace_mmap_pages) { in intel_pt_recording_options()
710 if (!opts->auxtrace_snapshot_size || !opts->auxtrace_mmap_pages) { in intel_pt_recording_options()
752 if (opts->full_auxtrace && !opts->auxtrace_mmap_pages) { in intel_pt_recording_options()
767 if (opts->auxtrace_snapshot_mode || opts->auxtrace_sample_mode) in intel_pt_recording_options()
779 if (!opts->auxtrace_snapshot_mode && !opts->auxtrace_sample_mode) { in intel_pt_recording_options()
848 opts->text_poke = true; in intel_pt_recording_options()
[all …]
/linux/tools/perf/util/
A Drecord.c106 if (opts->group) in evlist__config()
110 opts->no_inherit = true; in evlist__config()
169 opts->default_interval = opts->user_interval; in record_opts__config_freq()
171 opts->freq = opts->user_freq; in record_opts__config_freq()
177 opts->freq = 0; in record_opts__config_freq()
178 else if (opts->freq) { in record_opts__config_freq()
179 opts->default_interval = opts->freq; in record_opts__config_freq()
192 if (opts->strict_freq) { in record_opts__config_freq()
205 opts->freq = max_rate; in record_opts__config_freq()
217 opts->freq = max_rate; in record_opts__config_freq()
[all …]
/linux/tools/perf/arch/arm64/util/
A Darm-spe.c108 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()
163 opts->full_auxtrace = true; in arm_spe_recording_options()
167 if (!opts->full_auxtrace) in arm_spe_recording_options()
178 if (!opts->auxtrace_snapshot_size || !opts->auxtrace_mmap_pages) in arm_spe_recording_options()
184 if (opts->auxtrace_snapshot_size > opts->auxtrace_mmap_pages * (size_t)page_size) { in arm_spe_recording_options()
194 if (!opts->auxtrace_snapshot_size || !opts->auxtrace_mmap_pages) { in arm_spe_recording_options()
212 if (opts->auxtrace_mmap_pages) { in arm_spe_recording_options()
[all …]
/linux/drivers/net/ppp/
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/tools/testing/selftests/netfilter/
A 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()
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/tools/testing/vsock/
A Dvsock_test.c33 .svm_cid = opts->peer_cid, in test_stream_connection_reset()
69 .svm_cid = opts->peer_cid, in test_stream_bind_only_client()
512 struct test_opts opts = { in main() local
531 opts.mode = TEST_MODE_CLIENT; in main()
533 opts.mode = TEST_MODE_SERVER; in main()
540 opts.peer_cid = parse_cid(optarg); in main()
560 if (opts.mode == TEST_MODE_UNSET) in main()
562 if (opts.peer_cid == VMADDR_CID_ANY) in main()
566 if (opts.mode != TEST_MODE_SERVER) in main()
572 opts.mode == TEST_MODE_SERVER); in main()
[all …]
/linux/tools/lib/subcmd/
A Dparse-options.c703 if (*opts->help) in print_option_help()
713 if (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()
744 if (opts->argh) { in print_option_help()
783 opts->build_opt); in print_option_help()
889 opts = ordered; in usage_with_options_internal()
891 for ( ; opts->type != OPTION_END; opts++) { in usage_with_options_internal()
947 for ( ; opts->type != OPTION_END; opts++) { in parse_options_usage()
996 for (; opts->type != OPTION_END; opts++) { in find_option()
[all …]
/linux/fs/fat/
A Dinode.c985 if (opts->quiet) in fat_show_options()
997 if (opts->utf8) in fat_show_options()
1003 if (opts->rodir) in fat_show_options()
1006 if (opts->flush) in fat_show_options()
1139 opts->fs_fmask = opts->fs_dmask = current_umask(); in parse_options()
1151 opts->quiet = opts->showexec = opts->sys_immutable = opts->dotsOK = 0; in parse_options()
1154 opts->usefree = opts->nocase = 0; in parse_options()
1156 opts->nfs = 0; in parse_options()
1228 opts->fs_fmask = opts->fs_dmask = option; in parse_options()
1372 opts->allow_utime = ~opts->fs_dmask & (S_IWGRP | S_IWOTH); in parse_options()
[all …]
/linux/fs/devpts/
A Dinode.c252 opts->setuid = 0; in parse_mount_options()
253 opts->setgid = 0; in parse_mount_options()
264 opts->reserve = in parse_mount_options()
283 opts->uid = uid; in parse_mount_options()
284 opts->setuid = 1; in parse_mount_options()
292 opts->gid = gid; in parse_mount_options()
293 opts->setgid = 1; in parse_mount_options()
408 if (opts->setuid) in devpts_show_options()
411 if (opts->setgid) in devpts_show_options()
579 inode->i_uid = opts->setuid ? opts->uid : current_fsuid(); in devpts_pty_new()
[all …]
/linux/tools/lib/bpf/
A Dskel_internal.h69 opts->data_sz, 1, 0); in bpf_load_and_run()
71 opts->errstr = "failed to create loader map"; in bpf_load_and_run()
78 opts->errstr = "failed to update loader map"; in bpf_load_and_run()
85 attr.insns = (long) opts->insns; in bpf_load_and_run()
90 attr.log_level = opts->ctx->log_level; in bpf_load_and_run()
91 attr.log_size = opts->ctx->log_size; in bpf_load_and_run()
92 attr.log_buf = opts->ctx->log_buf; in bpf_load_and_run()
96 opts->errstr = "failed to load loader prog"; in bpf_load_and_run()
103 attr.test.ctx_in = (long) opts->ctx; in bpf_load_and_run()
104 attr.test.ctx_size_in = opts->ctx->sz; in bpf_load_and_run()
[all …]

Completed in 92 milliseconds

12345678910>>...14