Home
last modified time | relevance | path

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

123

/linux-6.6.21/drivers/bus/fsl-mc/ !
Dfsl-mc-msi.c24 struct msi_desc *desc) in fsl_mc_domain_calc_hwirq()
34 struct msi_desc *desc) in fsl_mc_msi_set_desc()
60 struct msi_desc *msi_desc) in __fsl_mc_msi_write_msg() argument
71 if (msi_desc->msg.address_lo == 0x0 && msi_desc->msg.address_hi == 0x0) in __fsl_mc_msi_write_msg()
77 irq_cfg.paddr = ((u64)msi_desc->msg.address_hi << 32) | in __fsl_mc_msi_write_msg()
78 msi_desc->msg.address_lo; in __fsl_mc_msi_write_msg()
79 irq_cfg.val = msi_desc->msg.data; in __fsl_mc_msi_write_msg()
80 irq_cfg.irq_num = msi_desc->irq; in __fsl_mc_msi_write_msg()
119 struct msi_desc *msi_desc = irq_data_get_msi_desc(irq_data); in fsl_mc_msi_write_msg() local
120 struct fsl_mc_device *mc_bus_dev = to_fsl_mc_device(msi_desc->dev); in fsl_mc_msi_write_msg()
[all …]
/linux-6.6.21/drivers/pci/msi/ !
Dmsi.h12 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()
19 static inline void pci_msi_unmask(struct msi_desc *desc, u32 mask) in pci_msi_unmask()
24 static inline void __iomem *pci_msix_desc_addr(struct msi_desc *desc) 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()
43 static inline void pci_msix_mask(struct msi_desc *desc) in pci_msix_mask()
51 static inline void pci_msix_unmask(struct msi_desc *desc) in pci_msix_unmask()
57 static inline void __pci_msi_mask_desc(struct msi_desc *desc, u32 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()
79 static inline __attribute_const__ u32 msi_multi_mask(struct msi_desc *desc) in msi_multi_mask()
[all …]
Dmsi.c110 void pci_msi_update_mask(struct msi_desc *desc, u32 clear, u32 set) in pci_msi_update_mask()
132 struct msi_desc *desc = irq_data_get_msi_desc(data); in pci_msi_mask_irq()
144 struct msi_desc *desc = irq_data_get_msi_desc(data); in pci_msi_unmask_irq()
150 void __pci_read_msi_msg(struct msi_desc *entry, struct msi_msg *msg) in __pci_read_msi_msg()
183 static inline void pci_write_msg_msi(struct pci_dev *dev, struct msi_desc *desc, in pci_write_msg_msi()
205 static inline void pci_write_msg_msix(struct msi_desc *desc, struct msi_msg *msg) in pci_write_msg_msix()
235 void __pci_write_msi_msg(struct msi_desc *entry, struct msi_msg *msg) in __pci_write_msi_msg()
255 struct msi_desc *entry = irq_get_msi_desc(irq); in pci_write_msi_msg()
284 struct msi_desc desc; in msi_setup_msi_desc()
320 struct msi_desc *entry; in msi_verify_entries()
[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.c42 struct msi_desc *desc = irq_data_get_msi_desc(irq_data); 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()
68 struct msi_desc *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()
153 struct msi_desc *desc = irq_data_get_msi_desc(data); in pci_irq_mask_msi()
160 struct msi_desc *desc = irq_data_get_msi_desc(data); in pci_irq_unmask_msi()
206 struct msi_desc *desc) in pci_msix_prepare_desc()
/linux-6.6.21/include/linux/ !
Dmsi.h82 struct msi_desc;
89 void __get_cached_msi_msg(struct msi_desc *entry, struct msi_msg *msg);
96 typedef void (*irq_write_msi_msg_t)(struct msi_desc *desc,
184 struct msi_desc { struct
198 void (*write_msi_msg)(struct msi_desc *entry, void *data); argument
252 struct msi_desc *msi_domain_first_desc(struct device *dev, unsigned int domid,
266 static inline struct msi_desc *msi_first_desc(struct device *dev, in msi_first_desc()
272 struct msi_desc *msi_next_desc(struct device *dev, unsigned int domid,
310 static inline const void *msi_desc_get_iommu_cookie(struct msi_desc *desc) in msi_desc_get_iommu_cookie()
315 static inline void msi_desc_set_iommu_cookie(struct msi_desc *desc, in msi_desc_set_iommu_cookie()
[all …]
Dirq.h129 struct msi_desc;
153 struct msi_desc *msi_desc; member
810 extern int irq_set_msi_desc(unsigned int irq, struct msi_desc *entry);
812 struct msi_desc *entry);
848 static inline struct msi_desc *irq_get_msi_desc(unsigned int irq) in irq_get_msi_desc()
851 return d ? d->common->msi_desc : NULL; in irq_get_msi_desc()
854 static inline struct msi_desc *irq_data_get_msi_desc(struct irq_data *d) in irq_data_get_msi_desc()
856 return d->common->msi_desc; in irq_data_get_msi_desc()
Diommu.h1135 int iommu_dma_prepare_msi(struct msi_desc *desc, phys_addr_t msi_addr);
1136 void iommu_dma_compose_msi_msg(struct msi_desc *desc, struct msi_msg *msg);
1140 struct msi_desc;
1152 static inline int iommu_dma_prepare_msi(struct msi_desc *desc, phys_addr_t msi_addr) in iommu_dma_prepare_msi()
1157 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.6.21/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.6.21/drivers/soc/ti/ !
Dti_sci_inta_msi.c68 struct msi_desc msi_desc; in ti_sci_inta_msi_alloc_descs() local
71 memset(&msi_desc, 0, sizeof(msi_desc)); in ti_sci_inta_msi_alloc_descs()
72 msi_desc.nvec_used = 1; in ti_sci_inta_msi_alloc_descs()
76 msi_desc.msi_index = res->desc[set].start + i; in ti_sci_inta_msi_alloc_descs()
77 if (msi_insert_msi_desc(dev, &msi_desc)) in ti_sci_inta_msi_alloc_descs()
82 msi_desc.msi_index = res->desc[set].start_sec + i; in ti_sci_inta_msi_alloc_descs()
83 if (msi_insert_msi_desc(dev, &msi_desc)) in ti_sci_inta_msi_alloc_descs()
/linux-6.6.21/kernel/irq/ !
Dmsi.c58 static struct msi_desc *msi_alloc_desc(struct device *dev, int nvec, in msi_alloc_desc()
61 struct msi_desc *desc = kzalloc(sizeof(*desc), GFP_KERNEL); in msi_alloc_desc()
78 static void msi_free_desc(struct msi_desc *desc) in msi_free_desc()
84 static int msi_insert_desc(struct device *dev, struct msi_desc *desc, in msi_insert_desc()
133 struct msi_desc *init_desc) in msi_domain_insert_msi_desc()
135 struct msi_desc *desc; in msi_domain_insert_msi_desc()
149 static bool msi_desc_match(struct msi_desc *desc, enum msi_desc_filter filter) in msi_desc_match()
182 struct msi_desc *desc; in msi_domain_free_descs()
230 struct msi_desc *desc; in msi_domain_add_simple_msi_descs()
256 void __get_cached_msi_msg(struct msi_desc *entry, struct msi_msg *msg) in __get_cached_msi_msg()
[all …]
/linux-6.6.21/include/asm-generic/ !
Dmsi.h13 struct msi_desc;
25 struct msi_desc *desc;
/linux-6.6.21/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.6.21/arch/x86/include/asm/ !
Dhw_irq.h34 struct msi_desc;
81 struct msi_desc *desc;
/linux-6.6.21/drivers/net/wireless/ath/ath11k/ !
Dpci.c416 struct msi_desc *msi_desc; in ath11k_pci_alloc_msi() local
443 msi_desc = irq_get_msi_desc(ab_pci->pdev->irq); in ath11k_pci_alloc_msi()
444 if (!msi_desc) { in ath11k_pci_alloc_msi()
450 ab->pci.msi.ep_base_data = msi_desc->msg.data; in ath11k_pci_alloc_msi()
455 if (msi_desc->pci.msi_attrib.is_64) { in ath11k_pci_alloc_msi()
480 struct msi_desc *msi_desc; in ath11k_pci_config_msi_data() local
482 msi_desc = irq_get_msi_desc(ab_pci->pdev->irq); in ath11k_pci_config_msi_data()
483 if (!msi_desc) { in ath11k_pci_config_msi_data()
489 ab_pci->ab->pci.msi.ep_base_data = msi_desc->msg.data; in ath11k_pci_config_msi_data()
/linux-6.6.21/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,
/linux-6.6.21/arch/powerpc/platforms/pasemi/ !
Dmsi.c60 struct msi_desc *entry; in pasemi_msi_teardown_msi_irqs()
77 struct msi_desc *entry; in pasemi_msi_setup_msi_irqs()
/linux-6.6.21/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.6.21/arch/powerpc/sysdev/ !
Dmpic_u3msi.c104 struct msi_desc *entry; in u3msi_teardown_msi_irqs()
119 struct msi_desc *entry; in u3msi_setup_msi_irqs()
/linux-6.6.21/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.6.21/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.6.21/drivers/pci/controller/ !
Dpci-hyperv.c614 struct msi_desc *msi_desc = irq_data_get_msi_desc(data); in hv_arch_irq_unmask() local
628 pdev = msi_desc_to_pci_dev(msi_desc); in hv_arch_irq_unmask()
1637 struct msi_desc *msi = irq_data_get_msi_desc(irq_data); in hv_msi_free()
1829 struct msi_desc *msi_desc; in hv_compose_msi_msg() local
1850 msi_desc = irq_data_get_msi_desc(data); in hv_compose_msi_msg()
1851 multi_msi = !msi_desc->pci.msi_attrib.is_msix && in hv_compose_msi_msg()
1852 msi_desc->nvec_used > 1; in hv_compose_msi_msg()
1863 pdev = msi_desc_to_pci_dev(msi_desc); in hv_compose_msi_msg()
1888 if (msi_desc->irq != data->irq) { in hv_compose_msi_msg()
1890 int_desc->address = msi_desc->msg.address_lo | in hv_compose_msi_msg()
[all …]
/linux-6.6.21/arch/s390/pci/ !
Dpci_irq.c135 struct msi_desc *entry = irq_data_get_msi_desc(data); 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.6.21/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()

123