Lines Matching refs:host

2  * linux/drivers/mmc/host/tmio_mmc.h
51 void (*set_pwr)(struct platform_device *host, int state);
52 void (*set_clk_div)(struct platform_device *host, int state);
81 spinlock_t lock; /* protect host private data */
88 int tmio_mmc_host_probe(struct tmio_mmc_host **host,
91 void tmio_mmc_host_remove(struct tmio_mmc_host *host);
92 void tmio_mmc_do_data_irq(struct tmio_mmc_host *host);
94 void tmio_mmc_enable_mmc_irqs(struct tmio_mmc_host *host, u32 i);
95 void tmio_mmc_disable_mmc_irqs(struct tmio_mmc_host *host, u32 i);
116 void tmio_mmc_start_dma(struct tmio_mmc_host *host, struct mmc_data *data);
117 void tmio_mmc_enable_dma(struct tmio_mmc_host *host, bool enable);
118 void tmio_mmc_request_dma(struct tmio_mmc_host *host, struct tmio_mmc_data *pdata);
119 void tmio_mmc_release_dma(struct tmio_mmc_host *host);
120 void tmio_mmc_abort_dma(struct tmio_mmc_host *host);
122 static inline void tmio_mmc_start_dma(struct tmio_mmc_host *host,
127 static inline void tmio_mmc_enable_dma(struct tmio_mmc_host *host, bool enable)
131 static inline void tmio_mmc_request_dma(struct tmio_mmc_host *host,
134 host->chan_tx = NULL;
135 host->chan_rx = NULL;
138 static inline void tmio_mmc_release_dma(struct tmio_mmc_host *host)
142 static inline void tmio_mmc_abort_dma(struct tmio_mmc_host *host)
152 static inline u16 sd_ctrl_read16(struct tmio_mmc_host *host, int addr)
154 return readw(host->ctl + (addr << host->pdata->bus_shift));
157 static inline void sd_ctrl_read16_rep(struct tmio_mmc_host *host, int addr,
160 readsw(host->ctl + (addr << host->pdata->bus_shift), buf, count);
163 static inline u32 sd_ctrl_read32(struct tmio_mmc_host *host, int addr)
165 return readw(host->ctl + (addr << host->pdata->bus_shift)) |
166 readw(host->ctl + ((addr + 2) << host->pdata->bus_shift)) << 16;
169 static inline void sd_ctrl_write16(struct tmio_mmc_host *host, int addr, u16 val)
174 if (host->pdata->write16_hook && host->pdata->write16_hook(host, addr))
176 writew(val, host->ctl + (addr << host->pdata->bus_shift));
179 static inline void sd_ctrl_write16_rep(struct tmio_mmc_host *host, int addr,
182 writesw(host->ctl + (addr << host->pdata->bus_shift), buf, count);
185 static inline void sd_ctrl_write32(struct tmio_mmc_host *host, int addr, u32 val)
187 writew(val, host->ctl + (addr << host->pdata->bus_shift));
188 writew(val >> 16, host->ctl + ((addr + 2) << host->pdata->bus_shift));