Lines Matching refs:cbfs_offset
223 def __init__(self, name, ftype, data, cbfs_offset, compress=COMPRESS_NONE): argument
226 self.cbfs_offset = cbfs_offset
253 def stage(cls, base_address, name, data, cbfs_offset): argument
267 cfile = CbfsFile(name, TYPE_STAGE, data, cbfs_offset)
272 def raw(cls, name, data, cbfs_offset, compress): argument
286 return CbfsFile(name, TYPE_RAW, data, cbfs_offset, compress)
313 if self.cbfs_offset is None:
315 return self.cbfs_offset - self.get_header_len()
379 if self.cbfs_offset is not None:
380 pad_len = self.cbfs_offset - offset - hdr_len
389 (self.name, self.cbfs_offset, offset))
520 def add_file_stage(self, name, data, cbfs_offset=None): argument
533 cfile = CbfsFile.stage(self._base_address, name, data, cbfs_offset)
537 def add_file_raw(self, name, data, cbfs_offset=None, argument
552 cfile = CbfsFile.raw(name, data, cbfs_offset, compress)
648 self.cbfs_offset = None
664 fd.seek(self.cbfs_offset)
740 cbfs_offset = file_pos + offset
741 fd.seek(cbfs_offset, io.SEEK_SET)
747 cbfs_offset)
753 cfile = CbfsFile.raw(name, data, cbfs_offset, compress)
760 cfile = CbfsFile('', TYPE_EMPTY, b'', cbfs_offset)
833 self.align, self.cbfs_offset, self.arch, _) = struct.unpack(