/openbmc/u-boot/test/py/tests/ |
H A D | test_log.py | 18 def check_log_entries(lines, mask, max_level=LOGL_INFO): argument 30 assert 'log_run() log %d' % i == lines.next() 32 assert 'func() _log %d' % i == lines.next() 45 lines = iter(split) 46 assert 'test %d' % testnum == lines.next() 47 return lines 50 lines = run_test(0) 51 check_log_entries(lines, 3) 54 lines = run_test(1) 55 check_log_entries(lines, 3) [all …]
|
/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/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() 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]) 174 while 'Cc:' in lines[line]: [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/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/linux/tools/testing/kunit/ |
H A D | kunit_parser.py | 157 def __init__(self, lines: Iterator[Tuple[int, str]]): 159 self._lines = lines 248 return LineStream(lines=isolate_ktap_output(kernel_output)) 272 def parse_ktap_header(lines: LineStream, test: Test) -> bool: 288 ktap_match = KTAP_START.match(lines.peek()) 289 tap_match = TAP_START.match(lines.peek()) 298 lines.pop() 303 def parse_test_header(lines: LineStream, test: Test) -> bool: 318 match = TEST_HEADER.match(lines.peek()) 322 lines.pop() [all …]
|
/openbmc/openbmc/meta-security/dynamic-layers/meta-perl/recipes-security/bastille/files/ |
H A D | FileContent.pm | 62 my @lines; 66 push @lines,$line; 74 while ( my $line = shift @lines ) { 112 my @lines; 125 push (@lines,$line); 144 while (my $line = shift @lines) { 186 my @lines; 199 push (@lines,$line); 218 while (my $line = shift @lines) { 329 my @lines; [all …]
|
/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/linux/arch/x86/include/asm/ |
H A D | xor_32.h | 27 unsigned long lines = bytes >> 7; in xor_pII_mmx_2() local 59 : "+r" (lines), in xor_pII_mmx_2() 72 unsigned long lines = bytes >> 7; in xor_pII_mmx_3() local 109 : "+r" (lines), in xor_pII_mmx_3() 123 unsigned long lines = bytes >> 7; in xor_pII_mmx_4() local 165 : "+r" (lines), in xor_pII_mmx_4() 181 unsigned long lines = bytes >> 7; in xor_pII_mmx_5() local 236 : "+r" (lines), in xor_pII_mmx_5() 261 unsigned long lines = bytes >> 6; in xor_p5_mmx_2() local 297 : "+r" (lines), in xor_p5_mmx_2() [all …]
|
H A D | xor.h | 63 unsigned long lines = bytes >> 8; in xor_sse_2() local 103 : [cnt] "+r" (lines), in xor_sse_2() 115 unsigned long lines = bytes >> 8; in xor_sse_2_pf64() local 138 : [cnt] "+r" (lines), in xor_sse_2_pf64() 151 unsigned long lines = bytes >> 8; in xor_sse_3() local 198 : [cnt] "+r" (lines), in xor_sse_3() 211 unsigned long lines = bytes >> 8; in xor_sse_3_pf64() local 236 : [cnt] "+r" (lines), in xor_sse_3_pf64() 250 unsigned long lines = bytes >> 8; in xor_sse_4() local 304 : [cnt] "+r" (lines), [p1] "+r" (p1), in xor_sse_4() [all …]
|
/openbmc/linux/arch/sparc/include/asm/ |
H A D | xor_32.h | 19 int lines = bytes / (sizeof (long)) / 8; in sparc_2() local 50 } while (--lines > 0); in sparc_2() 58 int lines = bytes / (sizeof (long)) / 8; in sparc_3() local 102 } while (--lines > 0); in sparc_3() 111 int lines = bytes / (sizeof (long)) / 8; in sparc_4() local 168 } while (--lines > 0); in sparc_4() 178 int lines = bytes / (sizeof (long)) / 8; in sparc_5() local 248 } while (--lines > 0); in sparc_5()
|
/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 144 local lines 150 let lines=3 152 `cat "$in" | grep -A "$lines" 'Slabs sorted by loss' |\ 159 let lines=3 [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/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()
|
/openbmc/gpioplus/src/gpioplus/ |
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/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/linux/tools/gpio/ |
H A D | gpio-utils.c | 57 int gpiotools_request_line(const char *device_name, unsigned int *lines, in gpiotools_request_line() argument 82 req.offsets[i] = lines[i]; in gpiotools_request_line() 184 unsigned int lines[] = {line}; in gpiotools_get() local 186 ret = gpiotools_gets(device_name, lines, 1, &value); in gpiotools_get() 205 int gpiotools_gets(const char *device_name, unsigned int *lines, in gpiotools_gets() argument 216 ret = gpiotools_request_line(device_name, lines, num_lines, in gpiotools_gets() 245 unsigned int lines[] = {line}; in gpiotools_set() local 247 return gpiotools_sets(device_name, lines, 1, &value); in gpiotools_set() 263 int gpiotools_sets(const char *device_name, unsigned int *lines, in gpiotools_sets() argument 278 ret = gpiotools_request_line(device_name, lines, num_lines, in gpiotools_sets()
|
/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))
|
/openbmc/linux/arch/loongarch/lib/ |
H A D | xor_template.c | 20 unsigned long lines = bytes / LINE_WIDTH; variable 32 } while (--lines > 0); 40 unsigned long lines = bytes / LINE_WIDTH; variable 54 } while (--lines > 0); 63 unsigned long lines = bytes / LINE_WIDTH; variable 80 } while (--lines > 0); 90 unsigned long lines = bytes / LINE_WIDTH; variable 109 } while (--lines > 0);
|
/openbmc/linux/drivers/comedi/drivers/ni_routing/tools/ |
H A D | convert_csv_to_c.py | 19 lines = [ 45 lines.append('\t\t[B({})] = {{'.format(D0_sig)) 52 lines.append('\t\t\t[B({})]\t= {},'.format(D1_sig, value)) 53 lines.append('\t\t},') 54 lines.append('\t},') 56 lines = '\n'.join(lines) 58 return N, lines 60 return lines 91 lines = [ '{I0}.device = "{name}",\n' 98 lines.append('{I1}{{\n{I2}.{keyname} = {D0_sig},\n' [all …]
|
/openbmc/linux/tools/perf/util/ |
H A D | srccode.c | 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() 165 l = sf->lines[line]; in find_sourceline()
|
/openbmc/qemu/scripts/ |
H A D | get_maintainer.pl | 1220 my @lines = (); 1224 @lines = split("\n", $output); 1226 return @lines; 1231 my @lines = (); 1234 @lines = split("\n", $output); 1236 return @lines; 1261 my @lines = (); 1264 @lines = &{$VCS_cmds{"execute_cmd"}}($cmd); 1268 $commits = grep(/$pattern/, @lines); # of commits 1270 @signatures = grep(/^[ \t]*${signature_pattern}.*\@.*$/, @lines); [all …]
|
/openbmc/linux/drivers/media/pci/cx18/ |
H A D | cx18-vbi.c | 25 static void copy_vbi_data(struct cx18 *cx, int lines, u32 pts_stamp) in copy_vbi_data() argument 48 for (i = 0; i < lines; i++) { in copy_vbi_data() 98 u32 lines = cx->vbi.count * 2; in compress_raw_buf() local 106 for (i = 0; i < lines; i++) { in compress_raw_buf() 114 if (i == lines - 1) { in compress_raw_buf() 125 return lines * (line_size - 4); in compress_raw_buf() 190 int lines; in _cx18_process_vbi_data() local 220 lines = compress_sliced_buf(cx, p, size, sizeof(struct vbi_data_hdr)); in _cx18_process_vbi_data() 223 if (lines == 0) { in _cx18_process_vbi_data() 227 lines = 1; in _cx18_process_vbi_data() [all …]
|