/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/linux/arch/um/drivers/ |
H A D | line.c | 22 struct line *line = chan->line; in line_interrupt() local 24 if (line) in line_interrupt() 25 chan_interrupt(line, irq); in line_interrupt() 35 static unsigned int write_room(struct line *line) in write_room() argument 39 if (line->buffer == NULL) in write_room() 43 n = line->head - line->tail; in write_room() 52 struct line *line = tty->driver_data; in line_write_room() local 56 spin_lock_irqsave(&line->lock, flags); in line_write_room() 57 room = write_room(line); in line_write_room() 58 spin_unlock_irqrestore(&line->lock, flags); in line_write_room() [all …]
|
H A D | chan.h | 18 struct line *line; member 30 extern void chan_interrupt(struct line *line, int irq); 31 extern int parse_chan_pair(char *str, struct line *line, int device, 37 extern int console_open_chan(struct line *line, struct console *co); 40 extern int enable_chan(struct line *line); 41 extern void close_chan(struct line *line); 42 extern int chan_window_size(struct line *line, 45 extern int chan_config_string(struct line *line, char *str, int size,
|
H A D | chan_kern.c | 133 struct line *line = container_of(work, struct line, task.work); in line_timer_cb() local 135 if (!line->throttled) in line_timer_cb() 136 chan_interrupt(line, line->read_irq); in line_timer_cb() 139 int enable_chan(struct line *line) in enable_chan() argument 145 INIT_DELAYED_WORK(&line->task, line_timer_cb); in enable_chan() 147 list_for_each(ele, &line->chan_list) { in enable_chan() 159 err = line_setup_irq(chan->fd, chan->input, chan->output, line, in enable_chan() 170 close_chan(line); in enable_chan() 198 um_free_irq(chan->line->read_irq, chan); in free_irqs() 200 um_free_irq(chan->line->write_irq, chan); in free_irqs() [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/linux/drivers/gpu/drm/nouveau/nvkm/subdev/gpio/ |
H A D | nv10.c | 29 nv10_gpio_sense(struct nvkm_gpio *gpio, int line) in nv10_gpio_sense() argument 32 if (line < 2) { in nv10_gpio_sense() 33 line = line * 16; in nv10_gpio_sense() 34 line = nvkm_rd32(device, 0x600818) >> line; in nv10_gpio_sense() 35 return !!(line & 0x0100); in nv10_gpio_sense() 37 if (line < 10) { in nv10_gpio_sense() 38 line = (line - 2) * 4; in nv10_gpio_sense() 39 line = nvkm_rd32(device, 0x60081c) >> line; in nv10_gpio_sense() 40 return !!(line & 0x04); in nv10_gpio_sense() 42 if (line < 14) { in nv10_gpio_sense() [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 …]
|
/openbmc/qemu/scripts/ |
H A D | checkpatch.pl | 375 my $line = $_; 377 $line =~ s/\s*\n?$//g; 378 $line =~ s/^\s*//g; 380 next if ($line =~ m/^\s*#/); 381 next if ($line =~ m/^\s*$/); 382 next if ($line =~ m/, disabled/i); 384 $line =~ s/,.*$//; 386 my ($suspect, $fix) = split(/->/, $line); 441 for my $line (<$HASH>) { 442 $line =~ /^([0-9a-fA-F]{40,40}) (.*)$/; [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 …]
|
H A D | fitimage.py | 124 for line in its_file: 127 if its_field_check[field_index] in line: 199 for line in its_file: 200 line = line.strip() 201 if line.endswith('};'): 203 elif line.endswith('{'): 204 itspath.append(line[:-1].strip()) 210 if not '=' in line or not line.endswith(';'): 211 …elf.fail('Unexpected formatting in %s sigs section line %d:%s' % (fitimage_its_path, linect, line)) 212 key, value = line.split('=', 1) [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/linux/scripts/ |
H A D | checkpatch.pl | 228 my $line = $_; 230 $line =~ s/\s*\n?$//g; 231 $line =~ s/^\s*//g; 232 $line =~ s/\s+/ /g; 234 next if ($line =~ m/^\s*#/); 235 next if ($line =~ m/^\s*$/); 237 my @words = split(" ", $line); 257 my $line = $_; 258 $line =~ s/\s+$//; 260 if ($line =~ /^\s*\*\*(.+)\*\*$/) { [all …]
|
H A D | markup_oops.pl | 48 my ($line) = @_; 49 if ($line =~ /EAX: ([0-9a-f]+) EBX: ([0-9a-f]+) ECX: ([0-9a-f]+) EDX: ([0-9a-f]+)/) { 55 if ($line =~ /ESI: ([0-9a-f]+) EDI: ([0-9a-f]+) EBP: ([0-9a-f]+) ESP: ([0-9a-f]+)/) { 60 if ($line =~ /RAX: ([0-9a-f]+) RBX: ([0-9a-f]+) RCX: ([0-9a-f]+)/) { 65 if ($line =~ /RDX: ([0-9a-f]+) RSI: ([0-9a-f]+) RDI: ([0-9a-f]+)/) { 70 if ($line =~ /RBP: ([0-9a-f]+) R08: ([0-9a-f]+) R09: ([0-9a-f]+)/) { 74 if ($line =~ /R10: ([0-9a-f]+) R11: ([0-9a-f]+) R12: ([0-9a-f]+)/) { 79 if ($line =~ /R13: ([0-9a-f]+) R14: ([0-9a-f]+) R15: ([0-9a-f]+)/) { 97 my ($line, $cntr) = @_; 99 if (length($line) < 40) { [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/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/linux/scripts/dtc/ |
H A D | of_unittest_expect | 254 while ($line = <ARGV>) { 256 chomp $line; 265 $timestamp = $line; 268 ($timestamp, $null) = split(/]/, $line); 276 $line =~ s/^\[\s*[0-9]+\.[0-9]*\] //; 281 if ($line =~ /^\s*$exp_begin/) { 282 $data = $line; 290 printf "%s %s%s%s\n", $prefix, $line_num, $timestamp, $line; 299 if ($line =~ /^\s*$exp_end/) { 300 $data = $line; [all …]
|
/openbmc/linux/Documentation/arch/arm/samsung/ |
H A D | clksrc-change-registers.awk | 69 while (getline line < ARGV[1] > 0) { 70 if (line ~ /\#define.*_MASK/ && 71 !(line ~ /USB_SIG_MASK/)) { 72 splitdefine(line, fields) 75 printf "MASK " line "\n" > "/dev/stderr" 98 if ((getline line) <= 0) { 103 if (line ~ /\.shift/) { 104 shift = extract_value(line) 105 } else if (line ~ /\.mask/) { 106 mask = extract_value(line) [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/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/linux/tools/testing/selftests/rcutorture/bin/ |
H A D | kvm-transform.sh | 86 line = ""; 88 if (line == "") { 89 line = $i; 91 line = line " " $i; 95 line = line " file:" consolelog; 98 line = line " " image; 124 if (line == "") 125 line = lq arg; 127 line = line " " lq arg; 130 line = line " " bootarg[j]; [all …]
|
/openbmc/linux/drivers/zorro/ |
H A D | gen-devlist.c | 32 char line[1024], *c, *bra, manuf[8]; in main() local 45 while (fgets(line, sizeof(line)-1, stdin)) { in main() 47 if ((c = strchr(line, '\n'))) in main() 49 if (!line[0] || line[0] == '#') in main() 51 if (line[0] == '\t') { in main() 54 if (strlen(line) > 5 && line[5] == ' ') { in main() 55 c = line + 5; in main() 68 fprintf(devf, "\tPRODUCT(%s,%s,\"", manuf, line+1); in main() 76 } else if (strlen(line) > 4 && line[4] == ' ') { in main() 77 c = line + 4; in main() [all …]
|
/openbmc/linux/drivers/gpio/ |
H A D | gpio-thunderx.c | 48 unsigned int line; member 63 static unsigned int bit_cfg_reg(unsigned int line) in bit_cfg_reg() argument 65 return 8 * line + GPIO_BIT_CFG; in bit_cfg_reg() 68 static unsigned int intr_reg(unsigned int line) in intr_reg() argument 70 return 8 * line + GPIO_INTR; in intr_reg() 74 unsigned int line) in thunderx_gpio_is_gpio_nowarn() argument 76 u64 bit_cfg = readq(txgpio->register_base + bit_cfg_reg(line)); in thunderx_gpio_is_gpio_nowarn() 86 unsigned int line) in thunderx_gpio_is_gpio() argument 88 bool rv = thunderx_gpio_is_gpio_nowarn(txgpio, line); in thunderx_gpio_is_gpio() 90 WARN_RATELIMIT(!rv, "Pin %d not available for GPIO\n", line); in thunderx_gpio_is_gpio() [all …]
|
H A D | gpiolib-cdev.c | 491 struct line { struct 605 struct line lines[]; 608 static void supinfo_insert(struct line *line) in supinfo_insert() argument 611 struct line *entry; in supinfo_insert() 616 entry = container_of(*new, struct line, node); in supinfo_insert() 619 if (line->desc < entry->desc) { in supinfo_insert() 621 } else if (line->desc > entry->desc) { in supinfo_insert() 630 rb_link_node(&line->node, parent, new); in supinfo_insert() 631 rb_insert_color(&line->node, &supinfo_tree); in supinfo_insert() 634 static void supinfo_erase(struct line *line) in supinfo_erase() argument [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 …]
|