Lines Matching refs:p
27 #define of_pdt_incr_unique_id(p) do { \ argument
28 (p)->unique_id = of_pdt_unique_id++; \
38 static inline void of_pdt_incr_unique_id(void *p) { } in of_pdt_incr_unique_id() argument
71 struct property *p; in of_pdt_build_one_prop() local
75 p = tmp; in of_pdt_build_one_prop()
76 memset(p, 0, sizeof(*p) + 32); in of_pdt_build_one_prop()
79 p = prom_early_alloc(sizeof(struct property) + 32); in of_pdt_build_one_prop()
80 of_pdt_incr_unique_id(p); in of_pdt_build_one_prop()
83 p->name = (char *) (p + 1); in of_pdt_build_one_prop()
85 strcpy(p->name, special_name); in of_pdt_build_one_prop()
86 p->length = special_len; in of_pdt_build_one_prop()
87 p->value = prom_early_alloc(special_len); in of_pdt_build_one_prop()
88 memcpy(p->value, special_val, special_len); in of_pdt_build_one_prop()
90 err = of_pdt_prom_ops->nextprop(node, prev, p->name); in of_pdt_build_one_prop()
92 tmp = p; in of_pdt_build_one_prop()
95 p->length = of_pdt_prom_ops->getproplen(node, p->name); in of_pdt_build_one_prop()
96 if (p->length <= 0) { in of_pdt_build_one_prop()
97 p->length = 0; in of_pdt_build_one_prop()
101 p->value = prom_early_alloc(p->length + 1); in of_pdt_build_one_prop()
102 len = of_pdt_prom_ops->getproperty(node, p->name, in of_pdt_build_one_prop()
103 p->value, p->length); in of_pdt_build_one_prop()
105 p->length = 0; in of_pdt_build_one_prop()
106 ((unsigned char *)p->value)[p->length] = '\0'; in of_pdt_build_one_prop()
109 return p; in of_pdt_build_one_prop()