Lines Matching refs:pp
35 struct property *pp = container_of(bin_attr, struct property, attr); in of_node_property_read() local
36 return memory_read_from_buffer(buf, count, &offset, pp->value, pp->length); in of_node_property_read()
63 int __of_add_property_sysfs(struct device_node *np, struct property *pp) in __of_add_property_sysfs() argument
68 bool secure = strncmp(pp->name, "security-", 9) == 0; in __of_add_property_sysfs()
76 sysfs_bin_attr_init(&pp->attr); in __of_add_property_sysfs()
77 pp->attr.attr.name = safe_name(&np->kobj, pp->name); in __of_add_property_sysfs()
78 pp->attr.attr.mode = secure ? 0400 : 0444; in __of_add_property_sysfs()
79 pp->attr.size = secure ? 0 : pp->length; in __of_add_property_sysfs()
80 pp->attr.read = of_node_property_read; in __of_add_property_sysfs()
82 rc = sysfs_create_bin_file(&np->kobj, &pp->attr); in __of_add_property_sysfs()
83 WARN(rc, "error adding attribute %s to node %pOF\n", pp->name, np); in __of_add_property_sysfs()
119 struct property *pp; in __of_attach_node_sysfs() local
142 for_each_property_of_node(np, pp) in __of_attach_node_sysfs()
143 __of_add_property_sysfs(np, pp); in __of_attach_node_sysfs()
151 struct property *pp; in __of_detach_node_sysfs() local
159 for_each_property_of_node(np, pp) in __of_detach_node_sysfs()
160 __of_sysfs_remove_bin_file(np, pp); in __of_detach_node_sysfs()