Lines Matching defs:host

114 	void (*start)(struct tmio_mmc_host *host, struct mmc_data *data);
115 void (*enable)(struct tmio_mmc_host *host, bool enable);
116 void (*request)(struct tmio_mmc_host *host,
118 void (*release)(struct tmio_mmc_host *host);
119 void (*abort)(struct tmio_mmc_host *host);
120 void (*dataend)(struct tmio_mmc_host *host);
123 void (*end)(struct tmio_mmc_host *host); /* held host->lock */
135 void (*set_pwr)(struct platform_device *host, int state);
166 spinlock_t lock; /* protect host private data */
173 int (*clk_enable)(struct tmio_mmc_host *host);
174 void (*set_clock)(struct tmio_mmc_host *host, unsigned int clock);
177 void (*clk_disable)(struct tmio_mmc_host *host);
180 int (*write16_hook)(struct tmio_mmc_host *host, int addr);
181 void (*reset)(struct tmio_mmc_host *host);
182 bool (*check_retune)(struct tmio_mmc_host *host);
183 void (*fixup_request)(struct tmio_mmc_host *host, struct mmc_request *mrq);
185 void (*prepare_hs400_tuning)(struct tmio_mmc_host *host);
186 void (*hs400_downgrade)(struct tmio_mmc_host *host);
187 void (*hs400_complete)(struct tmio_mmc_host *host);
194 void tmio_mmc_host_free(struct tmio_mmc_host *host);
195 int tmio_mmc_host_probe(struct tmio_mmc_host *host);
196 void tmio_mmc_host_remove(struct tmio_mmc_host *host);
197 void tmio_mmc_do_data_irq(struct tmio_mmc_host *host);
199 void tmio_mmc_enable_mmc_irqs(struct tmio_mmc_host *host, u32 i);
200 void tmio_mmc_disable_mmc_irqs(struct tmio_mmc_host *host, u32 i);
222 static inline u16 sd_ctrl_read16(struct tmio_mmc_host *host, int addr)
224 return ioread16(host->ctl + (addr << host->bus_shift));
227 static inline void sd_ctrl_read16_rep(struct tmio_mmc_host *host, int addr,
230 ioread16_rep(host->ctl + (addr << host->bus_shift), buf, count);
233 static inline u32 sd_ctrl_read16_and_16_as_32(struct tmio_mmc_host *host,
236 return ioread16(host->ctl + (addr << host->bus_shift)) |
237 ioread16(host->ctl + ((addr + 2) << host->bus_shift)) << 16;
240 static inline void sd_ctrl_read32_rep(struct tmio_mmc_host *host, int addr,
243 ioread32_rep(host->ctl + (addr << host->bus_shift), buf, count);
246 static inline void sd_ctrl_write16(struct tmio_mmc_host *host, int addr,
252 if (host->write16_hook && host->write16_hook(host, addr))
254 iowrite16(val, host->ctl + (addr << host->bus_shift));
257 static inline void sd_ctrl_write16_rep(struct tmio_mmc_host *host, int addr,
260 iowrite16_rep(host->ctl + (addr << host->bus_shift), buf, count);
263 static inline void sd_ctrl_write32_as_16_and_16(struct tmio_mmc_host *host,
267 val |= host->sdcard_irq_setbit_mask;
269 iowrite16(val & 0xffff, host->ctl + (addr << host->bus_shift));
270 iowrite16(val >> 16, host->ctl + ((addr + 2) << host->bus_shift));
273 static inline void sd_ctrl_write32(struct tmio_mmc_host *host, int addr, u32 val)
275 iowrite32(val, host->ctl + (addr << host->bus_shift));
278 static inline void sd_ctrl_write32_rep(struct tmio_mmc_host *host, int addr,
281 iowrite32_rep(host->ctl + (addr << host->bus_shift), buf, count);