Home
last modified time | relevance | path

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

1234

/device/linaro/bootloader/edk2/AppPkg/Applications/Python/Python-2.7.2/Lib/
Dgetopt.py39 opt = '' variable in GetoptError
41 def __init__(self, msg, opt=''): argument
43 self.opt = opt
44 Exception.__init__(self, msg, opt)
144 def do_longs(opts, opt, longopts, args): argument
146 i = opt.index('=')
150 opt, optarg = opt[:i], opt[i+1:]
152 has_arg, opt = long_has_args(opt, longopts)
156 raise GetoptError('option --%s requires argument' % opt, opt)
159 raise GetoptError('option --%s must not have an argument' % opt, opt)
[all …]
Doptparse.py327 for opt in parser.option_list:
328 strings = self.format_option_strings(opt)
329 self.option_strings[opt] = strings
333 for opt in group.option_list:
334 strings = self.format_option_strings(opt)
335 self.option_strings[opt] = strings
423 def check_builtin(option, opt, value): argument
429 _("option %s: invalid %s value: %r") % (opt, what, value))
431 def check_choice(option, opt, value): argument
438 % (opt, value, choices))
[all …]
Dtrace.py701 for opt, val in opts:
702 if opt == "--help":
706 if opt == "--version":
710 if opt == "-T" or opt == "--trackcalls":
714 if opt == "-l" or opt == "--listfuncs":
718 if opt == "-g" or opt == "--timing":
722 if opt == "-t" or opt == "--trace":
726 if opt == "-c" or opt == "--count":
730 if opt == "-r" or opt == "--report":
734 if opt == "-R" or opt == "--no-report":
[all …]
/device/linaro/bootloader/edk2/AppPkg/Applications/Python/Python-2.7.10/Lib/
Dgetopt.py39 opt = '' variable in GetoptError
41 def __init__(self, msg, opt=''): argument
43 self.opt = opt
44 Exception.__init__(self, msg, opt)
144 def do_longs(opts, opt, longopts, args): argument
146 i = opt.index('=')
150 opt, optarg = opt[:i], opt[i+1:]
152 has_arg, opt = long_has_args(opt, longopts)
156 raise GetoptError('option --%s requires argument' % opt, opt)
159 raise GetoptError('option --%s must not have an argument' % opt, opt)
[all …]
Doptparse.py328 for opt in parser.option_list:
329 strings = self.format_option_strings(opt)
330 self.option_strings[opt] = strings
334 for opt in group.option_list:
335 strings = self.format_option_strings(opt)
336 self.option_strings[opt] = strings
424 def check_builtin(option, opt, value): argument
430 _("option %s: invalid %s value: %r") % (opt, what, value))
432 def check_choice(option, opt, value): argument
439 % (opt, value, choices))
[all …]
/device/linaro/bootloader/arm-trusted-firmware/tools/cert_create/src/tbbr/
Dtbb_key.c17 .opt = "rot-key",
23 .opt = "trusted-world-key",
29 .opt = "non-trusted-world-key",
35 .opt = "scp-fw-key",
41 .opt = "soc-fw-key",
47 .opt = "tos-fw-key",
53 .opt = "nt-fw-key",
Dtbb_cert.c21 .opt = "tb-fw-cert",
35 .opt = "trusted-key-cert",
50 .opt = "scp-fw-key-cert",
64 .opt = "scp-fw-cert",
78 .opt = "soc-fw-key-cert",
92 .opt = "soc-fw-cert",
106 .opt = "tos-fw-key-cert",
120 .opt = "tos-fw-cert",
136 .opt = "nt-fw-key-cert",
150 .opt = "nt-fw-cert",
[all …]
Dtbb_ext.c29 .opt = "tfw-nvctr",
39 .opt = "ntfw-nvctr",
49 .opt = "tb-fw",
82 .opt = "scp-fw",
99 .opt = "soc-fw",
116 .opt = "tos-fw",
125 .opt = "tos-fw-extra1",
135 .opt = "tos-fw-extra2",
153 .opt = "nt-fw",
162 .opt = "scp-fwu-cfg",
[all …]
/device/linaro/bootloader/edk2/AppPkg/Applications/Python/Python-2.7.2/Lib/distutils/
Dfancy_getopt.py122 for (alias, opt) in aliases.items():
127 if opt not in self.option_index:
130 "aliased option '%s' not defined") % (what, alias, opt)
261 for opt, val in opts:
262 if len(opt) == 2 and opt[0] == '-': # it's a short option
263 opt = self.short2long[opt[1]]
265 assert len(opt) > 2 and opt[:2] == '--'
266 opt = opt[2:]
268 alias = self.alias.get(opt)
270 opt = alias
[all …]
Dtext_file.py90 for opt in self.default_options.keys():
91 if opt in options:
92 setattr (self, opt, options[opt])
95 setattr (self, opt, self.default_options[opt])
98 for opt in options.keys():
99 if opt not in self.default_options:
100 raise KeyError, "invalid TextFile option '%s'" % opt
/device/generic/goldfish/wifi/ipv6proxy/
Dproxy.cpp44 for (nd_opt_hdr* opt = packet.firstOpt(); opt; opt = packet.nextOpt(opt)) { in rewriteLinkAddressOption() local
45 if (opt->nd_opt_type == optionType) { in rewriteLinkAddressOption()
47 auto dest = reinterpret_cast<char*>(opt) + sizeof(nd_opt_hdr); in rewriteLinkAddressOption()
54 for (nd_opt_hdr* opt = packet.firstOpt(); opt; opt = packet.nextOpt(opt)) { in extractRecursiveDnsServers() local
55 if (opt->nd_opt_type != 25 || opt->nd_opt_len < 1) { in extractRecursiveDnsServers()
59 size_t numEntries = (opt->nd_opt_len - 1) / 2; in extractRecursiveDnsServers()
61 const char* option = reinterpret_cast<const char*>(opt); in extractRecursiveDnsServers()
/device/linaro/bootloader/edk2/AppPkg/Applications/Python/Python-2.7.2/Tools/scripts/
Ddb2pickle.py74 for opt, arg in opts:
75 if opt in ("-h", "--hash"):
81 elif opt in ("-b", "--btree"):
87 elif opt in ("-r", "--recno"):
93 elif opt in ("-a", "--anydbm"):
99 elif opt in ("-g", "--gdbm"):
105 elif opt in ("-d", "--dbm"):
Dpickle2db.py79 for opt, arg in opts:
80 if opt in ("-h", "--hash"):
86 elif opt in ("-b", "--btree"):
92 elif opt in ("-r", "--recno"):
98 elif opt in ("-a", "--anydbm"):
104 elif opt in ("-g", "--gdbm"):
110 elif opt in ("-d", "--dbm"):
Dfixnotice.py68 for opt, arg in opts:
69 if opt in ('-h', '--help'):
71 elif opt in ('-v', '--verbose'):
73 elif opt == '--dry-run':
75 elif opt == '--oldnotice':
79 elif opt == '--newnotice':
/device/linaro/bootloader/edk2/AppPkg/Applications/Python/Python-2.7.2/Demo/sockets/
Dtelnet.py69 opt = '' # Interpret next char as option
79 if opt:
81 s.send(opt + c)
82 opt = ''
90 opt = IAC + WONT
94 opt = IAC + DONT
/device/linaro/bootloader/edk2/BaseTools/Source/C/LzmaCompress/Sdk/C/
DLzmaEnc.c351 COptimal opt[kNumOpts]; member
948 UInt32 posMem = p->opt[cur].posPrev; in Backward()
949 UInt32 backMem = p->opt[cur].backPrev; in Backward()
953 if (p->opt[cur].prev1IsChar) in Backward()
955 MakeAsChar(&p->opt[posMem]) in Backward()
956 p->opt[posMem].posPrev = posMem - 1; in Backward()
957 if (p->opt[cur].prev2) in Backward()
959 p->opt[posMem - 1].prev1IsChar = False; in Backward()
960 p->opt[posMem - 1].posPrev = p->opt[cur].posPrev2; in Backward()
961 p->opt[posMem - 1].backPrev = p->opt[cur].backPrev2; in Backward()
[all …]
/device/linaro/bootloader/edk2/AppPkg/Applications/Python/Python-2.7.2/Tools/i18n/
Dpygettext.py545 for opt, arg in opts:
546 if opt in ('-h', '--help'):
548 elif opt in ('-a', '--extract-all'):
550 elif opt in ('-d', '--default-domain'):
552 elif opt in ('-E', '--escape'):
554 elif opt in ('-D', '--docstrings'):
556 elif opt in ('-k', '--keyword'):
558 elif opt in ('-K', '--no-default-keywords'):
560 elif opt in ('-n', '--add-location'):
562 elif opt in ('--no-location',):
[all …]
/device/linaro/bootloader/edk2/BaseTools/Source/Python/TargetTool/
DTargetTool.py29 def __init__(self, opt, args): argument
31 self.Opt = opt
220 (opt, args)=parser.parse_args()
221 return (opt, args)
230 (opt, args) = MyOptionParser()
234 if opt.NUM != None and opt.NUM < 1:
237 if opt.TARGET != None and len(opt.TARGET) > 1:
238 for elem in opt.TARGET:
242 if opt.TARGET_ARCH != None and len(opt.TARGET_ARCH) > 1:
243 for elem in opt.TARGET_ARCH:
[all …]
/device/generic/goldfish/dhcp/common/
Dmessage.cpp213 const uint8_t* opt = getOption(OPT_MESSAGE_TYPE, &length); in type() local
214 if (opt && length == 1) { in type()
215 return *opt; in type()
222 const uint8_t* opt = getOption(OPT_SERVER_ID, &length); in serverId() local
223 if (opt && length == 4) { in serverId()
224 return *reinterpret_cast<const in_addr_t*>(opt); in serverId()
231 const uint8_t* opt = getOption(OPT_REQUESTED_IP, &length); in requestedIp() local
232 if (opt && length == 4) { in requestedIp()
233 return *reinterpret_cast<const in_addr_t*>(opt); in requestedIp()
293 const uint8_t* opt = dhcpData.options + i + 2; in getOption() local
[all …]
/device/linaro/bootloader/edk2/AppPkg/Applications/Python/Python-2.7.2/Lib/unittest/test/
Dtest_program.py140 for opt in '-h', '-H', '--help':
142 program.parseArgs([None, opt])
153 for opt in '-q', '--quiet':
155 program.parseArgs([None, opt])
158 for opt in '-v', '--verbose':
160 program.parseArgs([None, opt])
172 for opt in short_opt, long_opt:
175 program.parseArgs([None, opt])
178 for opt in short_opt, long_opt:
182 program.parseArgs([None, opt])
/device/generic/goldfish/dhcp/client/
Ddhcpclient.cpp330 const uint8_t* opt = options + i + 2; in configureDhcp() local
335 ntohl(*reinterpret_cast<const uint32_t*>(opt)); in configureDhcp()
341 ntohl(*reinterpret_cast<const uint32_t*>(opt)); in configureDhcp()
347 ntohl(*reinterpret_cast<const uint32_t*>(opt)); in configureDhcp()
353 *reinterpret_cast<const in_addr_t*>(opt); in configureDhcp()
359 *reinterpret_cast<const in_addr_t*>(opt); in configureDhcp()
365 ntohs(*reinterpret_cast<const uint16_t*>(opt)); in configureDhcp()
371 *reinterpret_cast<const in_addr_t*>(opt); in configureDhcp()
375 *reinterpret_cast<const in_addr_t*>(opt + 4); in configureDhcp()
379 *reinterpret_cast<const in_addr_t*>(opt + 8); in configureDhcp()
[all …]
/device/linaro/bootloader/edk2/AppPkg/Applications/Python/Python-2.7.2/Tools/world/
Dworld218 for opt, arg in opts:
219 if opt in ('-h', '--help'):
221 elif opt in ('-d', '--dump'):
223 elif opt in ('-p', '--parse'):
225 elif opt in ('-o', '--outputdict'):
227 elif opt in ('-r', '--reverse'):
/device/linaro/hikey/l-loader/
Dgen_loader_hikey.py163 for opt, arg in opts:
164 if opt == '-h':
167 elif opt == '-o':
169 elif opt in ("--img_loader"):
171 elif opt in ("--img_bl1"):
173 elif opt in ("--img_ns_bl1u"):
/device/linaro/bootloader/edk2/AppPkg/Applications/Python/Python-2.7.2/Lib/unittest/
Dmain.py120 for opt, value in options:
121 if opt in ('-h','-H','--help'):
123 if opt in ('-q','--quiet'):
125 if opt in ('-v','--verbose'):
127 if opt in ('-f','--failfast'):
131 if opt in ('-c','--catch'):
135 if opt in ('-b','--buffer'):
/device/linaro/bootloader/arm-trusted-firmware/tools/cert_create/src/
Dkey.c193 if (key->opt != NULL) { in key_init()
194 cmd_opt.long_opt.name = key->opt; in key_init()
206 key_t *key_get_by_opt(const char *opt) in key_get_by_opt() argument
215 if (0 == strcmp(key->opt, opt)) { in key_get_by_opt()

1234