Lines Matching full:mmio
442 void __iomem *mmio = ap->host->iomap[PDC_MMIO_BAR]; in pdc20621_dma_prep() local
453 mmio += PDC_CHIP0_OFS; in pdc20621_dma_prep()
483 /* copy three S/G tables and two packets to DIMM MMIO window */ in pdc20621_dma_prep()
491 writel(0x00000001, mmio + PDC_20621_GENERAL_CTL); in pdc20621_dma_prep()
493 readl(dimm_mmio); /* MMIO PCI posting flush */ in pdc20621_dma_prep()
495 VPRINTK("ata pkt buf ofs %u, prd size %u, mmio copied\n", i, sgt_len); in pdc20621_dma_prep()
502 void __iomem *mmio = ap->host->iomap[PDC_MMIO_BAR]; in pdc20621_nodata_prep() local
510 mmio += PDC_CHIP0_OFS; in pdc20621_nodata_prep()
521 /* copy three S/G tables and two packets to DIMM MMIO window */ in pdc20621_nodata_prep()
526 writel(0x00000001, mmio + PDC_20621_GENERAL_CTL); in pdc20621_nodata_prep()
528 readl(dimm_mmio); /* MMIO PCI posting flush */ in pdc20621_nodata_prep()
530 VPRINTK("ata pkt buf ofs %u, mmio copied\n", i); in pdc20621_nodata_prep()
555 void __iomem *mmio = host->iomap[PDC_MMIO_BAR]; in __pdc20621_push_hdma() local
558 mmio += PDC_CHIP0_OFS; in __pdc20621_push_hdma()
560 writel(0x00000001, mmio + PDC_20621_SEQCTL + (seq * 4)); in __pdc20621_push_hdma()
561 readl(mmio + PDC_20621_SEQCTL + (seq * 4)); /* flush */ in __pdc20621_push_hdma()
563 writel(pkt_ofs, mmio + PDC_HDMA_PKT_SUBMIT); in __pdc20621_push_hdma()
564 readl(mmio + PDC_HDMA_PKT_SUBMIT); /* flush */ in __pdc20621_push_hdma()
628 void __iomem *mmio = host->iomap[PDC_MMIO_BAR]; in pdc20621_packet_start() local
634 mmio += PDC_CHIP0_OFS; in pdc20621_packet_start()
653 writel(0x00000001, mmio + PDC_20621_SEQCTL + (seq * 4)); in pdc20621_packet_start()
654 readl(mmio + PDC_20621_SEQCTL + (seq * 4)); /* flush */ in pdc20621_packet_start()
691 void __iomem *mmio) in pdc20621_host_intr() argument
707 readl(mmio + 0x104), readl(mmio + PDC_HDMA_CTLSTAT)); in pdc20621_host_intr()
718 readl(mmio + 0x104), readl(mmio + PDC_HDMA_CTLSTAT)); in pdc20621_host_intr()
733 readl(mmio + 0x104), readl(mmio + PDC_HDMA_CTLSTAT)); in pdc20621_host_intr()
736 writel(0x00000001, mmio + PDC_20621_SEQCTL + (seq * 4)); in pdc20621_host_intr()
737 readl(mmio + PDC_20621_SEQCTL + (seq * 4)); in pdc20621_host_intr()
746 readl(mmio + 0x104), readl(mmio + PDC_HDMA_CTLSTAT)); in pdc20621_host_intr()
841 void __iomem *mmio = ap->ioaddr.cmd_addr; in pdc_freeze() local
846 tmp = readl(mmio + PDC_CTLSTAT); in pdc_freeze()
849 writel(tmp, mmio + PDC_CTLSTAT); in pdc_freeze()
850 readl(mmio + PDC_CTLSTAT); /* flush */ in pdc_freeze()
855 void __iomem *mmio = ap->ioaddr.cmd_addr; in pdc_thaw() local
864 tmp = readl(mmio + PDC_CTLSTAT); in pdc_thaw()
866 writel(tmp, mmio + PDC_CTLSTAT); in pdc_thaw()
867 readl(mmio + PDC_CTLSTAT); /* flush */ in pdc_thaw()
872 void __iomem *mmio = ap->ioaddr.cmd_addr + PDC_CTLSTAT; in pdc_reset_port() local
879 tmp = readl(mmio); in pdc_reset_port()
886 writel(tmp, mmio); in pdc_reset_port()
890 writel(tmp, mmio); in pdc_reset_port()
891 readl(mmio); /* flush */ in pdc_reset_port()
990 void __iomem *mmio = host->iomap[PDC_MMIO_BAR]; in pdc20621_get_from_dimm() local
994 mmio += PDC_CHIP0_OFS; in pdc20621_get_from_dimm()
1000 writel(0x01, mmio + PDC_GENERAL_CTLR); in pdc20621_get_from_dimm()
1001 readl(mmio + PDC_GENERAL_CTLR); in pdc20621_get_from_dimm()
1002 writel(((idx) << page_mask), mmio + PDC_DIMM_WINDOW_CTLR); in pdc20621_get_from_dimm()
1003 readl(mmio + PDC_DIMM_WINDOW_CTLR); in pdc20621_get_from_dimm()
1014 writel(0x01, mmio + PDC_GENERAL_CTLR); in pdc20621_get_from_dimm()
1015 readl(mmio + PDC_GENERAL_CTLR); in pdc20621_get_from_dimm()
1016 writel(((idx) << page_mask), mmio + PDC_DIMM_WINDOW_CTLR); in pdc20621_get_from_dimm()
1017 readl(mmio + PDC_DIMM_WINDOW_CTLR); in pdc20621_get_from_dimm()
1025 writel(0x01, mmio + PDC_GENERAL_CTLR); in pdc20621_get_from_dimm()
1026 readl(mmio + PDC_GENERAL_CTLR); in pdc20621_get_from_dimm()
1027 writel(((idx) << page_mask), mmio + PDC_DIMM_WINDOW_CTLR); in pdc20621_get_from_dimm()
1028 readl(mmio + PDC_DIMM_WINDOW_CTLR); in pdc20621_get_from_dimm()
1042 void __iomem *mmio = host->iomap[PDC_MMIO_BAR]; in pdc20621_put_to_dimm() local
1046 mmio += PDC_CHIP0_OFS; in pdc20621_put_to_dimm()
1052 writel(((idx) << page_mask), mmio + PDC_DIMM_WINDOW_CTLR); in pdc20621_put_to_dimm()
1053 readl(mmio + PDC_DIMM_WINDOW_CTLR); in pdc20621_put_to_dimm()
1059 writel(0x01, mmio + PDC_GENERAL_CTLR); in pdc20621_put_to_dimm()
1060 readl(mmio + PDC_GENERAL_CTLR); in pdc20621_put_to_dimm()
1065 writel(((idx) << page_mask), mmio + PDC_DIMM_WINDOW_CTLR); in pdc20621_put_to_dimm()
1066 readl(mmio + PDC_DIMM_WINDOW_CTLR); in pdc20621_put_to_dimm()
1068 writel(0x01, mmio + PDC_GENERAL_CTLR); in pdc20621_put_to_dimm()
1069 readl(mmio + PDC_GENERAL_CTLR); in pdc20621_put_to_dimm()
1076 writel(((idx) << page_mask), mmio + PDC_DIMM_WINDOW_CTLR); in pdc20621_put_to_dimm()
1077 readl(mmio + PDC_DIMM_WINDOW_CTLR); in pdc20621_put_to_dimm()
1079 writel(0x01, mmio + PDC_GENERAL_CTLR); in pdc20621_put_to_dimm()
1080 readl(mmio + PDC_GENERAL_CTLR); in pdc20621_put_to_dimm()
1088 void __iomem *mmio = host->iomap[PDC_MMIO_BAR]; in pdc20621_i2c_read() local
1094 mmio += PDC_CHIP0_OFS; in pdc20621_i2c_read()
1100 writel(i2creg, mmio + PDC_I2C_ADDR_DATA); in pdc20621_i2c_read()
1101 readl(mmio + PDC_I2C_ADDR_DATA); in pdc20621_i2c_read()
1105 mmio + PDC_I2C_CONTROL); in pdc20621_i2c_read()
1108 status = readl(mmio + PDC_I2C_CONTROL); in pdc20621_i2c_read()
1110 status = readl(mmio + PDC_I2C_ADDR_DATA); in pdc20621_i2c_read()
1147 void __iomem *mmio = host->iomap[PDC_MMIO_BAR]; in pdc20621_prog_dimm0() local
1167 mmio += PDC_CHIP0_OFS; in pdc20621_prog_dimm0()
1200 writel(data, mmio + PDC_DIMM0_CONTROL); in pdc20621_prog_dimm0()
1201 readl(mmio + PDC_DIMM0_CONTROL); in pdc20621_prog_dimm0()
1210 void __iomem *mmio = host->iomap[PDC_MMIO_BAR]; in pdc20621_prog_dimm_global() local
1213 mmio += PDC_CHIP0_OFS; in pdc20621_prog_dimm_global()
1223 writel(data, mmio + PDC_SDRAM_CONTROL); in pdc20621_prog_dimm_global()
1224 readl(mmio + PDC_SDRAM_CONTROL); in pdc20621_prog_dimm_global()
1235 writel(data, mmio + PDC_SDRAM_CONTROL); in pdc20621_prog_dimm_global()
1236 readl(mmio + PDC_SDRAM_CONTROL); in pdc20621_prog_dimm_global()
1243 writel(data, mmio + PDC_SDRAM_CONTROL); in pdc20621_prog_dimm_global()
1247 data = readl(mmio + PDC_SDRAM_CONTROL); in pdc20621_prog_dimm_global()
1267 void __iomem *mmio = host->iomap[PDC_MMIO_BAR]; in pdc20621_dimm_init() local
1270 mmio += PDC_CHIP0_OFS; in pdc20621_dimm_init()
1275 writel(0xffffffff, mmio + PDC_TIME_PERIOD); in pdc20621_dimm_init()
1276 time_period = readl(mmio + PDC_TIME_PERIOD); in pdc20621_dimm_init()
1280 writel(PDC_TIMER_DEFAULT, mmio + PDC_TIME_CONTROL); in pdc20621_dimm_init()
1281 readl(mmio + PDC_TIME_CONTROL); in pdc20621_dimm_init()
1291 tcount = readl(mmio + PDC_TIME_COUNTER); in pdc20621_dimm_init()
1319 writel(pci_status, mmio + PDC_CTL_STATUS); in pdc20621_dimm_init()
1320 readl(mmio + PDC_CTL_STATUS); in pdc20621_dimm_init()
1402 void __iomem *mmio = host->iomap[PDC_MMIO_BAR]; in pdc_20621_init() local
1405 mmio += PDC_CHIP0_OFS; in pdc_20621_init()
1410 tmp = readl(mmio + PDC_20621_DIMM_WINDOW) & 0xffff0000; in pdc_20621_init()
1412 writel(tmp, mmio + PDC_20621_DIMM_WINDOW); in pdc_20621_init()
1417 tmp = readl(mmio + PDC_HDMA_CTLSTAT); in pdc_20621_init()
1419 writel(tmp, mmio + PDC_HDMA_CTLSTAT); in pdc_20621_init()
1420 readl(mmio + PDC_HDMA_CTLSTAT); /* flush */ in pdc_20621_init()
1424 tmp = readl(mmio + PDC_HDMA_CTLSTAT); in pdc_20621_init()
1426 writel(tmp, mmio + PDC_HDMA_CTLSTAT); in pdc_20621_init()
1427 readl(mmio + PDC_HDMA_CTLSTAT); /* flush */ in pdc_20621_init()
1469 ata_port_pbar_desc(ap, PDC_MMIO_BAR, -1, "mmio"); in pdc_sata_init_one()