/openbmc/qemu/tests/qemu-iotests/ |
H A D | 245 | 103 opts = copy.deepcopy(opts) 110 subdict = opts 138 opts = hd_opts(0) 143 self.reopen(opts) 180 opts = hd_opts(1) 392 opts = [] 483 opts = [] 766 opts = opts['file'] 957 opts['backing'] = opts['backing']['backing'] 1139 opts = [ [all …]
|
/openbmc/qemu/tests/unit/ |
H A D | test-qemu-opts.c | 132 QemuOpts *opts; in test_qemu_opts_create() local 162 QemuOpts *opts; in test_qemu_opt_get() local 205 QemuOpts *opts; in test_qemu_opt_get_bool() local 248 QemuOpts *opts; in test_qemu_opt_get_number() local 291 QemuOpts *opts; in test_qemu_opt_get_size() local 347 QemuOpts *opts; in test_qemu_opt_unset() local 379 QemuOpts *opts; in test_qemu_opts_reset() local 431 QemuOpts *opts; in test_opts_parse() local 533 QemuOpts *opts; in test_opts_parse_bool() local 551 QemuOpts *opts; in test_opts_parse_number() local [all …]
|
/openbmc/linux/tools/testing/selftests/bpf/prog_tests/ |
H 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 …]
|
H 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 …]
|
H A D | kprobe_multi_test.c | 114 test_link_api(&opts); in test_link_api_addrs() 152 if (opts) { in test_attach_api() 209 opts.syms = syms; in test_attach_api_syms() 249 opts.syms = syms; in test_attach_api_fails() 263 opts.syms = NULL; in test_attach_api_fails() 276 opts.addrs = NULL; in test_attach_api_fails() 277 opts.syms = NULL; in test_attach_api_fails() 290 opts.addrs = NULL; in test_attach_api_fails() 291 opts.syms = NULL; in test_attach_api_fails() 292 opts.cnt = 0; in test_attach_api_fails() [all …]
|
H 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 …]
|
H 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 …]
|
H 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 …]
|
H A D | uprobe_multi_test.c | 163 opts->retprobe = false; in __test_attach_api() 169 opts->retprobe = true; in __test_attach_api() 175 opts->retprobe = false; in __test_attach_api() 181 opts->retprobe = true; in __test_attach_api() 187 opts->retprobe = false; in __test_attach_api() 232 opts.syms = syms; in test_attach_api_syms() 233 opts.cnt = ARRAY_SIZE(syms); in test_attach_api_syms() 265 opts.kprobe_multi.flags = 0; in __test_link_api() 277 opts.kprobe_multi.flags = 0; in __test_link_api() 289 opts.kprobe_multi.flags = 0; in __test_link_api() [all …]
|
/openbmc/linux/tools/objtool/ |
H 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 …]
|
/openbmc/linux/drivers/usb/gadget/function/ |
H 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 …]
|
H 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 …]
|
H 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 …]
|
/openbmc/qemu/util/ |
H A D | qemu-option.c | 276 iter->opts = opts; in qemu_opt_iter_init() 488 opt->opts = opts; in opt_create() 540 opt->opts = opts; in qemu_opt_set_bool() 563 opt->opts = opts; in qemu_opt_set_number() 601 if (opts->id && id && !strcmp(opts->id, id)) { in qemu_opts_find() 637 opts = g_malloc0(sizeof(*opts)); in qemu_opts_create() 643 return opts; in qemu_opts_create() 685 QTAILQ_REMOVE(&opts->list->head, opts, next); in qemu_opts_del() 904 return opts; in opts_parse() 938 if (!opts) { in qemu_opts_parse_noisily() [all …]
|
/openbmc/linux/drivers/nvme/host/ |
H A D | fabrics.c | 670 opts->kato = 0; in nvmf_parse_options() 974 if (!opts->kato) in nvmf_parse_options() 1002 if (opts->nr_write_queues && opts->nr_io_queues < nr_io_queues) { in nvmf_set_io_queues() 1035 struct nvmf_ctrl_options *opts = ctrl->opts; in nvmf_map_queues() local 1099 strcmp(opts->traddr, ctrl->opts->traddr) || in nvmf_ip_options_match() 1100 strcmp(opts->trsvcid, ctrl->opts->trsvcid)) in nvmf_ip_options_match() 1118 if (strcmp(opts->host_traddr, ctrl->opts->host_traddr)) in nvmf_ip_options_match() 1127 if (strcmp(opts->host_iface, ctrl->opts->host_iface)) in nvmf_ip_options_match() 1169 kfree(opts); in nvmf_free_options() 1189 opts = kzalloc(sizeof(*opts), GFP_KERNEL); in nvmf_create_ctrl() [all …]
|
/openbmc/linux/tools/lib/bpf/ |
H A D | bpf.c | 565 count, opts); in bpf_map_lookup_and_delete_batch() 645 flags = OPTS_GET(opts, flags, 0); in bpf_prog_attach_opts() 683 flags = OPTS_GET(opts, flags, 0); in bpf_prog_detach_opts() 810 if (!OPTS_ZEROED(opts, tcx)) in bpf_link_create() 814 if (!OPTS_ZEROED(opts, flags)) in bpf_link_create() 834 if (!OPTS_ZEROED(opts, sz)) in bpf_link_create() 876 if (OPTS_GET(opts, old_prog_fd, 0) && OPTS_GET(opts, old_map_fd, 0)) in bpf_link_update() 940 opts.query_flags = query_flags; in bpf_prog_query() 941 opts.prog_ids = prog_ids; in bpf_prog_query() 942 opts.prog_cnt = *prog_cnt; in bpf_prog_query() [all …]
|
H 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() 370 opts.btf_fd = btf_fd; in probe_map_create() 396 if (opts) in libbpf_probe_bpf_map_type() 404 const void *opts) in libbpf_probe_bpf_helper() argument [all …]
|
/openbmc/linux/net/mptcp/ |
H 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() 1493 opts->backup, opts->join_id); in mptcp_write_options() 1501 opts->backup, opts->join_id); in mptcp_write_options() 1524 if (opts->ahmac) { in mptcp_write_options() 1543 if (opts->ahmac) { in mptcp_write_options() [all …]
|
/openbmc/qemu/include/qemu/ |
H A D | option.h | 73 char *qemu_opt_get_del(QemuOpts *opts, const char *name); 85 bool qemu_opt_has_help_opt(QemuOpts *opts); 86 QemuOpt *qemu_opt_find(QemuOpts *opts, const char *name); 95 int qemu_opt_unset(QemuOpts *opts, const char *name); 109 QemuOpts *opts; member 121 void qemu_opts_loc_restore(QemuOpts *opts); 122 const char *qemu_opts_id(QemuOpts *opts); 123 void qemu_opts_set_id(QemuOpts *opts, char *id); 124 void qemu_opts_del(QemuOpts *opts); 136 QDict *qemu_opts_to_qdict(QemuOpts *opts, QDict *qdict); [all …]
|
/openbmc/linux/tools/testing/selftests/bpf/progs/ |
H 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 …]
|
/openbmc/linux/tools/perf/util/ |
H 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 …]
|
/openbmc/linux/tools/perf/arch/arm64/util/ |
H A D | arm-spe.c | 85 if (!opts->auxtrace_snapshot_size && !opts->auxtrace_mmap_pages) { in arm_spe_snapshot_resolve_auxtrace_defaults() 93 } else if (!opts->auxtrace_mmap_pages && !privileged && opts->mmap_pages == UINT_MAX) { in arm_spe_snapshot_resolve_auxtrace_defaults() 102 opts->auxtrace_snapshot_size = opts->auxtrace_mmap_pages * (size_t)page_size; in arm_spe_snapshot_resolve_auxtrace_defaults() 108 if (!opts->auxtrace_mmap_pages) { in arm_spe_snapshot_resolve_auxtrace_defaults() 142 opts->full_auxtrace = true; in arm_spe_recording_options() 146 if (!opts->full_auxtrace) in arm_spe_recording_options() 157 if (!opts->auxtrace_snapshot_size || !opts->auxtrace_mmap_pages) in arm_spe_recording_options() 163 if (opts->auxtrace_snapshot_size > opts->auxtrace_mmap_pages * (size_t)page_size) { in arm_spe_recording_options() 173 if (!opts->auxtrace_snapshot_size || !opts->auxtrace_mmap_pages) { in arm_spe_recording_options() 191 if (opts->auxtrace_mmap_pages) { in arm_spe_recording_options() [all …]
|
/openbmc/linux/drivers/net/ppp/ |
H 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 …]
|
/openbmc/linux/net/netfilter/ |
H 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 …]
|
/openbmc/linux/tools/perf/arch/x86/util/ |
H 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 …]
|