Lines Matching refs:bus
277 struct platform_node *bus; in add_platform_device() local
288 bus = (platform_node*) calloc(1, sizeof(struct platform_node)); in add_platform_device()
289 bus->path = strdup(path); in add_platform_device()
290 bus->path_len = path_len; in add_platform_device()
291 bus->name = bus->path + (name - path); in add_platform_device()
292 list_add_tail(&platform_names, &bus->list); in add_platform_device()
304 struct platform_node *bus; in find_platform_device() local
307 bus = node_to_item(node, struct platform_node, list); in find_platform_device()
308 if ((bus->path_len < path_len) && in find_platform_device()
309 (path[bus->path_len] == '/') && in find_platform_device()
310 !strncmp(path, bus->path, bus->path_len)) in find_platform_device()
311 return bus; in find_platform_device()
320 struct platform_node *bus; in remove_platform_device() local
323 bus = node_to_item(node, struct platform_node, list); in remove_platform_device()
324 if (!strcmp(path, bus->path)) { in remove_platform_device()
325 INFO("removing platform device %s\n", bus->name); in remove_platform_device()
326 free(bus->path); in remove_platform_device()
328 free(bus); in remove_platform_device()