Lines Matching refs:base_addr
74 void sdhci_cmd_regs(QTestState *qts, uint64_t base_addr, uint16_t blksize, in sdhci_cmd_regs() argument
78 qtest_writew(qts, base_addr + SDHC_BLKSIZE, blksize); in sdhci_cmd_regs()
79 qtest_writew(qts, base_addr + SDHC_BLKCNT, blkcnt); in sdhci_cmd_regs()
80 qtest_writel(qts, base_addr + SDHC_ARGUMENT, argument); in sdhci_cmd_regs()
81 qtest_writew(qts, base_addr + SDHC_TRNMOD, trnmod); in sdhci_cmd_regs()
82 qtest_writew(qts, base_addr + SDHC_CMDREG, cmdreg); in sdhci_cmd_regs()
85 ssize_t sdhci_read_cmd(QTestState *qts, uint64_t base_addr, char *msg, in sdhci_read_cmd() argument
88 sdhci_cmd_regs(qts, base_addr, count, 1, 0, in sdhci_read_cmd()
93 ssize_t bytes_read = read_fifo(qts, base_addr + SDHC_BDATA, msg, count); in sdhci_read_cmd()
95 sdhci_cmd_regs(qts, base_addr, 0, 0, 0, in sdhci_read_cmd()
102 void sdhci_write_cmd(QTestState *qts, uint64_t base_addr, const char *msg, in sdhci_write_cmd() argument
105 sdhci_cmd_regs(qts, base_addr, blksize, 1, 0, in sdhci_write_cmd()
110 write_fifo(qts, base_addr + SDHC_BDATA, msg, count); in sdhci_write_cmd()
111 fill_block(qts, base_addr + SDHC_BDATA, (blksize - count) / 4); in sdhci_write_cmd()
113 sdhci_cmd_regs(qts, base_addr, 0, 0, 0, in sdhci_write_cmd()