Lines Matching refs:fwid
836 fwid = self.get_section_fwid(section, strip_null=False)
838 if fwid is None:
841 fwid_size = len(fwid)
843 if not fwid:
846 (self.target.upper(), section.upper(), repr(fwid)))
848 fwid = fwid.rstrip('\0')
851 if suffix in fwid:
854 (self.target.upper(), section.upper(), repr(fwid)))
857 if len(fwid) + len(suffix) > fwid_size:
858 fwid = fwid[:fwid_size - len(suffix)]
859 fwid += suffix
861 padded_fwid = fwid.ljust(fwid_size, '\0')
863 return fwid
878 fwid = self.get_section_fwid(section, strip_null=False)
879 if fwid is None:
882 fwid_size = len(fwid)
884 if not fwid:
887 (self.target.upper(), section.upper(), repr(fwid)))
889 fwid = fwid.rstrip('\0')
893 if mod_indicator in fwid:
894 (stripped_fwid, remainder) = fwid.split(mod_indicator, 1)
899 return fwid