| /openbmc/openbmc/meta-openembedded/contrib/ |
| H A D | oe-stylize.py | 226 def respect_rule0(line): argument 227 return line.lstrip() == line 230 def conformTo_rule0(line): argument 231 return line.lstrip() 237 def respect_rule1(line): argument 238 if line.rstrip().endswith('\\'): 239 return line.endswith('\\') 244 def conformTo_rule1(line): argument 245 return line.rstrip() 251 def respect_rule2(line): argument [all …]
|
| /openbmc/openbmc/poky/scripts/contrib/ |
| H A D | convert-srcuri.py | 22 def matchline(line): argument 23 if "MIRROR" in line or ".*" in line or "GNOME_GIT" in line: 34 for line in old_file: 35 … if ("git://" in line or "gitsm://" in line) and "branch=" not in line and matchline(line): 36 if line.endswith('"\n'): 37 line = line.replace('"\n', ';branch=master"\n') 38 elif re.search('\s*\\\\$', line): 39 line = re.sub('\s*\\\\$', ';branch=master \\\\', line) 41 …if ("git://" in line or "gitsm://" in line) and "github.com" in line and "protocol=https" not in l… 42 if "protocol=git" in line: [all …]
|
| H A D | convert-overrides.py | 109 for line in old_file: 112 if s in line: 114 … if "ptest_append" in line or "ptest_remove" in line or "ptest_prepend" in line: 117 if sub in line: 118 line = line.replace(sub, subs[sub]) 122 line = package_re[pvar][0].sub(package_re[pvar][1], line) 124 line = vars_re[var][0].sub(vars_re[var][1], line) 126 line = shortvars_re[shortvar][0].sub(shortvars_re[shortvar][1], line) 127 if "pkg_postinst:ontarget" in line: 128 line = line.replace("pkg_postinst:ontarget", "pkg_postinst_ontarget") [all …]
|
| /openbmc/openbmc/meta-security/dynamic-layers/meta-perl/recipes-security/bastille/files/ |
| H A D | FileContent.pm | 64 while (my $line = <BLANK_OLD>) { 66 push @lines,$line; 67 if ($line =~ $pattern) { 74 while ( my $line = shift @lines ) { 75 &B_print(*BLANK_NEW,$line); 124 while (my $line=<INSERT_OLD>) { 125 push (@lines,$line); 126 if ($line =~ $pattern) { 129 if ( ($found_line_to_follow < 1) and ($line =~ $line_to_follow)) { 144 while (my $line = shift @lines) { [all …]
|
| /openbmc/openbmc/poky/scripts/ |
| H A D | opkg-query-helper.py | 36 for line in fileinput.input(args): 37 line = line.rstrip() variable 38 if ': ' in line: 39 if line.startswith("Package:"): 40 pkg = line.split(": ")[1] 44 if line.startswith("Architecture:"): 45 arch = line.split(": ")[1] 48 if line.startswith("Version:"): 49 ver = line.split(": ")[1] 50 elif line.startswith("Architecture:"): [all …]
|
| /openbmc/openbmc/poky/meta/lib/oeqa/selftest/cases/ |
| H A D | overlayfs.py | 12 def getline_qemu(out, line): argument 14 if line in l: 17 def getline(res, line): argument 18 return getline_qemu(res.output, line) 47 line = getline(res, "overlayfs-user was skipped: missing required distro features") 68 …line = getline(res, " Mount path /mnt/overlay not found in fstab and unit mnt-overlay.mount not fo… 69 self.assertTrue(line and line.startswith("WARNING:"), msg=res.output) 70 line = getline(res, "Not all mount paths and units are installed in the image") 71 self.assertTrue(line and line.startswith("ERROR:"), msg=res.output) 106 …line = getline(res, "A recipe uses overlayfs class but there is no OVERLAYFS_MOUNT_POINT set in yo… [all …]
|
| /openbmc/openbmc/meta-google/recipes-google/networking/files/ |
| H A D | gbmc-ip-monitor.sh | 40 local line 41 while read -r line; do 42 [[ "$line" =~ ^([0-9]+:[[:space:]][^:]+) ]] && intf="${BASH_REMATCH[1]}" 43 [[ "$line" =~ ^[[:space:]]*inet ]] && echo "[ADDR]$intf $line" 62 local line="$1" 63 if [[ "$line" == '[INIT]'* ]]; then 66 elif [[ "$line" == '[ADDR]'* ]]; then 77 if ! [[ "$line" =~ ${combined_re} ]]; then 78 echo "Failed to parse addr: $line" >&2 89 elif [[ "$line" == '[ROUTE]'* ]]; then [all …]
|
| /openbmc/qemu/scripts/ |
| H A D | checkpatch.pl | 387 my $line = $_; 389 $line =~ s/\s*\n?$//g; 390 $line =~ s/^\s*//g; 392 next if ($line =~ m/^\s*#/); 393 next if ($line =~ m/^\s*$/); 394 next if ($line =~ m/, disabled/i); 396 $line =~ s/,.*$//; 398 my ($suspect, $fix) = split(/->/, $line); 453 for my $line (<$HASH>) { 454 $line =~ /^([0-9a-fA-F]{40,40}) (.*)$/; [all …]
|
| /openbmc/phosphor-mboxd/vpnor/test/ |
| H A D | toc_flags.cpp | 19 std::string line; in main() local 24 line = "partition01=FOO,00001000,00002000,80,ECC"; in main() 25 vpnor::parseTocLine(line, BLOCK_SIZE, part); in main() 29 line = "partition01=FOO,00001000,00002000,80,PRESERVED"; in main() 30 vpnor::parseTocLine(line, BLOCK_SIZE, part); in main() 34 line = "partition01=FOO,00001000,00002000,80,READONLY"; in main() 35 vpnor::parseTocLine(line, BLOCK_SIZE, part); in main() 40 line = "partition01=FOO,00001000,00002000,80,BACKUP"; in main() 41 vpnor::parseTocLine(line, BLOCK_SIZE, part); in main() 45 line = "partition01=FOO,00001000,00002000,80,REPROVISION"; in main() [all …]
|
| /openbmc/hiomapd/vpnor/test/ |
| H A D | toc_flags.cpp | 21 std::string line; in main() local 26 line = "partition01=FOO,00001000,00002000,80,ECC"; in main() 27 vpnor::parseTocLine(line, BLOCK_SIZE, part); in main() 31 line = "partition01=FOO,00001000,00002000,80,PRESERVED"; in main() 32 vpnor::parseTocLine(line, BLOCK_SIZE, part); in main() 36 line = "partition01=FOO,00001000,00002000,80,READONLY"; in main() 37 vpnor::parseTocLine(line, BLOCK_SIZE, part); in main() 42 line = "partition01=FOO,00001000,00002000,80,BACKUP"; in main() 43 vpnor::parseTocLine(line, BLOCK_SIZE, part); in main() 47 line = "partition01=FOO,00001000,00002000,80,REPROVISION"; in main() [all …]
|
| /openbmc/u-boot/scripts/ |
| H A D | checkpatch.pl | 168 my $line = $_; 170 $line =~ s/\s*\n?$//g; 171 $line =~ s/^\s*//g; 172 $line =~ s/\s+/ /g; 174 next if ($line =~ m/^\s*#/); 175 next if ($line =~ m/^\s*$/); 177 my @words = split(" ", $line); 650 my $line = $_; 652 $line =~ s/\s*\n?$//g; 653 $line =~ s/^\s*//g; [all …]
|
| /openbmc/u-boot/tools/patman/ |
| H A D | patchstream.py | 78 def AddToSeries(self, line, name, value): argument 93 self.series.AddTag(self.commit, line, name, value) 95 def AddToCommit(self, line, name, value): argument 123 def ProcessLine(self, line): argument 149 line = line.rstrip('\n') 151 commit_match = re_commit.match(line) if self.is_log else None 154 if line[:4] == ' ': 155 line = line[4:] 158 series_tag_match = re_series_tag.match(line) 159 commit_tag_match = re_commit_tag.match(line) [all …]
|
| /openbmc/openbmc-build-scripts/config/gitlint/ |
| H A D | block_comment.py | 24 for line in commit.message.body: 27 line.startswith("'''") 28 or line.startswith('"""') 29 or line.startswith("```") 36 if "\t" in line: 38 RuleViolation(self.id, self.tabs_violation_message, line) 43 ret = re.match(r"^\[\d+\]:? ", line) 48 if line.startswith("Signed-off-by:"): 52 if line.startswith("Fixes:"): 56 if len(line) > max_length: [all …]
|
| /openbmc/u-boot/tools/ |
| H A D | rkmux.py | 105 for line in lines: 106 m = self.re_sel.match(line) 127 def is_field_start(line): argument 128 if '=' in line or '+' in line: 130 if (line.startswith('gpio') or line.startswith('peri_') or 131 line.endswith('_sel') or line.endswith('_con')): 133 if not ' ' in line: # and '_' in line: 137 for line in fd: 138 line = line.rstrip() 139 if line[:4] in ['GRF_', 'PMU_', 'CRU_']: [all …]
|
| /openbmc/u-boot/examples/standalone/ |
| H A D | smc911x_eeprom.c | 141 static void write_stuff(struct eth_device *dev, char *line) in write_stuff() argument 149 line = skip_space(line + 1); in write_stuff() 152 switch (line[0]) { in write_stuff() 155 dest = line[0]; in write_stuff() 165 line = skip_space(line + 1); in write_stuff() 166 reg = simple_strtoul(line, &endp, 16); in write_stuff() 167 if (line == endp) in write_stuff() 171 line = skip_space(endp); in write_stuff() 172 value = simple_strtoul(line, &endp, 16); in write_stuff() 173 if (line == endp) in write_stuff() [all …]
|
| /openbmc/qemu/util/ |
| H A D | qemu-thread-common.h | 23 mutex->line = 0; in qemu_mutex_post_init() 29 const char *file, int line) in qemu_mutex_pre_lock() argument 31 trace_qemu_mutex_lock(mutex, file, line); in qemu_mutex_pre_lock() 35 const char *file, int line) in qemu_mutex_post_lock() argument 39 mutex->line = line; in qemu_mutex_post_lock() 41 trace_qemu_mutex_locked(mutex, file, line); in qemu_mutex_post_lock() 45 const char *file, int line) in qemu_mutex_pre_unlock() argument 49 mutex->line = 0; in qemu_mutex_pre_unlock() 51 trace_qemu_mutex_unlock(mutex, file, line); in qemu_mutex_pre_unlock()
|
| /openbmc/u-boot/common/ |
| H A D | cli_simple.c | 23 int cli_simple_parse_line(char *line, char *argv[]) in cli_simple_parse_line() argument 27 debug_parser("%s: \"%s\"\n", __func__, line); in cli_simple_parse_line() 30 while (isblank(*line)) in cli_simple_parse_line() 31 ++line; in cli_simple_parse_line() 33 if (*line == '\0') { /* end of line, no more args */ in cli_simple_parse_line() 39 argv[nargs++] = line; /* begin of argument string */ in cli_simple_parse_line() 42 while (*line && !isblank(*line)) in cli_simple_parse_line() 43 ++line; in cli_simple_parse_line() 45 if (*line == '\0') { /* end of line, no more args */ in cli_simple_parse_line() 51 *line++ = '\0'; /* terminate current arg */ in cli_simple_parse_line() [all …]
|
| /openbmc/phosphor-power/phosphor-power-sequencer/src/ |
| H A D | gpio.hpp | 109 line = gpiod::find_line(name); in BMCGPIO() 110 if (!line) in BMCGPIO() 126 if (line.is_requested()) in ~BMCGPIO() 138 line.request({consumer, gpiod::line_request::DIRECTION_INPUT, 0}); in requestRead() 144 line.request({consumer, gpiod::line_request::DIRECTION_OUTPUT, 0}, in requestWrite() 151 return line.get_value(); in getValue() 157 line.set_value(value); in setValue() 163 line.release(); in release() 175 gpiod::line line; member in phosphor::power::sequencer::BMCGPIO
|
| /openbmc/u-boot/tools/kermit/ |
| H A D | dot.kermrc | 1 set line /dev/ttyS0 13 define sz !sz \%1 \%2 \%3 \%4 \%5 \%6 \%7 \%8 \%9 < \v(line) > \v(line) 14 define rz !rz \%1 \%2 \%3 \%4 \%5 \%6 \%7 \%8 \%9 < \v(line) > \v(line) 15 define sx !sx \%1 \%2 \%3 \%4 \%5 \%6 \%7 \%8 \%9 < \v(line) > \v(line) 16 define rx !rx \%1 \%2 \%3 \%4 \%5 \%6 \%7 \%8 \%9 < \v(line) > \v(line)
|
| /openbmc/phosphor-bmc-code-mgmt/bmc/ |
| H A D | version.cpp | 62 std::string line; in getRepeatedValues() local 69 while (getline(efile, line)) in getRepeatedValues() 71 if (!line.empty() && line.back() == '\r') in getRepeatedValues() 75 line.pop_back(); in getRepeatedValues() 77 if (line.compare(0, keySize, key) == 0) in getRepeatedValues() 79 values.push_back(line.substr(keySize)); in getRepeatedValues() 134 std::string line; in getBMCMachine() local 136 while (getline(efile, line)) in getBMCMachine() 138 if (line.substr(0, machineKey.size()).find(machineKey) != in getBMCMachine() 141 std::size_t pos = line.find_first_of('"') + 1; in getBMCMachine() [all …]
|
| /openbmc/qemu/scripts/modules/ |
| H A D | module_block.py | 16 def get_string_struct(line): argument 17 data = line.split() 41 for line in cfile: 43 line = line.replace('\n', '') 44 if line.find(".format_name") != -1: 45 format_name = get_string_struct(line) 46 elif line.find(".protocol_name") != -1: 47 protocol_name = get_string_struct(line) 48 elif line == "};": 51 elif line.find("static BlockDriver") != -1:
|
| /openbmc/phosphor-mboxd/ |
| H A D | mtd.c | 19 char line[255]; in get_dev_mtd() local 25 while (!pos && fgets(line, sizeof(line), f) != NULL) { in get_dev_mtd() 27 if (line[strlen(line) - 1] != '\n') in get_dev_mtd() 30 if (is_pnor_part(line)) { in get_dev_mtd() 31 pos = strchr(line, ':'); in get_dev_mtd() 40 if (asprintf(&ret, "/dev/%s", line) == -1) in get_dev_mtd()
|
| /openbmc/hiomapd/ |
| H A D | mtd.c | 19 char line[255]; in get_dev_mtd() local 25 while (!pos && fgets(line, sizeof(line), f) != NULL) { in get_dev_mtd() 27 if (line[strlen(line) - 1] != '\n') in get_dev_mtd() 30 if (is_pnor_part(line)) { in get_dev_mtd() 31 pos = strchr(line, ':'); in get_dev_mtd() 40 if (asprintf(&ret, "/dev/%s", line) == -1) in get_dev_mtd()
|
| /openbmc/phosphor-bmc-code-mgmt/cpld/lattice/ |
| H A D | lattice_base_cpld.cpp | 117 std::string line; in jedFileParser() local 119 auto pushPage = [](std::string& line, std::vector<uint8_t>& sector) { in jedFileParser() argument 120 if (line[0] == '0' || line[0] == '1') in jedFileParser() 122 while (line.size() >= 8) in jedFileParser() 127 std::stoi(line.substr(0, 8), 0, 2))); in jedFileParser() 128 line.erase(0, 8); in jedFileParser() 138 while (getline(iss, line)) in jedFileParser() 140 if (!line.empty() && line.back() == '\r') in jedFileParser() 142 line.pop_back(); in jedFileParser() 144 if (line.empty()) in jedFileParser() [all …]
|
| /openbmc/qemu/tests/tcg/multiarch/system/ |
| H A D | validate-memory-counts.py | 33 for line in f: 34 if line.startswith("Test data start:"): 35 start_address = int(line.split(':')[1].strip(), 16) 36 elif line.startswith("Test data end:"): 37 end_address = int(line.split(':')[1].strip(), 16) 38 elif line.startswith("Test data read:"): 39 read_count = int(line.split(':')[1].strip()) 40 elif line.startswith("Test data write:"): 41 write_count = int(line.split(':')[1].strip()) 64 for line in f: [all …]
|