Home | History | Annotate | Download | only in src

Lines Matching refs:DeviceTree

28 // DeviceTree constructor.
29 DeviceTree::DeviceTree(string name)
34 // DeviceTree destructor.
35 DeviceTree::~DeviceTree() {
37 for (std::map<string, DeviceTree*>::iterator itr = subdevices_.begin();
53 DeviceTree *DeviceTree::FindInSubTree(string name) {
54 DeviceTree *ret;
63 DeviceTree *DeviceTree::UnlockedFindInSubTree(string name) {
64 std::map<string, DeviceTree*>::iterator itr = subdevices_.find(name);
69 for (std::map<string, DeviceTree*>::iterator itr = subdevices_.begin();
72 DeviceTree *result = itr->second->UnlockedFindInSubTree(name);
81 void DeviceTree::AddErrorInstance(ErrorInstance *error_instance) {
88 DeviceTree *DeviceTree::FindOrAddDevice(string name) {
97 void DeviceTree::PrettyPrint(string spacer) {
98 for (std::map<string, DeviceTree*>::iterator itr = subdevices_.begin();
108 void DeviceTree::InsertSubDevice(string name) {
114 subdevices_[name] = new DeviceTree(name);
121 bool DeviceTree::KnownBad() {
158 system_tree_root_ = new DeviceTree("system_root");
167 DeviceTree *dimm_device = system_tree_root_->FindOrAddDevice(dimm_string);
179 DeviceTree *dimm_device = system_tree_root_->FindOrAddDevice(dimm_string);
191 DeviceTree *dimm_device = system_tree_root_->FindOrAddDevice(dimm_string);
233 DeviceTree *src_dimm_dev = system_tree_root_->FindOrAddDevice(src_dimm);
243 DeviceTree *dst_dimm_dev = system_tree_root_->FindOrAddDevice(dst_dimm);
253 DeviceTree *hdd_dev = system_tree_root_->FindOrAddDevice(devicename);
287 DeviceTree *src_dimm_dev = system_tree_root_->FindOrAddDevice(src_dimm);
297 DeviceTree *dst_dimm_dev = system_tree_root_->FindOrAddDevice(dst_dimm);
307 DeviceTree *hdd_dev = system_tree_root_->FindOrAddDevice(devicename);