Lines Matching defs:depth
63 static int do_list_device(int fd, int configuration, bool verbose, const char* devname, int depth,
86 int left_pad = depth * 4;
87 int right_pad = (max_depth - depth) * 4;
279 int depth; // depth in tree, or -1 if not computed yet
283 if (node->depth >= 0) return node->depth;
301 do_list_device(node->fd, -1, false, node->devname, node->depth, max_depth);
347 node->depth = -1;
360 // compute depths for all device_nodes and compute maximum depth
363 int depth = get_node_depth(node, devices);
364 if (depth > max_depth) max_depth = depth;
365 node->depth = depth;