Lines Matching refs:libfdt
57 import libfdt
58 from libfdt import FdtException, QUIET_NOTFOUND, QUIET_ALL
69 return 'pylibfdt error %d: %s' % (-err_code, libfdt.fdt_strerror(-err_code))
80 return libfdt.Fdt(open(fname).read())
113 self.assertEquals(type(libfdt), types.ModuleType)
118 fdt = libfdt.Fdt('a string')
119 self.assertEquals(e.exception.err, -libfdt.BADMAGIC)
127 self.assertEquals(e.exception.err, -libfdt.NOTFOUND)
129 -libfdt.NOTFOUND)
140 -libfdt.NOTFOUND)
146 self.assertEquals(e.exception.err, -libfdt.BADOFFSET)
152 self.assertEquals(e.exception.err, -libfdt.BADOFFSET)
155 self.assertEquals(e.exception.err, -libfdt.BADOFFSET)
160 -libfdt.NOTFOUND)
163 self.assertEquals(e.exception.err, -libfdt.NOTFOUND)
173 self.assertEquals(e.exception.err, -libfdt.BADOFFSET)
185 self.assertEquals(e.exception.err, -libfdt.BADOFFSET)
187 -libfdt.BADOFFSET,
188 self.fdt.get_property_by_offset(-2, [libfdt.BADOFFSET]))
195 self.assertEquals(-libfdt.NOTFOUND, self.fdt.getprop(root, 'missing',
200 self.assertEquals(e.exception.err, -libfdt.NOTFOUND)
208 self.assertEquals(libfdt.strerror(-libfdt.NOTFOUND),
224 -libfdt.NOTFOUND)
227 self.assertEquals(e.exception.err, -libfdt.NOTFOUND)
231 -libfdt.NOTFOUND)
234 self.assertEquals(e.exception.err, -libfdt.NOTFOUND)
264 self.assertEquals(e.exception.err, -libfdt.BADOFFSET)
267 self.assertEquals(e.exception.err, -libfdt.BADOFFSET)
270 self.assertEquals(e.exception.err, -libfdt.BADOFFSET)
274 with self.assertRaisesRegexp(FdtException, get_err(libfdt.BADPATH)):
279 self.assertEquals(-libfdt.NOTFOUND,
281 self.assertEquals(-libfdt.BADOFFSET,
283 self.assertEquals(-libfdt.BADPATH,