/openbmc/openbmc/poky/bitbake/lib/bb/parse/ |
H A D | ast.py | 23 def __init__(self, filename, lineno): argument 25 self.lineno = lineno 28 def __init__(self, filename, lineno, what_file, force): argument 29 AstNode.__init__(self, filename, lineno) 38 logger.debug2("CONF %s:%s: including %s", self.filename, self.lineno, s) 42 bb.parse.ConfHandler.include(self.filename, s, self.lineno, data, "include required") 44 bb.parse.ConfHandler.include(self.filename, s, self.lineno, data, False) 47 def __init__(self, filename, lineno, what_file): argument 48 AstNode.__init__(self, filename, lineno) 56 logger.debug2("CONF %s:%s: including %s", self.filename, self.lineno, s) [all …]
|
H A D | __init__.py | 31 def __init__(self, msg, filename, lineno=0): argument 34 self.lineno = lineno 35 Exception.__init__(self, msg, filename, lineno) 38 if self.lineno: 39 return "ParseError at %s:%d: %s" % (self.filename, self.lineno, self.msg)
|
/openbmc/openbmc/poky/bitbake/lib/bb/parse/parse_py/ |
H A D | ConfHandler.py | 59 def include(parentfn, fns, lineno, data, error_out): argument 70 include_single_file(parentfn, fn, lineno, data, error_out) 72 def include_single_file(parentfn, fn, lineno, data, error_out): argument 97 raise ParseError("Could not %s file %s" % (error_out, fn), parentfn, lineno) 101 … raise ParseError("Could not %s file %s: %s" % (error_out, fn, exc.strerror), parentfn, lineno) 103 raise ParseError("Error parsing %s: %s" % (fn, exc.strerror), parentfn, lineno) 125 lineno = 0 127 lineno = lineno + 1 131 origlineno = lineno 142 lineno = lineno + 1 [all …]
|
H A D | BBHandler.py | 45 def inherit(files, fn, lineno, d, deferred=False): argument 71 raise ParseError("Could not inherit file %s" % (file), fn, lineno) 74 logger.debug("Inheriting %s (from %s:%d)" % (file, fn, lineno)) 80 raise ParseError("Could not inherit file %s: %s" % (fn, exc.strerror), fn, lineno) 92 lineno = 0 94 lineno = lineno + 1 98 feeder(lineno, s, filename, base_name, statements) 102 feeder(lineno, "", filename, base_name, statements, eof=True) 105 … raise ParseError("Unparsed lines %s: %s" % (filename, str(__residue__)), filename, lineno) 107 …Error("Unparsed lines from unclosed function %s: %s" % (filename, str(__body__)), filename, lineno) [all …]
|
/openbmc/linux/drivers/scsi/ |
H A D | script_asm.pl | 193 $lineno = 0; # Line number we are parsing 257 $forward{$symbol} = "line $lineno : $_"; 285 die "$0 : syntax error in line $lineno : $_ 303 die "$0 : syntax error in line $lineno : $_ 325 die "$0 : syntax error in line $lineno : $_ 330 die "$0 : syntax error in line $lineno : $_ 346 die "$0 : syntax error in line $lineno : $_ 357 die "$0 : syntax error in line $lineno : $_ 361 die "$0 : syntax error in line $lineno : $_ 366 die "$0 : syntax error in line $lineno : $_ [all …]
|
/openbmc/u-boot/scripts/kconfig/ |
H A D | kxgettext.c | 66 int lineno; member 69 static struct file_line *file_line__new(const char *file, int lineno) in file_line__new() argument 77 self->lineno = lineno; in file_line__new() 93 const char *file, int lineno) in message__new() argument 100 self->files = file_line__new(file, lineno); in message__new() 134 int lineno) in message__add_file_line() argument 137 struct file_line *fl = file_line__new(file, lineno); in message__add_file_line() 150 int lineno) in message__add() argument 158 rc = message__add_file_line(m, file, lineno); in message__add() 160 m = message__new(escaped, option, file, lineno); in message__add() [all …]
|
/openbmc/linux/usr/include/ |
H A D | headers_check.pl | 30 my $lineno = 0; 38 $lineno = 0; 40 $lineno++; 62 printf STDERR "$filename:$lineno: included file '$inc' is not exported\n"; 79 printf STDERR "$filename:$lineno: " . 88 printf STDERR "$filename:$lineno: leaks CONFIG_$1 to userspace where it is not valid\n"; 98 if ($lineno == 1) { 105 printf STDERR "$filename:$lineno: " . 151 if ($lineno == 1) { 164 printf STDERR "$filename:$lineno: " .
|
/openbmc/qemu/scripts/ |
H A D | decodetree.py | 132 def error_with_file(file, lineno, *args): argument 144 if lineno: 158 def error(lineno, *args): argument 159 error_with_file(input_file, lineno, *args) 467 def __init__(self, name, lineno, base, fixb, fixm, udfm, fldm, flds, w): argument 470 self.lineno = lineno 530 error(self.lineno, 'field definitions form a cycle: ' + cycle) 564 output(ind, '/* ', self.file, ':', str(self.lineno), ' */\n') 575 error(self.lineno, f'format refers to undefined field {r}') 579 error(self.lineno, f'pattern refers to undefined field {r}') [all …]
|
/openbmc/u-boot/tools/ |
H A D | ublimage.c | 73 char *name, int lineno, int fld, int dcd_len) in parse_cfg_cmd() argument 83 "(%s)\n", name, lineno, token); in parse_cfg_cmd() 91 ublhdr->entry = get_cfg_value(token, name, lineno); in parse_cfg_cmd() 94 ublhdr->pages = get_cfg_value(token, name, lineno); in parse_cfg_cmd() 97 ublhdr->block = get_cfg_value(token, name, lineno); in parse_cfg_cmd() 100 ublhdr->page = get_cfg_value(token, name, lineno); in parse_cfg_cmd() 103 ublhdr->pll_m = get_cfg_value(token, name, lineno); in parse_cfg_cmd() 109 char *token, char *name, int lineno, int fld, int *dcd_len) in parse_cfg_fld() argument 118 "(%s)\n", name, lineno, token); in parse_cfg_fld() 123 parse_cfg_cmd(ublhdr, *cmd, token, name, lineno, fld, *dcd_len); in parse_cfg_fld() [all …]
|
H A D | imximage.c | 143 static void set_dcd_val_v1(struct imx_header *imxhdr, char *name, int lineno, in set_dcd_val_v1() argument 154 name, lineno, value); in set_dcd_val_v1() 237 static void set_dcd_val_v2(struct imx_header *imxhdr, char *name, int lineno, in set_dcd_val_v2() argument 266 char *name, int lineno) in set_dcd_rst_v1() argument 279 char *name, int lineno) in set_dcd_rst_v2() argument 600 char *name, int lineno, int fld, int dcd_len) in parse_cfg_cmd() argument 607 imximage_version = get_cfg_value(token, name, lineno); in parse_cfg_cmd() 611 "valid command in the file\n", name, lineno); in parse_cfg_cmd() 622 "(%s)\n", name, lineno, token); in parse_cfg_cmd() 633 name, lineno, token); in parse_cfg_cmd() [all …]
|
H A D | mxsimage.c | 125 unsigned int lineno; member 580 cmd->lineno); in sb_build_dcd() 589 cmd->lineno); in sb_build_dcd() 666 cmd->lineno); in sb_build_dcd_block() 675 cmd->lineno); in sb_build_dcd_block() 682 cmd->lineno); in sb_build_dcd_block() 691 cmd->lineno); in sb_build_dcd_block() 727 cmd->lineno); in sb_build_section() 736 cmd->lineno); in sb_build_section() 763 cmd->lineno); in sb_build_section() [all …]
|
H A D | imx8mimage.c | 84 static void parse_cfg_cmd(int32_t cmd, char *token, char *name, int lineno) in parse_cfg_cmd() argument 112 char *name, int lineno, int fld) in parse_cfg_fld() argument 120 name, lineno, token); in parse_cfg_fld() 125 parse_cfg_cmd(*cmd, token, name, lineno); in parse_cfg_fld() 130 ap_start_addr = get_cfg_value(token, name, lineno); in parse_cfg_fld() 133 sld_start_addr = get_cfg_value(token, name, lineno); in parse_cfg_fld() 140 sld_src_off = get_cfg_value(token, name, lineno); in parse_cfg_fld() 153 int lineno = 0; in parse_cfg_file() local 169 lineno++; in parse_cfg_file() 186 parse_cfg_fld(&cmd, token, name, lineno, fld); in parse_cfg_file()
|
/openbmc/openbmc/poky/scripts/lib/wic/ |
H A D | ksparser.py | 142 self.lineno = 0 214 lineno = 0 217 lineno += 1 225 (confpath, lineno, err)) 231 % (confpath, lineno) 235 % (confpath, lineno) 239 err = "%s:%d: erofs does not support LABEL" % (confpath, lineno) 249 % (confpath, lineno, parsed.fsuuid, parsed.fstype) 256 % (confpath, lineno, parsed.fsuuid, parsed.fstype) 260 % (confpath, lineno) [all …]
|
/openbmc/openbmc/poky/scripts/ |
H A D | verify-bashisms | 33 def process(filename, function, lineno, script): argument 73 if lineno is not None: 74 … message = SCRIPT_LINENO_RE.sub(lambda m: ' line %d ' % (int(m.group(1)) + int(lineno) - 1), 112 (filename, key, lineno), script = item 115 return process(filename, key, lineno, script) 147 lineno = data.getVarFlag(key, "lineno") variable 152 attributes = (filename or realfn, key, lineno)
|
/openbmc/qemu/scripts/tracetool/ |
H A D | __init__.py | 222 def __init__(self, name, props, fmt, args, lineno, filename, orig=None, argument 251 self.lineno = int(lineno) 274 self.args.copy(), self.lineno, self.filename, 278 def build(line_str, lineno, filename): argument 311 return Event(name, props, fmt, args, lineno, filename) 359 for lineno, line in enumerate(fobj, 1): 368 event = Event.build(line, lineno, fname) 370 arg0 = 'Error at %s:%d: %s' % (fname, lineno, e.args[0])
|
/openbmc/qemu/docs/sphinx/ |
H A D | dbusdoc.py | 58 def add_line(self, line: str, *lineno: int) -> None: 61 self.result.append(self.indent + line, self._dbusfile, *lineno) 63 self.result.append("", self._dbusfile, *lineno) 141 source, lineno = reporter.get_source_and_line(self.lineno) # type: ignore 143 source, lineno = (None, None) 145 logger.debug("[dbusdoc] %s:%s: input:\n%s", source, lineno, self.block_text)
|
/openbmc/u-boot/cmd/ |
H A D | ini.c | 130 int lineno = 0; in ini_parse() local 135 lineno++; in ini_parse() 152 error = lineno; in ini_parse() 164 error = lineno; in ini_parse() 192 error = lineno; in ini_parse() 195 error = lineno; in ini_parse()
|
/openbmc/openbmc/poky/bitbake/lib/bb/ |
H A D | methodpool.py | 9 def insert_method(modulename, code, fn, lineno): argument 14 comp = better_compile(code, modulename, fn, lineno=lineno)
|
/openbmc/openbmc/poky/scripts/contrib/ |
H A D | convert-variable-renames.py | 69 lineno = 0 71 lineno += 1 82 …int("%s needs further work at line %s because %s has been deprecated" % (fn, lineno, removed_name)) 85 … print("%s needs further work at line %s since it contains %s"% (fn, lineno, check_word))
|
/openbmc/linux/tools/perf/util/ |
H A D | dwarf-aux.c | 117 const char **fname, int *lineno) in cu_find_lineinfo() argument 127 dwarf_decl_line(&die_mem, lineno); in cu_find_lineinfo() 132 if (line && dwarf_lineno(line, lineno) == 0) { in cu_find_lineinfo() 136 *lineno = 0; in cu_find_lineinfo() 140 return (*lineno && *fname) ? *lineno : -ENOENT; in cu_find_lineinfo() 784 int lineno; in __die_walk_funclines_cb() local 788 lineno = die_get_call_lineno(in_die); in __die_walk_funclines_cb() 789 if (fname && lineno > 0 && die_entrypc(in_die, &addr) == 0) { in __die_walk_funclines_cb() 790 lw->retval = lw->callback(fname, lineno, addr, lw->data); in __die_walk_funclines_cb() 800 if (fname && dwarf_decl_line(in_die, &lineno) == 0) { in __die_walk_funclines_cb() [all …]
|
/openbmc/linux/drivers/base/power/ |
H A D | trace.c | 169 unsigned short lineno = *(unsigned short *)tracedata; in generate_pm_trace() local 177 file_hash_value = hash_string(lineno, file, FILEHASH); in generate_pm_trace() 191 unsigned short lineno = *(unsigned short *)tracedata; in show_file_hash() local 193 unsigned int hash = hash_string(lineno, file, FILEHASH); in show_file_hash() 196 pr_info(" hash matches %s:%u\n", file, lineno); in show_file_hash()
|
/openbmc/openbmc/meta-openembedded/meta-networking/recipes-daemons/tftp-hpa/files/ |
H A D | tftp-0.40-remap.patch | 11 int lineno = 0; 15 while (lineno++, fgets(line, MAXLINE, f)) { 16 rv = parseline(line, this_rule, lineno);
|
/openbmc/phosphor-networkd/src/ |
H A D | config_parser.cpp | 154 size_t lineno; member 157 filename(filename), section(nullptr), lineno(0) in Parse() 166 filename.get().native(), lineno)); in pumpSection() 176 filename.get().native(), lineno)); in pumpSection() 198 "{}:{}: KV missing `=`", filename.get().native(), lineno)); in pumpKV() 206 filename.get().native(), lineno, k)); in pumpKV() 229 lineno++; in pump()
|
/openbmc/u-boot/scripts/dtc/ |
H A D | srcpos.c | 156 srcfile->lineno = 1; in srcfile_push() 218 pos->first_line = current_srcfile->lineno; in srcpos_update() 223 current_srcfile->lineno++; in srcpos_update() 229 pos->last_line = current_srcfile->lineno; in srcpos_update() 296 current_srcfile->lineno = l; in srcpos_set_line()
|
/openbmc/linux/scripts/kconfig/tests/preprocess/builtin_func/ |
H A D | Kconfig | 25 # 'lineno' to the line number. 27 $(warning,lineno=$(lineno))
|