PCI/MSI: Rename write_msi_msg() to pci_write_msi_msg()

Rename write_msi_msg() to pci_write_msi_msg() to mark it as PCI
specific.

Signed-off-by: Jiang Liu <[email protected]>
Cc: Bjorn Helgaas <[email protected]>
Cc: Grant Likely <[email protected]>
Cc: Marc Zyngier <[email protected]>
Cc: Yingjoe Chen <[email protected]>
Cc: Yijing Wang <[email protected]>
Signed-off-by: Thomas Gleixner <[email protected]>
This commit is contained in:
Jiang Liu 2014-11-09 23:10:34 +08:00 • committed by Thomas Gleixner
commit 83a18912b0
26 changed files with 45 additions and 35 deletions

View file

@ -1299,7 +1299,7 @@ static int tegra_msi_setup_irq(struct msi_controller *chip,
msg.address_hi = 0;
msg.data = hwirq;
write_msi_msg(irq, &msg);
pci_write_msi_msg(irq, &msg);
return 0;
}

View file

@ -298,7 +298,7 @@ static int dw_msi_setup_irq(struct msi_controller *chip, struct pci_dev *pdev,
else
msg.data = pos;
write_msi_msg(irq, &msg);
pci_write_msi_msg(irq, &msg);
return 0;
}

View file

@ -640,7 +640,7 @@ static int rcar_msi_setup_irq(struct msi_controller *chip, struct pci_dev *pdev,
msg.address_hi = rcar_pci_read_reg(pcie, PCIEMSIAUR);
msg.data = hwirq;
write_msi_msg(irq, &msg);
pci_write_msi_msg(irq, &msg);
return 0;
}

View file

@ -375,7 +375,7 @@ static int xilinx_pcie_msi_setup_irq(struct msi_controller *chip,
msg.address_lo = msg_addr;
msg.data = irq;
write_msi_msg(irq, &msg);
pci_write_msi_msg(irq, &msg);
return 0;
}

View file

@ -130,7 +130,7 @@ static void default_restore_msi_irq(struct pci_dev *dev, int irq)
}
if (entry)
__write_msi_msg(entry, &entry->msg);
__pci_write_msi_msg(entry, &entry->msg);
}
void __weak arch_restore_msi_irqs(struct pci_dev *dev)
@ -300,7 +300,7 @@ void get_cached_msi_msg(unsigned int irq, struct msi_msg *msg)
}
EXPORT_SYMBOL_GPL(get_cached_msi_msg);
void __write_msi_msg(struct msi_desc *entry, struct msi_msg *msg)
void __pci_write_msi_msg(struct msi_desc *entry, struct msi_msg *msg)
{
if (entry->dev->current_state != PCI_D0) {
/* Don't touch the hardware now */
@ -337,13 +337,13 @@ void __write_msi_msg(struct msi_desc *entry, struct msi_msg *msg)
entry->msg = *msg;
}
void write_msi_msg(unsigned int irq, struct msi_msg *msg)
void pci_write_msi_msg(unsigned int irq, struct msi_msg *msg)
{
struct msi_desc *entry = irq_get_msi_desc(irq);
__write_msi_msg(entry, msg);
__pci_write_msi_msg(entry, msg);
}
EXPORT_SYMBOL_GPL(write_msi_msg);
EXPORT_SYMBOL_GPL(pci_write_msi_msg);
static void free_msi_irqs(struct pci_dev *dev)
{