Lines Matching refs:desc

12 void pci_msi_update_mask(struct msi_desc *desc, u32 clear, u32 set);
14 static inline void pci_msi_mask(struct msi_desc *desc, u32 mask) in pci_msi_mask() argument
16 pci_msi_update_mask(desc, 0, mask); in pci_msi_mask()
19 static inline void pci_msi_unmask(struct msi_desc *desc, u32 mask) in pci_msi_unmask() argument
21 pci_msi_update_mask(desc, mask, 0); in pci_msi_unmask()
24 static inline void __iomem *pci_msix_desc_addr(struct msi_desc *desc) in pci_msix_desc_addr() argument
26 return desc->pci.mask_base + desc->msi_index * PCI_MSIX_ENTRY_SIZE; in pci_msix_desc_addr()
35 static inline void pci_msix_write_vector_ctrl(struct msi_desc *desc, u32 ctrl) in pci_msix_write_vector_ctrl() argument
37 void __iomem *desc_addr = pci_msix_desc_addr(desc); in pci_msix_write_vector_ctrl()
39 if (desc->pci.msi_attrib.can_mask) in pci_msix_write_vector_ctrl()
43 static inline void pci_msix_mask(struct msi_desc *desc) in pci_msix_mask() argument
45 desc->pci.msix_ctrl |= PCI_MSIX_ENTRY_CTRL_MASKBIT; in pci_msix_mask()
46 pci_msix_write_vector_ctrl(desc, desc->pci.msix_ctrl); in pci_msix_mask()
48 readl(desc->pci.mask_base); in pci_msix_mask()
51 static inline void pci_msix_unmask(struct msi_desc *desc) in pci_msix_unmask() argument
53 desc->pci.msix_ctrl &= ~PCI_MSIX_ENTRY_CTRL_MASKBIT; in pci_msix_unmask()
54 pci_msix_write_vector_ctrl(desc, desc->pci.msix_ctrl); in pci_msix_unmask()
57 static inline void __pci_msi_mask_desc(struct msi_desc *desc, u32 mask) in __pci_msi_mask_desc() argument
59 if (desc->pci.msi_attrib.is_msix) in __pci_msi_mask_desc()
60 pci_msix_mask(desc); in __pci_msi_mask_desc()
62 pci_msi_mask(desc, mask); in __pci_msi_mask_desc()
65 static inline void __pci_msi_unmask_desc(struct msi_desc *desc, u32 mask) in __pci_msi_unmask_desc() argument
67 if (desc->pci.msi_attrib.is_msix) in __pci_msi_unmask_desc()
68 pci_msix_unmask(desc); in __pci_msi_unmask_desc()
70 pci_msi_unmask(desc, mask); in __pci_msi_unmask_desc()
79 static inline __attribute_const__ u32 msi_multi_mask(struct msi_desc *desc) in msi_multi_mask() argument
82 if (desc->pci.msi_attrib.multi_cap >= 5) in msi_multi_mask()
84 return (1 << (1 << desc->pci.msi_attrib.multi_cap)) - 1; in msi_multi_mask()
87 void msix_prepare_msi_desc(struct pci_dev *dev, struct msi_desc *desc);