Lines Matching refs:mvsd_write

53 #define mvsd_write(offs, val)	writel(val, iobase + (offs))  macro
103 mvsd_write(MVSD_HOST_CTRL, host->ctrl); in mvsd_setup_data()
104 mvsd_write(MVSD_BLK_COUNT, data->blocks); in mvsd_setup_data()
105 mvsd_write(MVSD_BLK_SIZE, data->blksz); in mvsd_setup_data()
130 mvsd_write(MVSD_SYS_ADDR_LOW, (u32)phys_addr & 0xffff); in mvsd_setup_data()
131 mvsd_write(MVSD_SYS_ADDR_HI, (u32)phys_addr >> 16); in mvsd_setup_data()
198 mvsd_write(MVSD_AUTOCMD12_ARG_LOW, stop->arg & 0xffff); in mvsd_request()
199 mvsd_write(MVSD_AUTOCMD12_ARG_HI, stop->arg >> 16); in mvsd_request()
206 mvsd_write(MVSD_AUTOCMD12_CMD, cmd12reg); in mvsd_request()
217 mvsd_write(MVSD_ARG_LOW, cmd->arg & 0xffff); in mvsd_request()
218 mvsd_write(MVSD_ARG_HI, cmd->arg >> 16); in mvsd_request()
224 mvsd_write(MVSD_XFER_MODE, host->xfer_mode); in mvsd_request()
226 mvsd_write(MVSD_NOR_INTR_STATUS, ~MVSD_NOR_CARD_INT); in mvsd_request()
227 mvsd_write(MVSD_ERR_INTR_STATUS, 0xffff); in mvsd_request()
228 mvsd_write(MVSD_CMD, cmdreg); in mvsd_request()
232 mvsd_write(MVSD_NOR_INTR_EN, host->intr_en); in mvsd_request()
233 mvsd_write(MVSD_ERR_INTR_EN, 0xffff); in mvsd_request()
407 mvsd_write(MVSD_NOR_INTR_EN, host->intr_en); in mvsd_irq()
411 mvsd_write(MVSD_NOR_INTR_EN, host->intr_en); in mvsd_irq()
431 mvsd_write(MVSD_FIFO, get_unaligned(p++)); in mvsd_irq()
432 mvsd_write(MVSD_FIFO, get_unaligned(p++)); in mvsd_irq()
440 mvsd_write(MVSD_FIFO, val[0]); in mvsd_irq()
441 mvsd_write(MVSD_FIFO, val[1]); in mvsd_irq()
448 mvsd_write(MVSD_NOR_INTR_EN, host->intr_en); in mvsd_irq()
458 mvsd_write(MVSD_NOR_INTR_STATUS, intr_status); in mvsd_irq()
471 mvsd_write(MVSD_NOR_INTR_EN, host->intr_en); in mvsd_irq()
472 mvsd_write(MVSD_ERR_INTR_EN, 0); in mvsd_irq()
528 mvsd_write(MVSD_SW_RESET, MVSD_SW_RESET_NOW); in mvsd_timeout_timer()
531 mvsd_write(MVSD_XFER_MODE, host->xfer_mode); in mvsd_timeout_timer()
534 mvsd_write(MVSD_NOR_INTR_EN, host->intr_en); in mvsd_timeout_timer()
535 mvsd_write(MVSD_ERR_INTR_EN, 0); in mvsd_timeout_timer()
536 mvsd_write(MVSD_ERR_INTR_STATUS, 0xffff); in mvsd_timeout_timer()
565 mvsd_write(MVSD_XFER_MODE, host->xfer_mode); in mvsd_enable_sdio_irq()
566 mvsd_write(MVSD_NOR_INTR_EN, host->intr_en); in mvsd_enable_sdio_irq()
574 mvsd_write(MVSD_NOR_INTR_EN, 0); in mvsd_power_up()
575 mvsd_write(MVSD_ERR_INTR_EN, 0); in mvsd_power_up()
576 mvsd_write(MVSD_SW_RESET, MVSD_SW_RESET_NOW); in mvsd_power_up()
577 mvsd_write(MVSD_XFER_MODE, 0); in mvsd_power_up()
578 mvsd_write(MVSD_NOR_STATUS_EN, 0xffff); in mvsd_power_up()
579 mvsd_write(MVSD_ERR_STATUS_EN, 0xffff); in mvsd_power_up()
580 mvsd_write(MVSD_NOR_INTR_STATUS, 0xffff); in mvsd_power_up()
581 mvsd_write(MVSD_ERR_INTR_STATUS, 0xffff); in mvsd_power_up()
588 mvsd_write(MVSD_NOR_INTR_EN, 0); in mvsd_power_down()
589 mvsd_write(MVSD_ERR_INTR_EN, 0); in mvsd_power_down()
590 mvsd_write(MVSD_SW_RESET, MVSD_SW_RESET_NOW); in mvsd_power_down()
591 mvsd_write(MVSD_XFER_MODE, MVSD_XFER_MODE_STOP_CLK); in mvsd_power_down()
592 mvsd_write(MVSD_NOR_STATUS_EN, 0); in mvsd_power_down()
593 mvsd_write(MVSD_ERR_STATUS_EN, 0); in mvsd_power_down()
594 mvsd_write(MVSD_NOR_INTR_STATUS, 0xffff); in mvsd_power_down()
595 mvsd_write(MVSD_ERR_INTR_STATUS, 0xffff); in mvsd_power_down()
608 mvsd_write(MVSD_XFER_MODE, MVSD_XFER_MODE_STOP_CLK); in mvsd_set_ios()
609 mvsd_write(MVSD_CLK_DIV, MVSD_BASE_DIV_MAX); in mvsd_set_ios()
616 mvsd_write(MVSD_CLK_DIV, m); in mvsd_set_ios()
651 mvsd_write(MVSD_HOST_CTRL, ctrl_reg); in mvsd_set_ios()