Lines Matching refs:prop

72 struct property * __init tilcdc_prop_dup(const struct property *prop,  in tilcdc_prop_dup()  argument
81 nprop->name = kstrdup(prop->name, GFP_KERNEL); in tilcdc_prop_dup()
85 nprop->value = kmemdup(prop->value, prop->length, GFP_KERNEL); in tilcdc_prop_dup()
89 nprop->length = prop->length; in tilcdc_prop_dup()
99 struct property *prop; in tilcdc_copy_props() local
103 prop = of_find_property(from, props[i], NULL); in tilcdc_copy_props()
104 if (!prop) in tilcdc_copy_props()
107 prop = tilcdc_prop_dup(prop, kft); in tilcdc_copy_props()
108 if (!prop) in tilcdc_copy_props()
111 prop->next = to->properties; in tilcdc_copy_props()
112 to->properties = prop; in tilcdc_copy_props()
116 static int __init tilcdc_prop_str_update(struct property *prop, in tilcdc_prop_str_update() argument
120 prop->value = kstrdup(str, GFP_KERNEL); in tilcdc_prop_str_update()
121 if (kfree_table_add(kft, prop->value) || !prop->value) in tilcdc_prop_str_update()
123 prop->length = strlen(str)+1; in tilcdc_prop_str_update()
129 struct property *prop; in tilcdc_node_disable() local
131 prop = kzalloc(sizeof(*prop), GFP_KERNEL); in tilcdc_node_disable()
132 if (!prop) in tilcdc_node_disable()
135 prop->name = "status"; in tilcdc_node_disable()
136 prop->value = "disabled"; in tilcdc_node_disable()
137 prop->length = strlen((char *)prop->value)+1; in tilcdc_node_disable()
139 of_update_property(node, prop); in tilcdc_node_disable()
203 struct property *prop; in tilcdc_convert_slave_node() local
237 prop = of_find_property(fragment, "target-path", NULL); in tilcdc_convert_slave_node()
238 if (!prop) in tilcdc_convert_slave_node()
240 if (!strncmp("i2c", (char *)prop->value, prop->length)) in tilcdc_convert_slave_node()
241 if (tilcdc_prop_str_update(prop, i2c->full_name, &kft)) in tilcdc_convert_slave_node()
243 if (!strncmp("lcdc", (char *)prop->value, prop->length)) in tilcdc_convert_slave_node()
244 if (tilcdc_prop_str_update(prop, lcdc->full_name, &kft)) in tilcdc_convert_slave_node()