/openbmc/qemu/scripts/ |
H A D | meson-buildoptions.py | 83 def get_help(opt): argument 84 if opt["name"] == "libdir": 86 value = opt["value"] 110 def help_line(left, opt, indent, long): argument 113 value = get_help(opt) 116 if "choices" in opt and long: 117 choices = "/".join(sorted(opt["choices"])) 127 def allow_arg(opt): argument 128 if opt["type"] == "boolean": 130 if opt["type"] != "combo": [all …]
|
/openbmc/qemu/tests/qtest/libqos/ |
H A D | virtio-9p-client.c | 295 TVersionRes v9fs_tversion(TVersionOpt opt) in v9fs_tversion() argument 304 g_assert(opt.client); in v9fs_tversion() 306 if (!opt.msize) { in v9fs_tversion() 307 opt.msize = P9_MAX_SIZE; in v9fs_tversion() 310 if (!opt.tag) { in v9fs_tversion() 311 opt.tag = P9_NOTAG; in v9fs_tversion() 314 if (!opt.version) { in v9fs_tversion() 315 opt.version = "9P2000.L"; in v9fs_tversion() 318 string_size = v9fs_string_size(opt.version); in v9fs_tversion() 321 req = v9fs_req_init(opt.client, body_size, P9_TVERSION, opt.tag); in v9fs_tversion() [all …]
|
/openbmc/linux/drivers/iio/light/ |
H A D | opt3001.c | 151 static int opt3001_find_scale(const struct opt3001 *opt, int val, in opt3001_find_scale() argument 174 static void opt3001_to_iio_ret(struct opt3001 *opt, u8 exponent, in opt3001_to_iio_ret() argument 184 static void opt3001_set_mode(struct opt3001 *opt, u16 *reg, u16 mode) in opt3001_set_mode() argument 188 opt->mode = mode; in opt3001_set_mode() 228 static int opt3001_get_lux(struct opt3001 *opt, int *val, int *val2) in opt3001_get_lux() argument 237 if (opt->use_irq) { in opt3001_get_lux() 243 ret = i2c_smbus_write_word_swapped(opt->client, in opt3001_get_lux() 247 dev_err(opt->dev, "failed to write register %02x\n", in opt3001_get_lux() 253 opt->ok_to_ignore_lock = true; in opt3001_get_lux() 257 opt->result_ready = false; in opt3001_get_lux() [all …]
|
/openbmc/linux/tools/lib/subcmd/ |
H A D | parse-options.c | 20 static int opterror(const struct option *opt, const char *reason, int flags) in opterror() argument 23 fprintf(stderr, " Error: switch `%c' %s", opt->short_name, reason); in opterror() 25 fprintf(stderr, " Error: option `no-%s' %s", opt->long_name, reason); in opterror() 27 fprintf(stderr, " Error: option `%s' %s", opt->long_name, reason); in opterror() 38 static void optwarning(const struct option *opt, const char *reason, int flags) in optwarning() argument 41 fprintf(stderr, " Warning: switch `%c' %s", opt->short_name, reason); in optwarning() 43 fprintf(stderr, " Warning: option `no-%s' %s", opt->long_name, reason); in optwarning() 45 fprintf(stderr, " Warning: option `%s' %s", opt->long_name, reason); in optwarning() 48 static int get_arg(struct parse_opt_ctx_t *p, const struct option *opt, in get_arg() argument 53 if (p->opt) { in get_arg() [all …]
|
/openbmc/linux/drivers/clk/mvebu/ |
H A D | orion.c | 30 u32 opt = (readl(sar) >> SAR_MV88F5181_TCLK_FREQ) & in mv88f5181_get_tclk_freq() local 32 if (opt == 0) in mv88f5181_get_tclk_freq() 34 else if (opt == 1) in mv88f5181_get_tclk_freq() 36 else if (opt == 2) in mv88f5181_get_tclk_freq() 47 u32 opt = (readl(sar) >> SAR_MV88F5181_CPU_FREQ) & in mv88f5181_get_cpu_freq() local 49 if (opt == 0) in mv88f5181_get_cpu_freq() 51 else if (opt == 1 || opt == 2) in mv88f5181_get_cpu_freq() 53 else if (opt == 3) in mv88f5181_get_cpu_freq() 62 u32 opt = (readl(sar) >> SAR_MV88F5181_CPU_FREQ) & in mv88f5181_get_clk_ratio() local 64 if (opt == 0 || opt == 1) { in mv88f5181_get_clk_ratio() [all …]
|
/openbmc/linux/net/ipv4/ |
H A D | ip_options.c | 44 void ip_options_build(struct sk_buff *skb, struct ip_options *opt, in ip_options_build() argument 49 memcpy(&(IPCB(skb)->opt), opt, sizeof(struct ip_options)); in ip_options_build() 50 memcpy(iph + sizeof(struct iphdr), opt->__data, opt->optlen); in ip_options_build() 51 opt = &(IPCB(skb)->opt); in ip_options_build() 53 if (opt->srr) in ip_options_build() 54 memcpy(iph + opt->srr + iph[opt in ip_options_build() 198 struct ip_options *opt = &(IPCB(skb)->opt); ip_options_fragment() local 242 __ip_options_compile(struct net * net,struct ip_options * opt,struct sk_buff * skb,__be32 * info) __ip_options_compile() argument 466 ip_options_compile(struct net * net,struct ip_options * opt,struct sk_buff * skb) ip_options_compile() argument 482 ip_options_undo(struct ip_options * opt) ip_options_undo() argument 515 struct ip_options_rcu *opt; ip_options_get() local 540 struct ip_options *opt = &(IPCB(skb)->opt); ip_forward_options() local 587 struct ip_options *opt = &(IPCB(skb)->opt); ip_options_rcv_srr() local [all...] |
H A D | cipso_ipv4.c | 1551 unsigned char *opt = *option; in cipso_v4_validate() local 1561 opt_len = opt[1]; in cipso_v4_validate() 1568 doi_def = cipso_v4_doi_search(get_unaligned_be32(&opt[2])); in cipso_v4_validate() 1575 tag = opt + opt_iter; in cipso_v4_validate() 1688 *option = opt + err_offset; in cipso_v4_validate() 1722 struct ip_options *opt = (struct ip_options *)optbuf; in cipso_v4_error() local 1733 memset(opt, 0, sizeof(struct ip_options)); in cipso_v4_error() 1734 opt->optlen = ip_hdr(skb)->ihl*4 - sizeof(struct iphdr); in cipso_v4_error() 1736 res = __ip_options_compile(dev_net(skb->dev), opt, skb, NULL); in cipso_v4_error() 1743 __icmp_send(skb, ICMP_DEST_UNREACH, ICMP_NET_ANO, 0, opt); in cipso_v4_error() [all …]
|
/openbmc/linux/net/ceph/ |
H A D | ceph_common.c | 310 struct ceph_options *opt; in ceph_alloc_options() local 312 opt = kzalloc(sizeof(*opt), GFP_KERNEL); in ceph_alloc_options() 313 if (!opt) in ceph_alloc_options() 316 opt->crush_locs = RB_ROOT; in ceph_alloc_options() 317 opt->mon_addr = kcalloc(CEPH_MAX_MON, sizeof(*opt->mon_addr), in ceph_alloc_options() 319 if (!opt->mon_addr) { in ceph_alloc_options() 320 kfree(opt); in ceph_alloc_options() 324 opt->flags = CEPH_OPT_DEFAULT; in ceph_alloc_options() 325 opt->osd_keepalive_timeout = CEPH_OSD_KEEPALIVE_DEFAULT; in ceph_alloc_options() 326 opt->mount_timeout = CEPH_MOUNT_TIMEOUT_DEFAULT; in ceph_alloc_options() [all …]
|
/openbmc/linux/drivers/net/ethernet/intel/e1000e/ |
H A D | param.c | 162 const struct e1000_option *opt, in e1000_validate_option() argument 166 *value = opt->def; in e1000_validate_option() 170 switch (opt->type) { in e1000_validate_option() 175 opt->name); in e1000_validate_option() 179 opt->name); in e1000_validate_option() 184 if (*value >= opt->arg.r.min && *value <= opt->arg.r.max) { in e1000_validate_option() 186 opt->name, *value); in e1000_validate_option() 194 for (i = 0; i < opt->arg.l.nr; i++) { in e1000_validate_option() 195 ent = &opt->arg.l.p[i]; in e1000_validate_option() 210 opt->name, *value, opt->err); in e1000_validate_option() [all …]
|
/openbmc/u-boot/include/ |
H A D | hwconfig.h | 19 extern int hwconfig_f(const char *opt, char *buf); 20 extern const char *hwconfig_arg_f(const char *opt, size_t *arglen, char *buf); 21 extern int hwconfig_arg_cmp_f(const char *opt, const char *arg, char *buf); 22 extern int hwconfig_sub_f(const char *opt, const char *subopt, char *buf); 23 extern const char *hwconfig_subarg_f(const char *opt, const char *subopt, 25 extern int hwconfig_subarg_cmp_f(const char *opt, const char *subopt, 29 static inline int hwconfig_f(const char *opt, char *buf) in hwconfig_f() argument 34 static inline const char *hwconfig_arg_f(const char *opt, size_t *arglen, in hwconfig_arg_f() argument 41 static inline int hwconfig_arg_cmp_f(const char *opt, const char *arg, in hwconfig_arg_cmp_f() argument 47 static inline int hwconfig_sub_f(const char *opt, const char *subopt, char *buf) in hwconfig_sub_f() argument [all …]
|
/openbmc/linux/tools/testing/selftests/net/ |
H A D | cmsg_sender.c | 73 } opt = { variable 118 opt.silent_send = true; in cs_parse_args() 121 opt.size = atoi(optarg); in cs_parse_args() 124 opt.sock.family = AF_INET; in cs_parse_args() 127 opt.sock.family = AF_INET6; in cs_parse_args() 131 opt.sock.proto = IPPROTO_UDP; in cs_parse_args() 133 opt.sock.proto = IPPROTO_ICMP; in cs_parse_args() 135 opt.sock.type = SOCK_RAW; in cs_parse_args() 143 opt.mark.ena = true; in cs_parse_args() 144 opt.mark.val = atoi(optarg); in cs_parse_args() [all …]
|
/openbmc/qemu/util/ |
H A D | qemu-option.c | 226 QemuOpt *opt; in qemu_opt_find() local 228 QTAILQ_FOREACH_REVERSE(opt, &opts->head, next) { in qemu_opt_find() 229 if (strcmp(opt->name, name) != 0) in qemu_opt_find() 231 return opt; in qemu_opt_find() 236 static void qemu_opt_del(QemuOpt *opt) in qemu_opt_del() argument 238 QTAILQ_REMOVE(&opt->opts->head, opt, next); in qemu_opt_del() 239 g_free(opt->name); in qemu_opt_del() 240 g_free(opt->str); in qemu_opt_del() 241 g_free(opt); in qemu_opt_del() 249 QemuOpt *opt, *next_opt; in qemu_opt_del_all() local [all …]
|
/openbmc/linux/tools/testing/selftests/bpf/ |
H A D | test_sockmap.c | 159 void (*tester)(int cg_fd, struct sockmap_options *opt); 422 struct sockmap_options *opt) in msg_loop_sendpage() argument 424 bool drop = opt->drop_expected; in msg_loop_sendpage() 630 struct sockmap_options *opt) in msg_loop() argument 634 bool drop = opt->drop_expected; in msg_loop() 635 bool data = opt->data_test; in msg_loop() 638 if (!tx && opt->check_recved_len) in msg_loop() 659 if (opt->tx_wait_mem && errno == EACCES) { in msg_loop() 699 if (!opt->sendpage) in msg_loop() 736 if (opt->verbose) in msg_loop() [all …]
|
/openbmc/linux/tools/testing/selftests/bpf/progs/ |
H A D | setget_sockopt.c | 28 int opt; member 41 { .opt = SO_REUSEADDR, .flip = 1, }, 42 { .opt = SO_SNDBUF, .new = 8123, .expected = 8123 * 2, }, 43 { .opt = SO_RCVBUF, .new = 8123, .expected = 8123 * 2, }, 44 { .opt = SO_KEEPALIVE, .flip = 1, }, 45 { .opt = SO_PRIORITY, .new = 0xeb9f, .expected = 0xeb9f, }, 46 { .opt = SO_REUSEPORT, .flip = 1, }, 47 { .opt = SO_RCVLOWAT, .new = 8123, .expected = 8123, }, 48 { .opt = SO_MARK, .new = 0xeb9f, .expected = 0xeb9f, }, 49 { .opt = SO_MAX_PACING_RATE, .new = 0xeb9f, .expected = 0xeb9f, }, [all …]
|
/openbmc/linux/drivers/net/ethernet/intel/e1000/ |
H A D | e1000_param.c | 182 const struct e1000_option *opt, in e1000_validate_option() argument 186 *value = opt->def; in e1000_validate_option() 190 switch (opt->type) { in e1000_validate_option() 194 e_dev_info("%s Enabled\n", opt->name); in e1000_validate_option() 197 e_dev_info("%s Disabled\n", opt->name); in e1000_validate_option() 202 if (*value >= opt->arg.r.min && *value <= opt->arg.r.max) { in e1000_validate_option() 203 e_dev_info("%s set to %i\n", opt->name, *value); in e1000_validate_option() 211 for (i = 0; i < opt->arg.l.nr; i++) { in e1000_validate_option() 212 ent = &opt->arg.l.p[i]; in e1000_validate_option() 226 opt->name, *value, opt->err); in e1000_validate_option() [all …]
|
/openbmc/qemu/tests/tcg/mips/user/ase/msa/ |
H A D | test_msa_compile_64r6el.sh | 6 /opt/img/bin/mips-img-linux-gnu-gcc bit-count/test_msa_nloc_b.c \ 8 /opt/img/bin/mips-img-linux-gnu-gcc bit-count/test_msa_nloc_h.c \ 10 /opt/img/bin/mips-img-linux-gnu-gcc bit-count/test_msa_nloc_w.c \ 12 /opt/img/bin/mips-img-linux-gnu-gcc bit-count/test_msa_nloc_d.c \ 14 /opt/img/bin/mips-img-linux-gnu-gcc bit-count/test_msa_nlzc_b.c \ 16 /opt/img/bin/mips-img-linux-gnu-gcc bit-count/test_msa_nlzc_h.c \ 18 /opt/img/bin/mips-img-linux-gnu-gcc bit-count/test_msa_nlzc_w.c \ 20 /opt/img/bin/mips-img-linux-gnu-gcc bit-count/test_msa_nlzc_d.c \ 22 /opt/img/bin/mips-img-linux-gnu-gcc bit-count/test_msa_pcnt_b.c \ 24 /opt/img/bin/mips-img-linux-gnu-gcc bit-count/test_msa_pcnt_h.c \ [all …]
|
H A D | test_msa_compile_64r6eb.sh | 6 /opt/img/bin/mips-img-linux-gnu-gcc bit-count/test_msa_nloc_b.c \ 8 /opt/img/bin/mips-img-linux-gnu-gcc bit-count/test_msa_nloc_h.c \ 10 /opt/img/bin/mips-img-linux-gnu-gcc bit-count/test_msa_nloc_w.c \ 12 /opt/img/bin/mips-img-linux-gnu-gcc bit-count/test_msa_nloc_d.c \ 14 /opt/img/bin/mips-img-linux-gnu-gcc bit-count/test_msa_nlzc_b.c \ 16 /opt/img/bin/mips-img-linux-gnu-gcc bit-count/test_msa_nlzc_h.c \ 18 /opt/img/bin/mips-img-linux-gnu-gcc bit-count/test_msa_nlzc_w.c \ 20 /opt/img/bin/mips-img-linux-gnu-gcc bit-count/test_msa_nlzc_d.c \ 22 /opt/img/bin/mips-img-linux-gnu-gcc bit-count/test_msa_pcnt_b.c \ 24 /opt/img/bin/mips-img-linux-gnu-gcc bit-count/test_msa_pcnt_h.c \ [all …]
|
H A D | test_msa_compile_32r5el.sh | 6 /opt/mti/bin/mips-mti-linux-gnu-gcc bit-count/test_msa_nloc_b.c \ 9 /opt/mti/bin/mips-mti-linux-gnu-gcc bit-count/test_msa_nloc_h.c \ 12 /opt/mti/bin/mips-mti-linux-gnu-gcc bit-count/test_msa_nloc_w.c \ 15 /opt/mti/bin/mips-mti-linux-gnu-gcc bit-count/test_msa_nloc_d.c \ 18 /opt/mti/bin/mips-mti-linux-gnu-gcc bit-count/test_msa_nlzc_b.c \ 21 /opt/mti/bin/mips-mti-linux-gnu-gcc bit-count/test_msa_nlzc_h.c \ 24 /opt/mti/bin/mips-mti-linux-gnu-gcc bit-count/test_msa_nlzc_w.c \ 27 /opt/mti/bin/mips-mti-linux-gnu-gcc bit-count/test_msa_nlzc_d.c \ 30 /opt/mti/bin/mips-mti-linux-gnu-gcc bit-count/test_msa_pcnt_b.c \ 33 /opt/mti/bin/mips-mti-linux-gnu-gcc bit-count/test_msa_pcnt_h.c \ [all …]
|
H A D | test_msa_compile_32r5eb.sh | 6 /opt/mti/bin/mips-mti-linux-gnu-gcc bit-count/test_msa_nloc_b.c \ 9 /opt/mti/bin/mips-mti-linux-gnu-gcc bit-count/test_msa_nloc_h.c \ 12 /opt/mti/bin/mips-mti-linux-gnu-gcc bit-count/test_msa_nloc_w.c \ 15 /opt/mti/bin/mips-mti-linux-gnu-gcc bit-count/test_msa_nloc_d.c \ 18 /opt/mti/bin/mips-mti-linux-gnu-gcc bit-count/test_msa_nlzc_b.c \ 21 /opt/mti/bin/mips-mti-linux-gnu-gcc bit-count/test_msa_nlzc_h.c \ 24 /opt/mti/bin/mips-mti-linux-gnu-gcc bit-count/test_msa_nlzc_w.c \ 27 /opt/mti/bin/mips-mti-linux-gnu-gcc bit-count/test_msa_nlzc_d.c \ 30 /opt/mti/bin/mips-mti-linux-gnu-gcc bit-count/test_msa_pcnt_b.c \ 33 /opt/mti/bin/mips-mti-linux-gnu-gcc bit-count/test_msa_pcnt_h.c \ [all …]
|
/openbmc/linux/Documentation/usb/ |
H A D | gadget_hid.rst | 143 const char *opt; 148 {.opt = "--left-ctrl", .val = 0x01}, 149 {.opt = "--right-ctrl", .val = 0x10}, 150 {.opt = "--left-shift", .val = 0x02}, 151 {.opt = "--right-shift", .val = 0x20}, 152 {.opt = "--left-alt", .val = 0x04}, 153 {.opt = "--right-alt", .val = 0x40}, 154 {.opt = "--left-meta", .val = 0x08}, 155 {.opt = "--right-meta", .val = 0x80}, 156 {.opt = NULL} [all …]
|
/openbmc/linux/drivers/net/ethernet/atheros/atl1e/ |
H A D | atl1e_param.c | 106 static int atl1e_validate_option(int *value, struct atl1e_option *opt, in atl1e_validate_option() argument 110 *value = opt->def; in atl1e_validate_option() 114 switch (opt->type) { in atl1e_validate_option() 119 "%s Enabled\n", opt->name); in atl1e_validate_option() 123 "%s Disabled\n", opt->name); in atl1e_validate_option() 128 if (*value >= opt->arg.r.min && *value <= opt->arg.r.max) { in atl1e_validate_option() 130 opt->name, *value); in atl1e_validate_option() 138 for (i = 0; i < opt->arg.l.nr; i++) { in atl1e_validate_option() 139 ent = &opt->arg.l.p[i]; in atl1e_validate_option() 154 opt->name, *value, opt->err); in atl1e_validate_option() [all …]
|
/openbmc/linux/drivers/net/ethernet/netronome/nfp/abm/ |
H A D | qdisc.c | 517 struct tc_gred_qopt_offload *opt) in nfp_abm_gred_check_params() argument 523 if (opt->set.grio_on || opt->set.wred_on) { in nfp_abm_gred_check_params() 525 opt->parent, opt->handle); in nfp_abm_gred_check_params() 528 if (opt->set.dp_def != alink->def_band) { in nfp_abm_gred_check_params() 530 alink->def_band, opt->parent, opt->handle); in nfp_abm_gred_check_params() 533 if (opt->set.dp_cnt != abm->num_bands) { in nfp_abm_gred_check_params() 535 abm->num_bands, opt->parent, opt->handle); in nfp_abm_gred_check_params() 540 struct tc_gred_vq_qopt_offload_params *band = &opt->set.tab[i]; in nfp_abm_gred_check_params() 546 opt->parent, opt->handle, i); in nfp_abm_gred_check_params() 551 opt->parent, opt->handle, i); in nfp_abm_gred_check_params() [all …]
|
/openbmc/openbmc/meta-raspberrypi/recipes-graphics/raspidmx/raspidmx/ |
H A D | 0004-add-libvchostif-to-link.patch | 36 -LDFLAGS+=-L/opt/vc/lib/ -lbcm_host -lm $(shell pkg-config --libs libpng) -L../lib -lraspidmx -lras… 37 +LDFLAGS+=-L/opt/vc/lib/ -lvchostif -lbcm_host -lm $(shell pkg-config --libs libpng) -L../lib -lras… 39 …INCLUDES+=-I/opt/vc/include/ -I/opt/vc/include/interface/vcos/pthreads -I/opt/vc/include/interface… 49 -LDFLAGS+=-L/opt/vc/lib/ -lbcm_host -L../lib -lraspidmx 50 +LDFLAGS+=-L/opt/vc/lib/ -lvchostif -lbcm_host -L../lib -lraspidmx 52 …INCLUDES+=-I/opt/vc/include/ -I/opt/vc/include/interface/vcos/pthreads -I/opt/vc/include/interface… 62 -LDFLAGS+=-L/opt/vc/lib/ -lbcm_host -lm $(shell pkg-config --libs libpng) -L../lib -lraspidmx -lras… 63 +LDFLAGS+=-L/opt/vc/lib/ -lvchostif -lbcm_host -lm $(shell pkg-config --libs libpng) -L../lib -lras… 65 …INCLUDES+=-I/opt/vc/include/ -I/opt/vc/include/interface/vcos/pthreads -I/opt/vc/include/interface… 75 -LDFLAGS+=-L/opt/vc/lib/ -lbcm_host -lm $(shell pkg-config --libs libpng) -L../lib -lraspidmx -lras… [all …]
|
/openbmc/linux/net/ipv6/ |
H A D | exthdrs.c | 233 struct inet6_skb_parm *opt = IP6CB(skb); in ipv6_dest_hao() local 238 if (opt->dsthao) { in ipv6_dest_hao() 242 opt->dsthao = opt->dst1; in ipv6_dest_hao() 243 opt->dst1 = 0; in ipv6_dest_hao() 297 struct inet6_skb_parm *opt = IP6CB(skb); in ipv6_destopt_rcv() local 319 opt->lastopt = opt->dst1 = skb_network_header_len(skb); in ipv6_destopt_rcv() 321 dstbuf = opt->dst1; in ipv6_destopt_rcv() 326 opt = IP6CB(skb); in ipv6_destopt_rcv() 328 opt->nhoff = dstbuf; in ipv6_destopt_rcv() 330 opt->nhoff = opt->dst1; in ipv6_destopt_rcv() [all …]
|
/openbmc/qemu/qapi/ |
H A D | opts-visitor.c | 116 opts_visitor_insert(GHashTable *unprocessed_opts, const QemuOpt *opt) in opts_visitor_insert() argument 120 list = g_hash_table_lookup(unprocessed_opts, opt->name); in opts_visitor_insert() 128 g_hash_table_insert(unprocessed_opts, (gpointer)opt->name, list); in opts_visitor_insert() 132 g_queue_push_tail(list, (gpointer)opt); in opts_visitor_insert() 141 const QemuOpt *opt; in opts_start_struct() local 152 QTAILQ_FOREACH(opt, &ov->opts_root->head, next) { in opts_start_struct() 154 assert(strcmp(opt->name, "id") != 0); in opts_start_struct() 156 opts_visitor_insert(ov->unprocessed_opts, opt); in opts_start_struct() 271 const QemuOpt *opt; in opts_next_list() local 273 opt = g_queue_pop_head(ov->repeated_opts); in opts_next_list() [all …]
|