Lines Matching refs:pnp
124 if (list_empty(&acpi_dev->pnp.ids))
130 list_for_each_entry(id, &acpi_dev->pnp.ids, list) {
173 if (list_empty(&adev->pnp.ids))
644 return sprintf(buf, "%s\n", acpi_dev->pnp.unique_id);
654 (unsigned int)(acpi_dev->pnp.bus_address));
682 if (acpi_dev->pnp.str_obj == NULL)
690 (wchar_t *)acpi_dev->pnp.str_obj->buffer.pointer,
691 acpi_dev->pnp.str_obj->buffer.length,
745 if (!list_empty(&dev->pnp.ids)) {
763 dev->pnp.str_obj = buffer.pointer;
769 if (dev->pnp.type.bus_address)
771 if (dev->pnp.unique_id)
823 kfree(dev->pnp.str_obj);
835 if (dev->pnp.unique_id)
837 if (dev->pnp.type.bus_address)
864 list_for_each_entry(hwid, &device->pnp.ids, list)
925 acpi_free_pnp_ids(&acpi_dev->pnp);
944 if (list_empty(&acpi_dev->pnp.ids))
1035 acpi_drv->name, acpi_dev->pnp.bus_id));
1050 acpi_drv->name, acpi_dev->pnp.bus_id));
1669 strcpy(device->pnp.bus_id, "ACPI");
1675 strcpy(device->pnp.bus_id, "PWRF");
1678 strcpy(device->pnp.bus_id, "SLPF");
1689 strcpy(device->pnp.bus_id, bus_id);
1732 list_for_each_entry(hwid, &adev->pnp.ids, list)
1761 if (list_empty(&device->pnp.ids))
1764 hid = list_first_entry(&device->pnp.ids, struct acpi_hardware_id, list);
1769 static void acpi_add_id(struct acpi_device_pnp *pnp, const char *dev_id)
1783 list_add_tail(&id->list, &pnp->ids);
1784 pnp->type.hardware_id = 1;
1828 static void acpi_set_pnp_ids(acpi_handle handle, struct acpi_device_pnp *pnp,
1839 acpi_add_id(pnp, ACPI_SYSTEM_HID);
1851 acpi_add_id(pnp, info->hardware_id.string);
1852 pnp->type.platform_id = 1;
1857 acpi_add_id(pnp, cid_list->ids[i].string);
1860 pnp->bus_address = info->address;
1861 pnp->type.bus_address = 1;
1864 pnp->unique_id = kstrdup(info->unique_id.string,
1874 acpi_add_id(pnp, ACPI_VIDEO_HID);
1876 acpi_add_id(pnp, ACPI_BAY_HID);
1878 acpi_add_id(pnp, ACPI_DOCK_HID);
1880 acpi_add_id(pnp, ACPI_SMBUS_IBM_HID);
1881 else if (list_empty(&pnp->ids) &&
1884 acpi_add_id(pnp, ACPI_BUS_HID);
1885 strcpy(pnp->device_name, ACPI_BUS_DEVICE_NAME);
1886 strcpy(pnp->device_class, ACPI_BUS_CLASS);
1891 acpi_add_id(pnp, ACPI_POWER_HID);
1894 acpi_add_id(pnp, ACPI_PROCESSOR_OBJECT_HID);
1897 acpi_add_id(pnp, ACPI_THERMAL_HID);
1900 acpi_add_id(pnp, ACPI_BUTTON_HID_POWERF);
1903 acpi_add_id(pnp, ACPI_BUTTON_HID_SLEEPF);
1908 void acpi_free_pnp_ids(struct acpi_device_pnp *pnp)
1912 list_for_each_entry_safe(id, tmp, &pnp->ids, list) {
1916 kfree(pnp->unique_id);
1922 INIT_LIST_HEAD(&device->pnp.ids);
1928 acpi_set_pnp_ids(handle, &device->pnp, type);
2078 list_for_each_entry(hwid, &adev->pnp.ids, list) {
2146 if (!device->pnp.type.platform_id || device->handler)
2166 list_for_each_entry(hwid, &device->pnp.ids, list) {
2173 device->pnp.type.platform_id = 0;