Lines Matching full:my
58 my $errors = 0;
59 my $warnings = 0;
60 my $anon_struct_union = 0;
63 my $type_constant = '\b``([^\`]+)``\b';
64 my $type_constant2 = '\%([-_\w]+)';
65 my $type_func = '(\w+)\(\)';
66 my $type_param = '\@(\w*((\.\w+)|(->\w+))*(\.\.\.)?)';
67 my $type_param_ref = '([\!~]?)\@(\w*((\.\w+)|(->\w+))*(\.\.\.)?)';
68 my $type_fp_param = '\@(\w+)\(\)'; # Special RST handling for func ptr params
69 my $type_fp_param2 = '\@(\w+->\S+)\(\)'; # Special RST handling for structs with func ptr params
70 my $type_env = '(\$\w+)';
71 my $type_enum = '\&(enum\s*([_\w]+))';
72 my $type_struct = '\&(struct\s*([_\w]+))';
73 my $type_typedef = '\&(typedef\s*([_\w]+))';
74 my $type_union = '\&(union\s*([_\w]+))';
75 my $type_member = '\&([_\w]+)(\.|->)([_\w]+)';
76 my $type_fallback = '\&([_\w]+)';
77 my $type_member_func = $type_member . '\(\)';
83 my @highlights_man = (
96 my $blankline_man = "";
99 my @highlights_rst = (
116 my $blankline_rst = "\n";
129 my $kernelversion;
130 my ($sphinx_major, $sphinx_minor, $sphinx_patch);
132 my $dohighlight = "";
134 my $verbose = 0;
135 my $Werror = 0;
136 my $Wreturn = 0;
137 my $Wshort_desc = 0;
138 my $Wcontents_before_sections = 0;
139 my $output_mode = "rst";
140 my $output_preformatted = 0;
141 my $no_doc_sections = 0;
142 my $enable_lineno = 0;
143 my @highlights = @highlights_rst;
144 my $blankline = $blankline_rst;
145 my $modulename = "Kernel API";
153 my $output_selection = OUTPUT_ALL;
154 my $show_not_found = 0; # No longer used
156 my @export_file_list;
158 my @build_time;
160 (my $seconds = `date -d"${ENV{'KBUILD_BUILD_TIMESTAMP'}}" +%s`) ne '') {
166 my $man_date = ('January', 'February', 'March', 'April', 'May', 'June',
175 my ($function, %function_table, %parametertypes, $declaration_purpose);
176 my %nosymbol_table = ();
177 my $declaration_start_line;
178 my ($type, $declaration_name, $return_type);
179 my ($newsection, $newcontents, $prototype, $brcount, %source_map);
186 my $kcflags = "$ENV{'KCFLAGS'}";
208 my $section_counter = 0;
210 my $lineprefix="";
223 my $state;
224 my $in_doc_sect;
225 my $leading_space;
237 my $inline_doc_state;
241 my $decl_type;
244 my $identifier;
246 my $doc_start = '^/\*\*\s*$'; # Allow whitespace at end of comment start.
247 my $doc_end = '\*/';
248 my $doc_com = '\s*\*\s*';
249 my $doc_com_body = '\s*\* ?';
250 my $doc_decl = $doc_com . '(\w+)';
258 my $doc_sect = $doc_com .
260 my $doc_content = $doc_com_body . '(.*)';
261 my $doc_block = $doc_com . 'DOC:\s*(.*)?';
262 my $doc_inline_start = '^\s*/\*\*\s*$';
263 my $doc_inline_sect = '\s*\*\s*(@\s*[\w][\w\.]*\s*):(.*)';
264 my $doc_inline_end = '^\s*\*/\s*$';
265 my $doc_inline_oneline = '^\s*/\*\*\s*(@[\w\s]+):\s*(.*)\s*\*/\s*$';
266 my $export_symbol = '^\s*EXPORT_SYMBOL(_GPL)?\s*\(\s*(\w+)\s*\)\s*;';
267 my $export_symbol_ns = '^\s*EXPORT_SYMBOL_NS(_GPL)?\s*\(\s*(\w+)\s*,\s*\w+\)\s*;';
268 my $function_pointer = qr{([^\(]*\(\*)\s*\)\s*\(([^\)]*)\)};
269 my $attribute = qr{__attribute__\s*\(\([a-z0-9,_\*\s\(\)]*\)\)}i;
271 my %parameterdescs;
272 my %parameterdesc_start_lines;
273 my @parameterlist;
274 my %sections;
275 my @sectionlist;
276 my %section_start_lines;
277 my $sectcheck;
278 my $struct_actual;
280 my $contents = "";
281 my $new_start_line = 0;
284 my $section_default = "Description"; # default section
285 my $section_intro = "Introduction";
286 my $section = $section_default;
287 my $section_context = "Context";
288 my $section_return = "Return";
290 my $undescribed = "-- undescribed --";
295 my $cmd = $1;
314 my $symbol = shift @ARGV;
323 my $file = shift @ARGV;
348 my $ver_string = shift @ARGV;
398 my $ver;
400 my $cmd = "sphinx-build";
402 my $cmd = "sphinx-build3";
434 my $version = 'unknown kernel version';
444 my $lineno = shift;
451 my $location = shift;
452 my $msg = shift;
460 my $file = shift;
461 my $name = shift;
462 my $contents = join "\n", @_;
496 my $file = shift;
497 my $name = shift;
498 my $contents = join "\n", @_;
530 my $contents = join "\n",@_;
531 my $line;
566 my %args = %{$_[0]};
567 my ($parameter, $section);
568 my $count;
582 my $parenth = "(";
583 my $post = ",";
584 foreach my $parameter (@{$args{'parameterlist'}}) {
602 my $parameter_name = $parameter;
617 my %args = %{$_[0]};
618 my ($parameter, $section);
619 my $count;
629 foreach my $parameter (@{$args{'parameterlist'}}) {
643 my $parameter_name = $parameter;
658 my %args = %{$_[0]};
659 my ($parameter, $section);
666 my $declaration = $args{'definition'};
677 my $parameter_name = $parameter;
693 my %args = %{$_[0]};
694 my ($parameter, $section);
708 my %args = %{$_[0]};
709 my ($parameter, $section);
710 my $count;
730 my %args = %{$_[0]};
731 my ($parameter, $section);
751 my $contents = shift;
760 my $sphinx_literal = '^[^.].*::$';
761 my $sphinx_cblock = '^\.\.\ +code-block::';
764 my $input = join "\n",@_;
765 my $output = "";
766 my $line;
767 my $in_literal = 0;
768 my $litprefix;
769 my $block = "";
818 my %args = %{$_[0]};
819 my ($parameter, $section);
820 my $oldprefix = $lineprefix;
821 my $start = "";
822 my $is_macro = 0;
861 my $count = 0;
862 foreach my $parameter (@{$args{'parameterlist'}}) {
896 my $parameter_name = $parameter;
924 my %args = %{$_[0]};
925 my $section;
926 my $oldprefix = $lineprefix;
938 my %args = %{$_[0]};
939 my ($parameter);
940 my $oldprefix = $lineprefix;
941 my $count;
942 my $outer;
945 my $name = "enum " . $args{'enum'};
948 my $name = $args{'enum'};
976 my %args = %{$_[0]};
977 my ($parameter);
978 my $oldprefix = $lineprefix;
979 my $name;
997 my %args = %{$_[0]};
998 my ($parameter);
999 my $oldprefix = $lineprefix;
1002 my $name = $args{'type'} . " " . $args{'struct'};
1005 my $name = $args{'struct'};
1019 my $declaration = $args{'definition'};
1029 my $parameter_name = $parameter;
1070 my $name = shift;
1071 my $functype = shift;
1072 my $func = "output_${functype}_$output_mode";
1092 my $func = "output_blockhead_" . $output_mode;
1102 my ($prototype, $file) = @_;
1103 my $func = "dump_" . $decl_type;
1112 my $x = shift;
1113 my $file = shift;
1114 my $decl_type;
1115 my $members;
1116 my $type = qr{struct|union};
1118 …my $qualifiers = qr{$attribute|__packed|__aligned|____cacheline_aligned_in_smp|____cacheline_align…
1119 my $definition_body = qr{\{(.*)\}\s*$qualifiers*};
1120 my $struct_members = qr{($type)([^\{\};]+)\{([^\{\}]*)\}([^\{\}\;]*)\;};
1158 my $args = qr{([^,)]+)};
1175 my $declaration = $members;
1179 my $newmember;
1180 my $maintype = $1;
1181 my $ids = $4;
1182 my $content = $3;
1183 foreach my $id(split /,/, $ids) {
1188 foreach my $arg (split /;/, $content) {
1192 my $type = $1;
1193 my $name = $2;
1194 my $extra = $3;
1203 my $type;
1204 my $names;
1225 foreach my $name (split /,/, $names) {
1253 my @def_args = split /\n/, $declaration;
1254 my $level = 1;
1256 foreach my $clause (@def_args) {
1290 my $functype = shift;
1291 my $name = shift;
1322 my $x = shift;
1323 my $file = shift;
1324 my $members;
1353 my %_members;
1358 foreach my $arg (split ',', $members) {
1370 while (my ($k, $v) = each %parameterdescs) {
1394 my $typedef_type = qr { ((?:\s+[\w\*]+\b){1,8})\s* }x;
1395 my $typedef_ident = qr { \*?\s*(\w\S+)\s* }x;
1396 my $typedef_args = qr { \s*\((.*)\); }x;
1398 my $typedef1 = qr { typedef$typedef_type\($typedef_ident\)$typedef_args }x;
1399 my $typedef2 = qr { typedef$typedef_type$typedef_ident$typedef_args }x;
1402 my $x = shift;
1403 my $file = shift;
1411 my $args = $3;
1466 my $actual = shift;
1474 my $args = shift;
1475 my $splitter = shift;
1476 my $file = shift;
1477 my $declaration_name = shift;
1478 my $type;
1479 my $param;
1482 my $arg_expr = qr{\([^\),]+};
1487 foreach my $arg (split($splitter, $args)) {
1515 my @args = split('\s*,\s*', $arg);
1520 my @first_arg;
1554 my $param = shift;
1555 my $type = shift;
1556 my $org_arg = shift;
1557 my $file = shift;
1558 my $declaration_name = shift;
1623 my ($file, $decl_name, $decl_type, $sectcheck, $prmscheck) = @_;
1624 my @sects = split ' ', $sectcheck;
1625 my @prms = split ' ', $prmscheck;
1626 my $err;
1627 my ($px, $sx);
1628 my $prm_clean; # strip trailing "[array size]" and/or beginning "*"
1664 my $file = shift;
1665 my $declaration_name = shift;
1666 my $return_type = shift;
1687 my $prototype = shift;
1688 my $file = shift;
1689 my $noret = 0;
1713 my $define = $prototype =~ s/^#\s*define\s+//; #ak added
1738 my $name = qr{[a-zA-Z0-9_~:]+};
1739 my $prototype_end1 = qr{[^\(]*};
1740 my $prototype_end2 = qr{[^\{]*};
1741 my $prototype_end = qr{\(($prototype_end1|$prototype_end2)\)};
1742 my $type1 = qr{[\w\s]+};
1743 my $type2 = qr{$type1\*+};
1758 my $args = $3;
1771 my $prms = join " ", @parameterlist;
1831 my $file = shift;
1832 my $tracepointname = 0;
1833 my $tracepointargs = 0;
1858 my $void = 0;
1876 my $count = 0;
1877 my $len = length($prototype);
1881 for (my $ix = 0; $ix < $len; $ix++) {
1892 my $x = shift;
1893 my $file = shift;
1927 my $x = shift;
1928 my $file = shift;
1963 my $file;
1964 my ($orig_file) = @_;
1980 my ($orig_file) = @_;
1981 my $file = map_filename($orig_file);
2020 my $file = shift;
2021 my $descr;
2035 my $is_kernel_comment = 0;
2036 my $decl_start = qr{$doc_com};
2038 my $fn_type = qr{\w+\s*\*\s*};
2039 my $parenthesis = qr{\(\w*\)};
2040 my $decl_end = qr{[-:].*};
2106 my $file = shift;
2188 my $cont = $1;
2212 my $file = shift;
2237 my $file = shift;
2264 my $file = shift;
2304 my $file;
2305 my $initial_section_counter = $section_counter;
2306 my ($orig_file) = @_;
2365 for (my $k = 0; $k < @highlights; $k++) {
2366 my $pattern = $highlights[$k][0];
2367 my $result = $highlights[$k][1];
2375 my ($relname, $absname);