Lines Matching refs:addrbase

335 	void __iomem *addrbase = host->sdhc_mmiobase;  in via_print_sdchc()  local
339 readl(addrbase + VIA_CRDR_SDCTRL), in via_print_sdchc()
340 readl(addrbase + VIA_CRDR_SDCARG), in via_print_sdchc()
341 readl(addrbase + VIA_CRDR_SDBUSMODE)); in via_print_sdchc()
343 readl(addrbase + VIA_CRDR_SDBLKLEN), in via_print_sdchc()
344 readl(addrbase + VIA_CRDR_SDCURBLKCNT), in via_print_sdchc()
345 readl(addrbase + VIA_CRDR_SDINTMASK)); in via_print_sdchc()
347 readl(addrbase + VIA_CRDR_SDSTATUS), in via_print_sdchc()
348 readl(addrbase + VIA_CRDR_SDCLKSEL), in via_print_sdchc()
349 readl(addrbase + VIA_CRDR_SDEXTCTRL)); in via_print_sdchc()
354 void __iomem *addrbase = host->pcictrl_mmiobase; in via_print_pcictrl() local
358 readb(addrbase + VIA_CRDR_PCICLKGATT), in via_print_pcictrl()
359 readb(addrbase + VIA_CRDR_PCISDCCLK), in via_print_pcictrl()
360 readb(addrbase + VIA_CRDR_PCIDMACLK)); in via_print_pcictrl()
362 readb(addrbase + VIA_CRDR_PCIINTCTRL), in via_print_pcictrl()
363 readb(addrbase + VIA_CRDR_PCIINTSTATUS)); in via_print_pcictrl()
369 void __iomem *addrbase; in via_save_pcictrlreg() local
372 addrbase = host->pcictrl_mmiobase; in via_save_pcictrlreg()
374 pm_pcictrl_reg->pciclkgat_reg = readb(addrbase + VIA_CRDR_PCICLKGATT); in via_save_pcictrlreg()
377 pm_pcictrl_reg->pcisdclk_reg = readb(addrbase + VIA_CRDR_PCISDCCLK); in via_save_pcictrlreg()
378 pm_pcictrl_reg->pcidmaclk_reg = readb(addrbase + VIA_CRDR_PCIDMACLK); in via_save_pcictrlreg()
379 pm_pcictrl_reg->pciintctrl_reg = readb(addrbase + VIA_CRDR_PCIINTCTRL); in via_save_pcictrlreg()
381 readb(addrbase + VIA_CRDR_PCIINTSTATUS); in via_save_pcictrlreg()
382 pm_pcictrl_reg->pcitmoctrl_reg = readb(addrbase + VIA_CRDR_PCITMOCTRL); in via_save_pcictrlreg()
388 void __iomem *addrbase; in via_restore_pcictrlreg() local
391 addrbase = host->pcictrl_mmiobase; in via_restore_pcictrlreg()
393 writeb(pm_pcictrl_reg->pciclkgat_reg, addrbase + VIA_CRDR_PCICLKGATT); in via_restore_pcictrlreg()
394 writeb(pm_pcictrl_reg->pcisdclk_reg, addrbase + VIA_CRDR_PCISDCCLK); in via_restore_pcictrlreg()
395 writeb(pm_pcictrl_reg->pcidmaclk_reg, addrbase + VIA_CRDR_PCIDMACLK); in via_restore_pcictrlreg()
396 writeb(pm_pcictrl_reg->pciintctrl_reg, addrbase + VIA_CRDR_PCIINTCTRL); in via_restore_pcictrlreg()
398 addrbase + VIA_CRDR_PCIINTSTATUS); in via_restore_pcictrlreg()
399 writeb(pm_pcictrl_reg->pcitmoctrl_reg, addrbase + VIA_CRDR_PCITMOCTRL); in via_restore_pcictrlreg()
405 void __iomem *addrbase; in via_save_sdcreg() local
408 addrbase = host->sdhc_mmiobase; in via_save_sdcreg()
410 pm_sdhc_reg->sdcontrol_reg = readl(addrbase + VIA_CRDR_SDCTRL); in via_save_sdcreg()
411 pm_sdhc_reg->sdcmdarg_reg = readl(addrbase + VIA_CRDR_SDCARG); in via_save_sdcreg()
412 pm_sdhc_reg->sdbusmode_reg = readl(addrbase + VIA_CRDR_SDBUSMODE); in via_save_sdcreg()
413 pm_sdhc_reg->sdblklen_reg = readl(addrbase + VIA_CRDR_SDBLKLEN); in via_save_sdcreg()
414 pm_sdhc_reg->sdcurblkcnt_reg = readl(addrbase + VIA_CRDR_SDCURBLKCNT); in via_save_sdcreg()
415 pm_sdhc_reg->sdintmask_reg = readl(addrbase + VIA_CRDR_SDINTMASK); in via_save_sdcreg()
416 pm_sdhc_reg->sdstatus_reg = readl(addrbase + VIA_CRDR_SDSTATUS); in via_save_sdcreg()
417 pm_sdhc_reg->sdrsptmo_reg = readl(addrbase + VIA_CRDR_SDRSPTMO); in via_save_sdcreg()
418 pm_sdhc_reg->sdclksel_reg = readl(addrbase + VIA_CRDR_SDCLKSEL); in via_save_sdcreg()
419 pm_sdhc_reg->sdextctrl_reg = readl(addrbase + VIA_CRDR_SDEXTCTRL); in via_save_sdcreg()
425 void __iomem *addrbase; in via_restore_sdcreg() local
428 addrbase = host->sdhc_mmiobase; in via_restore_sdcreg()
430 writel(pm_sdhc_reg->sdcontrol_reg, addrbase + VIA_CRDR_SDCTRL); in via_restore_sdcreg()
431 writel(pm_sdhc_reg->sdcmdarg_reg, addrbase + VIA_CRDR_SDCARG); in via_restore_sdcreg()
432 writel(pm_sdhc_reg->sdbusmode_reg, addrbase + VIA_CRDR_SDBUSMODE); in via_restore_sdcreg()
433 writel(pm_sdhc_reg->sdblklen_reg, addrbase + VIA_CRDR_SDBLKLEN); in via_restore_sdcreg()
434 writel(pm_sdhc_reg->sdcurblkcnt_reg, addrbase + VIA_CRDR_SDCURBLKCNT); in via_restore_sdcreg()
435 writel(pm_sdhc_reg->sdintmask_reg, addrbase + VIA_CRDR_SDINTMASK); in via_restore_sdcreg()
436 writel(pm_sdhc_reg->sdstatus_reg, addrbase + VIA_CRDR_SDSTATUS); in via_restore_sdcreg()
437 writel(pm_sdhc_reg->sdrsptmo_reg, addrbase + VIA_CRDR_SDRSPTMO); in via_restore_sdcreg()
438 writel(pm_sdhc_reg->sdclksel_reg, addrbase + VIA_CRDR_SDCLKSEL); in via_restore_sdcreg()
439 writel(pm_sdhc_reg->sdextctrl_reg, addrbase + VIA_CRDR_SDEXTCTRL); in via_restore_sdcreg()
453 void __iomem *addrbase; in via_set_ddma() local
462 addrbase = host->ddma_mmiobase; in via_set_ddma()
464 writel(dmaaddr, addrbase + VIA_CRDR_DMABASEADD); in via_set_ddma()
465 writel(count, addrbase + VIA_CRDR_DMACOUNTER); in via_set_ddma()
466 writel(ctrl_data, addrbase + VIA_CRDR_DMACTRL); in via_set_ddma()
467 writel(0x01, addrbase + VIA_CRDR_DMASTART); in via_set_ddma()
471 addrbase = host->pcictrl_mmiobase; in via_set_ddma()
472 if (readb(addrbase + VIA_CRDR_PCISDCCLK) == PCI_CLK_375K) { in via_set_ddma()
474 writeb(PCI_CLK_8M, addrbase + VIA_CRDR_PCISDCCLK); in via_set_ddma()
481 void __iomem *addrbase; in via_sdc_preparedata() local
501 addrbase = host->sdhc_mmiobase; in via_sdc_preparedata()
507 writel(blk_reg, addrbase + VIA_CRDR_SDBLKLEN); in via_sdc_preparedata()
513 void __iomem *addrbase = host->sdhc_mmiobase; in via_sdc_get_response() local
514 u32 dwdata0 = readl(addrbase + VIA_CRDR_SDRESP0); in via_sdc_get_response()
515 u32 dwdata1 = readl(addrbase + VIA_CRDR_SDRESP1); in via_sdc_get_response()
516 u32 dwdata2 = readl(addrbase + VIA_CRDR_SDRESP2); in via_sdc_get_response()
517 u32 dwdata3 = readl(addrbase + VIA_CRDR_SDRESP3); in via_sdc_get_response()
555 void __iomem *addrbase; in via_sdc_send_command() local
621 addrbase = host->sdhc_mmiobase; in via_sdc_send_command()
622 writel(cmd->arg, addrbase + VIA_CRDR_SDCARG); in via_sdc_send_command()
623 writel(cmdctrl, addrbase + VIA_CRDR_SDCTRL); in via_sdc_send_command()
664 void __iomem *addrbase; in via_sdc_request() local
673 addrbase = host->pcictrl_mmiobase; in via_sdc_request()
674 writeb(VIA_CRDR_PCIDMACLK_SDC, addrbase + VIA_CRDR_PCIDMACLK); in via_sdc_request()
724 void __iomem *addrbase; in via_sdc_set_ios() local
732 addrbase = host->sdhc_mmiobase; in via_sdc_set_ios()
733 org_data = readl(addrbase + VIA_CRDR_SDBUSMODE); in via_sdc_set_ios()
734 sdextctrl = readl(addrbase + VIA_CRDR_SDEXTCTRL); in via_sdc_set_ios()
751 writel(org_data, addrbase + VIA_CRDR_SDBUSMODE); in via_sdc_set_ios()
752 writel(sdextctrl, addrbase + VIA_CRDR_SDEXTCTRL); in via_sdc_set_ios()
769 addrbase = host->pcictrl_mmiobase; in via_sdc_set_ios()
770 if (readb(addrbase + VIA_CRDR_PCISDCCLK) != clock) in via_sdc_set_ios()
771 writeb(clock, addrbase + VIA_CRDR_PCISDCCLK); in via_sdc_set_ios()
875 void __iomem *addrbase; in via_sdc_isr() local
885 addrbase = sdhost->pcictrl_mmiobase; in via_sdc_isr()
886 pci_status = readb(addrbase + VIA_CRDR_PCIINTSTATUS); in via_sdc_isr()
892 addrbase = sdhost->sdhc_mmiobase; in via_sdc_isr()
893 sd_status = readw(addrbase + VIA_CRDR_SDSTATUS); in via_sdc_isr()
903 addrbase + VIA_CRDR_SDSTATUS); in via_sdc_isr()
911 addrbase + VIA_CRDR_SDSTATUS); in via_sdc_isr()
916 addrbase + VIA_CRDR_SDSTATUS); in via_sdc_isr()
924 writew(sd_status, addrbase + VIA_CRDR_SDSTATUS); in via_sdc_isr()
988 void __iomem *addrbase; in via_sdc_card_detect() local
994 addrbase = host->ddma_mmiobase; in via_sdc_card_detect()
995 writel(VIA_CRDR_DMACTRL_SFTRST, addrbase + VIA_CRDR_DMACTRL); in via_sdc_card_detect()
999 addrbase = host->pcictrl_mmiobase; in via_sdc_card_detect()
1000 writeb(VIA_CRDR_PCIDMACLK_SDC, addrbase + VIA_CRDR_PCIDMACLK); in via_sdc_card_detect()
1002 addrbase = host->sdhc_mmiobase; in via_sdc_card_detect()
1003 status = readw(addrbase + VIA_CRDR_SDSTATUS); in via_sdc_card_detect()
1030 void __iomem *addrbase; in via_init_mmc_host() local
1057 addrbase = host->sdhc_mmiobase; in via_init_mmc_host()
1058 writel(0x0, addrbase + VIA_CRDR_SDINTMASK); in via_init_mmc_host()
1062 writel(lenreg, addrbase + VIA_CRDR_SDBLKLEN); in via_init_mmc_host()
1064 status = readw(addrbase + VIA_CRDR_SDSTATUS); in via_init_mmc_host()
1066 writew(status, addrbase + VIA_CRDR_SDSTATUS); in via_init_mmc_host()
1068 status = readw(addrbase + VIA_CRDR_SDSTATUS2); in via_init_mmc_host()
1070 writew(status, addrbase + VIA_CRDR_SDSTATUS2); in via_init_mmc_host()
1072 writeb(0x0, addrbase + VIA_CRDR_SDEXTCTRL); in via_init_mmc_host()
1074 writel(VIA_CRDR_SDACTIVE_INTMASK, addrbase + VIA_CRDR_SDINTMASK); in via_init_mmc_host()
1227 void __iomem *addrbase; in via_init_sdc_pm() local
1232 addrbase = host->sdhc_mmiobase; in via_init_sdc_pm()
1234 writel(0x0, addrbase + VIA_CRDR_SDINTMASK); in via_init_sdc_pm()
1237 writel(lenreg, addrbase + VIA_CRDR_SDBLKLEN); in via_init_sdc_pm()
1239 status = readw(addrbase + VIA_CRDR_SDSTATUS); in via_init_sdc_pm()
1241 writew(status, addrbase + VIA_CRDR_SDSTATUS); in via_init_sdc_pm()
1243 status = readw(addrbase + VIA_CRDR_SDSTATUS2); in via_init_sdc_pm()
1245 writew(status, addrbase + VIA_CRDR_SDSTATUS2); in via_init_sdc_pm()
1247 writel(pm_sdhcreg->sdcontrol_reg, addrbase + VIA_CRDR_SDCTRL); in via_init_sdc_pm()
1248 writel(pm_sdhcreg->sdcmdarg_reg, addrbase + VIA_CRDR_SDCARG); in via_init_sdc_pm()
1249 writel(pm_sdhcreg->sdintmask_reg, addrbase + VIA_CRDR_SDINTMASK); in via_init_sdc_pm()
1250 writel(pm_sdhcreg->sdrsptmo_reg, addrbase + VIA_CRDR_SDRSPTMO); in via_init_sdc_pm()
1251 writel(pm_sdhcreg->sdclksel_reg, addrbase + VIA_CRDR_SDCLKSEL); in via_init_sdc_pm()
1252 writel(pm_sdhcreg->sdextctrl_reg, addrbase + VIA_CRDR_SDEXTCTRL); in via_init_sdc_pm()