• Home
  • Raw
  • Download

Lines Matching refs:msi_set

312 		struct mtk_msi_set *msi_set = &pcie->msi_sets[i];  in mtk_pcie_enable_msi()  local
314 msi_set->base = pcie->base + PCIE_MSI_SET_BASE_REG + in mtk_pcie_enable_msi()
316 msi_set->msg_addr = pcie->reg_base + PCIE_MSI_SET_BASE_REG + in mtk_pcie_enable_msi()
320 writel_relaxed(lower_32_bits(msi_set->msg_addr), msi_set->base); in mtk_pcie_enable_msi()
321 writel_relaxed(upper_32_bits(msi_set->msg_addr), in mtk_pcie_enable_msi()
460 struct mtk_msi_set *msi_set = irq_data_get_irq_chip_data(data); in mtk_compose_msi_msg() local
466 msg->address_hi = upper_32_bits(msi_set->msg_addr); in mtk_compose_msi_msg()
467 msg->address_lo = lower_32_bits(msi_set->msg_addr); in mtk_compose_msi_msg()
475 struct mtk_msi_set *msi_set = irq_data_get_irq_chip_data(data); in mtk_msi_bottom_irq_ack() local
480 writel_relaxed(BIT(hwirq), msi_set->base + PCIE_MSI_SET_STATUS_OFFSET); in mtk_msi_bottom_irq_ack()
485 struct mtk_msi_set *msi_set = irq_data_get_irq_chip_data(data); in mtk_msi_bottom_irq_mask() local
493 val = readl_relaxed(msi_set->base + PCIE_MSI_SET_ENABLE_OFFSET); in mtk_msi_bottom_irq_mask()
495 writel_relaxed(val, msi_set->base + PCIE_MSI_SET_ENABLE_OFFSET); in mtk_msi_bottom_irq_mask()
501 struct mtk_msi_set *msi_set = irq_data_get_irq_chip_data(data); in mtk_msi_bottom_irq_unmask() local
509 val = readl_relaxed(msi_set->base + PCIE_MSI_SET_ENABLE_OFFSET); in mtk_msi_bottom_irq_unmask()
511 writel_relaxed(val, msi_set->base + PCIE_MSI_SET_ENABLE_OFFSET); in mtk_msi_bottom_irq_unmask()
529 struct mtk_msi_set *msi_set; in mtk_msi_bottom_domain_alloc() local
543 msi_set = &pcie->msi_sets[set_idx]; in mtk_msi_bottom_domain_alloc()
547 &mtk_msi_bottom_irq_chip, msi_set, in mtk_msi_bottom_domain_alloc()
711 struct mtk_msi_set *msi_set = &pcie->msi_sets[set_idx]; in mtk_pcie_msi_handler() local
715 msi_enable = readl_relaxed(msi_set->base + PCIE_MSI_SET_ENABLE_OFFSET); in mtk_pcie_msi_handler()
718 msi_status = readl_relaxed(msi_set->base + in mtk_pcie_msi_handler()
984 struct mtk_msi_set *msi_set = &pcie->msi_sets[i]; in mtk_pcie_irq_save() local
986 msi_set->saved_irq_state = readl_relaxed(msi_set->base + in mtk_pcie_irq_save()
1002 struct mtk_msi_set *msi_set = &pcie->msi_sets[i]; in mtk_pcie_irq_restore() local
1004 writel_relaxed(msi_set->saved_irq_state, in mtk_pcie_irq_restore()
1005 msi_set->base + PCIE_MSI_SET_ENABLE_OFFSET); in mtk_pcie_irq_restore()