Lines Matching refs:section
319 for section in self.fv_sections.itervalues():
320 for subsection_name in section.names():
329 blob = self.fum.get_section(self.image, section.get_body_name())
333 section.set_sha(s.hexdigest())
336 if not section.get_sig_name():
341 section.get_sig_name())
343 section.set_version(self.os_if.retrieve_body_version(vb_section))
344 section.set_flags(self.os_if.retrieve_preamble_flags(vb_section))
345 section.set_datakey_version(
347 section.set_kernel_subkey_version(
351 s.update(self.fum.get_section(self.image, section.get_sig_name()))
352 section.set_sig_sha(s.hexdigest())
406 for section in self.fv_sections.itervalues():
407 if section.get_sig_name():
409 self.section_file(section.get_sig_name()),
411 self.section_file(section.get_body_name()))
415 section,
432 if section not in self.fv_sections:
433 raise FlashromHandlerError('Unknown FW section %s' % section)
437 subsection_name = self.fv_sections[section].get_body_name()
439 subsection_name = self.fv_sections[section].get_sig_name()
455 def corrupt_section(self, section, corrupt_all=False): argument
459 section,
464 def corrupt_section_body(self, section, corrupt_all=False): argument
468 section, self.DELTA, body_or_sig=True, corrupt_all=corrupt_all)
470 def restore_section(self, section, restore_all=False): argument
474 section,
479 def restore_section_body(self, section, restore_all=False): argument
483 section,
488 def corrupt_firmware(self, section, corrupt_all=False): argument
492 section, corrupt_all=corrupt_all)
495 def corrupt_firmware_body(self, section, corrupt_all=False): argument
499 section, corrupt_all=corrupt_all)
502 def restore_firmware(self, section, restore_all=False): argument
506 section, restore_all=restore_all)
509 def restore_firmware_body(self, section, restore_all=False): argument
512 subsection_name = self.restore_section_body(section, restore_all=False)
591 def dump_section_body(self, section, filename): argument
593 subsection_name = self.fv_sections[section].get_body_name()
596 def get_section_hash(self, section): argument
602 self.dump_section_body(section, f.name)
696 def get_section_sig_sha(self, section): argument
698 return self.fv_sections[section].get_sig_sha()
700 def get_section_sha(self, section): argument
702 return self.fv_sections[section].get_sha()
704 def get_section_version(self, section): argument
706 return self.fv_sections[section].get_version()
708 def get_section_flags(self, section): argument
710 return self.fv_sections[section].get_flags()
712 def get_section_datakey_version(self, section): argument
714 return self.fv_sections[section].get_datakey_version()
716 def get_section_kernel_subkey_version(self, section): argument
718 return self.fv_sections[section].get_kernel_subkey_version()
720 def get_section_body(self, section): argument
722 subsection_name = self.fv_sections[section].get_body_name()
726 def has_section_body(self, section): argument
728 return bool(self.get_section_body(section))
730 def get_section_sig(self, section): argument
732 subsection_name = self.fv_sections[section].get_sig_name()
736 def get_section_fwid(self, section, strip_null=True): argument
749 subsection_name = self.fv_sections[section].get_fwid_name()
757 def set_section_body(self, section, blob, write_through=False): argument
759 subsection_name = self.fv_sections[section].get_body_name()
762 def set_section_sig(self, section, blob, write_through=False): argument
764 subsection_name = self.fv_sections[section].get_sig_name()
767 def set_section_fwid(self, section, blob, write_through=False): argument
769 subsection_name = self.fv_sections[section].get_fwid_name()
783 def set_section_version(self, section, version, flags, argument
789 if (self.get_section_version(section) == version
790 and self.get_section_flags(section) == flags):
795 section))
796 fv_section = self.fv_sections[section]
825 def _modify_section_fwid(self, section): argument
836 fwid = self.get_section_fwid(section, strip_null=False)
846 (self.target.upper(), section.upper(), repr(fwid)))
849 suffix = self.FWID_MOD_DELIMITER + section.upper()
854 (self.target.upper(), section.upper(), repr(fwid)))
862 self.set_section_fwid(section, padded_fwid)
865 def _strip_section_fwid(self, section, write_through=True): argument
878 fwid = self.get_section_fwid(section, strip_null=False)
887 (self.target.upper(), section.upper(), repr(fwid)))
890 mod_indicator = self.FWID_MOD_DELIMITER + section.upper()
897 self.set_section_fwid(section, padded_fwid, write_through)
912 for section in sections:
913 fwids[section] = self._modify_section_fwid(section)
925 for section in self.fv_sections:
926 suffix = self._strip_section_fwid(section)
928 suffixes[section] = suffix