Lines Matching refs:acpi_device_bus_id
475 struct acpi_device_bus_id *acpi_device_bus_id; in acpi_device_del() local
481 list_for_each_entry(acpi_device_bus_id, &acpi_bus_id_list, node) in acpi_device_del()
482 if (!strcmp(acpi_device_bus_id->bus_id, in acpi_device_del()
484 if (acpi_device_bus_id->instance_no > 0) in acpi_device_del()
485 acpi_device_bus_id->instance_no--; in acpi_device_del()
487 list_del(&acpi_device_bus_id->node); in acpi_device_del()
488 kfree(acpi_device_bus_id); in acpi_device_del()
626 struct acpi_device_bus_id *acpi_device_bus_id, *new_bus_id; in acpi_device_add() local
653 new_bus_id = kzalloc(sizeof(struct acpi_device_bus_id), GFP_KERNEL); in acpi_device_add()
665 list_for_each_entry(acpi_device_bus_id, &acpi_bus_id_list, node) { in acpi_device_add()
666 if (!strcmp(acpi_device_bus_id->bus_id, in acpi_device_add()
668 acpi_device_bus_id->instance_no++; in acpi_device_add()
675 acpi_device_bus_id = new_bus_id; in acpi_device_add()
676 strcpy(acpi_device_bus_id->bus_id, acpi_device_hid(device)); in acpi_device_add()
677 acpi_device_bus_id->instance_no = 0; in acpi_device_add()
678 list_add_tail(&acpi_device_bus_id->node, &acpi_bus_id_list); in acpi_device_add()
680 dev_set_name(&device->dev, "%s:%02x", acpi_device_bus_id->bus_id, acpi_device_bus_id->instance_no); in acpi_device_add()