Lines Matching refs:prop
110 property_entry_get(const struct property_entry *prop, const char *name)
112 if (!prop)
115 for (; prop->name; prop++)
116 if (!strcmp(name, prop->name))
117 return prop;
122 static const void *property_get_pointer(const struct property_entry *prop)
124 if (!prop->length)
127 return prop->is_inline ? &prop->value : prop->pointer;
133 const struct property_entry *prop;
136 prop = property_entry_get(props, propname);
137 if (!prop)
139 pointer = property_get_pointer(prop);
142 if (length > prop->length)
151 const struct property_entry *prop;
153 prop = property_entry_get(props, propname);
154 if (!prop)
157 return prop->length / length;
501 const struct property_entry *prop;
507 prop = property_entry_get(swnode->node->properties, propname);
508 if (!prop)
511 if (prop->type != DEV_PROP_REF)
518 if (prop->is_inline)
521 if (index * sizeof(*ref) >= prop->length)
524 ref_array = prop->pointer;
616 const struct property_entry *prop;
621 prop = property_entry_get(swnode->node->properties, "remote-endpoint");
622 if (!prop || prop->type != DEV_PROP_REF || prop->is_inline)
625 ref = prop->pointer;