Lines Matching +full:three +full:- +full:cell
1 # Copyright (c) 2018-2019 Linaro
4 # SPDX-License-Identifier: Apache-2.0
17 "python-devicetree", "src"))
157 foo: some-node { ... };
252 def _node_ph_array_prop(node, prop, index, cell, unit=None): argument
255 a cell ('cell') and it will look to see if that node has a property
256 called 'prop' and if that 'prop' is an phandle-array type.
257 Then it will check if that phandle array has a cell matching the given index
258 and then return the value of the cell named 'cell' in this array index.
272 if node.props[prop].type != "phandle-array":
276 if cell not in node.props[prop].val[int(index)].data.keys():
278 return node.props[prop].val[int(index)].data[cell] >> _dt_units_to_scale(unit)
456 foo: some-node { ... };
635 def dt_node_ph_array_prop(kconf, name, path, prop, index, cell, unit=None): argument
638 a cell ('cell') and looks for an EDT node at that path.
640 called 'prop' and if that 'prop' is an phandle-array type.
641 Then it will check if that phandle array has a cell matching the given index
642 and ten return the value of the cell named 'cell' in this array index as
659 return str(_node_ph_array_prop(node, prop, index, cell, unit))
661 return hex(_node_ph_array_prop(node, prop, index, cell, unit))
669 path to the pointed-to node, or an empty string if there is
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()
947 If three or more arguments are given, it returns the result of performing
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))