/openbmc/openbmc/meta-openembedded/meta-oe/recipes-shells/zsh/zsh/ |
H A D | CVE-2021-45444_1.patch | 39 + int ops = opts[PROMPTSUBST], opb = opts[PROMPTBANG]; 40 + int opp = opts[PROMPTPERCENT]; 42 + opts[PROMPTPERCENT] = 1; 43 + opts[PROMPTSUBST] = opts[PROMPTBANG] = 0; 53 + opts[PROMPTSUBST] = ops; 54 + opts[PROMPTBANG] = opb; 55 + opts[PROMPTPERCENT] = opp;
|
/openbmc/linux/drivers/usb/gadget/legacy/ |
H A D | mass_storage.c | 141 struct fsg_opts *opts; in msg_bind() local 150 opts = fsg_opts_from_func_inst(fi_msg); in msg_bind() 152 opts->no_configfs = true; in msg_bind() 153 status = fsg_common_set_num_buffers(opts->common, fsg_num_buffers); in msg_bind() 157 status = fsg_common_set_cdev(opts->common, cdev, config.can_stall); in msg_bind() 161 fsg_common_set_sysfs(opts->common, true); in msg_bind() 162 status = fsg_common_create_luns(opts->common, &config); in msg_bind() 166 fsg_common_set_inquiry_string(opts->common, config.vendor_name, in msg_bind() 200 fsg_common_remove_luns(opts->common); in msg_bind() 202 fsg_common_free_buffers(opts->common); in msg_bind()
|
H A D | acm_ms.c | 155 struct fsg_opts *opts; in acm_ms_bind() local 171 opts = fsg_opts_from_func_inst(fi_msg); in acm_ms_bind() 173 opts->no_configfs = true; in acm_ms_bind() 174 status = fsg_common_set_num_buffers(opts->common, fsg_num_buffers); in acm_ms_bind() 178 status = fsg_common_set_cdev(opts->common, cdev, config.can_stall); in acm_ms_bind() 182 fsg_common_set_sysfs(opts->common, true); in acm_ms_bind() 183 status = fsg_common_create_luns(opts->common, &config); in acm_ms_bind() 187 fsg_common_set_inquiry_string(opts->common, config.vendor_name, in acm_ms_bind() 227 fsg_common_remove_luns(opts->common); in acm_ms_bind() 229 fsg_common_free_buffers(opts->common); in acm_ms_bind()
|
/openbmc/linux/drivers/crypto/caam/ |
H A D | qi.c | 182 struct qm_mcc_initfq opts; in create_caam_req_fq() local 198 memset(&opts, 0, sizeof(opts)); in create_caam_req_fq() 206 opts.fqd.cgid = qipriv.cgr.cgrid; in create_caam_req_fq() 620 struct qm_mcc_initfq opts; in alloc_rsp_fq_cpu() local 638 memset(&opts, 0, sizeof(opts)); in alloc_rsp_fq_cpu() 645 opts.fqd.cgid = qipriv.cgr.cgrid; in alloc_rsp_fq_cpu() 648 qm_fqd_set_stashing(&opts.fqd, 0, 1, 1); in alloc_rsp_fq_cpu() 666 struct qm_mcc_initcgr opts; in init_cgr() local 677 memset(&opts, 0, sizeof(opts)); in init_cgr() 680 opts.cgr.cscn_en = QM_CGR_EN; in init_cgr() [all …]
|
/openbmc/qemu/util/ |
H A D | qemu-config.c | 45 QemuOpts *opts; in qemu_find_opts_singleton() local 49 opts = qemu_opts_find(list, NULL); in qemu_find_opts_singleton() 50 if (!opts) { in qemu_find_opts_singleton() 51 opts = qemu_opts_create(list, NULL, 0, &error_abort); in qemu_find_opts_singleton() 53 return opts; in qemu_find_opts_singleton() 210 prefix = g_strdup_printf("%s.", opts->name); in config_parse_qdict_section() 218 subopts = qemu_opts_create(opts, NULL, 0, errp); in config_parse_qdict_section() 230 qdict_first(subqdict)->key, opts->name); in config_parse_qdict_section() 245 qdict_first(subqdict)->key, opts->name); in config_parse_qdict_section() 255 "keys", opts->name, i); in config_parse_qdict_section() [all …]
|
/openbmc/qemu/tests/qtest/ |
H A D | virtio-serial-test.c | 29 QOSGraphTestOptions opts = { }; in register_virtio_serial_test() local 31 opts.edge.before_cmd_line = "-device virtconsole,bus=vser0.0"; in register_virtio_serial_test() 32 qos_add_test("console-nop", "virtio-serial", virtio_serial_nop, &opts); in register_virtio_serial_test() 34 opts.edge.before_cmd_line = "-device virtserialport,bus=vser0.0"; in register_virtio_serial_test() 35 qos_add_test("serialport-nop", "virtio-serial", virtio_serial_nop, &opts); in register_virtio_serial_test()
|
/openbmc/linux/fs/debugfs/ |
H A D | inode.c | 85 unsigned int opts; member 115 opts->opts = 0; in debugfs_parse_options() 130 opts->uid = uid; in debugfs_parse_options() 138 opts->gid = gid; in debugfs_parse_options() 151 opts->opts |= BIT(token); in debugfs_parse_options() 168 if (!remount || opts->opts & BIT(Opt_mode)) { in _debugfs_apply_options() 170 inode->i_mode |= opts->mode; in _debugfs_apply_options() 173 if (!remount || opts->opts & BIT(Opt_uid)) in _debugfs_apply_options() 174 inode->i_uid = opts->uid; in _debugfs_apply_options() 176 if (!remount || opts->opts & BIT(Opt_gid)) in _debugfs_apply_options() [all …]
|
/openbmc/openbmc/meta-openembedded/meta-webserver/recipes-webadmin/webmin/files/ |
H A D | nfs-export.patch | 29 delete($opts{'no_subtree_check'}); 30 delete($opts{'subtree_check'}); 31 $opts{'no_subtree_check'} = "" if ($in{'no_subtree_check'}); 33 + $opts{'no_subtree_check'} = ""; 35 + $opts{'subtree_check'} = ""; 38 delete($opts{'nohide'}); 39 delete($opts{'hide'});
|
/openbmc/linux/tools/perf/arch/s390/util/ |
H A D | auxtrace.c | 49 struct record_opts *opts) in cpumsf_recording_options() argument 54 opts->full_auxtrace = true; in cpumsf_recording_options() 64 if (!opts->auxtrace_mmap_pages) { in cpumsf_recording_options() 65 if (opts->user_freq != UINT_MAX) in cpumsf_recording_options() 66 factor = (opts->user_freq + DEFAULT_FREQ in cpumsf_recording_options() 69 opts->auxtrace_mmap_pages = roundup_pow_of_two(pages); in cpumsf_recording_options() 77 struct record_opts *opts __maybe_unused, in cpumsf_parse_snapshot_options()
|
/openbmc/linux/tools/testing/selftests/bpf/map_tests/ |
H A D | map_percpu_stats.c | 153 struct upsert_opts *opts = arg; in patch_map_thread() local 158 for (i = 0; i < opts->n; i++) { in patch_map_thread() 159 if (opts->map_type == BPF_MAP_TYPE_HASH_OF_MAPS) in patch_map_thread() 267 struct upsert_opts opts = { in __test() local 273 opts.map_type = info.type; in __test() 274 opts.n = info.max_entries; in __test() 279 if (opts.map_type != BPF_MAP_TYPE_HASH_OF_MAPS) in __test() 280 opts.n -= 512; in __test() 282 opts.n /= 2; in __test() 289 upsert_elements(&opts); in __test() [all …]
|
/openbmc/linux/drivers/hid/bpf/entrypoints/ |
H A D | entrypoints.lskel.h | 74 struct bpf_load_and_run_opts opts = {}; in entrypoints_bpf__load() local 77 opts.ctx = (struct bpf_loader_ctx *)skel; in entrypoints_bpf__load() 78 opts.data_sz = 2856; in entrypoints_bpf__load() 79 opts.data = (void *)"\ in entrypoints_bpf__load() 174 opts.insns_sz = 1192; in entrypoints_bpf__load() 175 opts.insns = (void *)"\ in entrypoints_bpf__load() 216 err = bpf_load_and_run(&opts); in entrypoints_bpf__load()
|
/openbmc/linux/drivers/acpi/ |
H A D | spcr.c | 87 static char opts[64]; in acpi_parse_spcr() local 210 snprintf(opts, sizeof(opts), "%s,%s,0x%llx", uart, iotype, in acpi_parse_spcr() 213 snprintf(opts, sizeof(opts), "%s,%s,0x%llx,%d", uart, iotype, in acpi_parse_spcr() 217 pr_info("console: %s\n", opts); in acpi_parse_spcr() 220 setup_earlycon(opts); in acpi_parse_spcr() 223 err = add_preferred_console(uart, 0, opts + strlen(uart) + 1); in acpi_parse_spcr()
|
/openbmc/qemu/system/ |
H A D | tpm.c | 87 static int tpm_init_tpmdev(void *dummy, QemuOpts *opts, Error **errp) in tpm_init_tpmdev() argument 107 id = qemu_opts_id(opts); in tpm_init_tpmdev() 113 value = qemu_opt_get(opts, "type"); in tpm_init_tpmdev() 130 if (!qemu_opts_validate(opts, be->opts, &local_err)) { in tpm_init_tpmdev() 135 drv = be->create(opts); in tpm_init_tpmdev() 180 QemuOpts *opts; in tpm_config_parse() local 186 opts = qemu_opts_parse_noisily(opts_list, optstr, true); in tpm_config_parse() 187 if (!opts) { in tpm_config_parse()
|
H A D | qdev-monitor.c | 280 int qdev_device_help(QemuOpts *opts) in qdev_device_help() argument 708 dev->opts = qdict_clone_shallow(opts); in qdev_device_add_from_qdict() 710 qdict_del(dev->opts, "bus"); in qdev_device_add_from_qdict() 711 qdict_del(dev->opts, "id"); in qdev_device_add_from_qdict() 740 qemu_opts_del(opts); in qdev_device_add() 852 QemuOpts *opts; in qmp_device_add() local 856 if (!opts) { in qmp_device_add() 860 qemu_opts_del(opts); in qmp_device_add() 876 qemu_opts_del(opts); in qmp_device_add() 1120 QemuOpts *opts; in qemu_global_option() local [all …]
|
/openbmc/qemu/ui/ |
H A D | ui-qmp-cmds.c | 32 void qmp_set_password(SetPasswordOptions *opts, Error **errp) in qmp_set_password() argument 36 if (opts->protocol == DISPLAY_PROTOCOL_SPICE) { in qmp_set_password() 40 rc = qemu_spice.set_passwd(opts->password, in qmp_set_password() 41 opts->connected == SET_PASSWORD_ACTION_FAIL, in qmp_set_password() 44 assert(opts->protocol == DISPLAY_PROTOCOL_VNC); in qmp_set_password() 45 if (opts->connected != SET_PASSWORD_ACTION_KEEP) { in qmp_set_password() 55 rc = vnc_display_password(opts->u.vnc.display, opts->password); in qmp_set_password() 67 const char *whenstr = opts->time; in qmp_expire_password() 92 if (opts->protocol == DISPLAY_PROTOCOL_SPICE) { in qmp_expire_password() 98 assert(opts->protocol == DISPLAY_PROTOCOL_VNC); in qmp_expire_password() [all …]
|
/openbmc/linux/drivers/usb/gadget/function/ |
H A D | f_obex.c | 390 usb_put_function_instance(&opts->func_inst); in obex_attr_release() 417 struct f_serial_opts *opts; in obex_free_inst() local 420 gserial_free_line(opts->port_num); in obex_free_inst() 421 kfree(opts); in obex_free_inst() 426 struct f_serial_opts *opts; in obex_alloc_inst() local 429 opts = kzalloc(sizeof(*opts), GFP_KERNEL); in obex_alloc_inst() 430 if (!opts) in obex_alloc_inst() 436 kfree(opts); in obex_alloc_inst() 442 return &opts->func_inst; in obex_alloc_inst() 461 struct f_serial_opts *opts; in obex_alloc() local [all …]
|
H A D | f_ecm.c | 844 struct f_ecm_opts *opts; in ecm_free_inst() local 847 if (opts->bound) in ecm_free_inst() 850 free_netdev(opts->net); in ecm_free_inst() 851 kfree(opts); in ecm_free_inst() 856 struct f_ecm_opts *opts; in ecm_alloc_inst() local 858 opts = kzalloc(sizeof(*opts), GFP_KERNEL); in ecm_alloc_inst() 859 if (!opts) in ecm_alloc_inst() 861 mutex_init(&opts->lock); in ecm_alloc_inst() 866 kfree(opts); in ecm_alloc_inst() 904 opts->refcnt--; in ecm_free() [all …]
|
/openbmc/linux/tools/lib/bpf/ |
H A D | libbpf.h | 628 const struct bpf_ksyscall_opts *opts); 693 const struct bpf_uprobe_opts *opts); 724 const struct bpf_usdt_opts *opts); 801 const struct bpf_tcx_opts *opts); 817 const struct bpf_iter_attach_opts *opts); 1224 struct bpf_tc_opts *opts); 1226 const struct bpf_tc_opts *opts); 1228 struct bpf_tc_opts *opts); 1244 const struct ring_buffer_opts *opts); 1394 const struct perf_buffer_opts *opts); [all …]
|
H A D | libbpf_internal.h | 311 #define OPTS_VALID(opts, type) \ argument 312 (!(opts) || libbpf_validate_opts((const char *)opts, \ 315 (opts)->sz, #type)) 316 #define OPTS_HAS(opts, field) \ argument 317 ((opts) && opts->sz >= offsetofend(typeof(*(opts)), field)) 319 (OPTS_HAS(opts, field) ? (opts)->field : fallback_value) 320 #define OPTS_SET(opts, field, value) \ argument 322 if (OPTS_HAS(opts, field)) \ 323 (opts)->field = value; \ 329 !(opts) || libbpf_is_mem_zeroed((const void *)opts + __off, \ [all …]
|
H A D | skel_internal.h | 318 opts->errstr = "failed to create loader map"; in bpf_load_and_run() 323 err = skel_map_update_elem(map_fd, &key, opts->data, 0); in bpf_load_and_run() 325 opts->errstr = "failed to update loader map"; in bpf_load_and_run() 332 attr.insns = (long) opts->insns; in bpf_load_and_run() 337 attr.log_level = opts->ctx->log_level; in bpf_load_and_run() 338 attr.log_size = opts->ctx->log_size; in bpf_load_and_run() 339 attr.log_buf = opts->ctx->log_buf; in bpf_load_and_run() 343 opts->errstr = "failed to load loader prog"; in bpf_load_and_run() 350 attr.test.ctx_in = (long) opts->ctx; in bpf_load_and_run() 351 attr.test.ctx_size_in = opts->ctx->sz; in bpf_load_and_run() [all …]
|
/openbmc/qemu/tests/qemu-iotests/ |
H A D | 223 | 175 -c 'r -P 0x33 2m 2m' --image-opts "$IMG" | _filter_qemu_io 176 $QEMU_IMG map --output=json --image-opts \ 178 $QEMU_IMG map --output=json --image-opts \ 186 $QEMU_IMG map --output=json --image-opts \ 194 $QEMU_IMG map --output=json --image-opts \ 221 $QEMU_IMG map --output=json --image-opts \ 226 $QEMU_IMG map --output=json --image-opts --max-length=12345 \ 228 $QEMU_IMG map --output=json --image-opts --start-offset=12345 \
|
H A D | 096 | 34 opts = [] 35 opts.append('node-name=base') 36 opts.append('throttling.group=%s' % self.group) 37 opts.append('throttling.iops-total=%d' % self.iops) 38 opts.append('throttling.iops-size=%d' % self.iops_size) 40 self.vm = iotests.VM().add_drive(self.base_img, ','.join(opts))
|
/openbmc/linux/tools/testing/selftests/bpf/ |
H A D | network_helpers.c | 269 if (!opts) in connect_to_fd_opts() 270 opts = &default_opts; in connect_to_fd_opts() 274 if (opts->type) { in connect_to_fd_opts() 275 type = opts->type; in connect_to_fd_opts() 283 if (opts->proto) { in connect_to_fd_opts() 284 protocol = opts->proto; in connect_to_fd_opts() 305 if (settimeo(fd, opts->timeout_ms)) in connect_to_fd_opts() 308 if (opts->cc && opts->cc[0] && in connect_to_fd_opts() 310 strlen(opts->cc) + 1)) in connect_to_fd_opts() 313 if (!opts->noconnect) in connect_to_fd_opts() [all …]
|
/openbmc/linux/kernel/bpf/preload/iterators/ |
H A D | iterators.lskel-big-endian.h | 90 struct bpf_load_and_run_opts opts = {}; in iterators_bpf__load() local 93 opts.ctx = (struct bpf_loader_ctx *)skel; in iterators_bpf__load() 94 opts.data_sz = 6008; in iterators_bpf__load() 95 opts.data = (void *)"\ in iterators_bpf__load() 311 opts.insns_sz = 2216; in iterators_bpf__load() 312 opts.insns = (void *)"\ in iterators_bpf__load() 387 err = bpf_load_and_run(&opts); in iterators_bpf__load()
|
H A D | iterators.lskel-little-endian.h | 90 struct bpf_load_and_run_opts opts = {}; in iterators_bpf__load() local 93 opts.ctx = (struct bpf_loader_ctx *)skel; in iterators_bpf__load() 94 opts.data_sz = 6208; in iterators_bpf__load() 95 opts.data = (void *)"\ in iterators_bpf__load() 319 opts.insns_sz = 2456; in iterators_bpf__load() 320 opts.insns = (void *)"\ in iterators_bpf__load() 403 err = bpf_load_and_run(&opts); in iterators_bpf__load()
|