Lines Matching defs:struct
16 import struct
696 data = b'OPTE\x01xxx' + struct.pack('<5I', init_sz, start_hi, start_lo,
733 return struct.unpack('>L', dtb[4:8])[0]
1274 ucode_data = struct.pack('>4L', 0x12345678, 0x12345679, 0xabcd0000,
1280 pos_and_size = struct.pack('<2L', 0xfffffe00 + ucode_pos,
1319 ucode_data = struct.pack('>2L', 0x12345678, 0x12345679)
1325 pos_and_size = struct.pack('<2L', 0xfffffe00 + ucode_pos,
1526 sym_values = struct.pack('<LLQLL', elf.BINMAN_SYM_MAGIC_VALUE,
2582 offset = struct.unpack('<I', hdr_data[4:])[0] & 0xffffffff
2591 offset = struct.unpack('<I', hdr_data[4:])[0]
2600 offset = struct.unpack('<I', hdr_data[4:])[0]
3725 ptr = struct.unpack('<i', data[0x40:0x44])[0]
3741 sym_values = struct.pack('<LLQLL', elf.BINMAN_SYM_MAGIC_VALUE, *expected_vals)
5996 # Get struct legacy_img_hdr -> ih_name
6014 # Get struct legacy_img_hdr -> ih_name
6092 comp_data_len = struct.unpack('<I', rest[:4])[0]
6143 expect = struct.pack('>I', len(U_BOOT_TPL_DATA))
6144 expect += struct.pack('>I', len(U_BOOT_SPL_DATA))
6171 lens = struct.unpack('>III', content[:12])
6522 sym_values = struct.pack('<LLL', elf.BINMAN_SYM_MAGIC_VALUE, 4, 8)
6956 size, term = struct.unpack('>LL', mk_data[:8])
6977 vals = struct.unpack('<LLQLL', spl_data)
6991 struct.unpack('<I', data[spl.image_pos:spl.image_pos + 4])[0])
6994 struct.unpack('<I', data[spl2.image_pos:spl2.image_pos + 4])[0])