Lines Matching full:mmio

419 	void __iomem *mmio = ap->host->iomap[PDC_MMIO_BAR];  in pdc20621_dma_prep()  local
428 mmio += PDC_CHIP0_OFS; in pdc20621_dma_prep()
458 /* copy three S/G tables and two packets to DIMM MMIO window */ in pdc20621_dma_prep()
466 writel(0x00000001, mmio + PDC_20621_GENERAL_CTL); in pdc20621_dma_prep()
468 readl(dimm_mmio); /* MMIO PCI posting flush */ in pdc20621_dma_prep()
470 ata_port_dbg(ap, "ata pkt buf ofs %u, prd size %u, mmio copied\n", in pdc20621_dma_prep()
478 void __iomem *mmio = ap->host->iomap[PDC_MMIO_BAR]; in pdc20621_nodata_prep() local
484 mmio += PDC_CHIP0_OFS; in pdc20621_nodata_prep()
495 /* copy three S/G tables and two packets to DIMM MMIO window */ in pdc20621_nodata_prep()
500 writel(0x00000001, mmio + PDC_20621_GENERAL_CTL); in pdc20621_nodata_prep()
502 readl(dimm_mmio); /* MMIO PCI posting flush */ in pdc20621_nodata_prep()
504 ata_port_dbg(ap, "ata pkt buf ofs %u, mmio copied\n", i); in pdc20621_nodata_prep()
529 void __iomem *mmio = host->iomap[PDC_MMIO_BAR]; in __pdc20621_push_hdma() local
532 mmio += PDC_CHIP0_OFS; in __pdc20621_push_hdma()
534 writel(0x00000001, mmio + PDC_20621_SEQCTL + (seq * 4)); in __pdc20621_push_hdma()
535 readl(mmio + PDC_20621_SEQCTL + (seq * 4)); /* flush */ in __pdc20621_push_hdma()
537 writel(pkt_ofs, mmio + PDC_HDMA_PKT_SUBMIT); in __pdc20621_push_hdma()
538 readl(mmio + PDC_HDMA_PKT_SUBMIT); /* flush */ in __pdc20621_push_hdma()
597 void __iomem *mmio = host->iomap[PDC_MMIO_BAR]; in pdc20621_packet_start() local
603 mmio += PDC_CHIP0_OFS; in pdc20621_packet_start()
620 writel(0x00000001, mmio + PDC_20621_SEQCTL + (seq * 4)); in pdc20621_packet_start()
621 readl(mmio + PDC_20621_SEQCTL + (seq * 4)); /* flush */ in pdc20621_packet_start()
658 void __iomem *mmio) in pdc20621_host_intr() argument
672 readl(mmio + 0x104), readl(mmio + PDC_HDMA_CTLSTAT)); in pdc20621_host_intr()
683 readl(mmio + 0x104), readl(mmio + PDC_HDMA_CTLSTAT)); in pdc20621_host_intr()
698 readl(mmio + 0x104), readl(mmio + PDC_HDMA_CTLSTAT)); in pdc20621_host_intr()
701 writel(0x00000001, mmio + PDC_20621_SEQCTL + (seq * 4)); in pdc20621_host_intr()
702 readl(mmio + PDC_20621_SEQCTL + (seq * 4)); in pdc20621_host_intr()
711 readl(mmio + 0x104), readl(mmio + PDC_HDMA_CTLSTAT)); in pdc20621_host_intr()
795 void __iomem *mmio = ap->ioaddr.cmd_addr; in pdc_freeze() local
800 tmp = readl(mmio + PDC_CTLSTAT); in pdc_freeze()
803 writel(tmp, mmio + PDC_CTLSTAT); in pdc_freeze()
804 readl(mmio + PDC_CTLSTAT); /* flush */ in pdc_freeze()
809 void __iomem *mmio = ap->ioaddr.cmd_addr; in pdc_thaw() local
818 tmp = readl(mmio + PDC_CTLSTAT); in pdc_thaw()
820 writel(tmp, mmio + PDC_CTLSTAT); in pdc_thaw()
821 readl(mmio + PDC_CTLSTAT); /* flush */ in pdc_thaw()
826 void __iomem *mmio = ap->ioaddr.cmd_addr + PDC_CTLSTAT; in pdc_reset_port() local
833 tmp = readl(mmio); in pdc_reset_port()
840 writel(tmp, mmio); in pdc_reset_port()
844 writel(tmp, mmio); in pdc_reset_port()
845 readl(mmio); /* flush */ in pdc_reset_port()
943 void __iomem *mmio = host->iomap[PDC_MMIO_BAR]; in pdc20621_get_from_dimm() local
947 mmio += PDC_CHIP0_OFS; in pdc20621_get_from_dimm()
953 writel(0x01, mmio + PDC_GENERAL_CTLR); in pdc20621_get_from_dimm()
954 readl(mmio + PDC_GENERAL_CTLR); in pdc20621_get_from_dimm()
955 writel(((idx) << page_mask), mmio + PDC_DIMM_WINDOW_CTLR); in pdc20621_get_from_dimm()
956 readl(mmio + PDC_DIMM_WINDOW_CTLR); in pdc20621_get_from_dimm()
966 writel(0x01, mmio + PDC_GENERAL_CTLR); in pdc20621_get_from_dimm()
967 readl(mmio + PDC_GENERAL_CTLR); in pdc20621_get_from_dimm()
968 writel(((idx) << page_mask), mmio + PDC_DIMM_WINDOW_CTLR); in pdc20621_get_from_dimm()
969 readl(mmio + PDC_DIMM_WINDOW_CTLR); in pdc20621_get_from_dimm()
977 writel(0x01, mmio + PDC_GENERAL_CTLR); in pdc20621_get_from_dimm()
978 readl(mmio + PDC_GENERAL_CTLR); in pdc20621_get_from_dimm()
979 writel(((idx) << page_mask), mmio + PDC_DIMM_WINDOW_CTLR); in pdc20621_get_from_dimm()
980 readl(mmio + PDC_DIMM_WINDOW_CTLR); in pdc20621_get_from_dimm()
993 void __iomem *mmio = host->iomap[PDC_MMIO_BAR]; in pdc20621_put_to_dimm() local
997 mmio += PDC_CHIP0_OFS; in pdc20621_put_to_dimm()
1003 writel(((idx) << page_mask), mmio + PDC_DIMM_WINDOW_CTLR); in pdc20621_put_to_dimm()
1004 readl(mmio + PDC_DIMM_WINDOW_CTLR); in pdc20621_put_to_dimm()
1009 writel(0x01, mmio + PDC_GENERAL_CTLR); in pdc20621_put_to_dimm()
1010 readl(mmio + PDC_GENERAL_CTLR); in pdc20621_put_to_dimm()
1015 writel(((idx) << page_mask), mmio + PDC_DIMM_WINDOW_CTLR); in pdc20621_put_to_dimm()
1016 readl(mmio + PDC_DIMM_WINDOW_CTLR); in pdc20621_put_to_dimm()
1018 writel(0x01, mmio + PDC_GENERAL_CTLR); in pdc20621_put_to_dimm()
1019 readl(mmio + PDC_GENERAL_CTLR); in pdc20621_put_to_dimm()
1026 writel(((idx) << page_mask), mmio + PDC_DIMM_WINDOW_CTLR); in pdc20621_put_to_dimm()
1027 readl(mmio + PDC_DIMM_WINDOW_CTLR); in pdc20621_put_to_dimm()
1029 writel(0x01, mmio + PDC_GENERAL_CTLR); in pdc20621_put_to_dimm()
1030 readl(mmio + PDC_GENERAL_CTLR); in pdc20621_put_to_dimm()
1038 void __iomem *mmio = host->iomap[PDC_MMIO_BAR]; in pdc20621_i2c_read() local
1044 mmio += PDC_CHIP0_OFS; in pdc20621_i2c_read()
1050 writel(i2creg, mmio + PDC_I2C_ADDR_DATA); in pdc20621_i2c_read()
1051 readl(mmio + PDC_I2C_ADDR_DATA); in pdc20621_i2c_read()
1055 mmio + PDC_I2C_CONTROL); in pdc20621_i2c_read()
1058 status = readl(mmio + PDC_I2C_CONTROL); in pdc20621_i2c_read()
1060 status = readl(mmio + PDC_I2C_ADDR_DATA); in pdc20621_i2c_read()
1097 void __iomem *mmio = host->iomap[PDC_MMIO_BAR]; in pdc20621_prog_dimm0() local
1117 mmio += PDC_CHIP0_OFS; in pdc20621_prog_dimm0()
1150 writel(data, mmio + PDC_DIMM0_CONTROL); in pdc20621_prog_dimm0()
1151 readl(mmio + PDC_DIMM0_CONTROL); in pdc20621_prog_dimm0()
1160 void __iomem *mmio = host->iomap[PDC_MMIO_BAR]; in pdc20621_prog_dimm_global() local
1163 mmio += PDC_CHIP0_OFS; in pdc20621_prog_dimm_global()
1173 writel(data, mmio + PDC_SDRAM_CONTROL); in pdc20621_prog_dimm_global()
1174 readl(mmio + PDC_SDRAM_CONTROL); in pdc20621_prog_dimm_global()
1186 writel(data, mmio + PDC_SDRAM_CONTROL); in pdc20621_prog_dimm_global()
1187 readl(mmio + PDC_SDRAM_CONTROL); in pdc20621_prog_dimm_global()
1194 writel(data, mmio + PDC_SDRAM_CONTROL); in pdc20621_prog_dimm_global()
1198 data = readl(mmio + PDC_SDRAM_CONTROL); in pdc20621_prog_dimm_global()
1218 void __iomem *mmio = host->iomap[PDC_MMIO_BAR]; in pdc20621_dimm_init() local
1221 mmio += PDC_CHIP0_OFS; in pdc20621_dimm_init()
1226 writel(0xffffffff, mmio + PDC_TIME_PERIOD); in pdc20621_dimm_init()
1227 time_period = readl(mmio + PDC_TIME_PERIOD); in pdc20621_dimm_init()
1231 writel(PDC_TIMER_DEFAULT, mmio + PDC_TIME_CONTROL); in pdc20621_dimm_init()
1232 readl(mmio + PDC_TIME_CONTROL); in pdc20621_dimm_init()
1242 tcount = readl(mmio + PDC_TIME_COUNTER); in pdc20621_dimm_init()
1272 writel(pci_status, mmio + PDC_CTL_STATUS); in pdc20621_dimm_init()
1273 readl(mmio + PDC_CTL_STATUS); in pdc20621_dimm_init()
1357 void __iomem *mmio = host->iomap[PDC_MMIO_BAR]; in pdc_20621_init() local
1360 mmio += PDC_CHIP0_OFS; in pdc_20621_init()
1365 tmp = readl(mmio + PDC_20621_DIMM_WINDOW) & 0xffff0000; in pdc_20621_init()
1367 writel(tmp, mmio + PDC_20621_DIMM_WINDOW); in pdc_20621_init()
1372 tmp = readl(mmio + PDC_HDMA_CTLSTAT); in pdc_20621_init()
1374 writel(tmp, mmio + PDC_HDMA_CTLSTAT); in pdc_20621_init()
1375 readl(mmio + PDC_HDMA_CTLSTAT); /* flush */ in pdc_20621_init()
1379 tmp = readl(mmio + PDC_HDMA_CTLSTAT); in pdc_20621_init()
1381 writel(tmp, mmio + PDC_HDMA_CTLSTAT); in pdc_20621_init()
1382 readl(mmio + PDC_HDMA_CTLSTAT); /* flush */ in pdc_20621_init()
1424 ata_port_pbar_desc(ap, PDC_MMIO_BAR, -1, "mmio"); in pdc_sata_init_one()