Searched refs:byte_idx (Results 1 – 1 of 1) sorted by relevance
| /misc/config_tools/board_inspector/acpiparser/aml/ |
| A D | datatypes.py | 51 def read(self, byte_idx, bit_width): argument 54 def write(self, byte_idx, value, bit_width): argument 88 byte_idx = bit_idx // 8 117 …self.write(byte_idx, (v & mask_of_write) | (self.read(byte_idx, access_width) & mask_of_keep), acc… 124 byte_idx = bit_idx // 8 130 …self.write(byte_idx, (v & mask_of_write) | (self.read(byte_idx, access_width) & mask_of_keep), acc… 149 def read(self, byte_idx, bit_width): argument 152 return int.from_bytes(self.__data[byte_idx : (byte_idx + byte_width)], sys.byteorder) 156 self.__data[byte_idx : (byte_idx + byte_width)] = value.to_bytes(byte_width, sys.byteorder) 185 def read(self, byte_idx, bit_width): argument [all …]
|
Completed in 4 milliseconds