Lines Matching refs:desc
42 struct msi_desc *desc = irq_data_get_msi_desc(irq_data); in pci_msi_domain_write_msg() local
48 if (desc->irq == irq_data->irq) in pci_msi_domain_write_msg()
49 __pci_write_msi_msg(desc, msg); in pci_msi_domain_write_msg()
58 static irq_hw_number_t pci_msi_domain_calc_hwirq(struct msi_desc *desc) in pci_msi_domain_calc_hwirq() argument
60 struct pci_dev *dev = msi_desc_to_pci_dev(desc); in pci_msi_domain_calc_hwirq()
62 return (irq_hw_number_t)desc->msi_index | in pci_msi_domain_calc_hwirq()
68 struct msi_desc *desc) in pci_msi_domain_set_desc() argument
70 arg->desc = desc; in pci_msi_domain_set_desc()
71 arg->hwirq = pci_msi_domain_calc_hwirq(desc); in pci_msi_domain_set_desc()
145 static void pci_device_domain_set_desc(msi_alloc_info_t *arg, struct msi_desc *desc) in pci_device_domain_set_desc() argument
147 arg->desc = desc; in pci_device_domain_set_desc()
148 arg->hwirq = desc->msi_index; in pci_device_domain_set_desc()
153 struct msi_desc *desc = irq_data_get_msi_desc(data); in pci_irq_mask_msi() local
155 pci_msi_mask(desc, BIT(data->irq - desc->irq)); in pci_irq_mask_msi()
160 struct msi_desc *desc = irq_data_get_msi_desc(data); in pci_irq_unmask_msi() local
162 pci_msi_unmask(desc, BIT(data->irq - desc->irq)); in pci_irq_unmask_msi()
206 struct msi_desc *desc) in pci_msix_prepare_desc() argument
209 if (!desc->pci.mask_base) in pci_msix_prepare_desc()
210 msix_prepare_msi_desc(to_pci_dev(desc->dev), desc); in pci_msix_prepare_desc()