Lines Matching refs:mmio_nvme
173 void __iomem *mmio_nvme; member
277 writel(tag, anv->mmio_nvme + APPLE_NVMMU_TCB_INVAL); in apple_nvmmu_inval()
278 if (readl(anv->mmio_nvme + APPLE_NVMMU_TCB_STAT)) in apple_nvmmu_inval()
801 u32 csts = readl(anv->mmio_nvme + NVME_REG_CSTS); in apple_nvme_disable()
883 u32 csts = readl(anv->mmio_nvme + NVME_REG_CSTS); in apple_nvme_timeout()
1038 ret = readl_poll_timeout(anv->mmio_nvme + APPLE_ANS_BOOT_STATUS, in apple_nvme_reset_work()
1067 anv->mmio_nvme + APPLE_ANS_LINEAR_SQ_CTRL); in apple_nvme_reset_work()
1071 anv->mmio_nvme + APPLE_ANS_MAX_PEND_CMDS_CTRL); in apple_nvme_reset_work()
1075 anv->mmio_nvme + APPLE_NVMMU_NUM_TCBS); in apple_nvme_reset_work()
1083 writel(readl(anv->mmio_nvme + APPLE_ANS_UNKNOWN_CTRL) & in apple_nvme_reset_work()
1085 anv->mmio_nvme + APPLE_ANS_UNKNOWN_CTRL); in apple_nvme_reset_work()
1090 writel(aqa, anv->mmio_nvme + NVME_REG_AQA); in apple_nvme_reset_work()
1091 writeq(anv->adminq.sq_dma_addr, anv->mmio_nvme + NVME_REG_ASQ); in apple_nvme_reset_work()
1092 writeq(anv->adminq.cq_dma_addr, anv->mmio_nvme + NVME_REG_ACQ); in apple_nvme_reset_work()
1096 anv->mmio_nvme + APPLE_NVMMU_ASQ_TCB_BASE); in apple_nvme_reset_work()
1098 anv->mmio_nvme + APPLE_NVMMU_IOSQ_TCB_BASE); in apple_nvme_reset_work()
1102 anv->ctrl.cap = readq(anv->mmio_nvme + NVME_REG_CAP); in apple_nvme_reset_work()
1187 *val = readl(ctrl_to_apple_nvme(ctrl)->mmio_nvme + off); in apple_nvme_reg_read32()
1193 writel(val, ctrl_to_apple_nvme(ctrl)->mmio_nvme + off); in apple_nvme_reg_write32()
1199 *val = readq(ctrl_to_apple_nvme(ctrl)->mmio_nvme + off); in apple_nvme_reg_read64()
1430 anv->mmio_nvme = devm_platform_ioremap_resource_byname(pdev, "nvme"); in apple_nvme_alloc()
1431 if (IS_ERR(anv->mmio_nvme)) { in apple_nvme_alloc()
1432 ret = PTR_ERR(anv->mmio_nvme); in apple_nvme_alloc()
1436 anv->adminq.sq_db = anv->mmio_nvme + APPLE_ANS_LINEAR_ASQ_DB; in apple_nvme_alloc()
1437 anv->adminq.cq_db = anv->mmio_nvme + APPLE_ANS_ACQ_DB; in apple_nvme_alloc()
1438 anv->ioq.sq_db = anv->mmio_nvme + APPLE_ANS_LINEAR_IOSQ_DB; in apple_nvme_alloc()
1439 anv->ioq.cq_db = anv->mmio_nvme + APPLE_ANS_IOCQ_DB; in apple_nvme_alloc()