Lines Matching refs:pack

29 from struct import Struct, unpack, pack
78 return (pack('>III', FDT_PROP, 0, strpos),
195 blob = pack('')
197 blob += chars.encode('ascii') + pack('b', 0)
200 blob = pack('b', 0) * (8-((pos+12) % 8)) + blob
202 blob += pack('b', 0) * (4-(blob_len % 4))
207 blob = pack('>III', FDT_PROP, blob_len, strpos) + blob
283 blob = pack('>III', FDT_PROP, len(self.words)*4, strpos) + \
284 pack('').join([pack('>I', word) for word in self.words])
297 return ''.join([pack('>I', word) for word in self.words])
357 blob = pack('>III', FDT_PROP, len(self.bytes), strpos)
358 blob += pack('').join([pack('>b', byte) for byte in self.bytes])
360 blob += pack('b', 0) * (4-(len(blob) % 4))
374 return ''.join([pack('>b', byte) for byte in self.bytes])
424 return (pack('>I', FDT_NOP), string_store, pos)
496 blob = pack('>II', FDT_BEGIN_NODE, 0)
498 blob = pack('>I', FDT_BEGIN_NODE)
499 blob += self.get_name().encode('ascii') + pack('b', 0)
501 blob += pack('b', 0) * (4-(len(blob) % 4))
507 blob += pack('>I', FDT_END_NODE)
743 blob_reserve_entries = pack('')
746 blob_reserve_entries += pack('>QQ',
749 blob_reserve_entries += pack('>QQ', 0, 0)
757 header_adjust = pack('')
759 header_adjust = pack('b', 0) * (8 - (header_size % 8))
766 blob_dt = pack('').join([nop.dtb_represent('')[0]
770 blob_dt += pack('').join([nop.dtb_represent('')[0]
772 blob_dt += pack('>I', FDT_END)
779 blob_header = pack('>IIIIIII', self.header['magic'],
787 blob_header += pack('>I', self.header['boot_cpuid_phys'])
789 blob_header += pack('>I', self.header['size_dt_strings'])
791 blob_header += pack('>I', self.header['size_dt_struct'])