Lines Matching +full:ignore +full:- +full:errors
1 // SPDX-License-Identifier: (GPL-2.0-or-later OR BSD-2-Clause)
3 * pylibfdt - Flat Device Tree manipulation in Python
55 # Pass this as the 'quiet' parameter to return -ENOTFOUND on NOTFOUND errors,
73 fdt_err: Error number (-ve)
81 """Raise an error if the return value is -ve
83 This is used to check for errors returned by libfdt C functions.
87 quiet: Errors to ignore (empty to raise on all errors)
96 if -val not in quiet:
108 quiet: Errors to ignore (empty to raise on all errors)
120 if -val not in quiet:
125 """Class for a read-only device-tree
127 This is a base class used by FdtRw (read-write access) and FdtSw
128 (sequential-write access). It implements read-only access to the
133 FdtRo - read-only access to an existing FDT
134 FdtRw - read-write access to an existing FDT (most common case)
135 FdtSw - for creating a new FDT, as well as allowing read-only access
159 quiet: Errors to ignore (empty to raise on all errors)
163 Offset of the next node, if any, else a -ve error
176 quiet: Errors to ignore (empty to raise on all errors)
191 quiet: Errors to ignore (empty to raise on all errors)
218 """Return the start of the device-tree struct area
226 """Return the start of the device-tree string area
266 """Return the start of the device-tree string area
274 """Return the start of the device-tree struct area
282 """Return the number of memory reserve-map records
285 Number of memory reserve-map records
290 """Return the indexed memory reserve-map record
296 Number of memory reserve-map records
306 quiet: Errors to ignore (empty to raise on all errors)
322 quiet: Errors to ignore (empty to raise on all errors)
351 quiet: Errors to ignore (empty to raise on all errors)
368 quiet: Errors to ignore (empty to raise on all errors)
385 quiet: Errors to ignore (empty to raise on all errors)
406 quiet: Errors to ignore (empty to raise on all errors)
410 bytearray/string), or -ve error number. On failure, returns an
461 if ret == -NOSPACE:
474 quiet: Errors to ignore (empty to raise on all errors)
489 quiet: Errors to ignore (empty to raise on all errors)
513 defaults to empty, but you can pass a list of errors that you expect.
514 If one of these errors occurs, the function will return an error number
515 (e.g. -NOTFOUND).
559 quiet: Errors to ignore (empty to raise on all errors)
597 quiet: Errors to ignore (empty to raise on all errors)
615 quiet: Errors to ignore (empty to raise on all errors)
633 quiet: Errors to ignore (empty to raise on all errors)
653 supposed by encoding to UTF-8
654 quiet: Errors to ignore (empty to raise on all errors)
662 val = val.encode('utf-8') + b'\0'
672 quiet: Errors to ignore (empty to raise on all errors)
758 """Unicode is supported by decoding from UTF-8"""
759 if self[-1] != 0:
761 if 0 in self[:-1]:
763 return self[:-1].decode('utf-8')
766 """Unicode is supported by decoding from UTF-8"""
767 if self[-1] != 0:
769 parts = self[:-1].split(b'\x00')
770 return list(map(lambda x: x.decode('utf-8'), parts))
825 Creates a new Fdt object from the work-in-progress device tree. This
841 -NOSPACE then the FDT will be expanded to have more space, and True will
874 addr: 64-bit start address
875 size: 64-bit size
912 The string will be nul-terminated when written to the device tree
925 """Add a property with a 32-bit value
927 Write a single-cell value to the device tree
940 """Add a property with a 64-bit value
942 Write a double-cell value to the device tree in big-endian format
955 """Add a property with a single-cell value
957 Write a single-cell value to the device tree
962 quiet: Errors to ignore (empty to raise on all errors)
974 is taken as is and is not nul-terminated
979 quiet: Errors to ignore (empty to raise on all errors)
995 quiet: Errors to ignore (empty to raise on all errors)
1043 * fdt32_t is a big-endian 32-bit value defined to uint32_t in libfdt_env.h
1080 fdt_string(fdt1, fdt32_to_cpu($1->nameoff)));
1082 (const char *)($1 + 1), fdt32_to_cpu($1->len));