• Home
  • Raw
  • Download

Lines Matching refs:Match

106Match = re.match("^([_a-zA-Z0-9]+).(MemoryInitUpdOffset)\s*\|\s*(0x[0-9A-F]+)\s*\|\s*(\d+|0x[0-9a-…
107 if Match:
108 MemUpdInitOffsetValue = int(Match.group(5), 0)
109Match = re.match("^\s*([_a-zA-Z0-9]+).(SiliconInitUpdOffset)\s*\|\s*(0x[0-9A-F]+)\s*\|\s*(\d+|0x[0…
110 if Match:
111 SiUpdInitOffsetValue = int(Match.group(5), 0)
112Match = re.match("^([_a-zA-Z0-9]+).([_a-zA-Z0-9]+)\s*\|\s*(0x[0-9A-F]+)\s*\|\s*(\d+|0x[0-9a-fA-F]+…
113 if Match:
114 MemUpdInitOffset = int(Match.group(3), 0)
115Match = re.match("^([_a-zA-Z0-9]+).([_a-zA-Z0-9]+)\s*\|\s*(0x[0-9A-F]+)\s*\|\s*(\d+|0x[0-9a-fA-F]+…
116 if Match:
117 SiUpdInitOffset = int(Match.group(3), 0)
124Match = re.match("^\s*([_a-zA-Z0-9]+).(MemoryInitUpdOffset)\s*\|\s*(0x[0-9A-F]+)\s*\|\s*(\d+|0x[0-…
125 if Match:
127Match = re.match("^\s*([_a-zA-Z0-9]+).(SiliconInitUpdOffset)\s*\|\s*(0x[0-9A-F]+)\s*\|\s*(\d+|0x[0…
128 if Match:
374 Match = re.match("(\w+)=(.+)", Macro)
375 if Match:
376 self._MacroDict[Match.group(1)] = Match.group(2)
378 Match = re.match("(\w+)", Macro)
379 if Match:
380 self._MacroDict[Match.group(1)] = ''
399 Match = re.findall("\$\(\w+\)", Input)
400 if Match:
401 for Each in Match:
472 Match = re.match("^\[(.+)\]", DscLine)
473 if Match is not None:
474 if Match.group(1).lower() == "Defines".lower():
478 elif Match.group(1).lower() == "PcdsDynamicVpd".lower():
492 elif Match.group(1).lower() == "PcdsDynamicVpd.Upd".lower():
530 Match = re.match("!(ifdef|ifndef)\s+(.+)", DscLine)
531 if Match:
532 Result = self.EvaulateIfdef (Match.group(2))
533 if Match.group(1) == 'ifndef':
538 Match = re.match("!(if|elseif)\s+(.+)", DscLine)
539 if Match:
540 Result = self.EvaluateExpress(Match.group(2))
541 if Match.group(1) == "if":
558 Match = re.match("!include\s+(.+)", DscLine)
559 if Match:
560 IncludeFilePath = Match.group(1)
579 Match = re.match("^\s*(?:DEFINE\s+)*(\w+)\s*=\s*([-.\w]+)", DscLine)
580 if Match:
581 self._MacroDict[Match.group(1)] = Match.group(2)
583 print "INFO : DEFINE %s = [ %s ]" % (Match.group(1), Match.group(2))
585 Match = re.match("^\s*#\s+!(BSF|HDR)\s+(.+)", DscLine)
586 if Match:
587 Remaining = Match.group(2)
588 if Match.group(1) == 'BSF':
589 Match = re.match("(?:^|.+\s+)PAGES:{(.+?)}", Remaining)
590 if Match:
592 PageList = Match.group(1).split(',')
595 Match = re.match("(\w+):\"(.+)\"", Page)
596 self._CfgPageDict[Match.group(1)] = Match.group(2)
598Match = re.match("(?:^|.+\s+)BLOCK:{NAME:\"(.+)\"\s*,\s*VER:\"(.+)\"\s*}", Remaining)
599 if Match:
600 self._CfgBlkDict['name'] = Match.group(1)
601 self._CfgBlkDict['ver'] = Match.group(2)
604 Match = re.match("(?:^|.+\s+)%s:{(.+?)}" % Key, Remaining)
605 if Match:
606 … if Key in ['NAME', 'HELP', 'OPTION'] and Match.group(1).startswith('+'):
607 ConfigDict[Key.lower()] += Match.group(1)[1:]
609 ConfigDict[Key.lower()] = Match.group(1)
612 Match = re.match("(?:^|.+\s+)%s:{(.+?)}" % Key, Remaining)
613 if Match:
614 ConfigDict[Key.lower()] = Match.group(1)
618Match = re.match("^([_a-zA-Z0-9]+).([_a-zA-Z0-9]+)\s*\|\s*(0x[0-9A-F]+)\s*\|\s*(\d+|0x[0-9a-fA-F]+…
620Match = re.match("^([_a-zA-Z0-9]+).([_a-zA-Z0-9]+)\s*\|\s*(0x[0-9A-F]+)(?:\s*\|\s*(.+))?", DscLin…
621 if Match:
622 ConfigDict['space'] = Match.group(1)
623 ConfigDict['cname'] = Match.group(2)
624 ConfigDict['offset'] = int (Match.group(3), 16)
631 Value = Match.group(5).strip()
632 if Match.group(4).startswith("0x"):
633 Length = int (Match.group(4), 16)
635 Length = int (Match.group(4))
637 Value = Match.group(4)
642 Match = re.match("^.+\s*\|\s*(.+)", Value)
643 if Match:
644 Value = Match.group(1)
648 Match = re.match("\$\((\w+)\)", Value)
649 if Match:
650 if Match.group(1) in self._MacroDict:
651 Value = self._MacroDict[Match.group(1)]
674 Match = re.match("^\s*#\s+!BSF\s+FIELD:{(.+):(\d+)}", DscLine)
675 if Match:
677 SubCfgDict['cname'] = Match.group(1)
678 SubCfgDict['length'] = int (Match.group(2))
748Match = re.match("([_a-zA-Z0-9]+).([_a-zA-Z0-9]+)(\s\|\sDEFAULT)?\s\|\s(0x[0-9A-F]{4})\s\|\s(\d+|0…
749 if Match:
750 Space = Match.group(1)
751 Name = Match.group(2)
752 if (self._MapVer == 0) and (Match.group(3) != None):
754 Offset = int (Match.group(4), 16)
755 if Match.group(5).startswith("0x"):
756 Length = int (Match.group(5), 16)
758 Length = int (Match.group(5))
760 PcdDict["value"] = Match.group(6)
876 Match = re.match("^/\*\sEMBED_STRUCT:(\w+):(\w+):(START|END)\s\*/\s([\s\S]*)", Line)
877 if Match:
878 Line = Match.group(4)
880 if Match and Match.group(3) == 'START':
882 StructName = Match.group(1)
883 VariableName = Match.group(2)
897 if Match and Match.group(3) == 'END':
898 if (StructName != Match.group(1)) or (VariableName != Match.group(2)):
899 print "Unmatched struct name '%s' and '%s' !" % (StructName, Match.group(1))
1050 Match = re.search ("!EXPORT\s+EXTERNAL_BOOTLOADER_STRUCT_(BEGIN|END)\s+", Line)
1051 if Match:
1052 if Match.group(1) == "BEGIN":
1076 Match = re.match("\s*\{([x0-9a-fA-F,\s]+)\}\s*", Item['value'])
1077 if Match:
1078 DefaultValue = Match.group(1).strip()
1103Match = re.match("EditNum\s*,\s*(HEX|DEC)\s*,\s*\((\d+|0x[0-9A-Fa-f]+)\s*,\s*(\d+|0x[0-9A-Fa-f]+)\…
1104 if Match:
1105 … BsfFd.write(' EditNum $%s, "%s", %s,\n' % (PcdName, Item['name'], Match.group(1)));
1136 … BsfFd.write(' "Valid range: %s ~ %s"\n' % (Match.group(2), Match.group(3)));