Lines Matching refs:legacy_io
979 b->legacy_io = kcalloc(2, sizeof(struct bin_attribute), in pci_create_legacy_files()
981 if (!b->legacy_io) in pci_create_legacy_files()
984 sysfs_bin_attr_init(b->legacy_io); in pci_create_legacy_files()
985 b->legacy_io->attr.name = "legacy_io"; in pci_create_legacy_files()
986 b->legacy_io->size = 0xffff; in pci_create_legacy_files()
987 b->legacy_io->attr.mode = 0600; in pci_create_legacy_files()
988 b->legacy_io->read = pci_read_legacy_io; in pci_create_legacy_files()
989 b->legacy_io->write = pci_write_legacy_io; in pci_create_legacy_files()
990 b->legacy_io->mmap = pci_mmap_legacy_io; in pci_create_legacy_files()
991 b->legacy_io->f_mapping = iomem_get_mapping; in pci_create_legacy_files()
993 error = device_create_bin_file(&b->dev, b->legacy_io); in pci_create_legacy_files()
998 b->legacy_mem = b->legacy_io + 1; in pci_create_legacy_files()
1013 device_remove_bin_file(&b->dev, b->legacy_io); in pci_create_legacy_files()
1015 kfree(b->legacy_io); in pci_create_legacy_files()
1016 b->legacy_io = NULL; in pci_create_legacy_files()
1023 if (b->legacy_io) { in pci_remove_legacy_files()
1024 device_remove_bin_file(&b->dev, b->legacy_io); in pci_remove_legacy_files()
1026 kfree(b->legacy_io); /* both are allocated here */ in pci_remove_legacy_files()