Lines Matching refs:msi_set
353 struct mtk_msi_set *msi_set = &pcie->msi_sets[i]; in mtk_pcie_enable_msi() local
355 msi_set->base = pcie->base + PCIE_MSI_SET_BASE_REG + in mtk_pcie_enable_msi()
357 msi_set->msg_addr = pcie->reg_base + PCIE_MSI_SET_BASE_REG + in mtk_pcie_enable_msi()
361 writel_relaxed(lower_32_bits(msi_set->msg_addr), msi_set->base); in mtk_pcie_enable_msi()
362 writel_relaxed(upper_32_bits(msi_set->msg_addr), in mtk_pcie_enable_msi()
496 struct mtk_msi_set *msi_set = irq_data_get_irq_chip_data(data); in mtk_compose_msi_msg() local
502 msg->address_hi = upper_32_bits(msi_set->msg_addr); in mtk_compose_msi_msg()
503 msg->address_lo = lower_32_bits(msi_set->msg_addr); in mtk_compose_msi_msg()
511 struct mtk_msi_set *msi_set = irq_data_get_irq_chip_data(data); in mtk_msi_bottom_irq_ack() local
516 writel_relaxed(BIT(hwirq), msi_set->base + PCIE_MSI_SET_STATUS_OFFSET); in mtk_msi_bottom_irq_ack()
521 struct mtk_msi_set *msi_set = irq_data_get_irq_chip_data(data); in mtk_msi_bottom_irq_mask() local
529 val = readl_relaxed(msi_set->base + PCIE_MSI_SET_ENABLE_OFFSET); in mtk_msi_bottom_irq_mask()
531 writel_relaxed(val, msi_set->base + PCIE_MSI_SET_ENABLE_OFFSET); in mtk_msi_bottom_irq_mask()
537 struct mtk_msi_set *msi_set = irq_data_get_irq_chip_data(data); in mtk_msi_bottom_irq_unmask() local
545 val = readl_relaxed(msi_set->base + PCIE_MSI_SET_ENABLE_OFFSET); in mtk_msi_bottom_irq_unmask()
547 writel_relaxed(val, msi_set->base + PCIE_MSI_SET_ENABLE_OFFSET); in mtk_msi_bottom_irq_unmask()
564 struct mtk_msi_set *msi_set; in mtk_msi_bottom_domain_alloc() local
578 msi_set = &pcie->msi_sets[set_idx]; in mtk_msi_bottom_domain_alloc()
582 &mtk_msi_bottom_irq_chip, msi_set, in mtk_msi_bottom_domain_alloc()
745 struct mtk_msi_set *msi_set = &pcie->msi_sets[set_idx]; in mtk_pcie_msi_handler() local
749 msi_enable = readl_relaxed(msi_set->base + PCIE_MSI_SET_ENABLE_OFFSET); in mtk_pcie_msi_handler()
752 msi_status = readl_relaxed(msi_set->base + in mtk_pcie_msi_handler()
1108 struct mtk_msi_set *msi_set = &pcie->msi_sets[i]; in mtk_pcie_irq_save() local
1110 msi_set->saved_irq_state = readl_relaxed(msi_set->base + in mtk_pcie_irq_save()
1126 struct mtk_msi_set *msi_set = &pcie->msi_sets[i]; in mtk_pcie_irq_restore() local
1128 writel_relaxed(msi_set->saved_irq_state, in mtk_pcie_irq_restore()
1129 msi_set->base + PCIE_MSI_SET_ENABLE_OFFSET); in mtk_pcie_irq_restore()