Lines Matching refs:fd
473 with open(dtb, 'rb') as fd:
474 data = fd.read()
570 with open(map_fname) as fd:
571 map_data = fd.read()
574 with open(image_fname, 'rb') as fd:
575 return fd.read(), dtb_data, map_data, out_dtb_fname
621 with open(pathname, 'wb') as fd:
622 fd.write(contents)
682 with open(cls.TestFile('descriptor.bin'), 'rb') as fd:
683 TestFunctional._MakeInputFile('descriptor.bin', fd.read())
864 with open(fname, 'rb') as fd:
865 data = fd.read()
872 with open(fname, 'rb') as fd:
873 data = fd.read()
1263 with open(fname, 'wb') as fd:
1264 fd.write(dtb_with_ucode)
1817 with open(fname, 'ab') as fd:
1818 fd.write(GBB_DATA)
1877 with open(fname, 'wb') as fd:
1883 fd.write(m.digest())
1885 fd.write(VBLOCK_DATA)
2297 with open(self.ElfTestFile('bss_data'), 'rb') as fd:
2298 TestFunctional._MakeInputFile('-boot', fd.read())
2304 with open(self.ElfTestFile('bss_data'), 'rb') as fd:
2305 TestFunctional._MakeInputFile('-boot', fd.read())
2458 with gzip.open(self.TestFile('%s.gz' % fname), 'rb') as fd:
2459 data = fd.read()