/kernel/linux/linux-5.10/scripts/kconfig/ |
H A D | nconf.gui.c | 203 int get_line_length(const char *line) in get_line_length() argument 206 while (*line != '\0' && *line != '\n') { in get_line_length() 207 line++; in get_line_length() 221 /* do not go over end of line */ in fill_window() 225 const char *line = get_line(text, i); in fill_window() local 226 int len = get_line_length(line); in fill_window() 227 strncpy(tmp, line, min(len, x)); in fill_window() 268 /* find the widest line of msg: */ in btn_dialog() 271 const char *line in btn_dialog() local 383 const char *line = get_line(prompt, i); dialog_inputbox() local 572 const char *line = get_line(text, i); show_scroll_win() local [all...] |
/kernel/linux/linux-6.6/scripts/ |
H A D | get_feat.pl | 55 # Displays an error message, printing file name and line 180 parse_error($file, $ln, "line is invalid", $_); 433 my $line = ""; 446 if ($line ne "") { 447 push @lines, $line; 448 $line = ""; 450 $line = "- **" . $status . "**: " . $arch; 451 } elsif (length($line) + length ($arch) + 2 < $status_size) { 452 $line .= ", " . $arch; 454 push @lines, $line; [all...] |
/kernel/linux/linux-6.6/tools/testing/selftests/resctrl/ |
H A D | resctrlfs.c | 18 char line[256], *fs, *mntpoint; in find_resctrl_mount() local 26 if (!fgets(line, 256, mounts)) in find_resctrl_mount() 28 fs = strtok(line, " \t"); in find_resctrl_mount() 592 char line[256]; in fgrep() local 596 if (!fgets(line, 256, inf)) in fgrep() 598 if (strncmp(line, str, slen)) in fgrep() 601 return strdup(line); in fgrep() 653 char line[1024]; in filter_dmesg() local 682 while (fgets(line, 1024, fp)) { in filter_dmesg() 683 if (strstr(line, "intel_rd in filter_dmesg() [all...] |
/kernel/linux/linux-6.6/scripts/mod/ |
H A D | sumversion.c | 300 /* We have dir/file.o. Open dir/.file.o.cmd, look for source_ and deps_ line 304 char *cmd, *file, *line, *dir, *pos; in parse_source_files() local 328 while ((line = get_line(&pos))) { in parse_source_files() 332 while (isspace(*line)) in parse_source_files() 333 line++; in parse_source_files() 334 p = line; in parse_source_files() 336 if (strncmp(line, "source_", sizeof("source_")-1) == 0) { in parse_source_files() 337 p = strrchr(line, ' '); in parse_source_files() 339 warn("malformed line: %s\n", line); in parse_source_files() [all...] |
/third_party/gn/src/gn/ |
H A D | command_args.cc | 43 bool DoesLineBeginWithComment(std::string_view line) { in DoesLineBeginWithComment() argument 46 while (i < line.size() && base::IsAsciiWhitespace(line[i])) in DoesLineBeginWithComment() 49 return i < line.size() && line[i] == '#'; in DoesLineBeginWithComment() 52 // Returns the offset of the beginning of the line identified by |offset|. 54 // Degenerate case of an empty line. Below we'll try to return the in BackUpToLineBegin() 70 std::string StripHashFromLine(std::string_view line, bool pad) { in StripHashFromLine() argument 75 std::string line_stripped(line.substr(line in StripHashFromLine() [all...] |
/third_party/mbedtls/scripts/ |
H A D | assemble_changelog.py | 47 def __init__(self, filename, line): 48 message = ('Lost content from {}: "{}"'.format(filename, line)) 70 # The maximum line length for an entry 74 'name', 'title_line', # Title text and line number of the title 75 'body', 'body_line', # Body text and starting line number of the body 129 """A version section starts with a line starting with '='.""" 151 """A category title is a line with the title in column 0.""" 173 # Make sure that there is additionally a blank line between categories. 220 for line_number, line in enumerate(body_split, 1): 221 if not self._only_url_re.match(line) an [all...] |
/third_party/ltp/testcases/kernel/mem/hugetlb/hugemmap/ |
H A D | hugemmap10.c | 93 static int verify_counters(int line, char *desc, long et, long ef, long er, long es) in verify_counters() argument 101 tst_res_(__FILE__, line, TFAIL, "While %s: Bad "MEMINFO_HPAGE_TOTAL in verify_counters() 106 tst_res_(__FILE__, line, TFAIL, "While %s: Bad "MEMINFO_HPAGE_FREE in verify_counters() 111 tst_res_(__FILE__, line, TFAIL, "While %s: Bad "MEMINFO_HPAGE_RSVD in verify_counters() 116 tst_res_(__FILE__, line, TFAIL, "While %s: Bad "MEMINFO_HPAGE_SURP in verify_counters() 134 static int set_nr_hugepages_(long count, char *desc, int line) in set_nr_hugepages_() argument 177 return verify_counters(line, desc, et, ef, er, es); in set_nr_hugepages_() 181 static int map_(int s, int hpages, int flags, char *desc, int line) in map_() argument 217 return verify_counters(line, desc, et, ef, er, es); in map_() 221 static int unmap_(int s, int hpages, int flags, char *desc, int line) in unmap_() argument 268 touch_(int s, int hpages, int flags, char *desc, int line) touch_() argument [all...] |
/third_party/node/deps/v8/ |
H A D | PRESUBMIT.py | 39 # This line is 'magic' in that git-cl looks for it to decide whether to 186 where a DEPS file changed. Extend the interface along the line of 220 changed_lines = [line for line_num, line in f.ChangedContents()] 282 for line in f.NewContents(): 284 if guard_patterns[i].match(line): 286 if skip_check_pattern.match(line): 324 for line_number, line in f.ChangedContents(): 325 if (include_directive_pattern.search(line)): 327 line [all...] |
/third_party/mesa3d/src/gallium/tools/trace/ |
H A D | pytracediff.py | 125 self.line = "" 129 if self.line != "": 130 self.data.append(self.line) 134 self.line += text 137 self.line += text 140 self.line += text 143 self.line += text 146 self.line += text 149 self.data.append(self.line) 150 self.line [all...] |
/third_party/python/Lib/ |
H A D | site.py | 30 <package>.pth; its contents are additional directories (one per line) 162 For each line in the file, either combine it with sitedir to a path 179 for n, line in enumerate(f): 180 if line.startswith("#"): 182 if line.strip() == "": 185 if line.startswith(("import ", "import\t")): 186 exec(line) 188 line = line.rstrip() 189 dir, dircase = makepath(sitedir, line) [all...] |
/third_party/skia/third_party/externals/swiftshader/tests/VulkanUnitTests/ |
H A D | ComputeTests.cpp | 73 FAIL() << p.line << ":" << p.column << ": " << m; in compileSpirv() 92 std::string line; in compileSpirv() 93 while(std::getline(ss, line, '\n')) { out.push_back(line); } in compileSpirv() 100 for(size_t line = 0; line < srcLines.size() && line < disLines.size(); line++) in compileSpirv() 102 auto srcLine = (line < srcLines.size()) ? srcLines[line] in compileSpirv() [all...] |
/third_party/python/Lib/distutils/command/ |
H A D | bdist_rpm.py | 46 # supply it on the command line. 345 line = out.readline() 346 if not line: 348 l = line.strip().split() 393 list of strings (one per line). 411 vendor_hook = '\n'.join([' %s \\' % line.strip() 412 for line in vendor_hook.splitlines()]) 566 for line in changelog.strip().split('\n'): 567 line = line [all...] |
/kernel/linux/linux-5.10/tools/perf/util/ |
H A D | srccode.h | 6 unsigned line; member 12 state->line = 0; in srccode_state_init() 18 char *find_sourceline(char *fn, unsigned line, int *lenp);
|
/kernel/linux/linux-6.6/tools/perf/util/ |
H A D | srccode.h | 6 unsigned line; member 12 state->line = 0; in srccode_state_init() 18 char *find_sourceline(char *fn, unsigned line, int *lenp);
|
/third_party/elfutils/libdwfl/ |
H A D | dwfl_linecu.c | 1 /* Fetch the module containing a source line record returned by libdwfl. 38 dwfl_linecu (Dwfl_Line *line) in dwfl_linecu() argument 40 if (line == NULL) in dwfl_linecu() 43 struct dwfl_cu *cu = dwfl_linecu_inline (line); in dwfl_linecu()
|
/third_party/vk-gl-cts/external/vulkancts/scripts/ |
H A D | gen_framework.py | 1134 for line in indentLines(genHandles()): 1135 yield line 1172 for line in indentLines(lines): 1173 yield line 1194 for line in indentLines(lines): 1195 yield line 1216 for line in indentLines(lines): 1217 yield line 1227 for line in indentLines(genLines(defines)): 1228 yield line [all...] |
/kernel/linux/linux-5.10/drivers/staging/greybus/ |
H A D | gpio.c | 37 u8 line_max; /* max line number */ 275 struct gb_gpio_line *line = &ggc->lines[d->hwirq]; in gb_gpio_irq_mask() local 277 line->masked = true; in gb_gpio_irq_mask() 278 line->masked_pending = true; in gb_gpio_irq_mask() 285 struct gb_gpio_line *line = &ggc->lines[d->hwirq]; in gb_gpio_irq_unmask() local 287 line->masked = false; in gb_gpio_irq_unmask() 288 line->masked_pending = true; in gb_gpio_irq_unmask() 295 struct gb_gpio_line *line = &ggc->lines[d->hwirq]; in gb_gpio_irq_set_type() local 323 line->irq_type = irq_type; in gb_gpio_irq_set_type() 324 line in gb_gpio_irq_set_type() 341 struct gb_gpio_line *line = &ggc->lines[d->hwirq]; gb_gpio_irq_bus_sync_unlock() local [all...] |
/kernel/linux/linux-6.6/drivers/media/test-drivers/visl/ |
H A D | visl-dec.c | 221 u32 line = 1; in visl_tpg_fill() local 242 tpg_gen_text(&ctx->tpg, basep, line++ * line_height, 16, buf); in visl_tpg_fill() 245 line++; in visl_tpg_fill() 250 tpg_gen_text(&ctx->tpg, basep, line++ * line_height, 16, line_str); in visl_tpg_fill() 255 line++; in visl_tpg_fill() 268 tpg_gen_text(&ctx->tpg, basep, line++ * line_height, 16, buf); in visl_tpg_fill() 279 tpg_gen_text(&ctx->tpg, basep, line++ * line_height, 16, buf); in visl_tpg_fill() 283 line++; in visl_tpg_fill() 286 tpg_gen_text(&ctx->tpg, basep, line++ * line_height, 16, buf); in visl_tpg_fill() 303 tpg_gen_text(&ctx->tpg, basep, line in visl_tpg_fill() [all...] |
/kernel/linux/linux-6.6/drivers/staging/greybus/ |
H A D | gpio.c | 37 u8 line_max; /* max line number */ 282 struct gb_gpio_line *line = &ggc->lines[d->hwirq]; in gb_gpio_irq_mask() local 284 line->masked = true; in gb_gpio_irq_mask() 285 line->masked_pending = true; in gb_gpio_irq_mask() 292 struct gb_gpio_line *line = &ggc->lines[d->hwirq]; in gb_gpio_irq_unmask() local 294 line->masked = false; in gb_gpio_irq_unmask() 295 line->masked_pending = true; in gb_gpio_irq_unmask() 302 struct gb_gpio_line *line = &ggc->lines[d->hwirq]; in gb_gpio_irq_set_type() local 330 line->irq_type = irq_type; in gb_gpio_irq_set_type() 331 line in gb_gpio_irq_set_type() 348 struct gb_gpio_line *line = &ggc->lines[d->hwirq]; gb_gpio_irq_bus_sync_unlock() local [all...] |
/third_party/python/Lib/test/ |
H A D | test_unicodedata.py | 371 for line in testdata: 372 if '#' in line: 373 line = line.split('#')[0] 374 line = line.strip() 375 if not line: 377 if line.startswith("@Part"): 378 part = line.split()[0] 380 c1,c2,c3,c4,c5 = [self.unistr(x) for x in line [all...] |
H A D | test_code.py | 399 for line, end_line, column, end_column in positions: 400 assert line == end_line 413 for line, end_line, column, end_column in positions: 414 assert line == end_line 428 for line, end_line, column, end_column in positions: 429 self.assertIsNone(line) 552 line = code.co_firstlineno 565 line += line_delta 566 end_line = line + read_varint(it) 577 yield (code, length, line, end_lin [all...] |
/third_party/vk-gl-cts/framework/referencerenderer/ |
H A D | rrRasterizer.cpp | 149 // returns true if vertex is on the left side of the line 158 // returns true if vertex is on the right side of the line 167 // returns true if vertex is on the line 176 // returns true if vertex is on the line segment 208 // returns true if angle between line and given cornerExitNormal is in range (-45, 45) 209 bool lineInCornerAngleRange (const SubpixelLineSegment& line, const tcu::Vector<deInt64,2>& cornerExitNormal) in lineInCornerAngleRange() argument 212 const tcu::Vector<deInt64,2> v = line.direction(); in lineInCornerAngleRange() 221 // returns true if angle between line and given cornerExitNormal is in range (-135, 135) 222 bool lineInCornerOutsideAngleRange (const SubpixelLineSegment& line, const tcu::Vector<deInt64,2>& cornerExitNormal) in lineInCornerOutsideAngleRange() argument 225 const tcu::Vector<deInt64,2> v = line in lineInCornerOutsideAngleRange() 234 doesLineSegmentExitDiamond(const SubpixelLineSegment& line, const tcu::Vector<deInt64,2>& diamondCenter, int bits) doesLineSegmentExitDiamond() argument [all...] |
/build/ohos/images/mkimage/ |
H A D | mkimages.py | 55 for line in file: 56 line = line.strip() 57 if not line or line.startswith("#"): 59 mk_configs.append(line)
|
/kernel/linux/linux-5.10/arch/sparc/boot/ |
H A D | piggyback.c | 71 static int start_line(const char *line) in start_line() argument 73 if (strcmp(line + 10, " _start\n") == 0) in start_line() 75 else if (strcmp(line + 18, " _start\n") == 0) in start_line() 80 static int end_line(const char *line) in end_line() argument 82 if (strcmp(line + 10, " _end\n") == 0) in end_line() 84 else if (strcmp (line + 18, " _end\n") == 0) in end_line()
|
/kernel/linux/linux-6.6/arch/sparc/boot/ |
H A D | piggyback.c | 71 static int start_line(const char *line) in start_line() argument 73 if (strcmp(line + 10, " _start\n") == 0) in start_line() 75 else if (strcmp(line + 18, " _start\n") == 0) in start_line() 80 static int end_line(const char *line) in end_line() argument 82 if (strcmp(line + 10, " _end\n") == 0) in end_line() 84 else if (strcmp (line + 18, " _end\n") == 0) in end_line()
|