Lines Matching refs:host
48 void (*enable)(struct tmio_mmc_host *host, bool enable);
59 void (*set_pwr)(struct platform_device *host, int state);
60 void (*set_clk_div)(struct platform_device *host, int state);
97 int (*write16_hook)(struct tmio_mmc_host *host, int addr);
105 void tmio_mmc_host_free(struct tmio_mmc_host *host);
106 int tmio_mmc_host_probe(struct tmio_mmc_host *host,
108 void tmio_mmc_host_remove(struct tmio_mmc_host *host);
109 void tmio_mmc_do_data_irq(struct tmio_mmc_host *host);
111 void tmio_mmc_enable_mmc_irqs(struct tmio_mmc_host *host, u32 i);
112 void tmio_mmc_disable_mmc_irqs(struct tmio_mmc_host *host, u32 i);
133 void tmio_mmc_start_dma(struct tmio_mmc_host *host, struct mmc_data *data);
134 void tmio_mmc_enable_dma(struct tmio_mmc_host *host, bool enable);
135 void tmio_mmc_request_dma(struct tmio_mmc_host *host, struct tmio_mmc_data *pdata);
136 void tmio_mmc_release_dma(struct tmio_mmc_host *host);
137 void tmio_mmc_abort_dma(struct tmio_mmc_host *host);
139 static inline void tmio_mmc_start_dma(struct tmio_mmc_host *host, in tmio_mmc_start_dma() argument
144 static inline void tmio_mmc_enable_dma(struct tmio_mmc_host *host, bool enable) in tmio_mmc_enable_dma() argument
148 static inline void tmio_mmc_request_dma(struct tmio_mmc_host *host, in tmio_mmc_request_dma() argument
151 host->chan_tx = NULL; in tmio_mmc_request_dma()
152 host->chan_rx = NULL; in tmio_mmc_request_dma()
155 static inline void tmio_mmc_release_dma(struct tmio_mmc_host *host) in tmio_mmc_release_dma() argument
159 static inline void tmio_mmc_abort_dma(struct tmio_mmc_host *host) in tmio_mmc_abort_dma() argument
169 static inline u16 sd_ctrl_read16(struct tmio_mmc_host *host, int addr) in sd_ctrl_read16() argument
171 return readw(host->ctl + (addr << host->bus_shift)); in sd_ctrl_read16()
174 static inline void sd_ctrl_read16_rep(struct tmio_mmc_host *host, int addr, in sd_ctrl_read16_rep() argument
177 readsw(host->ctl + (addr << host->bus_shift), buf, count); in sd_ctrl_read16_rep()
180 static inline u32 sd_ctrl_read32(struct tmio_mmc_host *host, int addr) in sd_ctrl_read32() argument
182 return readw(host->ctl + (addr << host->bus_shift)) | in sd_ctrl_read32()
183 readw(host->ctl + ((addr + 2) << host->bus_shift)) << 16; in sd_ctrl_read32()
186 static inline void sd_ctrl_write16(struct tmio_mmc_host *host, int addr, u16 val) in sd_ctrl_write16() argument
191 if (host->write16_hook && host->write16_hook(host, addr)) in sd_ctrl_write16()
193 writew(val, host->ctl + (addr << host->bus_shift)); in sd_ctrl_write16()
196 static inline void sd_ctrl_write16_rep(struct tmio_mmc_host *host, int addr, in sd_ctrl_write16_rep() argument
199 writesw(host->ctl + (addr << host->bus_shift), buf, count); in sd_ctrl_write16_rep()
202 static inline void sd_ctrl_write32(struct tmio_mmc_host *host, int addr, u32 val) in sd_ctrl_write32() argument
204 writew(val, host->ctl + (addr << host->bus_shift)); in sd_ctrl_write32()
205 writew(val >> 16, host->ctl + ((addr + 2) << host->bus_shift)); in sd_ctrl_write32()