Lines Matching +full:mb +full:- +full:0 +full:- +full:15
1 # Copyright (c) 2018-2019 Linaro
4 # SPDX-License-Identifier: Apache-2.0
16 sys.path.insert(0, os.path.join(ZEPHYR_BASE, "scripts", "dts",
17 "python-devicetree", "src"))
43 return 0
52 if unit in {'mb', 'Mb'}:
157 foo: some-node { ... };
169 return 0
172 return 0
175 return 0
178 return 0
185 return 0
188 return 0
191 return 0
194 return 0
204 value, if not we return 0.
212 'mb' or 'Mb' divide by 8,388,608 (1 << 23)
216 return 0
219 return 0
222 return 0
227 def _node_array_prop(node, prop, index=0, unit=None):
233 is out of range it will return 0.
242 return 0
245 return 0
247 return 0
249 return 0
256 called 'prop' and if that 'prop' is an phandle-array type.
259 If not found it will return 0.
268 return 0
271 return 0
272 if node.props[prop].type != "phandle-array":
273 return 0
275 return 0
277 return 0
280 def _dt_chosen_reg_addr(kconf, chosen, index=0, unit=None):
285 that reg, if not we return 0.
293 'mb' or 'Mb' divide by 8,388,608 (1 << 23)
297 return 0
304 def _dt_chosen_reg_size(kconf, chosen, index=0, unit=None):
309 if not we return 0.
317 'mb' or 'Mb' divide by 8,388,608 (1 << 23)
321 return 0
328 def dt_chosen_reg(kconf, name, chosen, index=0, unit=None):
343 def _dt_chosen_partition_addr(kconf, chosen, index=0, unit=None):
349 not, we return 0.
357 'mb' or 'Mb' divide by 8,388,608 (1 << 23)
361 return 0
365 return 0
369 return 0
371 return _node_reg_addr(p_node.parent, index, unit) + _node_reg_addr(node, 0, unit)
374 def dt_chosen_partition_addr(kconf, name, chosen, index=0, unit=None):
385 def _dt_node_reg_addr(kconf, path, index=0, unit=None):
389 given 'index' and return the address value of that reg, if not we return 0.
397 'mb' or 'Mb' divide by 8,388,608 (1 << 23)
401 return 0
406 return 0
411 def _dt_node_reg_size(kconf, path, index=0, unit=None):
415 given 'index' and return the size value of that reg, if not we return 0.
423 'mb' or 'Mb' divide by 8,388,608 (1 << 23)
427 return 0
432 return 0
437 def dt_node_reg(kconf, name, path, index=0, unit=None):
451 def dt_nodelabel_reg(kconf, name, label, index=0, unit=None):
456 foo: some-node { ... };
464 return str(_dt_node_reg_size(kconf, node.path, index, unit)) if node else "0"
466 return hex(_dt_node_reg_size(kconf, node.path, index, unit)) if node else "0x0"
468 return str(_dt_node_reg_addr(kconf, node.path, index, unit)) if node else "0"
470 return hex(_dt_node_reg_addr(kconf, node.path, index, unit)) if node else "0x0"
583 string hex value, if not we return 0.
591 'mb' or 'Mb' divide by 8,388,608 (1 << 23)
595 return "0"
600 return "0"
614 'index' as either a string int or string hex value. If not found we return 0.
623 return "0"
628 return "0"
640 called 'prop' and if that 'prop' is an phandle-array type.
643 either a string int or string hex value. If not found we return 0.
652 return "0"
657 return "0"
669 path to the pointed-to node, or an empty string if there is
861 return "y" if int(val, base=0) in node.props[prop].val else "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
973 $(div, $(dec, 1, 1)) # Error (0 div 0)
976 intarray = map(int, args if len(args) > 1 else args[0].split(","))
1002 intarray = map(int, args if len(args) > 1 else args[0].split(","))
1007 return ",".join(map(lambda a: str(a - 1), intarray))
1065 "dt_gpio_hogs_enabled": (dt_gpio_hogs_enabled, 0, 0),