Lines Matching +full:test +full:- +full:hog
1 # Copyright (c) 2018-2019 Linaro
4 # SPDX-License-Identifier: Apache-2.0
17 "python-devicetree", "src"))
122 This function is used to test if a node is enabled (has status
157 foo: some-node { ... };
256 called 'prop' and if that 'prop' is an phandle-array type.
272 if node.props[prop].type != "phandle-array":
456 foo: some-node { ... };
640 called 'prop' and if that 'prop' is an phandle-array type.
669 path to the pointed-to node, or an empty string if there is
899 Return "y" if any GPIO hog node is enabled. Otherwise, return "n".
913 Normalize the string, so that the string only contains alpha-numeric
914 characters or underscores. All non-alpha-numeric characters are replaced
918 return re.sub(r'[^a-zA-Z0-9_]', '_', string).upper()
956 $(add, 10, 3) # -> 13
957 $(add, 10, 3, 2) # -> 15
958 $(sub, 10, 3) # -> 7
959 $(sub, 10, 3, 2) # -> 5
960 $(mul, 10, 3) # -> 30
961 $(mul, 10, 3, 2) # -> 60
962 $(div, 10, 3) # -> 3
963 $(div, 10, 3, 2) # -> 1
964 $(mod, 10, 3) # -> 1
965 $(mod, 10, 3, 2) # -> 1
966 $(inc, 1) # -> 2
967 $(inc, 1, 1) # -> "2,2"
968 $(inc, $(inc, 1, 1)) # -> "3,3"
969 $(dec, 1) # -> 0
970 $(dec, 1, 1) # -> "0,0"
971 $(dec, $(dec, 1, 1)) # -> "-1,-1"
972 $(add, $(inc, 1, 1)) # -> 4
1007 return ",".join(map(lambda a: str(a - 1), intarray))