Lines Matching refs:mmc_writel

79 #define mmc_writel(host, reg, value) \  macro
311 mmc_writel(host, REG_GCTRL, SDXC_HARDWARE_RESET); in sunxi_mmc_reset_host()
336 mmc_writel(host, REG_FTRGL, 0x20070008); in sunxi_mmc_init_host()
338 mmc_writel(host, REG_TMOUT, 0xffffffff); in sunxi_mmc_init_host()
340 mmc_writel(host, REG_IMASK, host->sdio_imask); in sunxi_mmc_init_host()
342 mmc_writel(host, REG_RINTR, 0xffffffff); in sunxi_mmc_init_host()
344 mmc_writel(host, REG_DBGC, 0xdeb); in sunxi_mmc_init_host()
346 mmc_writel(host, REG_FUNS, SDXC_CEATA_ON); in sunxi_mmc_init_host()
348 mmc_writel(host, REG_DLBA, host->sg_dma >> host->cfg->idma_des_shift); in sunxi_mmc_init_host()
354 mmc_writel(host, REG_GCTRL, rval); in sunxi_mmc_init_host()
432 mmc_writel(host, REG_GCTRL, rval); in sunxi_mmc_start_dma()
434 mmc_writel(host, REG_GCTRL, rval); in sunxi_mmc_start_dma()
436 mmc_writel(host, REG_DMAC, SDXC_IDMAC_SOFT_RESET); in sunxi_mmc_start_dma()
439 mmc_writel(host, REG_IDIE, SDXC_IDMAC_RECEIVE_INTERRUPT); in sunxi_mmc_start_dma()
441 mmc_writel(host, REG_DMAC, in sunxi_mmc_start_dma()
463 mmc_writel(host, REG_CARG, arg); in sunxi_mmc_send_manual_stop()
464 mmc_writel(host, REG_CMDR, cmd_val); in sunxi_mmc_send_manual_stop()
480 mmc_writel(host, REG_RINTR, 0xffff); in sunxi_mmc_send_manual_stop()
517 mmc_writel(host, REG_IMASK, host->sdio_imask); in sunxi_mmc_finalize_request()
518 mmc_writel(host, REG_IDIE, 0); in sunxi_mmc_finalize_request()
546 mmc_writel(host, REG_IDST, 0x337); in sunxi_mmc_finalize_request()
547 mmc_writel(host, REG_DMAC, 0); in sunxi_mmc_finalize_request()
550 mmc_writel(host, REG_GCTRL, rval); in sunxi_mmc_finalize_request()
552 mmc_writel(host, REG_GCTRL, rval); in sunxi_mmc_finalize_request()
554 mmc_writel(host, REG_GCTRL, rval); in sunxi_mmc_finalize_request()
559 mmc_writel(host, REG_RINTR, 0xffff); in sunxi_mmc_finalize_request()
595 mmc_writel(host, REG_IMASK, in sunxi_mmc_irq()
608 mmc_writel(host, REG_RINTR, msk_int); in sunxi_mmc_irq()
609 mmc_writel(host, REG_IDST, idma_int); in sunxi_mmc_irq()
677 mmc_writel(host, REG_CLKCR, rval); in sunxi_mmc_oclk_onoff()
680 mmc_writel(host, REG_CMDR, rval); in sunxi_mmc_oclk_onoff()
687 mmc_writel(host, REG_RINTR, in sunxi_mmc_oclk_onoff()
697 mmc_writel(host, REG_CLKCR, rval & ~SDXC_MASK_DATA0); in sunxi_mmc_oclk_onoff()
824 mmc_writel(host, REG_CLKCR, rval); in sunxi_mmc_clk_set_rate()
839 mmc_writel(host, REG_SD_NTSR, rval); in sunxi_mmc_clk_set_rate()
874 mmc_writel(host, REG_WIDTH, SDXC_WIDTH1); in sunxi_mmc_set_bus_width()
877 mmc_writel(host, REG_WIDTH, SDXC_WIDTH4); in sunxi_mmc_set_bus_width()
880 mmc_writel(host, REG_WIDTH, SDXC_WIDTH8); in sunxi_mmc_set_bus_width()
896 mmc_writel(host, REG_GCTRL, rval); in sunxi_mmc_set_clk()
993 mmc_writel(host, REG_IMASK, imask); in sunxi_mmc_enable_sdio_irq()
1003 mmc_writel(host, REG_HWRST, 0); in sunxi_mmc_hw_reset()
1005 mmc_writel(host, REG_HWRST, 1); in sunxi_mmc_hw_reset()
1091 mmc_writel(host, REG_BLKSZ, data->blksz); in sunxi_mmc_request()
1092 mmc_writel(host, REG_BCNTR, data->blksz * data->blocks); in sunxi_mmc_request()
1098 mmc_writel(host, REG_IMASK, host->sdio_imask | imask); in sunxi_mmc_request()
1099 mmc_writel(host, REG_CARG, cmd->arg); in sunxi_mmc_request()
1100 mmc_writel(host, REG_CMDR, cmd_val); in sunxi_mmc_request()