/linux-master/tools/testing/ktest/ |
H A D | compare-ktest-sample.pl | 7 if (/\$opt\{"?([A-Z].*?)(\[.*\])?"?\}/ || 10 $opt{$1} = 1; 23 foreach $opt (keys %opt) { 24 if (!defined($samp{$opt})) { 25 print "opt = $opt\n"; 30 if (!defined($opt{$samp})) {
|
/linux-master/tools/perf/util/ |
H A D | parse-regs-options.h | 5 int parse_user_regs(const struct option *opt, const char *str, int unset); 6 int parse_intr_regs(const struct option *opt, const char *str, int unset);
|
H A D | parse-sublevel-options.c | 12 struct sublevel_option *opt = opts; local 25 while (opt->name) { 26 if (!strcmp(s, opt->name)) 28 opt++; 31 if (!opt->name) { 40 *opt->value_ptr = v;
|
H A D | parse-branch-options.h | 5 int parse_branch_stack(const struct option *opt, const char *str, int unset);
|
H A D | clockid.h | 7 int parse_clockid(const struct option *opt, const char *str, int unset);
|
H A D | pfm.h | 14 int parse_libpfm_events_option(const struct option *opt, const char *str, 23 const struct option *opt __maybe_unused,
|
H A D | parse-regs-options.c | 13 __parse_regs(const struct option *opt, const char *str, int unset, bool intr) argument 15 uint64_t *mode = (uint64_t *)opt->value; 86 parse_user_regs(const struct option *opt, const char *str, int unset) argument 88 return __parse_regs(opt, str, unset, false); 92 parse_intr_regs(const struct option *opt, const char *str, int unset) argument 94 return __parse_regs(opt, str, unset, true);
|
/linux-master/drivers/clk/mvebu/ |
H A D | orion.c | 30 u32 opt = (readl(sar) >> SAR_MV88F5181_TCLK_FREQ) & local 32 if (opt == 0) 34 else if (opt == 1) 36 else if (opt == 2) 47 u32 opt = (readl(sar) >> SAR_MV88F5181_CPU_FREQ) & local 49 if (opt == 0) 51 else if (opt == 1 || opt == 2) 53 else if (opt == 3) 62 u32 opt local 100 u32 opt = (readl(sar) >> SAR_MV88F5182_TCLK_FREQ) & local 115 u32 opt = (readl(sar) >> SAR_MV88F5182_CPU_FREQ) & local 130 u32 opt = (readl(sar) >> SAR_MV88F5182_CPU_FREQ) & local 174 u32 opt = (readl(sar) >> SAR_MV88F5281_CPU_FREQ) & local 187 u32 opt = (readl(sar) >> SAR_MV88F5281_CPU_FREQ) & local 225 u32 opt = (readl(sar) >> SAR_MV88F6183_TCLK_FREQ) & local 240 u32 opt = (readl(sar) >> SAR_MV88F6183_CPU_FREQ) & local 253 u32 opt = (readl(sar) >> SAR_MV88F6183_CPU_FREQ) & local [all...] |
H A D | mv98dx3236.c | 120 u32 opt = ((readl(sar) >> SAR1_MV98DX3236_CPU_DDR_MPLL_FREQ_OPT) & local 126 *mult = mv98dx4251_cpu_ddr_ratios[opt][0]; 127 *div = mv98dx4251_cpu_ddr_ratios[opt][1]; 129 *mult = mv98dx3236_cpu_ddr_ratios[opt][0]; 130 *div = mv98dx3236_cpu_ddr_ratios[opt][1]; 135 *mult = mv98dx4251_cpu_mpll_ratios[opt][0]; 136 *div = mv98dx4251_cpu_mpll_ratios[opt][1]; 138 *mult = mv98dx3236_cpu_mpll_ratios[opt][0]; 139 *div = mv98dx3236_cpu_mpll_ratios[opt][1];
|
/linux-master/drivers/iio/light/ |
H A D | opt3001.c | 147 static int opt3001_find_scale(const struct opt3001 *opt, int val, argument 170 static void opt3001_to_iio_ret(struct opt3001 *opt, u8 exponent, argument 180 static void opt3001_set_mode(struct opt3001 *opt, u16 *reg, u16 mode) argument 184 opt->mode = mode; 224 static int opt3001_get_lux(struct opt3001 *opt, int *val, int *val2) argument 233 if (opt->use_irq) { 239 ret = i2c_smbus_write_word_swapped(opt->client, 243 dev_err(opt->dev, "failed to write register %02x\n", 249 opt->ok_to_ignore_lock = true; 253 opt 347 opt3001_get_int_time(struct opt3001 *opt, int *val, int *val2) argument 355 opt3001_set_int_time(struct opt3001 *opt, int time) argument 390 struct opt3001 *opt = iio_priv(iio); local 421 struct opt3001 *opt = iio_priv(iio); local 448 struct opt3001 *opt = iio_priv(iio); local 476 struct opt3001 *opt = iio_priv(iio); local 531 struct opt3001 *opt = iio_priv(iio); local 540 struct opt3001 *opt = iio_priv(iio); local 590 opt3001_read_id(struct opt3001 *opt) argument 621 opt3001_configure(struct opt3001 *opt) argument 688 struct opt3001 *opt = iio_priv(iio); local 743 struct opt3001 *opt; local 799 struct opt3001 *opt = iio_priv(iio); local [all...] |
/linux-master/drivers/net/ethernet/intel/e1000e/ |
H A D | param.c | 162 const struct e1000_option *opt, 166 *value = opt->def; 170 switch (opt->type) { 175 opt->name); 179 opt->name); 184 if (*value >= opt->arg.r.min && *value <= opt->arg.r.max) { 186 opt->name, *value); 194 for (i = 0; i < opt->arg.l.nr; i++) { 195 ent = &opt 161 e1000_validate_option(unsigned int *value, const struct e1000_option *opt, struct e1000_adapter *adapter) argument 238 static const struct e1000_option opt = { local 258 static const struct e1000_option opt = { local 278 static struct e1000_option opt = { local 301 static struct e1000_option opt = { local 324 static const struct e1000_option opt = { local 401 static struct e1000_option opt = { local 446 static const struct e1000_option opt = { local 463 static const struct e1000_option opt = { local 485 static const struct e1000_option opt = { local 506 static const struct e1000_option opt = { local [all...] |
/linux-master/tools/lib/subcmd/ |
H A D | parse-options.c | 20 static int opterror(const struct option *opt, const char *reason, int flags) argument 23 fprintf(stderr, " Error: switch `%c' %s", opt->short_name, reason); 25 fprintf(stderr, " Error: option `no-%s' %s", opt->long_name, reason); 27 fprintf(stderr, " Error: option `%s' %s", opt->long_name, reason); 38 static void optwarning(const struct option *opt, const char *reason, int flags) argument 41 fprintf(stderr, " Warning: switch `%c' %s", opt->short_name, reason); 43 fprintf(stderr, " Warning: option `no-%s' %s", opt->long_name, reason); 45 fprintf(stderr, " Warning: option `%s' %s", opt->long_name, reason); 48 static int get_arg(struct parse_opt_ctx_t *p, const struct option *opt, argument 53 if (p->opt) { 69 get_value(struct parse_opt_ctx_t *p, const struct option *opt, int flags) argument 617 char opt = ctx->excl_opt->short_name; local 811 struct option *opt, *ordered, *group; local 838 option__in_argv(const struct option *opt, const struct parse_opt_ctx_t *ctx) argument 981 parse_opt_verbosity_cb(const struct option *opt, const char *arg __maybe_unused, int unset) argument 1019 struct option *opt = find_option(opts, shortopt, longopt); local 1031 struct option *opt = find_option(opts, shortopt, longopt); local [all...] |
/linux-master/net/ipv4/ |
H A D | ip_options.c | 44 void ip_options_build(struct sk_buff *skb, struct ip_options *opt, argument 49 memcpy(&(IPCB(skb)->opt), opt, sizeof(struct ip_options)); 50 memcpy(iph + sizeof(struct iphdr), opt->__data, opt->optlen); 51 opt = &(IPCB(skb)->opt); 53 if (opt->srr) 54 memcpy(iph + opt->srr + iph[opt 198 struct ip_options *opt = &(IPCB(skb)->opt); local 241 __ip_options_compile(struct net *net, struct ip_options *opt, struct sk_buff *skb, __be32 *info) argument 465 ip_options_compile(struct net *net, struct ip_options *opt, struct sk_buff *skb) argument 482 ip_options_undo(struct ip_options *opt) argument 515 struct ip_options_rcu *opt; local 540 struct ip_options *opt = &(IPCB(skb)->opt); local 587 struct ip_options *opt = &(IPCB(skb)->opt); local [all...] |
H A D | cipso_ipv4.c | 1548 unsigned char *opt = *option; local 1558 opt_len = opt[1]; 1565 doi_def = cipso_v4_doi_search(get_unaligned_be32(&opt[2])); 1572 tag = opt + opt_iter; 1685 *option = opt + err_offset; 1719 struct ip_options *opt = (struct ip_options *)optbuf; local 1730 memset(opt, 0, sizeof(struct ip_options)); 1731 opt->optlen = ip_hdr(skb)->ihl*4 - sizeof(struct iphdr); 1733 res = __ip_options_compile(dev_net(skb->dev), opt, skb, NULL); 1740 __icmp_send(skb, ICMP_DEST_UNREACH, ICMP_NET_ANO, 0, opt); 1835 struct ip_options_rcu *old, *opt = NULL; local 1920 struct ip_options_rcu *opt = NULL; local 1979 struct ip_options_rcu *opt = rcu_dereference_protected(*opt_ptr, 1); local 2135 struct ip_options_rcu *opt; local 2166 struct ip_options *opt = &IPCB(skb)->opt; local 2242 struct ip_options *opt = &IPCB(skb)->opt; local [all...] |
/linux-master/drivers/net/ethernet/atheros/atl1e/ |
H A D | atl1e_param.c | 106 static int atl1e_validate_option(int *value, struct atl1e_option *opt, argument 110 *value = opt->def; 114 switch (opt->type) { 119 "%s Enabled\n", opt->name); 123 "%s Disabled\n", opt->name); 128 if (*value >= opt->arg.r.min && *value <= opt->arg.r.max) { 130 opt->name, *value); 138 for (i = 0; i < opt->arg.l.nr; i++) { 139 ent = &opt 180 struct atl1e_option opt = { local 199 struct atl1e_option opt = { local 219 struct atl1e_option opt = { local 238 struct atl1e_option opt = { local [all...] |
/linux-master/drivers/gpu/drm/nouveau/include/nvkm/core/ |
H A D | option.h | 6 const char *nvkm_stropt(const char *optstr, const char *opt, int *len); 7 bool nvkm_boolopt(const char *optstr, const char *opt, bool value); 8 long nvkm_longopt(const char *optstr, const char *opt, long value);
|
/linux-master/arch/x86/kernel/kprobes/ |
H A D | Makefile | 7 obj-$(CONFIG_OPTPROBES) += opt.o
|
/linux-master/drivers/video/ |
H A D | cmdline.c | 43 const char *opt; local 50 opt = video_options[i]; 51 if (!strncmp(opt, name, name_len) && opt[name_len] == ':') 52 options = opt + name_len + 1; 87 const char *opt = NULL; local 92 opt = __video_get_option_string(name); 95 *options = opt;
|
/linux-master/tools/testing/selftests/net/ |
H A D | cmsg_sender.c | 75 } opt = { variable in typeref:struct:options 121 opt.silent_send = true; 124 opt.size = atoi(optarg); 127 opt.sock.family = AF_INET; 130 opt.sock.family = AF_INET6; 134 opt.sock.proto = IPPROTO_UDP; 136 opt.sock.proto = IPPROTO_ICMP; 138 opt.sock.type = SOCK_RAW; 145 opt.sockopt.priority = atoi(optarg); 148 opt [all...] |
/linux-master/fs/bcachefs/ |
H A D | opts.c | 287 int bch2_opt_validate(const struct bch_option *opt, u64 v, struct printbuf *err) argument 289 if (v < opt->min) { 292 opt->attr.name, opt->min); 296 if (opt->max && v >= opt->max) { 299 opt->attr.name, opt->max); 303 if ((opt->flags & OPT_SB_FIELD_SECTORS) && (v & 511)) { 306 opt 323 bch2_opt_parse(struct bch_fs *c, const struct bch_option *opt, const char *val, u64 *res, struct printbuf *err) argument 392 bch2_opt_to_text(struct printbuf *out, struct bch_fs *c, struct bch_sb *sb, const struct bch_option *opt, u64 v, unsigned flags) argument 467 char *opt, *name, *val; local 543 const struct bch_option *opt = bch2_opt_table + id; local 566 const struct bch_option *opt = bch2_opt_table + id; local 577 __bch2_opt_set_sb(struct bch_sb *sb, const struct bch_option *opt, u64 v) argument 591 bch2_opt_set_sb(struct bch_fs *c, const struct bch_option *opt, u64 v) argument [all...] |
H A D | compress.h | 28 struct bch_compression_opt opt = __bch2_compression_decode(v); local 30 return opt.type < ARRAY_SIZE(__bch2_compression_opt_to_type) && !(!opt.type && opt.level); 40 static inline unsigned bch2_compression_encode(struct bch_compression_opt opt) argument 42 return opt.type|(opt.level << 4);
|
/linux-master/drivers/net/ethernet/mellanox/mlx5/core/lib/ |
H A D | geneve.c | 25 void *hdr, *opt; local 34 opt = MLX5_ADDR_OF(create_geneve_tlv_option_in, in, geneve_tlv_opt); 39 MLX5_SET(geneve_tlv_option, opt, option_class, be16_to_cpu(class)); 40 MLX5_SET(geneve_tlv_option, opt, option_type, type); 41 MLX5_SET(geneve_tlv_option, opt, option_data_length, len); 63 int mlx5_geneve_tlv_option_add(struct mlx5_geneve *geneve, struct geneve_opt *opt) argument 73 if (geneve->opt_class == opt->opt_class && 74 geneve->opt_type == opt->type) { 83 "Won't create Geneve TLV opt object with class:type:len = 0x%x:0x%x:%d (another class:type already exists)\n", 84 be16_to_cpu(opt [all...] |
/linux-master/net/ceph/ |
H A D | ceph_common.c | 310 struct ceph_options *opt; local 312 opt = kzalloc(sizeof(*opt), GFP_KERNEL); 313 if (!opt) 316 opt->crush_locs = RB_ROOT; 317 opt->mon_addr = kcalloc(CEPH_MAX_MON, sizeof(*opt->mon_addr), 319 if (!opt->mon_addr) { 320 kfree(opt); 324 opt 336 ceph_destroy_options(struct ceph_options *opt) argument 400 ceph_parse_mon_ips(const char *buf, size_t len, struct ceph_options *opt, struct fc_log *l, char delim) argument 418 ceph_parse_param(struct fs_parameter *param, struct ceph_options *opt, struct fc_log *l) argument 607 struct ceph_options *opt = client->options; local 707 ceph_create_client(struct ceph_options *opt, void *private) argument [all...] |
/linux-master/tools/testing/selftests/bpf/progs/ |
H A D | setget_sockopt.c | 28 int opt; member in struct:sockopt_test 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 88 int old, tmp, new, opt = t->opt; local 115 int old, tmp, new, expected, opt; local [all...] |
/linux-master/tools/testing/selftests/bpf/ |
H A D | test_sockmap.c | 153 void (*tester)(int cg_fd, struct sockmap_options *opt); 416 struct sockmap_options *opt) 418 bool drop = opt->drop_expected; 553 struct sockmap_options *opt) 557 bool drop = opt->drop_expected; 558 bool data = opt->data_test; 561 if (!tx && opt->check_recved_len) 582 if (opt->tx_wait_mem && errno == EACCES) { 645 if (opt->verbose) 652 if (opt 414 msg_loop_sendpage(int fd, int iov_length, int cnt, struct msg_stats *s, struct sockmap_options *opt) argument 551 msg_loop(int fd, int iov_count, int iov_length, int cnt, struct msg_stats *s, bool tx, struct sockmap_options *opt) argument 737 sendmsg_test(struct sockmap_options *opt) argument 869 forever_ping_pong(int rate, struct sockmap_options *opt) argument 1376 __test_exec(int cgrp, int test, struct sockmap_options *opt) argument 1409 test_exec(int cgrp, struct sockmap_options *opt) argument 1427 test_send_one(struct sockmap_options *opt, int cgrp) argument 1446 test_send_many(struct sockmap_options *opt, int cgrp) argument 1459 test_send_large(struct sockmap_options *opt, int cgrp) argument 1467 test_send(struct sockmap_options *opt, int cgrp) argument 1475 test_txmsg_pass(int cgrp, struct sockmap_options *opt) argument 1482 test_txmsg_redir(int cgrp, struct sockmap_options *opt) argument 1488 test_txmsg_redir_wait_sndmem(int cgrp, struct sockmap_options *opt) argument 1496 test_txmsg_drop(int cgrp, struct sockmap_options *opt) argument 1502 test_txmsg_ingress_redir(int cgrp, struct sockmap_options *opt) argument 1509 test_txmsg_skb(int cgrp, struct sockmap_options *opt) argument 1567 test_txmsg_cork_hangs(int cgrp, struct sockmap_options *opt) argument 1588 test_txmsg_pull(int cgrp, struct sockmap_options *opt) argument 1621 test_txmsg_pop(int cgrp, struct sockmap_options *opt) argument 1654 test_txmsg_push(int cgrp, struct sockmap_options *opt) argument 1680 test_txmsg_push_pop(int cgrp, struct sockmap_options *opt) argument 1689 test_txmsg_apply(int cgrp, struct sockmap_options *opt) argument 1734 test_txmsg_cork(int cgrp, struct sockmap_options *opt) argument 1749 test_txmsg_ingress_parser(int cgrp, struct sockmap_options *opt) argument 1761 test_txmsg_ingress_parser2(int cgrp, struct sockmap_options *opt) argument 1877 check_whitelist(struct _test *t, struct sockmap_options *opt) argument 1897 check_blacklist(struct _test *t, struct sockmap_options *opt) argument 1917 __test_selftests(int cg_fd, struct sockmap_options *opt) argument 1944 test_selftests_sockmap(int cg_fd, struct sockmap_options *opt) argument 1950 test_selftests_sockhash(int cg_fd, struct sockmap_options *opt) argument 1956 test_selftests_ktls(int cg_fd, struct sockmap_options *opt) argument 1965 test_selftest(int cg_fd, struct sockmap_options *opt) argument 1979 int opt, longindex, err, cg_fd = 0; local [all...] |