Lines Matching defs:property

55   char *property;
74 path (and if present) property name and property value. */
140 /* now go back and chop the property off of the path */
142 spec->property = NULL; /*not a property*/
148 spec->property = NULL;
153 spec->property = spec->path;
154 spec->path = strchr(spec->property, '\0');
158 spec->property = chp+1;
177 path and property name - assuming that the last `device' is a
178 property name. */
187 if (spec->property == NULL) {
188 /* force the last name to be a property name */
191 spec->property = spec->path;
192 spec->path = strrchr(spec->property, '\0');;
196 spec->property = chp+1;
451 device_error(current, "incorrect number of entries for %s property %s, should be multiple of %d",
571 /* create a property of that size */
615 device_error(current, "error parsing integer property %s (%s)",
624 /* perhaps integer array property is better */
630 /* PROPERTY_VALUE is a raw property value. Quote it as required by
755 device_error(current, "String property %s badly formatted",
785 const char *property,
794 device_add_ihandle_runtime_property(current, property,
823 if (spec.property == NULL
857 /* is there a property */
858 if (spec.property != NULL) {
860 device_add_boolean_property(current, spec.property, 1);
862 device_add_boolean_property(current, spec.property, 0);
864 const device_property *property;
867 parse_ihandle_property(current, spec.property, spec.value + 1);
882 device_add_array_property(current, spec.property,
887 parse_string_property(current, spec.property, spec.value);
891 property = tree_find_property(current, spec.value);
892 if (property == NULL)
893 device_error(current, "property %s not found\n", spec.value);
895 spec.property,
896 property);
899 if (strcmp(spec.property, "reg") == 0
900 || strcmp(spec.property, "assigned-addresses") == 0
901 || strcmp(spec.property, "alternate-reg") == 0){
902 parse_reg_property(current, spec.property, spec.value);
904 else if (strcmp(spec.property, "ranges") == 0) {
905 parse_ranges_property(current, spec.property, spec.value);
910 parse_integer_property(current, spec.property, spec.value);
913 parse_string_property(current, spec.property, spec.value);
974 const device_property *property)
979 device_find_reg_array_property(me, property->name, reg_nr, &reg);
989 const device_property *property)
994 device_find_range_array_property(me, property->name, range_nr, &range);
1027 const device_property *property)
1032 device_find_string_array_property(me, property->name, nr, &string);
1042 const device_property *property;
1043 for (property = device_find_property(me, NULL);
1044 property != NULL;
1045 property = device_next_property(property)) {
1046 printf_filtered("%s/%s", device_path(me), property->name);
1047 if (property->original != NULL) {
1050 device_path(property->original->owner),
1051 property->original->name);
1054 switch (property->type) {
1056 if ((property->sizeof_array % sizeof(signed_cell)) == 0) {
1057 unsigned_cell *w = (unsigned_cell*)property->array;
1060 cell_nr < (property->sizeof_array / sizeof(unsigned_cell));
1066 unsigned8 *w = (unsigned8*)property->array;
1068 while ((char*)w - (char*)property->array < property->sizeof_array) {
1076 int b = device_find_boolean_property(me, property->name);
1082 if (property->array != NULL) {
1083 device_instance *instance = device_find_ihandle_property(me, property->name);
1089 device_find_ihandle_runtime_property(me, property->name, &spec);
1096 unsigned_word w = device_find_integer_property(me, property->name);
1101 print_ranges_property(me, property);
1104 print_reg_property(me, property);
1108 const char *s = device_find_string_property(me, property->name);
1113 print_string_array_property(me, property);
1165 printf_filtered("A device/property specifier has the form:\n");
1167 printf_filtered(" /path/to/a/device [ property-value ]\n");
1174 printf_filtered("A device/property specifier (<spec>) has the format:\n");
1187 printf_filtered(" <value> ::= ( <number> # integer property\n");
1188 printf_filtered(" | \"[\" { <number> } # array property (byte)\n");
1189 printf_filtered(" | \"{\" { <number> } # array property (cell)\n");
1190 printf_filtered(" | [ \"true\" | \"false\" ] # boolean property\n");
1191 printf_filtered(" | \"*\" <path> # ihandle property\n");
1192 printf_filtered(" | \"!\" <path> # copy property\n");
1195 printf_filtered(" | \"\\\"\" <text> # string property\n");
1196 printf_filtered(" | <text> # string property\n");
1253 device_error(root, "Invalid property path %s", path_to_property);
1255 return device_find_property(root, spec.property);
1265 device_error(root, "Invalid property path %s", path_to_property);
1267 return device_find_boolean_property(root, spec.property);
1277 device_error(root, "Invalid property path %s", path_to_property);
1279 return device_find_integer_property(root, spec.property);
1289 device_error(root, "Invalid property path %s", path_to_property);
1291 return device_find_ihandle_property(root, spec.property);
1301 device_error(root, "Invalid property path %s", path_to_property);
1303 return device_find_string_property(root, spec.property);