Home
last modified time | relevance | path

Searched refs:msi_desc (Results 1 – 25 of 49) sorted by relevance

12

/linux-6.1.9/drivers/bus/fsl-mc/
Dfsl-mc-msi.c26 struct msi_desc *desc) in fsl_mc_domain_calc_hwirq()
36 struct msi_desc *desc) in fsl_mc_msi_set_desc()
62 struct msi_desc *msi_desc) in __fsl_mc_msi_write_msg() argument
73 if (msi_desc->msg.address_lo == 0x0 && msi_desc->msg.address_hi == 0x0) in __fsl_mc_msi_write_msg()
79 irq_cfg.paddr = ((u64)msi_desc->msg.address_hi << 32) | in __fsl_mc_msi_write_msg()
80 msi_desc->msg.address_lo; in __fsl_mc_msi_write_msg()
81 irq_cfg.val = msi_desc->msg.data; in __fsl_mc_msi_write_msg()
82 irq_cfg.irq_num = msi_desc->irq; in __fsl_mc_msi_write_msg()
121 struct msi_desc *msi_desc = irq_data_get_msi_desc(irq_data); in fsl_mc_msi_write_msg() local
122 struct fsl_mc_device *mc_bus_dev = to_fsl_mc_device(msi_desc->dev); in fsl_mc_msi_write_msg()
[all …]
/linux-6.1.9/drivers/ntb/
Dmsi.c97 struct msi_desc *desc; in ntb_msi_setup_mws()
191 struct msi_desc *entry;
192 struct ntb_msi_desc *msi_desc; member
195 static int ntb_msi_set_desc(struct ntb_dev *ntb, struct msi_desc *entry, in ntb_msi_set_desc()
196 struct ntb_msi_desc *msi_desc) in ntb_msi_set_desc() argument
211 msi_desc->addr_offset = addr - ntb->msi->base_addr; in ntb_msi_set_desc()
212 msi_desc->data = entry->msg.data; in ntb_msi_set_desc()
217 static void ntb_msi_write_msg(struct msi_desc *entry, void *data) in ntb_msi_write_msg()
221 WARN_ON(ntb_msi_set_desc(dr->ntb, entry, dr->msi_desc)); in ntb_msi_write_msg()
235 static int ntbm_msi_setup_callback(struct ntb_dev *ntb, struct msi_desc *entry, in ntbm_msi_setup_callback()
[all …]
/linux-6.1.9/include/linux/
Dmsi.h72 struct msi_desc;
77 void __get_cached_msi_msg(struct msi_desc *entry, struct msi_msg *msg);
86 typedef void (*irq_write_msi_msg_t)(struct msi_desc *desc,
141 struct msi_desc { struct
155 void (*write_msi_msg)(struct msi_desc *entry, void *data); argument
196 struct msi_desc *msi_first_desc(struct device *dev, enum msi_desc_filter filter);
197 struct msi_desc *msi_next_desc(struct device *dev, enum msi_desc_filter filter);
218 static inline const void *msi_desc_get_iommu_cookie(struct msi_desc *desc) in msi_desc_get_iommu_cookie()
223 static inline void msi_desc_set_iommu_cookie(struct msi_desc *desc, in msi_desc_set_iommu_cookie()
229 static inline const void *msi_desc_get_iommu_cookie(struct msi_desc *desc) in msi_desc_get_iommu_cookie()
[all …]
Dirq.h129 struct msi_desc;
153 struct msi_desc *msi_desc; member
815 extern int irq_set_msi_desc(unsigned int irq, struct msi_desc *entry);
817 struct msi_desc *entry);
853 static inline struct msi_desc *irq_get_msi_desc(unsigned int irq) in irq_get_msi_desc()
856 return d ? d->common->msi_desc : NULL; in irq_get_msi_desc()
859 static inline struct msi_desc *irq_data_get_msi_desc(struct irq_data *d) in irq_data_get_msi_desc()
861 return d->common->msi_desc; in irq_data_get_msi_desc()
Diommu.h1074 int iommu_dma_prepare_msi(struct msi_desc *desc, phys_addr_t msi_addr);
1075 void iommu_dma_compose_msi_msg(struct msi_desc *desc, struct msi_msg *msg);
1079 struct msi_desc;
1091 static inline int iommu_dma_prepare_msi(struct msi_desc *desc, phys_addr_t msi_addr) in iommu_dma_prepare_msi()
1096 static inline void iommu_dma_compose_msi_msg(struct msi_desc *desc, struct msi_msg *msg) in iommu_dma_compose_msi_msg()
Dntb.h1649 struct ntb_msi_desc *msi_desc);
1673 struct ntb_msi_desc *msi_desc) in ntbm_msi_request_threaded_irq() argument
1697 struct ntb_msi_desc *msi_desc) in ntbm_msi_request_irq() argument
1700 dev_id, msi_desc); in ntbm_msi_request_irq()
/linux-6.1.9/drivers/soc/ti/
Dti_sci_inta_msi.c67 struct msi_desc msi_desc; in ti_sci_inta_msi_alloc_descs() local
70 memset(&msi_desc, 0, sizeof(msi_desc)); in ti_sci_inta_msi_alloc_descs()
71 msi_desc.nvec_used = 1; in ti_sci_inta_msi_alloc_descs()
75 msi_desc.msi_index = res->desc[set].start + i; in ti_sci_inta_msi_alloc_descs()
76 if (msi_add_msi_desc(dev, &msi_desc)) in ti_sci_inta_msi_alloc_descs()
81 msi_desc.msi_index = res->desc[set].start_sec + i; in ti_sci_inta_msi_alloc_descs()
82 if (msi_add_msi_desc(dev, &msi_desc)) in ti_sci_inta_msi_alloc_descs()
/linux-6.1.9/kernel/irq/
Dmsi.c35 static struct msi_desc *msi_alloc_desc(struct device *dev, int nvec, in msi_alloc_desc()
38 struct msi_desc *desc = kzalloc(sizeof(*desc), GFP_KERNEL); in msi_alloc_desc()
55 static void msi_free_desc(struct msi_desc *desc) in msi_free_desc()
61 static int msi_insert_desc(struct msi_device_data *md, struct msi_desc *desc, unsigned int index) in msi_insert_desc()
79 int msi_add_msi_desc(struct device *dev, struct msi_desc *init_desc) in msi_add_msi_desc()
81 struct msi_desc *desc; in msi_add_msi_desc()
105 struct msi_desc *desc; in msi_add_simple_msi_descs()
127 static bool msi_desc_match(struct msi_desc *desc, enum msi_desc_filter filter) in msi_desc_match()
152 struct msi_desc *desc; in msi_free_msi_descs_range()
165 void __get_cached_msi_msg(struct msi_desc *entry, struct msi_msg *msg) in __get_cached_msi_msg()
[all …]
/linux-6.1.9/drivers/pci/msi/
Dmsi.c19 static noinline void pci_msi_update_mask(struct msi_desc *desc, u32 clear, u32 set) in pci_msi_update_mask()
35 static inline void pci_msi_mask(struct msi_desc *desc, u32 mask) in pci_msi_mask()
40 static inline void pci_msi_unmask(struct msi_desc *desc, u32 mask) in pci_msi_unmask()
45 static inline void __iomem *pci_msix_desc_addr(struct msi_desc *desc) in pci_msix_desc_addr()
56 static void pci_msix_write_vector_ctrl(struct msi_desc *desc, u32 ctrl) in pci_msix_write_vector_ctrl()
64 static inline void pci_msix_mask(struct msi_desc *desc) in pci_msix_mask()
72 static inline void pci_msix_unmask(struct msi_desc *desc) in pci_msix_unmask()
78 static void __pci_msi_mask_desc(struct msi_desc *desc, u32 mask) in __pci_msi_mask_desc()
86 static void __pci_msi_unmask_desc(struct msi_desc *desc, u32 mask) in __pci_msi_unmask_desc()
100 struct msi_desc *desc = irq_data_get_msi_desc(data); in pci_msi_mask_irq()
[all …]
Dlegacy.c10 int __weak arch_setup_msi_irq(struct pci_dev *dev, struct msi_desc *desc) in arch_setup_msi_irq()
21 struct msi_desc *desc; in arch_setup_msi_irqs()
42 struct msi_desc *desc; in arch_teardown_msi_irqs()
53 struct msi_desc *desc; in pci_msi_setup_check_result()
Dirqdomain.c41 struct msi_desc *desc = irq_data_get_msi_desc(irq_data); in pci_msi_domain_write_msg()
57 static irq_hw_number_t pci_msi_domain_calc_hwirq(struct msi_desc *desc) in pci_msi_domain_calc_hwirq()
66 static inline bool pci_msi_desc_is_multi_msi(struct msi_desc *desc) in pci_msi_desc_is_multi_msi()
87 struct msi_desc *desc = msi_first_desc(dev, MSI_DESC_ALL); in pci_msi_domain_check_cap()
112 struct msi_desc *desc) in pci_msi_domain_set_desc()
Dmsi.h33 static inline __attribute_const__ u32 msi_multi_mask(struct msi_desc *desc) in msi_multi_mask()
/linux-6.1.9/include/asm-generic/
Dmsi.h13 struct msi_desc;
25 struct msi_desc *desc;
/linux-6.1.9/drivers/ntb/test/
Dntb_msi_test.c37 struct ntb_msi_desc *msi_desc; member
134 struct ntb_msi_desc *desc = nm->peers[peer].msi_desc; in ntb_msit_copy_peer_desc()
171 kfree(nm->peers[peer].msi_desc); in ntb_msit_db_event()
172 nm->peers[peer].msi_desc = desc; in ntb_msit_db_event()
195 &peer->msi_desc[idx]); in ntb_msit_dbgfs_trigger()
398 kfree(nm->peers[i].msi_desc); in ntb_msit_remove()
/linux-6.1.9/arch/x86/include/asm/
Dhw_irq.h34 struct msi_desc;
81 struct msi_desc *desc;
/linux-6.1.9/drivers/net/wireless/ath/ath11k/
Dpci.c415 struct msi_desc *msi_desc; in ath11k_pci_alloc_msi() local
442 msi_desc = irq_get_msi_desc(ab_pci->pdev->irq); in ath11k_pci_alloc_msi()
443 if (!msi_desc) { in ath11k_pci_alloc_msi()
449 ab->pci.msi.ep_base_data = msi_desc->msg.data; in ath11k_pci_alloc_msi()
454 if (msi_desc->pci.msi_attrib.is_64) { in ath11k_pci_alloc_msi()
479 struct msi_desc *msi_desc; in ath11k_pci_config_msi_data() local
481 msi_desc = irq_get_msi_desc(ab_pci->pdev->irq); in ath11k_pci_config_msi_data()
482 if (!msi_desc) { in ath11k_pci_config_msi_data()
488 ab_pci->ab->pci.msi.ep_base_data = msi_desc->msg.data; in ath11k_pci_config_msi_data()
/linux-6.1.9/include/xen/
Devents.h118 int xen_allocate_pirq_msi(struct pci_dev *dev, struct msi_desc *msidesc);
120 int xen_bind_pirq_msi_to_irq(struct pci_dev *dev, struct msi_desc *msidesc,
/linux-6.1.9/arch/powerpc/platforms/pasemi/
Dmsi.c60 struct msi_desc *entry; in pasemi_msi_teardown_msi_irqs()
76 struct msi_desc *entry; in pasemi_msi_setup_msi_irqs()
/linux-6.1.9/drivers/base/
Dplatform-msi.c39 static irq_hw_number_t platform_msi_calc_hwirq(struct msi_desc *desc) in platform_msi_calc_hwirq()
46 static void platform_msi_set_desc(msi_alloc_info_t *arg, struct msi_desc *desc) in platform_msi_set_desc()
85 struct msi_desc *desc = irq_data_get_msi_desc(data); in platform_msi_write_msg()
/linux-6.1.9/arch/powerpc/sysdev/
Dmpic_u3msi.c104 struct msi_desc *entry; in u3msi_teardown_msi_irqs()
118 struct msi_desc *entry; in u3msi_setup_msi_irqs()
/linux-6.1.9/arch/x86/pci/
Dxen.c170 struct msi_desc *msidesc; in xen_setup_msi_irqs()
232 struct msi_desc *msidesc; in xen_hvm_setup_msi_irqs()
271 struct msi_desc *msidesc; in xen_initdom_setup_msi_irqs()
389 struct msi_desc *msidesc; in xen_teardown_msi_irqs()
/linux-6.1.9/arch/powerpc/platforms/4xx/
Dhsta_msi.c41 struct msi_desc *entry; in hsta_setup_msi_irqs()
106 struct msi_desc *entry; in hsta_teardown_msi_irqs()
/linux-6.1.9/drivers/pci/controller/
Dpci-hyperv.c641 struct msi_desc *msi_desc = irq_data_get_msi_desc(data); in hv_arch_irq_unmask() local
655 pdev = msi_desc_to_pci_dev(msi_desc); in hv_arch_irq_unmask()
1558 struct msi_desc *msi = irq_data_get_msi_desc(irq_data); in hv_msi_free()
1750 struct msi_desc *msi_desc; in hv_compose_msi_msg() local
1771 msi_desc = irq_data_get_msi_desc(data); in hv_compose_msi_msg()
1772 multi_msi = !msi_desc->pci.msi_attrib.is_msix && in hv_compose_msi_msg()
1773 msi_desc->nvec_used > 1; in hv_compose_msi_msg()
1784 pdev = msi_desc_to_pci_dev(msi_desc); in hv_compose_msi_msg()
1809 if (msi_desc->irq != data->irq) { in hv_compose_msi_msg()
1811 int_desc->address = msi_desc->msg.address_lo | in hv_compose_msi_msg()
[all …]
/linux-6.1.9/arch/s390/pci/
Dpci_irq.c135 struct msi_desc *entry = irq_get_msi_desc(data->irq); in zpci_set_irq_affinity()
276 struct msi_desc *msi; in arch_setup_msi_irqs()
362 struct msi_desc *msi; in arch_teardown_msi_irqs()
/linux-6.1.9/arch/x86/hyperv/
Dirqdomain.c191 struct msi_desc *msidesc; in hv_irq_compose_msi_msg()
283 struct msi_desc *desc; in hv_msi_free_irq()

12