Home
last modified time | relevance | path

Searched full:line (Results 1 – 25 of 2706) sorted by relevance

12345678910>>...109

/openbmc/openbmc/meta-openembedded/contrib/
H A Doe-stylize.py226 def respect_rule0(line): argument
227 return line.lstrip() == line
230 def conformTo_rule0(line): argument
231 return line.lstrip()
234 # No spaces are allowed behind the line continuation symbol '\'
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()
[all …]
/openbmc/openbmc/poky/scripts/contrib/
H A Dconvert-srcuri.py22 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/openbmc-build-scripts/config/gitlint/
H A Dblock_comment.py8 name = "body-max-line-length-with-exceptions"
11 options_spec = [IntOption("line-length", 80, "Max line length")]
12 line_length_violation_message = """Line exceeds max length ({0}>{1}).
18 Line that was too long:
20 tabs_violation_message = "Line contains hard tab characters (\\t)"
24 for line in commit.message.body:
25 # allow a quoted string to be over the line limit
27 line.startswith("'''")
28 or line.startswith('"""')
29 or line.startswith("```")
[all …]
/openbmc/qemu/scripts/
H A Dfix-multiline-comments.sh23 line = $0
26 if (line == "") {
27 line = sp " *"
28 } else if (substr(line, 1, indent + 2) == sp " ") {
29 line = sp " *" substr(line, indent + 3)
33 is_lead = (line ~ /^[ \t]*\/\*/)
34 is_trail = (line ~ /\*\//)
37 # single-line comments
38 match(line, /^[ \t]*\/\*/)
40 sp = substr(line, 1, indent)
[all …]
/openbmc/openbmc/poky/scripts/
H A Dopkg-query-helper.py36 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 Dpatchstream.py20 # Lines which are allowed after a TEST= line
49 STATE_PATCH_SUBJECT = 1 # In patch subject (first line of log for a commit)
51 STATE_DIFFS = 3 # In the diff part (past --- line)
62 self.skip_blank = False # True to skip a single blank line
63 self.found_test = False # Found a TEST= line
66 self.linenum = 1 # Output line number we are up to
75 self.signoff = [] # Contents of signoff line
78 def AddToSeries(self, line, name, value): argument
85 line: Source line containing tag (useful for debug/error messages)
93 self.series.AddTag(self.commit, line, name, value)
[all …]
/openbmc/phosphor-power/phosphor-power-supply/
H A Dutil.cpp18 line = gpiod::find_line(namedGpio); in GPIOInterface()
19 if (!line) in GPIOInterface()
21 throw std::runtime_error("Line does not exist: " + namedGpio); in GPIOInterface()
27 std::string("Failed to find line: ") + e.what()); in GPIOInterface()
39 return line.name(); in getName()
46 if (!line) in read()
48 lg2::error("Failed line in GPIOInterface::read()"); in read()
49 throw std::runtime_error{std::string{"Failed to find line"}}; in read()
54 line.request({__FUNCTION__, gpiod::line_request::DIRECTION_INPUT, in read()
58 value = line.get_value(); in read()
[all …]
/openbmc/phosphor-mboxd/vpnor/test/
H A Dtoc_flags.cpp19 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 Dtoc_flags.cpp21 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/tools/
H A Drkmux.py105 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/openpower-hw-diags/
H A Dcli.hpp8 * @brief Search the command line arguments for an option
10 * @param i_begin command line args vector begin
11 * @param i_end command line args vector end
14 * @return true = option found on command line
19 * @brief Search the command line arguments for a setting value
21 * @param i_begin command line args vector begin
22 * @param i_end command line args vectory end
31 * @brief Get configuration flags from command line
33 * Parse the command line for configuration options and update the
36 * @param i_begin command line args vector begin
[all …]
/openbmc/openbmc/poky/meta/lib/oeqa/selftest/cases/
H A Doverlayfs.py12 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")
68line = 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)
106line = getline(res, "A recipe uses overlayfs class but there is no OVERLAYFS_MOUNT_POINT set in yo…
[all …]
/openbmc/qemu/util/
H A Dqemu-thread-common.h23 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/tools/kermit/
H A Ddot.kermrc1 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/qemu/hw/gpio/
H A Dpcf8574.c20 * IO. Electrically it means that device sustain pull-up to line
24 * or write operation. So, to configure line to input user write 1
25 * to corresponding bit. To configure line to output and drive it low
29 * open-drain line, except presence of builtin rising edge acceleration
32 * PCF8574 has interrupt request line, which is being pulled down when
33 * port line state differs from last read. Port read operation clears
34 * state and INT line returns to high state via pullup.
44 uint8_t input; /* external electrical line state */
60 /* we driving line low or external circuit does that */ in pcf8574_line_state()
83 int line = 0; in pcf8574_tx() local
[all …]
/openbmc/openbmc/meta-security/dynamic-layers/meta-perl/recipes-security/bastille/files/
H A DFileContent.pm64 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);
95 # immediately after $line_to_follow, if it exists. If said line does not
96 # exist, the line will not be inserted and this routine will return 0.
103 # You'd like to insert a line in Apache's configuration file, in a
121 # and the line we are supposed to be inserting after...
124 while (my $line=<INSERT_OLD>) {
[all …]
/openbmc/openbmc/poky/bitbake/contrib/vim/indent/
H A Dbitbake.vim45 " If this line is explicitly joined: If the previous line was also joined,
46 " line it up with that one, otherwise add two 'shiftwidth'
54 " If the start of the line is in a string don't change the indent.
60 " Search backwards for the previous non-empty line.
64 " This is the first non-empty line, use zero indent.
83 " If the previous line is inside parenthesis, use the indent of the starting
84 " line.
88 \ "line('.') < " . (plnum - s:maxoff) . " ? dummy :"
89 \ . " synIDattr(synID(line('.'), col('.'), 1), 'name')"
108 " When inside parenthesis: If at the first line below the parenthesis add
[all …]
/openbmc/dbus-sensors/src/
H A DGPIOInterface.cpp29 line = gpiod::find_line(pinName); in GPIOInterface()
30 if (!line) in GPIOInterface()
32 throw std::runtime_error("Failed to find GPIO line for " + pinName); in GPIOInterface()
36 line.request({consumerName, gpiod::line_request::EVENT_BOTH_EDGES, in GPIOInterface()
41 throw std::runtime_error("Failed to request line for " + pinName + in GPIOInterface()
45 int lineFd = line.event_get_fd(); in GPIOInterface()
49 "Failed to get event fd for GPIO line " + pinName); in GPIOInterface()
57 // Start the async read for the GPIO line in start()
66 auto lineValue = line.get_value(); in readGPIOAsync()
69 error("Failed to read GPIO line {LINENAME}", "LINENAME", pinName); in readGPIOAsync()
[all …]
/openbmc/u-boot/scripts/
H A Dfill_scrapyard.py44 """Get the commit that last modified the given line.
46 This function runs "git blame" against the given line of the given
51 line_num: the line number to be git-blame'd. This line number
55 Commit hash that last modified the line. The number of digits is
63 sys.exit('%s: line %d: ' % (file, line_num) +
64 'this line was modified before the beginning of git history')
67 sys.exit('%s: line %d: locally modified\n' % (file, line_num) +
137 for line in open(DOC):
138 tmp = line.split(None, 5)
150 line = tmp[0].ljust(17)
[all …]
/openbmc/openpower-hw-diags/attn/
H A Dattn_main.cpp13 gpiod_line* line; // gpio line to monitor in attnDaemon() local
17 // GPIO line configuration (falling edge, active low) in attnDaemon()
21 // get handle to attention GPIO line in attnDaemon()
22 line = gpiod_line_find("checkstop"); in attnDaemon()
24 if (nullptr == line) in attnDaemon()
33 std::make_unique<attn::AttnMonitor>(line, config, io, i_config)); in attnDaemon()
37 // done with line, manually close chip (per gpiod api comments) in attnDaemon()
38 gpiod_line_close_chip(line); in attnDaemon()
/openbmc/openbmc/meta-google/recipes-google/networking/files/
H A Dgbmc-ip-monitor.sh40 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/
H A Dmtd.c19 char line[255]; in get_dev_mtd() local
25 while (!pos && fgets(line, sizeof(line), f) != NULL) { in get_dev_mtd()
26 /* Going to have issues if we didn't get the full line */ 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 Dmtd.c19 char line[255]; in get_dev_mtd() local
25 while (!pos && fgets(line, sizeof(line), f) != NULL) { in get_dev_mtd()
26 /* Going to have issues if we didn't get the full line */ 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/bmc/
H A Dversion.cpp62 std::string line; in getRepeatedValues() local
69 while (getline(efile, line)) in getRepeatedValues()
71 if (!line.empty() && line.back() == '\r') in getRepeatedValues()
73 // If the manifest has CRLF line terminators, e.g. is created on in getRepeatedValues()
74 // Windows, the line will contain \r at the end, remove it. 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()
[all …]
/openbmc/openbmc/meta-openembedded/meta-networking/recipes-filter/ebtables/ebtables-2.0.11/
H A Debtables-legacy-save18 while read line; do
19 [ -z "$line" ] && continue
21 case "$line" in
23 echo "*${line#Bridge table: }"
26 chain="${line#Bridge chain: }"
28 policy="${line##*policy: }"
33 line=$(echo "$line" | sed -e 's/, pcnt =/-c/' -e 's/ -- bcnt =//')
34 rules="$rules-A $chain $line

12345678910>>...109