Home
last modified time | relevance | path

Searched refs:opt (Results 1 – 25 of 2310) sorted by relevance

12345678910>>...93

/external/oprofile/libpopt/
Dpopthelp.c95 const struct poptOption *opt; in getTableTranslationDomain() local
98 for (opt = table; opt->longName || opt->shortName || opt->arg; opt++) { in getTableTranslationDomain()
99 if (opt->argInfo == POPT_ARG_INTL_DOMAIN) in getTableTranslationDomain()
100 return opt->arg; in getTableTranslationDomain()
110 getArgDescrip(const struct poptOption * opt, in getArgDescrip() argument
116 if (!(opt->argInfo & POPT_ARG_MASK)) return NULL; in getArgDescrip()
118 if (opt == (poptHelpOptions + 1) || opt == (poptHelpOptions + 2)) in getArgDescrip()
119 if (opt->argDescrip) return POPT_(opt->argDescrip); in getArgDescrip()
121 if (opt->argDescrip) return D_(translation_domain, opt->argDescrip); in getArgDescrip()
123 switch (opt->argInfo & POPT_ARG_MASK) { in getArgDescrip()
[all …]
Dpopt.c64 static void invokeCallbacksPRE(poptContext con, const struct poptOption * opt) in invokeCallbacksPRE() argument
68 if (opt != NULL) in invokeCallbacksPRE()
69 for (; opt->longName || opt->shortName || opt->arg; opt++) { in invokeCallbacksPRE()
70 if (opt->arg == NULL) continue; /* XXX program error. */ in invokeCallbacksPRE()
71 if ((opt->argInfo & POPT_ARG_MASK) == POPT_ARG_INCLUDE_TABLE) { in invokeCallbacksPRE()
72 void * arg = opt->arg; in invokeCallbacksPRE()
79 } else if ((opt->argInfo & POPT_ARG_MASK) == POPT_ARG_CALLBACK && in invokeCallbacksPRE()
80 (opt->argInfo & POPT_CBFLAG_PRE)) in invokeCallbacksPRE()
82 poptCallbackType cb = (poptCallbackType)opt->arg; in invokeCallbacksPRE()
86 cb(con, POPT_CALLBACK_REASON_PRE, NULL, NULL, opt->descrip); in invokeCallbacksPRE()
[all …]
/external/linux-tools-perf/util/
Dparse-options.c8 static int opterror(const struct option *opt, const char *reason, int flags) in opterror() argument
11 return error("switch `%c' %s", opt->short_name, reason); in opterror()
13 return error("option `no-%s' %s", opt->long_name, reason); in opterror()
14 return error("option `%s' %s", opt->long_name, reason); in opterror()
17 static int get_arg(struct parse_opt_ctx_t *p, const struct option *opt, in get_arg() argument
20 if (p->opt) { in get_arg()
21 *arg = p->opt; in get_arg()
22 p->opt = NULL; in get_arg()
23 } else if ((opt->flags & PARSE_OPT_LASTARG_DEFAULT) && (p->argc == 1 || in get_arg()
25 *arg = (const char *)opt->defval; in get_arg()
[all …]
/external/ppp/pppd/
Doptions.c354 option_t *opt; local
363 opt = find_option(arg);
364 if (opt == NULL) {
369 n = n_arguments(opt);
374 if (!process_option(opt, arg, argv))
395 option_t *opt; local
427 opt = find_option(cmd);
428 if (opt == NULL) {
433 n = n_arguments(opt);
443 if (!process_option(opt, cmd, argv))
[all …]
/external/webkit/Source/JavaScriptCore/tests/mozilla/Getopt/
DMixed.pm75 my($opt,$type);
90 $opt = $1;
98 $options{$opt} = $type;
238 my $opt = shift;
240 $opt =~ s/-/[^-]*-/g;
241 $opt .= ".*";
243 my @matches = grep(/^$opt$/, keys %options);
248 $opt = $matches[0];
249 $opt = $options{$opt} if $options{$opt} =~ /^[^=:]/;
253 unless $_ eq $opt or $options{$_} eq $opt;
[all …]
/external/webkit/Source/WebCore/platform/qt/
DScrollbarThemeQt.cpp99 static QStyleOptionSlider opt; in styleOptionSlider() local
101 opt.initFrom(widget); in styleOptionSlider()
103 opt.state |= QStyle::State_Active; in styleOptionSlider()
105 opt.state &= ~QStyle::State_HasFocus; in styleOptionSlider()
107 opt.rect = scrollbar->frameRect(); in styleOptionSlider()
109 opt.state |= QStyle::State_Enabled; in styleOptionSlider()
111 opt.state |= QStyle::State_Mini; in styleOptionSlider()
112opt.orientation = (scrollbar->orientation() == VerticalScrollbar) ? Qt::Vertical : Qt::Horizontal; in styleOptionSlider()
115 opt.state |= QStyle::State_Horizontal; in styleOptionSlider()
117 opt.state &= ~QStyle::State_Horizontal; in styleOptionSlider()
[all …]
/external/iproute2/tc/
Dq_gred.c54 struct tc_gred_sopt opt; in init_gred() local
82 opt.DPs); in init_gred()
86 opt.grio=1; in init_gred()
103 memset(&opt, 0, sizeof(struct tc_gred_sopt)); in init_gred()
104 opt.DPs = dps; in init_gred()
105 opt.def_DP = def_dp; in init_gred()
107 DPRINTF("TC_GRED: sending DPs=%d default=%d\n",opt.DPs,opt.def_DP); in init_gred()
111 addattr_l(n, 1024, TCA_GRED_DPS, &opt, sizeof(struct tc_gred_sopt)); in init_gred()
121 struct tc_gred_qopt opt; in gred_parse_opt() local
130 memset(&opt, 0, sizeof(opt)); in gred_parse_opt()
[all …]
Dq_tbf.c42 struct tc_tbf_qopt opt; in tbf_parse_opt() local
51 memset(&opt, 0, sizeof(opt)); in tbf_parse_opt()
56 if (opt.limit || latency) { in tbf_parse_opt()
60 if (get_size(&opt.limit, *argv)) { in tbf_parse_opt()
67 if (opt.limit || latency) { in tbf_parse_opt()
114 if (opt.rate.rate) { in tbf_parse_opt()
118 if (get_rate(&opt.rate.rate, *argv)) { in tbf_parse_opt()
125 if (opt.peakrate.rate) { in tbf_parse_opt()
129 if (get_rate(&opt.peakrate.rate, *argv)) { in tbf_parse_opt()
164 if (opt.rate.rate == 0 || !buffer) { in tbf_parse_opt()
[all …]
Dq_htb.c63 struct tc_htb_glob opt; in htb_parse_opt() local
66 memset(&opt,0,sizeof(opt)); in htb_parse_opt()
67 opt.rate2quantum = 10; in htb_parse_opt()
68 opt.version = 3; in htb_parse_opt()
73 if (get_u32(&opt.rate2quantum, *argv, 10)) { in htb_parse_opt()
78 if (get_u32(&opt.defcls, *argv, 16)) { in htb_parse_opt()
85 opt.debug |= (*p-'0')<<(2*i); in htb_parse_opt()
96 addattr_l(n, 2024, TCA_HTB_INIT, &opt, NLMSG_ALIGN(sizeof(opt))); in htb_parse_opt()
104 struct tc_htb_opt opt; in htb_parse_class_opt() local
114 memset(&opt, 0, sizeof(opt)); mtu = 1600; /* eth packet len */ in htb_parse_class_opt()
[all …]
Dq_red.c36 struct tc_red_qopt opt; in red_parse_opt() local
46 memset(&opt, 0, sizeof(opt)); in red_parse_opt()
51 if (get_size(&opt.limit, *argv)) { in red_parse_opt()
57 if (get_size(&opt.qth_min, *argv)) { in red_parse_opt()
63 if (get_size(&opt.qth_max, *argv)) { in red_parse_opt()
107 if (!opt.qth_min || !opt.qth_max || !burst || !opt.limit || !avpkt) { in red_parse_opt()
112 if ((wlog = tc_red_eval_ewma(opt.qth_min, burst, avpkt)) < 0) { in red_parse_opt()
118 opt.Wlog = wlog; in red_parse_opt()
119 if ((wlog = tc_red_eval_P(opt.qth_min, opt.qth_max, probability)) < 0) { in red_parse_opt()
123 opt.Plog = wlog; in red_parse_opt()
[all …]
Dq_sfq.c34 struct tc_sfq_qopt opt; in sfq_parse_opt() local
36 memset(&opt, 0, sizeof(opt)); in sfq_parse_opt()
41 if (get_size(&opt.quantum, *argv)) { in sfq_parse_opt()
48 if (get_integer(&opt.perturb_period, *argv, 0)) { in sfq_parse_opt()
55 if (get_u32(&opt.limit, *argv, 0)) { in sfq_parse_opt()
59 if (opt.limit < 2) { in sfq_parse_opt()
76 addattr_l(n, 1024, TCA_OPTIONS, &opt, sizeof(opt)); in sfq_parse_opt()
80 static int sfq_print_opt(struct qdisc_util *qu, FILE *f, struct rtattr *opt) in sfq_print_opt() argument
85 if (opt == NULL) in sfq_print_opt()
88 if (RTA_PAYLOAD(opt) < sizeof(*qopt)) in sfq_print_opt()
[all …]
Dq_fifo.c34 struct tc_fifo_qopt opt; in fifo_parse_opt() local
35 memset(&opt, 0, sizeof(opt)); in fifo_parse_opt()
40 if (get_size(&opt.limit, *argv)) { in fifo_parse_opt()
57 addattr_l(n, 1024, TCA_OPTIONS, &opt, sizeof(opt)); in fifo_parse_opt()
61 static int fifo_print_opt(struct qdisc_util *qu, FILE *f, struct rtattr *opt) in fifo_print_opt() argument
65 if (opt == NULL) in fifo_print_opt()
68 if (RTA_PAYLOAD(opt) < sizeof(*qopt)) in fifo_print_opt()
70 qopt = RTA_DATA(opt); in fifo_print_opt()
98 extern int prio_print_opt(struct qdisc_util *qu, FILE *f, struct rtattr *opt);
Dq_netem.c130 struct tc_netem_qopt opt; in netem_parse_opt() local
137 memset(&opt, 0, sizeof(opt)); in netem_parse_opt()
138 opt.limit = 1000; in netem_parse_opt()
147 if (get_size(&opt.limit, *argv)) { in netem_parse_opt()
154 if (get_ticks(&opt.latency, *argv)) { in netem_parse_opt()
161 if (get_ticks(&opt.jitter, *argv)) { in netem_parse_opt()
178 if (get_percent(&opt.loss, *argv)) { in netem_parse_opt()
222 if (get_u32(&opt.gap, *argv, 0)) { in netem_parse_opt()
228 if (get_percent(&opt.duplicate, *argv)) { in netem_parse_opt()
261 if (opt.latency == 0) { in netem_parse_opt()
[all …]
Dq_rr.c36 struct tc_prio_qopt opt={3,{ 1, 2, 2, 2, 1, 2, 0, 0, 1, 1, 1, 1, 1, 1, 1, 1 }}; in rr_parse_opt() local
45 if (get_integer(&opt.bands, *argv, 10)) { in rr_parse_opt()
71 if (band > opt.bands) { in rr_parse_opt()
79 opt.priomap[idx++] = band; in rr_parse_opt()
84 nest = addattr_nest_compat(n, 1024, TCA_OPTIONS, &opt, sizeof(opt)); in rr_parse_opt()
91 int rr_print_opt(struct qdisc_util *qu, FILE *f, struct rtattr *opt) in rr_print_opt() argument
97 if (opt == NULL) in rr_print_opt()
100 if (parse_rtattr_nested_compat(tb, TCA_PRIO_MAX, opt, qopt, in rr_print_opt()
/external/qemu/
Dqemu-option.c529 QemuOpt *opt; in qemu_opt_find() local
531 QTAILQ_FOREACH_REVERSE(opt, &opts->head, QemuOptHead, next) { in qemu_opt_find()
532 if (strcmp(opt->name, name) != 0) in qemu_opt_find()
534 return opt; in qemu_opt_find()
541 QemuOpt *opt = qemu_opt_find(opts, name); in qemu_opt_get() local
542 return opt ? opt->str : NULL; in qemu_opt_get()
547 QemuOpt *opt = qemu_opt_find(opts, name); in qemu_opt_get_bool() local
549 if (opt == NULL) in qemu_opt_get_bool()
551 assert(opt->desc && opt->desc->type == QEMU_OPT_BOOL); in qemu_opt_get_bool()
552 return opt->value.boolean; in qemu_opt_get_bool()
[all …]
/external/jdiff/src/jdiff/
DOptions.java36 String opt = option.toLowerCase(); in optionLength() local
39 if (opt.equals("-authorid")) return 2; in optionLength()
40 if (opt.equals("-versionid")) return 2; in optionLength()
41 if (opt.equals("-d")) return 2; in optionLength()
42 if (opt.equals("-classlist")) return 1; in optionLength()
43 if (opt.equals("-title")) return 2; in optionLength()
44 if (opt.equals("-docletid")) return 1; in optionLength()
45 if (opt.equals("-evident")) return 2; in optionLength()
46 if (opt.equals("-skippkg")) return 2; in optionLength()
47 if (opt.equals("-skipclass")) return 2; in optionLength()
[all …]
/external/iproute2/ip/
Dip.c152 char *opt = argv[1]; in main() local
153 if (strcmp(opt,"--") == 0) { in main()
157 if (opt[0] != '-') in main()
159 if (opt[1] == '-') in main()
160 opt++; in main()
161 if (matches(opt, "-family") == 0) { in main()
180 } else if (strcmp(opt, "-4") == 0) { in main()
182 } else if (strcmp(opt, "-6") == 0) { in main()
184 } else if (strcmp(opt, "-0") == 0) { in main()
186 } else if (strcmp(opt, "-I") == 0) { in main()
[all …]
/external/dnsmasq/src/
Drfc2131.c81 #define option_len(opt) ((int)(((unsigned char *)(opt))[1])) argument
82 #define option_ptr(opt, i) ((void *)&(((unsigned char *)(opt))[2u+(unsigned int)(i)])) argument
84 static int sanitise(unsigned char *opt, char *buf);
86 …signed int calc_time(struct dhcp_context *context, struct dhcp_config *config, unsigned char *opt);
87 static void option_put(struct dhcp_packet *mess, unsigned char *end, int opt, int len, unsigned int…
89 int opt, char *string, int null_term);
90 static struct in_addr option_addr(unsigned char *opt);
91 static struct in_addr option_addr_arr(unsigned char *opt, int offset);
92 static unsigned int option_uint(unsigned char *opt, int i, int size);
96 static unsigned char *option_find1(unsigned char *p, unsigned char *end, int opt, int minsize);
[all …]
/external/llvm/tools/llc/
Dllc.cpp45 static cl::opt<std::string>
48 static cl::opt<std::string>
52 static cl::opt<char>
60 static cl::opt<std::string>
63 static cl::opt<std::string>
66 static cl::opt<std::string>
78 static cl::opt<Reloc::Model>
93 static cl::opt<llvm::CodeModel::Model>
109 static cl::opt<bool>
114 cl::opt<TargetMachine::CodeGenFileType>
[all …]
/external/bluetooth/bluez/tools/
Dhciconfig.c168 static void cmd_rstat(int ctl, int hdev, char *opt) in cmd_rstat() argument
178 static void cmd_scan(int ctl, int hdev, char *opt) in cmd_scan() argument
184 if (!strcmp(opt, "iscan")) in cmd_scan()
186 else if (!strcmp(opt, "pscan")) in cmd_scan()
188 else if (!strcmp(opt, "piscan")) in cmd_scan()
198 static void cmd_le_addr(int ctl, int hdev, char *opt) in cmd_le_addr() argument
205 if (!opt) in cmd_le_addr()
221 str2ba(opt, &cp.bdaddr); in cmd_le_addr()
241 static void cmd_le_adv(int ctl, int hdev, char *opt) in cmd_le_adv() argument
258 if (strcmp(opt, "noleadv") == 0) in cmd_le_adv()
[all …]
Dhcitool.c56 #define for_each_opt(opt, long, short) while ((opt=getopt_long(argc, argv, short ? short:"+", long,… argument
419 int opt; in cmd_dev() local
421 for_each_opt(opt, dev_options, NULL) { in cmd_dev()
422 switch (opt) { in cmd_dev()
459 int i, l, opt; in cmd_inq() local
465 for_each_opt(opt, inq_options, NULL) { in cmd_inq()
466 switch (opt) { in cmd_inq()
553 int i, n, l, opt, dd, cc, nc; in cmd_scan() local
559 for_each_opt(opt, scan_options, NULL) { in cmd_scan()
560 switch (opt) { in cmd_scan()
[all …]
/external/bzip2/
Dbzgrep20 -e | -f) opt="$opt $1"; shift; pat="$1"
24 -A | -B) opt="$opt $1 $2"; shift;;
25 -*) opt="$opt $1";;
43 op=`echo "$opt" | sed -e 's/ //g' -e 's/-//g'`
52 bzip2 -cdfq | $grep $opt "$pat"
60 bzip2 -cdfq "$i" | $grep $opt "$pat" 2>&1 > /dev/null && echo $i
63 bzip2 -cdfq "$i" | $grep $opt "$pat"
70 bzip2 -cdfq "$i" | $grep $opt "$pat" | sed "s|^|${j}:|"
/external/antlr/antlr-3.4/runtime/Ruby/lib/antlr3/
Dmain.rb388 def setup_options( opt ) argument
391 opt.separator ""
392 opt.separator( "Parser Configuration:" )
394 opt.on( '--lexer-name CLASS_NAME', "name of the lexer class to use" ) { |val|
399 opt.on( '--lexer-file PATH_TO_LIBRARY', "path to library defining the lexer class" ) { |val|
407 opt.on( '--rule NAME', "name of the parser rule to execute" ) { |val| @parser_rule = val }
410 opt.separator ''
411 opt.separator "Debug Mode Options:"
413 opt.on( '--trace', '-t', "print rule trace instead of opening a debug socket" ) do
417 opt.on( '--port NUMBER', Integer, "port number to use for the debug socket" ) do |number|
[all …]
/external/dhcpcd/
Ddhcp.c194 const struct dhcp_opt *opt; in print_options() local
203 for (opt = dhcp_opts; opt->option; opt++) in print_options()
204 if (opt->var) in print_options()
205 printf("%03d %s\n", opt->option, opt->var); in print_options()
211 const struct dhcp_opt *opt; in make_option_mask() local
218 for (opt = dhcp_opts; opt->option; opt++) { in make_option_mask()
219 if (!opt->var) in make_option_mask()
222 if (strcmp(opt->var, token) == 0) in make_option_mask()
228 if (opt->option == n) in make_option_mask()
232 if (add == 2 && !(opt->type & IPV4)) { in make_option_mask()
[all …]
/external/llvm/lib/CodeGen/
DPasses.cpp32 static cl::opt<bool> DisablePostRA("disable-post-ra", cl::Hidden,
34 static cl::opt<bool> DisableBranchFold("disable-branch-fold", cl::Hidden,
36 static cl::opt<bool> DisableTailDuplicate("disable-tail-duplicate", cl::Hidden,
38 static cl::opt<bool> DisableEarlyTailDup("disable-early-taildup", cl::Hidden,
40 static cl::opt<bool> DisableBlockPlacement("disable-block-placement",
43 static cl::opt<bool> EnableBlockPlacementStats("enable-block-placement-stats",
45 static cl::opt<bool> DisableCodePlace("disable-code-place", cl::Hidden,
47 static cl::opt<bool> DisableSSC("disable-ssc", cl::Hidden,
49 static cl::opt<bool> DisableMachineDCE("disable-machine-dce", cl::Hidden,
51 static cl::opt<bool> DisableMachineLICM("disable-machine-licm", cl::Hidden,
[all …]

12345678910>>...93