/openbmc/linux/Documentation/fb/ |
H A D | viafb.modes | 16 # 12 chars 2 lines 18 # 2 chars 10 lines 20 # 6 chars 33 lines 22 # 80 chars 480 lines 24 # 20 chars 45 lines 41 # 8 chars 3 lines 43 # 2 chars 1 lines 45 # 15 chars 16 lines 47 # 80 chars 480 lines 49 # 25 chars 20 lines [all …]
|
/openbmc/u-boot/test/py/tests/ |
H A D | test_log.py | 18 def check_log_entries(lines, mask, max_level=LOGL_INFO): argument 22 lines: iterator containing lines to check 23 mask: bit mask to select which lines to check for: 30 assert 'log_run() log %d' % i == lines.next() 32 assert 'func() _log %d' % i == lines.next() 40 iterator containing the lines output from the command 45 lines = iter(split) 46 assert 'test %d' % testnum == lines.next() 47 return lines 50 lines = run_test(0) [all …]
|
/openbmc/openbmc/poky/scripts/lib/devtool/ |
H A D | deploy.py | 33 lines = [] 34 lines.append('#!/bin/sh') 35 lines.append('set -e') 38 lines.append('for entry in %s/*.list; do' % deploylist_path) 39 lines.append('[ ! -f $entry ] && exit') 40 lines.append('set `basename $entry | sed "s/.list//"`') 43 lines.append('echo "Previously deployed files for $1:"') 44 lines.append('manifest="%s/$1.list"' % deploylist_path) 45 lines.append('preservedir="%s/$1.preserve"' % deploylist_path) 46 lines.append('if [ -f $manifest ] ; then') [all …]
|
/openbmc/openbmc-tools/dbus-vis/ |
H A D | ipmi_parse.js | 43 function munchByte(lines, i) { argument 44 if (i >= lines.length) { 47 let l = lines[i]; 57 function munchArrayOfBytes1(lines, i) { argument 58 let l = lines[i]; 68 function munchArrayOfBytes2(lines, i) { argument 69 let l = lines[i]; 78 if (j >= lines.length) { 81 l = lines[j]; 105 function munchArrayOfBytes(lines, i) { argument [all …]
|
/openbmc/u-boot/tools/patman/ |
H A D | func_test.py | 161 lines = out[0].splitlines() 162 #print '\n'.join(lines) 163 self.assertEqual('Cleaned %s patches' % len(series.commits), lines[0]) 164 self.assertEqual('Change log missing for v2', lines[1]) 165 self.assertEqual('Change log missing for v3', lines[2]) 166 self.assertEqual('Change log for unknown version v4', lines[3]) 167 self.assertEqual("Alias 'pci' not found", lines[4]) 168 self.assertIn('Dry run', lines[5]) 169 self.assertIn('Send a total of %d patches' % count, lines[7]) 172 self.assertEqual(' %s' % args[i], lines[line + 0]) [all …]
|
/openbmc/linux/tools/testing/kunit/ |
H A D | kunit_parser.py | 34 log : List[str] - log of KTAP lines that correspond to the test 148 A class to represent the lines of kernel output. 157 def __init__(self, lines: Iterator[Tuple[int, str]]): 159 self._lines = lines 192 """Returns True if stream has more lines.""" 198 """Empties all lines stored in LineStream object into 218 """Extracts KTAP lines from the kernel output.""" 227 # start extracting KTAP lines and set prefix 234 # start extracting KTAP lines and set prefix 240 # stop extracting KTAP lines [all …]
|
/openbmc/linux/tools/gpio/ |
H A D | gpio-utils.c | 27 * ioctl, including request and release for lines of gpio, read/write 29 * lines of gpio, user should use this type of api. 32 * following api will request gpio lines, do the operation and then 33 * release these lines. 37 * gpiotools_request_line() - request gpio lines in a gpiochip 40 * @lines: An array desired lines, specified by offset 42 * @num_lines: The number of lines to request. 49 * Request gpio lines through the ioctl provided by chardev. User 52 * gpiotools_release_line() to release these lines after that. 57 int gpiotools_request_line(const char *device_name, unsigned int *lines, in gpiotools_request_line() argument [all …]
|
H A D | gpio-hammer.c | 3 * gpio-hammer - example swiss army knife to shake GPIO lines on a system 25 int hammer_device(const char *device_name, unsigned int *lines, int num_lines, in hammer_device() argument 39 ret = gpiotools_request_line(device_name, lines, num_lines, in hammer_device() 55 fprintf(stdout, "Hammer lines ["); in hammer_device() 57 fprintf(stdout, "%d", lines[i]); in hammer_device() 72 /* Invert all lines so we blink */ in hammer_device() 92 fprintf(stdout, "%d: %d", lines[i], in hammer_device() 116 "Hammer GPIO lines, 0->1->0->1...\n" in print_usage() 130 unsigned int lines[GPIOHANDLES_MAX]; in main() local 152 lines[i] = strtoul(optarg, NULL, 10); in main() [all …]
|
/openbmc/openbmc/poky/scripts/ |
H A D | cve-json-to-text.py | 94 lines = "" 116 lines += package_info 117 lines += "CVE: %s\n" % issue["id"] 118 lines += "CVE STATUS: %s\n" % issue["status"] 119 lines += "CVE DETAIL: %s\n" % issue["detail"] 121 lines += "CVE DESCRIPTION: %s\n" % issue["description"] 123 lines += "CVE SUMMARY: %s\n" % issue["summary"] 125 lines += "CVSS v2 BASE SCORE: %s\n" % issue["scorev2"] 127 lines += "CVSS v3 BASE SCORE: %s\n" % issue["scorev3"] 129 lines += "CVSS v4 BASE SCORE: %s\n" % issue["scorev4"] [all …]
|
/openbmc/linux/Documentation/dev-tools/ |
H A D | ktap.rst | 18 lines -- and a final result. The test structure and results are 22 KTAP output is built from four different types of lines: 23 - Version lines 24 - Plan lines 25 - Test case result lines 26 - Diagnostic lines 34 Version lines 53 Plan lines 58 Plan lines must follow the format of "1..N" where N is the number of tests or subtests. 59 Plan lines follow version lines to indicate the number of nested tests. [all …]
|
/openbmc/openbmc/poky/meta-poky/classes/ |
H A D | poky-sanity.bbclass | 13 lines = [] 16 lines = sanity_conf_read(fn) 17 index, meta_yocto_line = sanity_conf_find_line(r'^meta-yocto/', lines) 19 lines[index] = meta_yocto_line.replace('meta-yocto', 'meta-poky') 21 f.write(''.join(lines)) 29 lines = sanity_conf_read(bblayers_fn) 33 #sanity_conf_update(bblayers_fn, lines, 'POKY_BBLAYERS_CONF_VERSION', current_version) 34 index, line = sanity_conf_find_line(r'^POKY_BBLAYERS_CONF_VERSION', lines) 35 lines[index] = 'POKY_BBLAYERS_CONF_VERSION = "%d"\n' % current_version 37 f.write(''.join(lines))
|
/openbmc/u-boot/tools/buildman/ |
H A D | test.py | 202 lines = terminal.GetPrintTestLines() 204 for line in lines: 214 lines = terminal.GetPrintTestLines() 217 self.assertEqual(lines[0].text, '01: %s' % commits[0][1]) 220 self.assertEqual(lines[1].text, '02: %s' % commits[1][1]) 223 self.assertSummary(lines[2].text, 'sandbox', 'w+', ['board4'], 225 self.assertSummary(lines[3].text, 'arm', 'w+', ['board1'], 227 self.assertSummary(lines[4].text, 'powerpc', 'w+', ['board2', 'board3'], 231 self.assertEqual(lines[5].text, 'w+%s' % 233 self.assertEqual(lines[5].colour, col.MAGENTA) [all …]
|
/openbmc/openbmc/meta-openembedded/meta-oe/recipes-graphics/vk-gl-cts/files/ |
H A D | generate-srcuri.py | 50 lines = [] 58 lines.append(f" {url} \\") 62 lines.append(f" {url} \\") 65 return lines 78 lines = [] 95 lines.append(f" {url} \\") 96 return lines 117 lines = convert_fetch(basedir) 118 print("\n".join(lines)) 121 #lines = convert_knowngood(sys.argv[1], "git/external/validation") [all …]
|
/openbmc/linux/include/uapi/linux/ |
H A D | gpio.h | 30 * @lines: number of GPIO lines on this chip 35 __u32 lines; member 39 * Maximum number of requested lines. 89 * struct gpio_v2_line_values - Values of GPIO lines 90 * @bits: a bitmap containing the value of the lines, set to 1 for active 92 * @mask: a bitmap identifying the lines to get or set, with each bit 124 * containing the values to which the lines will be set, with each bit 142 * associated with one or more of the requested lines. 144 * @mask: a bitmap identifying the lines to which the attribute applies, 154 * struct gpio_v2_line_config - Configuration for GPIO lines [all …]
|
/openbmc/gpioplus/test/ |
H A D | handle.cpp | 81 std::vector<Handle::Line> lines; in TEST_F() local 84 lines.push_back({i, 1}); in TEST_F() 92 Handle handle(*chip, lines, in TEST_F() 100 EXPECT_EQ(lines.size(), req.lines); in TEST_F() 101 for (uint32_t i = 0; i < lines.size(); ++i) in TEST_F() 112 const std::vector<Handle::Line> lines(GPIOHANDLES_MAX + 1); in TEST_F() local 113 EXPECT_THROW(Handle(*chip, lines, HandleFlags(), "too_many"), in TEST_F() 128 std::vector<Handle::Line> lines; in TEST_F() local 131 lines.push_back({i, 0}); in TEST_F() 137 EXPECT_THROW(Handle(*chip, lines, in TEST_F() [all …]
|
/openbmc/linux/Documentation/driver-api/gpio/ |
H A D | drivers-on-gpio.rst | 11 lines, giving you the LED sysfs interface 26 mouse cable and connect the wires to GPIO lines or solder a mouse connector 27 to the lines for a more permanent solution of this type. 49 (two wires, SDA and SCL lines) by hammering (bitbang) two GPIO lines. It will 54 of wires, at least SCK and optionally MISO, MOSI and chip select lines) using 79 to a set of simple GPIO lines: RDY, NCE, ALE, CLE, NWP. It interacts with the 84 bus, data and clock line, by bit banging two GPIO lines. It will appear as 95 nothing but GPIO lines, this driver provides that and also a clearly defined 100 n GPIO lines such that you can mux in 2^n different devices by activating 101 different GPIO lines. Often the GPIOs are on a SoC and the devices are [all …]
|
/openbmc/linux/tools/mm/ |
H A D | slabinfo-gnuplot.sh | 56 local lines=2000000 64 lines=$((xmax-xmin)) 69 wc_lines=$lines 72 if [ "$wc_lines" -lt "$lines" ]; then 73 lines=$wc_lines 76 if [ $((width / lines)) -gt $min_slab_name_size ]; then 118 '$i Memory usage' with lines," 120 '$i Loss' with lines," 144 local lines 150 let lines=3 [all …]
|
/openbmc/gpioplus/src/gpioplus/ |
H A D | handle.hpp | 75 * @param[in] lines - A collection of lines the handle provides 76 * @param[in] flags - The flags applied to all lines 80 Handle(const Chip& chip, const std::vector<Line>& lines, HandleFlags flags, 89 /** @brief Get the current values of all associated lines 92 * @return The values of the gpio lines 96 /** @brief Gets the current values of all associated lines 98 * @param[out] values - The values of the gpio lines 103 /** @brief Sets the current values of all associated lines 105 * @param[in] values - The new values of the gpio lines
|
H A D | handle.cpp | 44 static int build(const Chip& chip, const std::vector<Handle::Line>& lines, in build() argument 47 if (lines.size() > GPIOHANDLES_MAX) in build() 54 for (size_t i = 0; i < lines.size(); ++i) in build() 56 req.lineoffsets[i] = lines[i].offset; in build() 57 req.default_values[i] = lines[i].default_value; in build() 65 req.lines = lines.size(); in build() 77 Handle::Handle(const Chip& chip, const std::vector<Line>& lines, in Handle() argument 79 fd(build(chip, lines, flags, consumer_label), std::false_type(), in Handle() 81 nlines(lines.size()) in Handle()
|
/openbmc/linux/include/asm-generic/ |
H A D | xor.h | 14 long lines = bytes / (sizeof (long)) / 8; in xor_8regs_2() local 27 } while (--lines > 0); in xor_8regs_2() 35 long lines = bytes / (sizeof (long)) / 8; in xor_8regs_3() local 49 } while (--lines > 0); in xor_8regs_3() 58 long lines = bytes / (sizeof (long)) / 8; in xor_8regs_4() local 73 } while (--lines > 0); in xor_8regs_4() 83 long lines = bytes / (sizeof (long)) / 8; in xor_8regs_5() local 99 } while (--lines > 0); in xor_8regs_5() 106 long lines = bytes / (sizeof (long)) / 8; in xor_32regs_2() local 136 } while (--lines > 0); in xor_32regs_2() [all …]
|
/openbmc/openbmc/poky/meta/lib/oeqa/runtime/cases/ |
H A D | parselogs.py | 110 def get_context(self, lines, index, before=6, after=3): argument 112 Given a set of lines and the index of the line that is important, return 113 a number of lines surrounding that line. 115 last = len(lines) 127 return lines[start:end] 133 lines = list(range(0,10)) 134 self.assertEqual(self.get_context(lines, 0, 2, 1), [0, 1, 2, 3]) 135 self.assertEqual(self.get_context(lines, 5, 2, 1), [3, 4, 5, 6]) 136 self.assertEqual(self.get_context(lines, 9, 2, 1), [6, 7, 8, 9]) 140 Search the log files @logs looking for error lines (marked by [all …]
|
/openbmc/linux/tools/perf/util/ |
H A D | srccode.c | 3 * Manage printing of source lines 29 char **lines; member 58 static void fill_lines(char **lines, int maxline, char *map, int maplen) in fill_lines() argument 67 lines[l++] = map; in fill_lines() 71 lines[l++] = ++p; in fill_lines() 74 lines[l] = p; in fill_lines() 83 zfree(&sf->lines); in free_srcfile() 136 h->lines = calloc(h->numlines, sizeof(char *)); in find_srcfile() 137 if (!h->lines) in find_srcfile() 139 fill_lines(h->lines, h->numlines, h->map, h->maplen); in find_srcfile() [all …]
|
/openbmc/linux/tools/perf/pmu-events/arch/arm64/hisilicon/hip08/ |
H A D | uncore-l3c.json | 40 …"BriefDescription": "Count of the number of read lines that come from this cluster of CPU core in … 41 …"PublicDescription": "Count of the number of read lines that come from this cluster of CPU core in… 47 …"BriefDescription": "Count of the number of write lines that come from this cluster of CPU core in… 48 …"PublicDescription": "Count of the number of write lines that come from this cluster of CPU core i… 54 "BriefDescription": "Count of the number of read lines that hits in spipe of this L3C", 55 "PublicDescription": "Count of the number of read lines that hits in spipe of this L3C", 61 "BriefDescription": "Count of the number of write lines that hits in spipe of this L3C", 62 "PublicDescription": "Count of the number of write lines that hits in spipe of this L3C",
|
/openbmc/openbmc/meta-security/dynamic-layers/meta-perl/recipes-security/bastille/files/ |
H A D | set_required_questions.py | 10 def get_config(lines): argument 12 From a sequence of lines retrieve the question file name, question identifier 15 for l in lines: 43 def add_requires(the_ident, distro, lines): argument 46 Yield a sequence of lines the same as lines except that where 53 @param lines The sequence to be processed. 55 for l in lines: 64 for l in lines: 73 for l in lines:
|
/openbmc/linux/arch/hexagon/mm/ |
H A D | cache.c | 17 unsigned long lines = spanlines(start, end-1); in flush_dcache_range() local 24 for (i = 0; i < lines; i++) { in flush_dcache_range() 37 unsigned long lines = spanlines(start, end-1); in flush_icache_range() local 44 for (i = 0; i < lines; i++) { in flush_icache_range() 62 unsigned long lines = spanlines(start, end-1); in hexagon_clean_dcache_range() local 69 for (i = 0; i < lines; i++) { in hexagon_clean_dcache_range() 82 unsigned long lines = spanlines(start, end-1); in hexagon_inv_dcache_range() local 89 for (i = 0; i < lines; i++) { in hexagon_inv_dcache_range()
|