Searched refs:of_prop (Results 1 – 2 of 2) sorted by relevance
424 struct property *of_prop; in alloc_phb() local549 of_prop = (struct property *) alloc_bootmem(sizeof(struct property) + in alloc_phb()551 if (of_prop) { in alloc_phb()552 memset(of_prop, 0, sizeof(struct property)); in alloc_phb()553 of_prop->name = "linux,phbnum"; in alloc_phb()554 of_prop->length = sizeof(phb->global_number); in alloc_phb()555 of_prop->value = (unsigned char *)&of_prop[1]; in alloc_phb()556 memcpy(of_prop->value, &phb->global_number, in alloc_phb()558 prom_add_property(dev, of_prop); in alloc_phb()
1040 struct property* of_prop; in pci_create_OF_bus_map() local1042 of_prop = (struct property*) alloc_bootmem(sizeof(struct property) + 256); in pci_create_OF_bus_map()1043 if (of_prop && find_path_device("/")) { in pci_create_OF_bus_map()1044 memset(of_prop, -1, sizeof(struct property) + 256); in pci_create_OF_bus_map()1045 of_prop->name = "pci-OF-bus-map"; in pci_create_OF_bus_map()1046 of_prop->length = 256; in pci_create_OF_bus_map()1047 of_prop->value = (unsigned char *)&of_prop[1]; in pci_create_OF_bus_map()1048 prom_add_property(find_path_device("/"), of_prop); in pci_create_OF_bus_map()