Lines Matching refs:pdev
41 static size_t find_smbios_instance_string(struct pci_dev *pdev, char *buf, in find_smbios_instance_string() argument
49 bus = pdev->bus->number; in find_smbios_instance_string()
50 devfn = pdev->devfn; in find_smbios_instance_string()
78 struct pci_dev *pdev; in smbios_instance_string_exist() local
81 pdev = to_pci_dev(dev); in smbios_instance_string_exist()
83 return find_smbios_instance_string(pdev, NULL, SMBIOS_ATTR_NONE) ? in smbios_instance_string_exist()
90 struct pci_dev *pdev; in smbioslabel_show() local
91 pdev = to_pci_dev(dev); in smbioslabel_show()
93 return find_smbios_instance_string(pdev, buf, in smbioslabel_show()
100 struct pci_dev *pdev; in smbiosinstance_show() local
101 pdev = to_pci_dev(dev); in smbiosinstance_show()
103 return find_smbios_instance_string(pdev, buf, in smbiosinstance_show()
128 static int pci_create_smbiosname_file(struct pci_dev *pdev) in pci_create_smbiosname_file() argument
130 return sysfs_create_group(&pdev->dev.kobj, &smbios_attr_group); in pci_create_smbiosname_file()
133 static void pci_remove_smbiosname_file(struct pci_dev *pdev) in pci_remove_smbiosname_file() argument
135 sysfs_remove_group(&pdev->dev.kobj, &smbios_attr_group); in pci_remove_smbiosname_file()
138 static inline int pci_create_smbiosname_file(struct pci_dev *pdev) in pci_create_smbiosname_file() argument
143 static inline void pci_remove_smbiosname_file(struct pci_dev *pdev) in pci_remove_smbiosname_file() argument
265 static int pci_create_acpi_index_label_files(struct pci_dev *pdev) in pci_create_acpi_index_label_files() argument
267 return sysfs_create_group(&pdev->dev.kobj, &acpi_attr_group); in pci_create_acpi_index_label_files()
270 static int pci_remove_acpi_index_label_files(struct pci_dev *pdev) in pci_remove_acpi_index_label_files() argument
272 sysfs_remove_group(&pdev->dev.kobj, &acpi_attr_group); in pci_remove_acpi_index_label_files()
276 static inline int pci_create_acpi_index_label_files(struct pci_dev *pdev) in pci_create_acpi_index_label_files() argument
281 static inline int pci_remove_acpi_index_label_files(struct pci_dev *pdev) in pci_remove_acpi_index_label_files() argument
292 void pci_create_firmware_label_files(struct pci_dev *pdev) in pci_create_firmware_label_files() argument
294 if (device_has_dsm(&pdev->dev)) in pci_create_firmware_label_files()
295 pci_create_acpi_index_label_files(pdev); in pci_create_firmware_label_files()
297 pci_create_smbiosname_file(pdev); in pci_create_firmware_label_files()
300 void pci_remove_firmware_label_files(struct pci_dev *pdev) in pci_remove_firmware_label_files() argument
302 if (device_has_dsm(&pdev->dev)) in pci_remove_firmware_label_files()
303 pci_remove_acpi_index_label_files(pdev); in pci_remove_firmware_label_files()
305 pci_remove_smbiosname_file(pdev); in pci_remove_firmware_label_files()