• Home
  • History
  • Annotate
  • Raw
  • Download
  • only in /netgear-R7000-V1.0.7.12_1.2.5/components/opensource/linux/linux-2.6.36/drivers/pci/

Lines Matching defs:control

80 	u16 control;
84 pci_read_config_word(dev, pos + PCI_MSI_FLAGS, &control);
85 control &= ~PCI_MSI_FLAGS_ENABLE;
87 control |= PCI_MSI_FLAGS_ENABLE;
88 pci_write_config_word(dev, pos + PCI_MSI_FLAGS, control);
94 u16 control;
98 pci_read_config_word(dev, pos + PCI_MSIX_FLAGS, &control);
99 control &= ~PCI_MSIX_FLAGS_ENABLE;
101 control |= PCI_MSIX_FLAGS_ENABLE;
102 pci_write_config_word(dev, pos + PCI_MSIX_FLAGS, control);
114 static inline __attribute_const__ u32 msi_capable_mask(u16 control)
116 return msi_mask((control >> 1) & 7);
119 static inline __attribute_const__ u32 msi_enabled_mask(u16 control)
121 return msi_mask((control >> 4) & 7);
346 u16 control;
359 pci_read_config_word(dev, pos + PCI_MSI_FLAGS, &control);
360 msi_mask_irq(entry, msi_capable_mask(control), entry->masked);
361 control &= ~PCI_MSI_FLAGS_QSIZE;
362 control |= (entry->msi_attrib.multiple << 4) | PCI_MSI_FLAGS_ENABLE;
363 pci_write_config_word(dev, pos + PCI_MSI_FLAGS, control);
370 u16 control;
377 pci_read_config_word(dev, pos + PCI_MSIX_FLAGS, &control);
381 control |= PCI_MSIX_FLAGS_ENABLE | PCI_MSIX_FLAGS_MASKALL;
382 pci_write_config_word(dev, pos + PCI_MSIX_FLAGS, control);
389 control &= ~PCI_MSIX_FLAGS_MASKALL;
390 pci_write_config_word(dev, pos + PCI_MSIX_FLAGS, control);
415 u16 control;
421 pci_read_config_word(dev, msi_control_reg(pos), &control);
428 entry->msi_attrib.is_64 = is_64bit_address(control);
430 entry->msi_attrib.maskbit = is_mask_bit_support(control);
438 mask = msi_capable_mask(control);
538 u16 control;
542 pci_read_config_word(dev, pos + PCI_MSIX_FLAGS, &control);
545 control &= ~PCI_MSIX_FLAGS_ENABLE;
546 pci_write_config_word(dev, pos + PCI_MSIX_FLAGS, control);
549 base = msix_map_region(dev, pos, multi_msix_capable(control));
566 control |= PCI_MSIX_FLAGS_MASKALL | PCI_MSIX_FLAGS_ENABLE;
567 pci_write_config_word(dev, pos + PCI_MSIX_FLAGS, control);
575 control &= ~PCI_MSIX_FLAGS_MASKALL;
576 pci_write_config_word(dev, pos + PCI_MSIX_FLAGS, control);
739 u16 control;
745 pci_read_config_word(dev, msi_control_reg(pos), &control);
746 return multi_msix_capable(control);