• Home
  • Raw
  • Download

Lines Matching refs:mmio

420 	void __iomem *mmio = ap->host->iomap[PDC_MMIO_BAR];  in pdc20621_dma_prep()  local
429 mmio += PDC_CHIP0_OFS; in pdc20621_dma_prep()
467 writel(0x00000001, mmio + PDC_20621_GENERAL_CTL); in pdc20621_dma_prep()
479 void __iomem *mmio = ap->host->iomap[PDC_MMIO_BAR]; in pdc20621_nodata_prep() local
485 mmio += PDC_CHIP0_OFS; in pdc20621_nodata_prep()
501 writel(0x00000001, mmio + PDC_20621_GENERAL_CTL); in pdc20621_nodata_prep()
530 void __iomem *mmio = host->iomap[PDC_MMIO_BAR]; in __pdc20621_push_hdma() local
533 mmio += PDC_CHIP0_OFS; in __pdc20621_push_hdma()
535 writel(0x00000001, mmio + PDC_20621_SEQCTL + (seq * 4)); in __pdc20621_push_hdma()
536 readl(mmio + PDC_20621_SEQCTL + (seq * 4)); /* flush */ in __pdc20621_push_hdma()
538 writel(pkt_ofs, mmio + PDC_HDMA_PKT_SUBMIT); in __pdc20621_push_hdma()
539 readl(mmio + PDC_HDMA_PKT_SUBMIT); /* flush */ in __pdc20621_push_hdma()
598 void __iomem *mmio = host->iomap[PDC_MMIO_BAR]; in pdc20621_packet_start() local
604 mmio += PDC_CHIP0_OFS; in pdc20621_packet_start()
621 writel(0x00000001, mmio + PDC_20621_SEQCTL + (seq * 4)); in pdc20621_packet_start()
622 readl(mmio + PDC_20621_SEQCTL + (seq * 4)); /* flush */ in pdc20621_packet_start()
659 void __iomem *mmio) in pdc20621_host_intr() argument
673 readl(mmio + 0x104), readl(mmio + PDC_HDMA_CTLSTAT)); in pdc20621_host_intr()
684 readl(mmio + 0x104), readl(mmio + PDC_HDMA_CTLSTAT)); in pdc20621_host_intr()
699 readl(mmio + 0x104), readl(mmio + PDC_HDMA_CTLSTAT)); in pdc20621_host_intr()
702 writel(0x00000001, mmio + PDC_20621_SEQCTL + (seq * 4)); in pdc20621_host_intr()
703 readl(mmio + PDC_20621_SEQCTL + (seq * 4)); in pdc20621_host_intr()
712 readl(mmio + 0x104), readl(mmio + PDC_HDMA_CTLSTAT)); in pdc20621_host_intr()
796 void __iomem *mmio = ap->ioaddr.cmd_addr; in pdc_freeze() local
801 tmp = readl(mmio + PDC_CTLSTAT); in pdc_freeze()
804 writel(tmp, mmio + PDC_CTLSTAT); in pdc_freeze()
805 readl(mmio + PDC_CTLSTAT); /* flush */ in pdc_freeze()
810 void __iomem *mmio = ap->ioaddr.cmd_addr; in pdc_thaw() local
819 tmp = readl(mmio + PDC_CTLSTAT); in pdc_thaw()
821 writel(tmp, mmio + PDC_CTLSTAT); in pdc_thaw()
822 readl(mmio + PDC_CTLSTAT); /* flush */ in pdc_thaw()
827 void __iomem *mmio = ap->ioaddr.cmd_addr + PDC_CTLSTAT; in pdc_reset_port() local
834 tmp = readl(mmio); in pdc_reset_port()
841 writel(tmp, mmio); in pdc_reset_port()
845 writel(tmp, mmio); in pdc_reset_port()
846 readl(mmio); /* flush */ in pdc_reset_port()
944 void __iomem *mmio = host->iomap[PDC_MMIO_BAR]; in pdc20621_get_from_dimm() local
948 mmio += PDC_CHIP0_OFS; in pdc20621_get_from_dimm()
954 writel(0x01, mmio + PDC_GENERAL_CTLR); in pdc20621_get_from_dimm()
955 readl(mmio + PDC_GENERAL_CTLR); in pdc20621_get_from_dimm()
956 writel(((idx) << page_mask), mmio + PDC_DIMM_WINDOW_CTLR); in pdc20621_get_from_dimm()
957 readl(mmio + PDC_DIMM_WINDOW_CTLR); in pdc20621_get_from_dimm()
968 writel(0x01, mmio + PDC_GENERAL_CTLR); in pdc20621_get_from_dimm()
969 readl(mmio + PDC_GENERAL_CTLR); in pdc20621_get_from_dimm()
970 writel(((idx) << page_mask), mmio + PDC_DIMM_WINDOW_CTLR); in pdc20621_get_from_dimm()
971 readl(mmio + PDC_DIMM_WINDOW_CTLR); in pdc20621_get_from_dimm()
979 writel(0x01, mmio + PDC_GENERAL_CTLR); in pdc20621_get_from_dimm()
980 readl(mmio + PDC_GENERAL_CTLR); in pdc20621_get_from_dimm()
981 writel(((idx) << page_mask), mmio + PDC_DIMM_WINDOW_CTLR); in pdc20621_get_from_dimm()
982 readl(mmio + PDC_DIMM_WINDOW_CTLR); in pdc20621_get_from_dimm()
995 void __iomem *mmio = host->iomap[PDC_MMIO_BAR]; in pdc20621_put_to_dimm() local
999 mmio += PDC_CHIP0_OFS; in pdc20621_put_to_dimm()
1005 writel(((idx) << page_mask), mmio + PDC_DIMM_WINDOW_CTLR); in pdc20621_put_to_dimm()
1006 readl(mmio + PDC_DIMM_WINDOW_CTLR); in pdc20621_put_to_dimm()
1012 writel(0x01, mmio + PDC_GENERAL_CTLR); in pdc20621_put_to_dimm()
1013 readl(mmio + PDC_GENERAL_CTLR); in pdc20621_put_to_dimm()
1018 writel(((idx) << page_mask), mmio + PDC_DIMM_WINDOW_CTLR); in pdc20621_put_to_dimm()
1019 readl(mmio + PDC_DIMM_WINDOW_CTLR); in pdc20621_put_to_dimm()
1021 writel(0x01, mmio + PDC_GENERAL_CTLR); in pdc20621_put_to_dimm()
1022 readl(mmio + PDC_GENERAL_CTLR); in pdc20621_put_to_dimm()
1029 writel(((idx) << page_mask), mmio + PDC_DIMM_WINDOW_CTLR); in pdc20621_put_to_dimm()
1030 readl(mmio + PDC_DIMM_WINDOW_CTLR); in pdc20621_put_to_dimm()
1032 writel(0x01, mmio + PDC_GENERAL_CTLR); in pdc20621_put_to_dimm()
1033 readl(mmio + PDC_GENERAL_CTLR); in pdc20621_put_to_dimm()
1041 void __iomem *mmio = host->iomap[PDC_MMIO_BAR]; in pdc20621_i2c_read() local
1047 mmio += PDC_CHIP0_OFS; in pdc20621_i2c_read()
1053 writel(i2creg, mmio + PDC_I2C_ADDR_DATA); in pdc20621_i2c_read()
1054 readl(mmio + PDC_I2C_ADDR_DATA); in pdc20621_i2c_read()
1058 mmio + PDC_I2C_CONTROL); in pdc20621_i2c_read()
1061 status = readl(mmio + PDC_I2C_CONTROL); in pdc20621_i2c_read()
1063 status = readl(mmio + PDC_I2C_ADDR_DATA); in pdc20621_i2c_read()
1100 void __iomem *mmio = host->iomap[PDC_MMIO_BAR]; in pdc20621_prog_dimm0() local
1120 mmio += PDC_CHIP0_OFS; in pdc20621_prog_dimm0()
1153 writel(data, mmio + PDC_DIMM0_CONTROL); in pdc20621_prog_dimm0()
1154 readl(mmio + PDC_DIMM0_CONTROL); in pdc20621_prog_dimm0()
1163 void __iomem *mmio = host->iomap[PDC_MMIO_BAR]; in pdc20621_prog_dimm_global() local
1166 mmio += PDC_CHIP0_OFS; in pdc20621_prog_dimm_global()
1176 writel(data, mmio + PDC_SDRAM_CONTROL); in pdc20621_prog_dimm_global()
1177 readl(mmio + PDC_SDRAM_CONTROL); in pdc20621_prog_dimm_global()
1189 writel(data, mmio + PDC_SDRAM_CONTROL); in pdc20621_prog_dimm_global()
1190 readl(mmio + PDC_SDRAM_CONTROL); in pdc20621_prog_dimm_global()
1197 writel(data, mmio + PDC_SDRAM_CONTROL); in pdc20621_prog_dimm_global()
1201 data = readl(mmio + PDC_SDRAM_CONTROL); in pdc20621_prog_dimm_global()
1221 void __iomem *mmio = host->iomap[PDC_MMIO_BAR]; in pdc20621_dimm_init() local
1224 mmio += PDC_CHIP0_OFS; in pdc20621_dimm_init()
1229 writel(0xffffffff, mmio + PDC_TIME_PERIOD); in pdc20621_dimm_init()
1230 time_period = readl(mmio + PDC_TIME_PERIOD); in pdc20621_dimm_init()
1234 writel(PDC_TIMER_DEFAULT, mmio + PDC_TIME_CONTROL); in pdc20621_dimm_init()
1235 readl(mmio + PDC_TIME_CONTROL); in pdc20621_dimm_init()
1245 tcount = readl(mmio + PDC_TIME_COUNTER); in pdc20621_dimm_init()
1275 writel(pci_status, mmio + PDC_CTL_STATUS); in pdc20621_dimm_init()
1276 readl(mmio + PDC_CTL_STATUS); in pdc20621_dimm_init()
1360 void __iomem *mmio = host->iomap[PDC_MMIO_BAR]; in pdc_20621_init() local
1363 mmio += PDC_CHIP0_OFS; in pdc_20621_init()
1368 tmp = readl(mmio + PDC_20621_DIMM_WINDOW) & 0xffff0000; in pdc_20621_init()
1370 writel(tmp, mmio + PDC_20621_DIMM_WINDOW); in pdc_20621_init()
1375 tmp = readl(mmio + PDC_HDMA_CTLSTAT); in pdc_20621_init()
1377 writel(tmp, mmio + PDC_HDMA_CTLSTAT); in pdc_20621_init()
1378 readl(mmio + PDC_HDMA_CTLSTAT); /* flush */ in pdc_20621_init()
1382 tmp = readl(mmio + PDC_HDMA_CTLSTAT); in pdc_20621_init()
1384 writel(tmp, mmio + PDC_HDMA_CTLSTAT); in pdc_20621_init()
1385 readl(mmio + PDC_HDMA_CTLSTAT); /* flush */ in pdc_20621_init()