Home
last modified time | relevance | path

Searched refs:msi_map (Results 1 – 19 of 19) sorted by relevance

/openbmc/linux/drivers/irqchip/
H A Dirq-alpine-msi.c36 unsigned long *msi_map; member
65 first = bitmap_find_next_zero_area(priv->msi_map, priv->num_spis, 0, in alpine_msix_allocate_sgi()
72 bitmap_set(priv->msi_map, first, num_req); in alpine_msix_allocate_sgi()
86 bitmap_clear(priv->msi_map, first, num_req); in alpine_msix_free_sgi()
269 priv->msi_map = bitmap_zalloc(priv->num_spis, GFP_KERNEL); in alpine_msix_init()
270 if (!priv->msi_map) { in alpine_msix_init()
285 bitmap_free(priv->msi_map); in alpine_msix_init()
H A Dirq-loongson-pch-msi.c25 unsigned long *msi_map; member
56 first = bitmap_find_free_region(priv->msi_map, priv->num_irqs, in pch_msi_allocate_hwirq()
74 bitmap_release_region(priv->msi_map, first, get_count_order(num_req)); in pch_msi_free_hwirq()
205 priv->msi_map = bitmap_zalloc(priv->num_irqs, GFP_KERNEL); in pch_msi_init()
206 if (!priv->msi_map) in pch_msi_init()
220 bitmap_free(priv->msi_map); in pch_msi_init()
/openbmc/linux/drivers/pci/msi/
H A Dapi.c149 struct msi_map pci_msix_alloc_irq_at(struct pci_dev *dev, unsigned int index, in pci_msix_alloc_irq_at()
152 struct msi_map map = { .index = -ENOTSUPP }; in pci_msix_alloc_irq_at()
172 void pci_msix_free_irq(struct pci_dev *dev, struct msi_map map) in pci_msix_free_irq()
395 struct msi_map pci_ims_alloc_irq(struct pci_dev *dev, union msi_instance_cookie *icookie, in pci_ims_alloc_irq()
410 void pci_ims_free_irq(struct pci_dev *dev, struct msi_map map) in pci_ims_free_irq()
/openbmc/linux/drivers/net/ethernet/intel/ice/
H A Dice_irq.h21 struct msi_map ice_alloc_irq(struct ice_pf *pf, bool dyn_only);
22 void ice_free_irq(struct ice_pf *pf, struct msi_map map);
H A Dice_irq.c294 struct msi_map ice_alloc_irq(struct ice_pf *pf, bool dyn_only) in ice_alloc_irq()
297 struct msi_map map = { .index = -ENOENT }; in ice_alloc_irq()
335 void ice_free_irq(struct ice_pf *pf, struct msi_map map) in ice_free_irq()
H A Dice_idc.c251 struct msi_map map; in ice_alloc_rdma_qvectors()
276 struct msi_map map; in ice_free_rdma_qvector()
H A Dice.h479 struct msi_map irq;
593 struct msi_map oicr_irq; /* Other interrupt cause MSIX vector */
H A Dice_main.c3322 struct msi_map oicr_irq; in ice_req_irq_msix_misc()
/openbmc/linux/include/linux/
H A Dmsi_api.h47 struct msi_map { struct
H A Dpci.h1658 struct msi_map pci_msix_alloc_irq_at(struct pci_dev *dev, unsigned int index,
1660 void pci_msix_free_irq(struct pci_dev *pdev, struct msi_map map);
1701 static inline struct msi_map pci_msix_alloc_irq_at(struct pci_dev *dev, unsigned int index, in pci_msix_alloc_irq_at()
1704 struct msi_map map = { .index = -ENOSYS, }; in pci_msix_alloc_irq_at()
1709 static inline void pci_msix_free_irq(struct pci_dev *pdev, struct msi_map map) in pci_msix_free_irq()
2648 struct msi_map pci_ims_alloc_irq(struct pci_dev *pdev, union msi_instance_cookie *icookie,
2650 void pci_ims_free_irq(struct pci_dev *pdev, struct msi_map map);
H A Dmsi.h614 struct msi_map msi_domain_alloc_irq_at(struct device *dev, unsigned int domid, unsigned int index,
/openbmc/linux/drivers/pci/controller/
H A Dpcie-xilinx.c106 unsigned long msi_map[BITS_TO_LONGS(XILINX_NUM_MSI_IRQS)]; member
240 hwirq = bitmap_find_free_region(pcie->msi_map, XILINX_NUM_MSI_IRQS, order_base_2(nr_irqs)); in xilinx_msi_domain_alloc()
263 bitmap_release_region(pcie->msi_map, d->hwirq, order_base_2(nr_irqs)); in xilinx_msi_domain_free()
H A Dpcie-iproc.c1350 const __be32 *msi_map = NULL; in iproc_pcie_msi_enable() local
1354 msi_map = of_get_property(pcie->dev->of_node, "msi-map", &len); in iproc_pcie_msi_enable()
1355 if (!msi_map) in iproc_pcie_msi_enable()
1358 phandle = be32_to_cpup(msi_map + 1); in iproc_pcie_msi_enable()
/openbmc/linux/drivers/vdpa/mlx5/net/
H A Dmlx5_vnet.h32 struct msi_map map;
H A Dmlx5_vnet.c86 struct msi_map map;
122 struct msi_map map;
/openbmc/linux/drivers/net/ethernet/mellanox/mlx5/core/
H A Dpci_irq.c35 struct msi_map map;
521 struct msi_map mlx5_msix_alloc(struct mlx5_core_dev *dev, in mlx5_msix_alloc()
526 struct msi_map map; in mlx5_msix_alloc()
555 void mlx5_msix_free(struct mlx5_core_dev *dev, struct msi_map map) in mlx5_msix_free()
/openbmc/linux/include/linux/mlx5/
H A Ddriver.h1383 struct msi_map mlx5_msix_alloc(struct mlx5_core_dev *dev,
1387 void mlx5_msix_free(struct mlx5_core_dev *dev, struct msi_map map);
/openbmc/linux/kernel/irq/
H A Dmsi.c1459 struct msi_map msi_domain_alloc_irq_at(struct device *dev, unsigned int domid, unsigned int index, in msi_domain_alloc_irq_at()
1465 struct msi_map map = { }; in msi_domain_alloc_irq_at()
/openbmc/linux/drivers/vfio/pci/
H A Dvfio_pci_intrs.c432 struct msi_map map; in vfio_msi_alloc_irq()