Searched refs:to_num (Results 1 – 4 of 4) sorted by relevance
/Zephyr-Core-2.7.6/scripts/dts/python-devicetree/tests/ |
D | test_dtlib.py | 798 phandle = dtlib.to_num(dt.root.props[prop].value[offset:offset + 4]) 1622 actual = dt.root.props[prop].to_num(signed) 1628 dt.root.props[prop].to_num() 1862 verify_raw_to_num(dtlib.to_num, "u", None, False, 1) 1863 verify_raw_to_num(dtlib.to_num, "u", 4, False, 1) 1864 verify_raw_to_num(dtlib.to_num, "s", None, False, 0xFFFFFFFF) 1865 verify_raw_to_num(dtlib.to_num, "s", None, True, -1) 1871 verify_raw_to_num_error(dtlib.to_num, 0, 0, "'0' has type 'int', expected 'bytes'") 1872 verify_raw_to_num_error(dtlib.to_num, b"", 0, "'length' must be greater than zero, was 0") 1873 verify_raw_to_num_error(dtlib.to_num, b"foo", 2, "b'foo' is 3 bytes long, expected 2")
|
/Zephyr-Core-2.7.6/scripts/dts/python-devicetree/src/devicetree/ |
D | edtlib.py | 85 from devicetree.dtlib import DT, DTError, to_num, to_nums, Type 1073 return prop.to_num() 1155 reg.addr = _translate(to_num(raw_reg[:4*address_cells]), node) 1159 reg.size = to_num(raw_reg[4*address_cells:]) 2326 child_addr = to_num(raw_range[:4*child_address_cells]) 2329 parent_addr = to_num(raw_range[:4*parent_address_cells]) 2332 child_len = to_num(raw_range) 2431 return address_cells.to_num() 2456 return node.props[prop_name].to_num() 2509 phandle = to_num(raw[:4]) [all …]
|
D | dtlib.py | 306 def to_num(self, signed=False) -> int: member in Property 1822 def to_num(data: bytes, length: Optional[int] = None, function
|
/Zephyr-Core-2.7.6/scripts/west_commands/runners/ |
D | openocd.py | 140 def to_num(self, number): member in OpenOcdBinaryRunner 165 (major, minor, rev) = [self.to_num(i) for i in version]
|