Lines Matching refs:pci_sys
83 static int populate_entries(struct pci_system * pci_sys);
100 pci_sys = calloc( 1, sizeof( struct pci_system ) );
101 if ( pci_sys != NULL ) {
102 pci_sys->methods = & linux_sysfs_methods;
104 pci_sys->mtrr_fd = open("/proc/mtrr", O_WRONLY | O_CLOEXEC);
106 err = populate_entries(pci_sys);
654 if (pci_sys->mtrr_fd != -1 && sentry.type != MTRR_TYPE_UNCACHABLE) {
655 if (ioctl(pci_sys->mtrr_fd, MTRRIOC_ADD_ENTRY, &sentry) < 0) {
729 if (pci_sys->mtrr_fd != -1 && sentry.type != MTRR_TYPE_UNCACHABLE) {
730 if (ioctl(pci_sys->mtrr_fd, MTRRIOC_DEL_ENTRY, &sentry) < 0) {
1037 if (pci_sys->mtrr_fd != -1)
1038 close(pci_sys->mtrr_fd);