Home
last modified time | relevance | path

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

123

/kernel/linux/linux-5.10/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()
65 struct msi_desc *msi_desc = mc_dev_irq->msi_desc; in __fsl_mc_msi_write_msg() local
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 …]
Dfsl-mc-allocator.c353 struct msi_desc *msi_desc; in fsl_mc_populate_irq_pool() local
395 for_each_msi_entry(msi_desc, &mc_bus_dev->dev) { in fsl_mc_populate_irq_pool()
396 mc_dev_irq = &irq_resources[msi_desc->fsl_mc.msi_index]; in fsl_mc_populate_irq_pool()
397 mc_dev_irq->msi_desc = msi_desc; in fsl_mc_populate_irq_pool()
398 mc_dev_irq->resource.id = msi_desc->irq; in fsl_mc_populate_irq_pool()
Ddprc-driver.c401 struct msi_desc *msi_desc = mc_dev->irqs[0]->msi_desc; in dprc_irq0_handler_thread() local
410 if (!msi_desc || msi_desc->irq != (u32)irq_num) in dprc_irq0_handler_thread()
512 irq->msi_desc->irq, in register_dprc_irq_handler()
752 devm_free_irq(&mc_dev->dev, irq->msi_desc->irq, &mc_dev->dev); in dprc_teardown_irq()
/kernel/linux/linux-5.10/include/linux/
Dmsi.h17 struct msi_desc;
20 void __get_cached_msi_msg(struct msi_desc *entry, struct msi_msg *msg);
29 typedef void (*irq_write_msi_msg_t)(struct msi_desc *desc,
85 struct msi_desc { struct
97 void (*write_msi_msg)(struct msi_desc *entry, void *data); argument
137 list_first_entry(dev_to_msi_list((dev)), struct msi_desc, list)
150 static inline const void *msi_desc_get_iommu_cookie(struct msi_desc *desc) in msi_desc_get_iommu_cookie()
155 static inline void msi_desc_set_iommu_cookie(struct msi_desc *desc, in msi_desc_set_iommu_cookie()
161 static inline const void *msi_desc_get_iommu_cookie(struct msi_desc *desc) in msi_desc_get_iommu_cookie()
166 static inline void msi_desc_set_iommu_cookie(struct msi_desc *desc, in msi_desc_set_iommu_cookie()
[all …]
Ddma-iommu.h32 int iommu_dma_prepare_msi(struct msi_desc *desc, phys_addr_t msi_addr);
35 void iommu_dma_compose_msi_msg(struct msi_desc *desc,
43 struct msi_desc;
66 static inline int iommu_dma_prepare_msi(struct msi_desc *desc, in iommu_dma_prepare_msi()
72 static inline void iommu_dma_compose_msi_msg(struct msi_desc *desc, in iommu_dma_compose_msi_msg()
Dirq.h127 struct msi_desc;
151 struct msi_desc *msi_desc; member
808 extern int irq_set_msi_desc(unsigned int irq, struct msi_desc *entry);
810 struct msi_desc *entry);
846 static inline struct msi_desc *irq_get_msi_desc(unsigned int irq) in irq_get_msi_desc()
849 return d ? d->common->msi_desc : NULL; in irq_get_msi_desc()
852 static inline struct msi_desc *irq_data_get_msi_desc(struct irq_data *d) in irq_data_get_msi_desc()
854 return d->common->msi_desc; in irq_data_get_msi_desc()
/kernel/linux/linux-5.10/drivers/ntb/
Dmsi.c99 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 …]
/kernel/linux/linux-5.10/drivers/soc/ti/
Dti_sci_inta_msi.c65 struct msi_desc *desc, *tmp; in ti_sci_inta_msi_free_descs()
76 struct msi_desc *msi_desc; in ti_sci_inta_msi_alloc_descs() local
81 msi_desc = alloc_msi_entry(dev, 1, NULL); in ti_sci_inta_msi_alloc_descs()
82 if (!msi_desc) { in ti_sci_inta_msi_alloc_descs()
87 msi_desc->inta.dev_index = res->desc[set].start + i; in ti_sci_inta_msi_alloc_descs()
88 INIT_LIST_HEAD(&msi_desc->list); in ti_sci_inta_msi_alloc_descs()
89 list_add_tail(&msi_desc->list, dev_to_msi_list(dev)); in ti_sci_inta_msi_alloc_descs()
138 struct msi_desc *desc; in ti_sci_inta_msi_get_virq()
/kernel/linux/linux-5.10/drivers/pci/
Dmsi.c63 int __weak arch_setup_msi_irq(struct pci_dev *dev, struct msi_desc *desc) in arch_setup_msi_irq()
93 struct msi_desc *entry; in arch_setup_msi_irqs()
123 struct msi_desc *entry; in default_teardown_msi_irqs()
139 struct msi_desc *entry; in default_restore_msi_irq()
174 void __pci_msi_desc_mask_irq(struct msi_desc *desc, u32 mask, u32 flag) in __pci_msi_desc_mask_irq()
190 static void msi_mask_irq(struct msi_desc *desc, u32 mask, u32 flag) in msi_mask_irq()
195 static void __iomem *pci_msix_desc_addr(struct msi_desc *desc) in pci_msix_desc_addr()
211 u32 __pci_msix_desc_mask_irq(struct msi_desc *desc, u32 flag) in __pci_msix_desc_mask_irq()
232 static void msix_mask_irq(struct msi_desc *desc, u32 flag) in msix_mask_irq()
239 struct msi_desc *desc = irq_data_get_msi_desc(data); in msi_set_mask_bit()
[all …]
/kernel/linux/linux-5.10/drivers/base/
Dplatform-msi.c39 static irq_hw_number_t platform_msi_calc_hwirq(struct msi_desc *desc) in platform_msi_calc_hwirq()
48 static void platform_msi_set_desc(msi_alloc_info_t *arg, struct msi_desc *desc) in platform_msi_set_desc()
81 struct msi_desc *desc = irq_data_get_msi_desc(data); in platform_msi_write_msg()
111 struct msi_desc *desc, *tmp; in platform_msi_free_descs()
127 struct msi_desc *desc; in platform_msi_alloc_descs_with_irq()
132 struct msi_desc, list); in platform_msi_alloc_descs_with_irq()
287 struct msi_desc *desc; in platform_msi_domain_free_irqs()
371 struct msi_desc *desc, *tmp; in platform_msi_domain_free()
/kernel/linux/linux-5.10/kernel/irq/
Dmsi.c29 struct msi_desc *alloc_msi_entry(struct device *dev, int nvec, in alloc_msi_entry()
32 struct msi_desc *desc; in alloc_msi_entry()
53 void free_msi_entry(struct msi_desc *entry) in free_msi_entry()
59 void __get_cached_msi_msg(struct msi_desc *entry, struct msi_msg *msg) in __get_cached_msi_msg()
66 struct msi_desc *entry = irq_get_msi_desc(irq); in get_cached_msi_msg()
204 struct msi_desc *desc) in msi_domain_ops_set_desc()
323 struct msi_desc *desc; in msi_domain_populate_irqs()
374 struct msi_desc *desc; in msi_check_reservation_mode()
404 struct msi_desc *desc; in __msi_domain_alloc_irqs()
504 struct msi_desc *desc; in __msi_domain_free_irqs()
/kernel/linux/linux-5.10/include/asm-generic/
Dmsi.h11 struct msi_desc;
23 struct msi_desc *desc;
/kernel/linux/linux-5.10/drivers/dma/
Dmv_xor_v2.c171 struct msi_desc *msi_desc; member
618 static void mv_xor_v2_set_msi_msg(struct msi_desc *desc, struct msi_msg *msg) in mv_xor_v2_set_msi_msg()
721 struct msi_desc *msi_desc; in mv_xor_v2_probe() local
773 msi_desc = first_msi_entry(&pdev->dev); in mv_xor_v2_probe()
774 if (!msi_desc) { in mv_xor_v2_probe()
778 xor_dev->msi_desc = msi_desc; in mv_xor_v2_probe()
780 ret = devm_request_irq(&pdev->dev, msi_desc->irq, in mv_xor_v2_probe()
895 devm_free_irq(&pdev->dev, xor_dev->msi_desc->irq, xor_dev); in mv_xor_v2_remove()
/kernel/linux/linux-5.10/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()
/kernel/linux/linux-5.10/arch/x86/include/asm/
Dhw_irq.h34 struct msi_desc;
83 struct msi_desc *desc;
Dmshyperv.h251 struct msi_desc *msi_desc) in hv_set_msi_entry_from_desc() argument
253 msi_entry->address = msi_desc->msg.address_lo; in hv_set_msi_entry_from_desc()
254 msi_entry->data = msi_desc->msg.data; in hv_set_msi_entry_from_desc()
/kernel/linux/linux-5.10/drivers/soc/fsl/dpio/
Ddpio-driver.c91 irq_set_affinity_hint(irq->msi_desc->irq, NULL); in unregister_dpio_irq_handlers()
101 irq->msi_desc->irq, in register_dpio_irq_handlers()
114 if (irq_set_affinity_hint(irq->msi_desc->irq, cpumask_of(cpu))) in register_dpio_irq_handlers()
117 irq->msi_desc->irq, cpu); in register_dpio_irq_handlers()
/kernel/linux/linux-5.10/include/xen/
Devents.h116 int xen_allocate_pirq_msi(struct pci_dev *dev, struct msi_desc *msidesc);
118 int xen_bind_pirq_msi_to_irq(struct pci_dev *dev, struct msi_desc *msidesc,
/kernel/linux/linux-5.10/arch/powerpc/platforms/pasemi/
Dmsi.c60 struct msi_desc *entry; in pasemi_msi_teardown_msi_irqs()
81 struct msi_desc *entry; in pasemi_msi_setup_msi_irqs()
/kernel/linux/linux-5.10/arch/x86/pci/
Dxen.c170 struct msi_desc *msidesc; in xen_setup_msi_irqs()
235 struct msi_desc *msidesc; in xen_hvm_setup_msi_irqs()
274 struct msi_desc *msidesc; in xen_initdom_setup_msi_irqs()
389 struct msi_desc *msidesc; in xen_teardown_msi_irqs()
402 struct msi_desc *msidesc = first_pci_msi_entry(dev); in xen_pv_teardown_msi_irqs()
/kernel/linux/linux-5.10/arch/powerpc/sysdev/
Dmpic_u3msi.c104 struct msi_desc *entry; in u3msi_teardown_msi_irqs()
123 struct msi_desc *entry; in u3msi_setup_msi_irqs()
/kernel/linux/linux-5.10/arch/powerpc/platforms/4xx/
Dhsta_msi.c40 struct msi_desc *entry; in hsta_setup_msi_irqs()
105 struct msi_desc *entry; in hsta_teardown_msi_irqs()
/kernel/linux/linux-5.10/drivers/vfio/fsl-mc/
Dvfio_fsl_mc_intr.c70 hwirq = vdev->mc_dev->irqs[index]->msi_desc->irq; in vfio_set_trigger()
140 hwirq = vdev->mc_dev->irqs[index]->msi_desc->irq; in vfio_fsl_mc_set_irq_trigger()
/kernel/linux/linux-5.10/arch/powerpc/platforms/cell/
Daxon_msi.c202 struct msi_desc *entry; in setup_msi_msg_address()
256 struct msi_desc *entry; in axon_msi_setup_msi_irqs()
287 struct msi_desc *entry; in axon_msi_teardown_msi_irqs()
/kernel/linux/linux-5.10/arch/s390/pci/
Dpci_irq.c104 struct msi_desc *entry = irq_get_msi_desc(data->irq); in zpci_set_irq_affinity()
240 struct msi_desc *msi; in arch_setup_msi_irqs()
329 struct msi_desc *msi; in arch_teardown_msi_irqs()

123