Lines Matching refs:prop

199 def _node_int_prop(node, prop, unit=None):  argument
218 if prop not in node.props:
221 if node.props[prop].type != "int":
224 return node.props[prop].val >> _dt_units_to_scale(unit)
227 def _node_array_prop(node, prop, index=0, unit=None): argument
244 if prop not in node.props:
246 if node.props[prop].type != "array":
248 if int(index) >= len(node.props[prop].val):
250 return node.props[prop].val[int(index)] >> _dt_units_to_scale(unit)
252 def _node_ph_array_prop(node, prop, index, cell, unit=None): argument
270 if prop not in node.props:
272 if node.props[prop].type != "phandle-array":
274 if int(index) >= len(node.props[prop].val):
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)
473 def _dt_node_bool_prop_generic(node_search_function, search_arg, prop): argument
488 if prop not in node.props:
491 if node.props[prop].type != "boolean":
494 if node.props[prop].val:
499 def dt_node_bool_prop(kconf, _, path, prop): argument
509 return _dt_node_bool_prop_generic(edt.get_node, path, prop)
511 def dt_nodelabel_bool_prop(kconf, _, label, prop): argument
521 return _dt_node_bool_prop_generic(edt.label2node.get, label, prop)
523 def dt_chosen_bool_prop(kconf, _, chosen, prop): argument
532 return _dt_node_bool_prop_generic(edt.chosen_node, chosen, prop)
534 def _dt_node_has_prop_generic(node_search_function, search_arg, prop): argument
548 if prop in node.props:
553 def dt_node_has_prop(kconf, _, path, prop): argument
563 return _dt_node_has_prop_generic(edt.get_node, path, prop)
565 def dt_nodelabel_has_prop(kconf, _, label, prop): argument
575 return _dt_node_has_prop_generic(edt.label2node.get, label, prop)
577 def dt_node_int_prop(kconf, name, path, prop, unit=None): argument
603 return str(_node_int_prop(node, prop, unit))
605 return hex(_node_int_prop(node, prop, unit))
608 def dt_node_array_prop(kconf, name, path, prop, index, unit=None): argument
630 return str(_node_array_prop(node, prop, index, unit))
632 return hex(_node_array_prop(node, prop, index, unit))
635 def dt_node_ph_array_prop(kconf, name, path, prop, index, cell, unit=None): argument
659 return str(_node_ph_array_prop(node, prop, index, cell, unit))
661 return hex(_node_ph_array_prop(node, prop, index, cell, unit))
663 def dt_node_ph_prop_path(kconf, name, path, prop): argument
680 if prop not in node.props:
682 if node.props[prop].type != "phandle":
685 phandle = node.props[prop].val
689 def dt_node_str_prop_equals(kconf, _, path, prop, val): argument
705 if prop not in node.props:
708 if node.props[prop].type != "string":
711 if node.props[prop].val == val:
754 def dt_compat_any_has_prop(kconf, _, compat, prop, value=None): argument
768 if prop in node.props:
771 elif str(node.props[prop].val) == value:
775 def dt_compat_any_not_has_prop(kconf, _, compat, prop): argument
787 if prop not in node.props:
845 def dt_nodelabel_array_prop_has_val(kconf, _, label, prop, val): argument
858 if not node or (prop not in node.props) or (node.props[prop].type != "array"):
861 return "y" if int(val, base=0) in node.props[prop].val else "n"