Lines Matching defs:host

121 	void (*start)(struct tmio_mmc_host *host, struct mmc_data *data);
122 void (*enable)(struct tmio_mmc_host *host, bool enable);
123 void (*request)(struct tmio_mmc_host *host,
125 void (*release)(struct tmio_mmc_host *host);
126 void (*abort)(struct tmio_mmc_host *host);
127 void (*dataend)(struct tmio_mmc_host *host);
130 void (*end)(struct tmio_mmc_host *host); /* held host->lock */
131 bool (*dma_irq)(struct tmio_mmc_host *host);
143 void (*set_pwr)(struct platform_device *host, int state);
174 spinlock_t lock; /* protect host private data */
181 int (*clk_enable)(struct tmio_mmc_host *host);
182 void (*set_clock)(struct tmio_mmc_host *host, unsigned int clock);
185 void (*clk_disable)(struct tmio_mmc_host *host);
188 int (*write16_hook)(struct tmio_mmc_host *host, int addr);
189 void (*reset)(struct tmio_mmc_host *host, bool preserve);
190 bool (*check_retune)(struct tmio_mmc_host *host, struct mmc_request *mrq);
191 void (*fixup_request)(struct tmio_mmc_host *host, struct mmc_request *mrq);
192 unsigned int (*get_timeout_cycles)(struct tmio_mmc_host *host);
199 void tmio_mmc_host_free(struct tmio_mmc_host *host);
200 int tmio_mmc_host_probe(struct tmio_mmc_host *host);
201 void tmio_mmc_host_remove(struct tmio_mmc_host *host);
202 void tmio_mmc_do_data_irq(struct tmio_mmc_host *host);
204 void tmio_mmc_enable_mmc_irqs(struct tmio_mmc_host *host, u32 i);
205 void tmio_mmc_disable_mmc_irqs(struct tmio_mmc_host *host, u32 i);
213 static inline u16 sd_ctrl_read16(struct tmio_mmc_host *host, int addr)
215 return ioread16(host->ctl + (addr << host->bus_shift));
218 static inline void sd_ctrl_read16_rep(struct tmio_mmc_host *host, int addr,
221 ioread16_rep(host->ctl + (addr << host->bus_shift), buf, count);
224 static inline u32 sd_ctrl_read16_and_16_as_32(struct tmio_mmc_host *host,
227 return ioread16(host->ctl + (addr << host->bus_shift)) |
228 ioread16(host->ctl + ((addr + 2) << host->bus_shift)) << 16;
231 static inline void sd_ctrl_read32_rep(struct tmio_mmc_host *host, int addr,
234 ioread32_rep(host->ctl + (addr << host->bus_shift), buf, count);
237 static inline void sd_ctrl_write16(struct tmio_mmc_host *host, int addr,
243 if (host->write16_hook && host->write16_hook(host, addr))
245 iowrite16(val, host->ctl + (addr << host->bus_shift));
248 static inline void sd_ctrl_write16_rep(struct tmio_mmc_host *host, int addr,
251 iowrite16_rep(host->ctl + (addr << host->bus_shift), buf, count);
254 static inline void sd_ctrl_write32_as_16_and_16(struct tmio_mmc_host *host,
258 val |= host->sdcard_irq_setbit_mask;
260 iowrite16(val & 0xffff, host->ctl + (addr << host->bus_shift));
261 iowrite16(val >> 16, host->ctl + ((addr + 2) << host->bus_shift));
264 static inline void sd_ctrl_write32(struct tmio_mmc_host *host, int addr, u32 val)
266 iowrite32(val, host->ctl + (addr << host->bus_shift));
269 static inline void sd_ctrl_write32_rep(struct tmio_mmc_host *host, int addr,
272 iowrite32_rep(host->ctl + (addr << host->bus_shift), buf, count);