Home
last modified time | relevance | path

Searched refs:host (Results 1 – 25 of 749) sorted by relevance

12345678910>>...30

/drivers/scsi/arm/
Dacornscsi.c179 static void acornscsi_done(AS_Host *host, struct scsi_cmnd **SCpntp,
181 static int acornscsi_reconnect_finish(AS_Host *host);
182 static void acornscsi_dma_cleanup(AS_Host *host);
183 static void acornscsi_abortcmd(AS_Host *host, unsigned char tag);
198 static inline void sbic_arm_write(AS_Host *host, unsigned int reg, unsigned int value) in sbic_arm_write() argument
200 writeb(reg, host->base + SBIC_REGIDX); in sbic_arm_write()
201 writeb(value, host->base + SBIC_REGVAL); in sbic_arm_write()
204 static inline int sbic_arm_read(AS_Host *host, unsigned int reg) in sbic_arm_read() argument
207 return readl(host->base + SBIC_REGIDX) & 255; in sbic_arm_read()
208 writeb(reg, host->base + SBIC_REGIDX); in sbic_arm_read()
[all …]
/drivers/mmc/host/
Dsdhci.c48 static void sdhci_enable_preset_value(struct sdhci_host *host, bool enable);
50 static void sdhci_dumpregs(struct sdhci_host *host) in sdhci_dumpregs() argument
53 mmc_hostname(host->mmc)); in sdhci_dumpregs()
56 sdhci_readl(host, SDHCI_DMA_ADDRESS), in sdhci_dumpregs()
57 sdhci_readw(host, SDHCI_HOST_VERSION)); in sdhci_dumpregs()
59 sdhci_readw(host, SDHCI_BLOCK_SIZE), in sdhci_dumpregs()
60 sdhci_readw(host, SDHCI_BLOCK_COUNT)); in sdhci_dumpregs()
62 sdhci_readl(host, SDHCI_ARGUMENT), in sdhci_dumpregs()
63 sdhci_readw(host, SDHCI_TRANSFER_MODE)); in sdhci_dumpregs()
65 sdhci_readl(host, SDHCI_PRESENT_STATE), in sdhci_dumpregs()
[all …]
Dwbsd.c87 static inline void wbsd_unlock_config(struct wbsd_host *host) in wbsd_unlock_config() argument
89 BUG_ON(host->config == 0); in wbsd_unlock_config()
91 outb(host->unlock_code, host->config); in wbsd_unlock_config()
92 outb(host->unlock_code, host->config); in wbsd_unlock_config()
95 static inline void wbsd_lock_config(struct wbsd_host *host) in wbsd_lock_config() argument
97 BUG_ON(host->config == 0); in wbsd_lock_config()
99 outb(LOCK_CODE, host->config); in wbsd_lock_config()
102 static inline void wbsd_write_config(struct wbsd_host *host, u8 reg, u8 value) in wbsd_write_config() argument
104 BUG_ON(host->config == 0); in wbsd_write_config()
106 outb(reg, host->config); in wbsd_write_config()
[all …]
Ds3cmci.c136 #define dbg(host, channels, args...) \ argument
139 dev_err(&host->pdev->dev, args); \
141 dev_info(&host->pdev->dev, args); \
143 dev_dbg(&host->pdev->dev, args); \
146 static void finalize_request(struct s3cmci_host *host);
148 static void s3cmci_reset(struct s3cmci_host *host);
152 static void dbg_dumpregs(struct s3cmci_host *host, char *prefix) in dbg_dumpregs() argument
157 con = readl(host->base + S3C2410_SDICON); in dbg_dumpregs()
158 pre = readl(host->base + S3C2410_SDIPRE); in dbg_dumpregs()
159 cmdarg = readl(host->base + S3C2410_SDICMDARG); in dbg_dumpregs()
[all …]
Domap.c75 #define mmc_omap7xx() (host->features & MMC_OMAP7XX)
76 #define mmc_omap15xx() (host->features & MMC_OMAP15XX)
77 #define mmc_omap16xx() (host->features & MMC_OMAP16XX)
79 #define mmc_omap1() (host->features & MMC_OMAP1_MASK)
82 #define OMAP_MMC_REG(host, reg) (OMAP_MMC_REG_##reg << (host)->reg_shift) argument
83 #define OMAP_MMC_READ(host, reg) __raw_readw((host)->virt_base + OMAP_MMC_REG(host, reg)) argument
84 #define OMAP_MMC_WRITE(host, reg, val) __raw_writew((val), (host)->virt_base + OMAP_MMC_REG(host, r… argument
114 struct mmc_omap_host *host; member
178 if (slot != NULL && slot->host->fclk_enabled && slot->fclk_freq > 0) { in mmc_omap_fclk_offdelay()
184 static void mmc_omap_fclk_enable(struct mmc_omap_host *host, unsigned int enable) in mmc_omap_fclk_enable() argument
[all …]
Dusdhi6rol0.c211 static void usdhi6_write(struct usdhi6_host *host, u32 reg, u32 data) in usdhi6_write() argument
213 iowrite32(data, host->base + reg); in usdhi6_write()
214 dev_vdbg(mmc_dev(host->mmc), "%s(0x%p + 0x%x) = 0x%x\n", __func__, in usdhi6_write()
215 host->base, reg, data); in usdhi6_write()
218 static void usdhi6_write16(struct usdhi6_host *host, u32 reg, u16 data) in usdhi6_write16() argument
220 iowrite16(data, host->base + reg); in usdhi6_write16()
221 dev_vdbg(mmc_dev(host->mmc), "%s(0x%p + 0x%x) = 0x%x\n", __func__, in usdhi6_write16()
222 host->base, reg, data); in usdhi6_write16()
225 static u32 usdhi6_read(struct usdhi6_host *host, u32 reg) in usdhi6_read() argument
227 u32 data = ioread32(host->base + reg); in usdhi6_read()
[all …]
Domap_hsmmc.c159 #define mmc_pdata(host) host->pdata argument
231 static void omap_hsmmc_start_dma_transfer(struct omap_hsmmc_host *host);
235 struct omap_hsmmc_host *host = dev_get_drvdata(dev); in omap_hsmmc_card_detect() local
237 return mmc_gpio_get_cd(host->mmc); in omap_hsmmc_card_detect()
242 struct omap_hsmmc_host *host = dev_get_drvdata(dev); in omap_hsmmc_get_cover_state() local
244 return mmc_gpio_get_cd(host->mmc); in omap_hsmmc_get_cover_state()
250 struct omap_hsmmc_host *host = mmc_priv(mmc); in omap_hsmmc_enable_supply() local
260 if (mmc->supply.vqmmc && !host->vqmmc_enabled) { in omap_hsmmc_enable_supply()
266 host->vqmmc_enabled = 1; in omap_hsmmc_enable_supply()
282 struct omap_hsmmc_host *host = mmc_priv(mmc); in omap_hsmmc_disable_supply() local
[all …]
Ddw_mmc.c107 static bool dw_mci_reset(struct dw_mci *host);
108 static bool dw_mci_ctrl_reset(struct dw_mci *host, u32 reset);
122 spin_lock_bh(&slot->host->lock); in dw_mci_req_show()
148 spin_unlock_bh(&slot->host->lock); in dw_mci_req_show()
194 struct dw_mci *host = slot->host; in dw_mci_init_debugfs() local
202 node = debugfs_create_file("regs", S_IRUSR, root, host, in dw_mci_init_debugfs()
212 node = debugfs_create_u32("state", S_IRUSR, root, (u32 *)&host->state); in dw_mci_init_debugfs()
217 (u32 *)&host->pending_events); in dw_mci_init_debugfs()
222 (u32 *)&host->completed_events); in dw_mci_init_debugfs()
239 struct dw_mci *host = slot->host; in dw_mci_prepare_command() local
[all …]
Dmxcmmc.c197 static inline int is_imx31_mmc(struct mxcmci_host *host) in is_imx31_mmc() argument
199 return host->devtype == IMX31_MMC; in is_imx31_mmc()
202 static inline int is_mpc512x_mmc(struct mxcmci_host *host) in is_mpc512x_mmc() argument
204 return host->devtype == MPC512X_MMC; in is_mpc512x_mmc()
207 static inline u32 mxcmci_readl(struct mxcmci_host *host, int reg) in mxcmci_readl() argument
210 return ioread32be(host->base + reg); in mxcmci_readl()
212 return readl(host->base + reg); in mxcmci_readl()
215 static inline void mxcmci_writel(struct mxcmci_host *host, u32 val, int reg) in mxcmci_writel() argument
218 iowrite32be(val, host->base + reg); in mxcmci_writel()
220 writel(val, host->base + reg); in mxcmci_writel()
[all …]
Dau1xmmc.c165 static inline void IRQ_ON(struct au1xmmc_host *host, u32 mask) in IRQ_ON() argument
167 u32 val = __raw_readl(HOST_CONFIG(host)); in IRQ_ON()
169 __raw_writel(val, HOST_CONFIG(host)); in IRQ_ON()
173 static inline void FLUSH_FIFO(struct au1xmmc_host *host) in FLUSH_FIFO() argument
175 u32 val = __raw_readl(HOST_CONFIG2(host)); in FLUSH_FIFO()
177 __raw_writel(val | SD_CONFIG2_FF, HOST_CONFIG2(host)); in FLUSH_FIFO()
184 __raw_writel(val, HOST_CONFIG2(host)); in FLUSH_FIFO()
188 static inline void IRQ_OFF(struct au1xmmc_host *host, u32 mask) in IRQ_OFF() argument
190 u32 val = __raw_readl(HOST_CONFIG(host)); in IRQ_OFF()
192 __raw_writel(val, HOST_CONFIG(host)); in IRQ_OFF()
[all …]
Datmel-mci.c358 u32 (*prepare_data)(struct atmel_mci *host, struct mmc_data *data);
359 void (*submit_data)(struct atmel_mci *host, struct mmc_data *data);
360 void (*stop_transfer)(struct atmel_mci *host);
384 struct atmel_mci *host; member
405 #define atmci_test_and_clear_pending(host, event) \ argument
406 test_and_clear_bit(event, &host->pending_events)
407 #define atmci_set_completed(host, event) \ argument
408 set_bit(event, &host->completed_events)
409 #define atmci_set_pending(host, event) \ argument
410 set_bit(event, &host->pending_events)
[all …]
Dsh_mmcif.c269 #define sh_mmcif_host_to_dev(host) (&host->pd->dev) argument
271 static inline void sh_mmcif_bitset(struct sh_mmcif_host *host, in sh_mmcif_bitset() argument
274 writel(val | readl(host->addr + reg), host->addr + reg); in sh_mmcif_bitset()
277 static inline void sh_mmcif_bitclr(struct sh_mmcif_host *host, in sh_mmcif_bitclr() argument
280 writel(~val & readl(host->addr + reg), host->addr + reg); in sh_mmcif_bitclr()
285 struct sh_mmcif_host *host = arg; in sh_mmcif_dma_complete() local
286 struct mmc_request *mrq = host->mrq; in sh_mmcif_dma_complete()
287 struct device *dev = sh_mmcif_host_to_dev(host); in sh_mmcif_dma_complete()
295 complete(&host->dma_complete); in sh_mmcif_dma_complete()
298 static void sh_mmcif_start_dma_rx(struct sh_mmcif_host *host) in sh_mmcif_start_dma_rx() argument
[all …]
Dtmio_mmc_pio.c55 void tmio_mmc_enable_mmc_irqs(struct tmio_mmc_host *host, u32 i) in tmio_mmc_enable_mmc_irqs() argument
57 host->sdcard_irq_mask &= ~(i & TMIO_MASK_IRQ); in tmio_mmc_enable_mmc_irqs()
58 sd_ctrl_write32_as_16_and_16(host, CTL_IRQ_MASK, host->sdcard_irq_mask); in tmio_mmc_enable_mmc_irqs()
61 void tmio_mmc_disable_mmc_irqs(struct tmio_mmc_host *host, u32 i) in tmio_mmc_disable_mmc_irqs() argument
63 host->sdcard_irq_mask |= (i & TMIO_MASK_IRQ); in tmio_mmc_disable_mmc_irqs()
64 sd_ctrl_write32_as_16_and_16(host, CTL_IRQ_MASK, host->sdcard_irq_mask); in tmio_mmc_disable_mmc_irqs()
67 static void tmio_mmc_ack_mmc_irqs(struct tmio_mmc_host *host, u32 i) in tmio_mmc_ack_mmc_irqs() argument
69 sd_ctrl_write32_as_16_and_16(host, CTL_STATUS, ~i); in tmio_mmc_ack_mmc_irqs()
72 static void tmio_mmc_init_sg(struct tmio_mmc_host *host, struct mmc_data *data) in tmio_mmc_init_sg() argument
74 host->sg_len = data->sg_len; in tmio_mmc_init_sg()
[all …]
Dtmio_mmc_dma.c25 void tmio_mmc_enable_dma(struct tmio_mmc_host *host, bool enable) in tmio_mmc_enable_dma() argument
27 if (!host->chan_tx || !host->chan_rx) in tmio_mmc_enable_dma()
30 if (host->dma->enable) in tmio_mmc_enable_dma()
31 host->dma->enable(host, enable); in tmio_mmc_enable_dma()
34 void tmio_mmc_abort_dma(struct tmio_mmc_host *host) in tmio_mmc_abort_dma() argument
36 tmio_mmc_enable_dma(host, false); in tmio_mmc_abort_dma()
38 if (host->chan_rx) in tmio_mmc_abort_dma()
39 dmaengine_terminate_all(host->chan_rx); in tmio_mmc_abort_dma()
40 if (host->chan_tx) in tmio_mmc_abort_dma()
41 dmaengine_terminate_all(host->chan_tx); in tmio_mmc_abort_dma()
[all …]
Ddavinci_mmc.c228 static void mmc_davinci_sg_to_buf(struct mmc_davinci_host *host) in mmc_davinci_sg_to_buf() argument
230 host->buffer_bytes_left = sg_dma_len(host->sg); in mmc_davinci_sg_to_buf()
231 host->buffer = sg_virt(host->sg); in mmc_davinci_sg_to_buf()
232 if (host->buffer_bytes_left > host->bytes_left) in mmc_davinci_sg_to_buf()
233 host->buffer_bytes_left = host->bytes_left; in mmc_davinci_sg_to_buf()
236 static void davinci_fifo_data_trans(struct mmc_davinci_host *host, in davinci_fifo_data_trans() argument
242 if (host->buffer_bytes_left == 0) { in davinci_fifo_data_trans()
243 host->sg = sg_next(host->data->sg); in davinci_fifo_data_trans()
244 mmc_davinci_sg_to_buf(host); in davinci_fifo_data_trans()
247 p = host->buffer; in davinci_fifo_data_trans()
[all …]
Dpxamci.c86 static inline void pxamci_init_ocr(struct pxamci_host *host) in pxamci_init_ocr() argument
89 host->vcc = devm_regulator_get_optional(mmc_dev(host->mmc), "vmmc"); in pxamci_init_ocr()
91 if (IS_ERR(host->vcc)) in pxamci_init_ocr()
92 host->vcc = NULL; in pxamci_init_ocr()
94 host->mmc->ocr_avail = mmc_regulator_get_ocrmask(host->vcc); in pxamci_init_ocr()
95 if (host->pdata && host->pdata->ocr_mask) in pxamci_init_ocr()
96 dev_warn(mmc_dev(host->mmc), in pxamci_init_ocr()
100 if (host->vcc == NULL) { in pxamci_init_ocr()
102 host->mmc->ocr_avail = host->pdata ? in pxamci_init_ocr()
103 host->pdata->ocr_mask : in pxamci_init_ocr()
[all …]
Dmtk-sd.c372 static void msdc_reset_hw(struct msdc_host *host) in msdc_reset_hw() argument
376 sdr_set_bits(host->base + MSDC_CFG, MSDC_CFG_RST); in msdc_reset_hw()
377 while (readl(host->base + MSDC_CFG) & MSDC_CFG_RST) in msdc_reset_hw()
380 sdr_set_bits(host->base + MSDC_FIFOCS, MSDC_FIFOCS_CLR); in msdc_reset_hw()
381 while (readl(host->base + MSDC_FIFOCS) & MSDC_FIFOCS_CLR) in msdc_reset_hw()
384 val = readl(host->base + MSDC_INT); in msdc_reset_hw()
385 writel(val, host->base + MSDC_INT); in msdc_reset_hw()
388 static void msdc_cmd_next(struct msdc_host *host,
407 static inline void msdc_dma_setup(struct msdc_host *host, struct msdc_dma *dma, in msdc_dma_setup() argument
451 sdr_set_field(host->base + MSDC_DMA_CFG, MSDC_DMA_CFG_DECSEN, 1); in msdc_dma_setup()
[all …]
Dmmci.c225 struct mmci_host *host = mmc_priv(mmc); in mmci_card_busy() local
229 spin_lock_irqsave(&host->lock, flags); in mmci_card_busy()
230 if (readl(host->base + MMCISTATUS) & MCI_ST_CARDBUSY) in mmci_card_busy()
232 spin_unlock_irqrestore(&host->lock, flags); in mmci_card_busy()
240 static int mmci_validate_data(struct mmci_host *host, in mmci_validate_data() argument
247 dev_err(mmc_dev(host->mmc), in mmci_validate_data()
255 static void mmci_reg_delay(struct mmci_host *host) in mmci_reg_delay() argument
264 if (host->cclk < 25000000) in mmci_reg_delay()
273 static void mmci_write_clkreg(struct mmci_host *host, u32 clk) in mmci_write_clkreg() argument
275 if (host->clk_reg != clk) { in mmci_write_clkreg()
[all …]
Dmoxart-mmc.c151 static inline void moxart_init_sg(struct moxart_host *host, in moxart_init_sg() argument
154 host->cur_sg = data->sg; in moxart_init_sg()
155 host->num_sg = data->sg_len; in moxart_init_sg()
156 host->data_remain = host->cur_sg->length; in moxart_init_sg()
158 if (host->data_remain > host->data_len) in moxart_init_sg()
159 host->data_remain = host->data_len; in moxart_init_sg()
162 static inline int moxart_next_sg(struct moxart_host *host) in moxart_next_sg() argument
165 struct mmc_data *data = host->mrq->cmd->data; in moxart_next_sg()
167 host->cur_sg++; in moxart_next_sg()
168 host->num_sg--; in moxart_next_sg()
[all …]
/drivers/mmc/core/
Dhost.c39 struct mmc_host *host = cls_dev_to_mmc_host(dev); in mmc_host_classdev_release() local
41 ida_remove(&mmc_host_ida, host->index); in mmc_host_classdev_release()
43 kfree(host); in mmc_host_classdev_release()
61 void mmc_retune_enable(struct mmc_host *host) in mmc_retune_enable() argument
63 host->can_retune = 1; in mmc_retune_enable()
64 if (host->retune_period) in mmc_retune_enable()
65 mod_timer(&host->retune_timer, in mmc_retune_enable()
66 jiffies + host->retune_period * HZ); in mmc_retune_enable()
73 void mmc_retune_pause(struct mmc_host *host) in mmc_retune_pause() argument
75 if (!host->retune_paused) { in mmc_retune_pause()
[all …]
Dcore.c92 static void mmc_should_fail_request(struct mmc_host *host, in mmc_should_fail_request() argument
107 !should_fail(&host->fail_mmc_request, data->blksz * data->blocks)) in mmc_should_fail_request()
116 static inline void mmc_should_fail_request(struct mmc_host *host, in mmc_should_fail_request() argument
129 void mmc_command_done(struct mmc_host *host, struct mmc_request *mrq) in mmc_command_done() argument
137 mmc_hostname(host), mrq->cmd->opcode); in mmc_command_done()
149 void mmc_request_done(struct mmc_host *host, struct mmc_request *mrq) in mmc_request_done() argument
160 mmc_retune_needed(host); in mmc_request_done()
162 if (err && cmd->retries && mmc_host_is_spi(host)) { in mmc_request_done()
167 if (host->ongoing_mrq == mrq) in mmc_request_done()
168 host->ongoing_mrq = NULL; in mmc_request_done()
[all …]
/drivers/scsi/
Dinitio.c131 static struct scsi_ctrl_blk *initio_find_busy_scb(struct initio_host * host, u16 tarlun);
132 static struct scsi_ctrl_blk *initio_find_done_scb(struct initio_host * host);
134 static int tulip_main(struct initio_host * host);
136 static int initio_next_state(struct initio_host * host);
137 static int initio_state_1(struct initio_host * host);
138 static int initio_state_2(struct initio_host * host);
139 static int initio_state_3(struct initio_host * host);
140 static int initio_state_4(struct initio_host * host);
141 static int initio_state_5(struct initio_host * host);
142 static int initio_state_6(struct initio_host * host);
[all …]
/drivers/block/
Dmg_disk.c149 static bool mg_end_request(struct mg_host *host, int err, unsigned int nr_bytes) in mg_end_request() argument
151 if (__blk_end_request(host->req, err, nr_bytes)) in mg_end_request()
154 host->req = NULL; in mg_end_request()
158 static bool mg_end_request_cur(struct mg_host *host, int err) in mg_end_request_cur() argument
160 return mg_end_request(host, err, blk_rq_cur_bytes(host->req)); in mg_end_request_cur()
164 struct mg_host *host) in mg_dump_status() argument
168 if (host->req) in mg_dump_status()
169 name = host->req->rq_disk->disk_name; in mg_dump_status()
188 host->error = 0; in mg_dump_status()
190 host->error = inb((unsigned long)host->dev_base + MG_REG_ERROR); in mg_dump_status()
[all …]
/drivers/memstick/host/
Djmb38x_ms.c157 static unsigned int jmb38x_ms_read_data(struct jmb38x_ms_host *host, in jmb38x_ms_read_data() argument
162 while (host->io_pos && length) { in jmb38x_ms_read_data()
163 buf[off++] = host->io_word[0] & 0xff; in jmb38x_ms_read_data()
164 host->io_word[0] >>= 8; in jmb38x_ms_read_data()
166 host->io_pos--; in jmb38x_ms_read_data()
172 while (!(STATUS_FIFO_EMPTY & readl(host->addr + STATUS))) { in jmb38x_ms_read_data()
175 *(unsigned int *)(buf + off) = __raw_readl(host->addr + DATA); in jmb38x_ms_read_data()
181 && !(STATUS_FIFO_EMPTY & readl(host->addr + STATUS))) { in jmb38x_ms_read_data()
182 host->io_word[0] = readl(host->addr + DATA); in jmb38x_ms_read_data()
183 for (host->io_pos = 4; host->io_pos; --host->io_pos) { in jmb38x_ms_read_data()
[all …]
/drivers/mtd/nand/
Dhisi504_nand.c153 static inline unsigned int hinfc_read(struct hinfc_host *host, unsigned int reg) in hinfc_read() argument
155 return readl(host->iobase + reg); in hinfc_read()
158 static inline void hinfc_write(struct hinfc_host *host, unsigned int value, in hinfc_write() argument
161 writel(value, host->iobase + reg); in hinfc_write()
164 static void wait_controller_finished(struct hinfc_host *host) in wait_controller_finished() argument
170 val = hinfc_read(host, HINFC504_STATUS); in wait_controller_finished()
171 if (host->command == NAND_CMD_ERASE2) { in wait_controller_finished()
175 val = hinfc_read(host, HINFC504_STATUS); in wait_controller_finished()
185 dev_err(host->dev, "Wait NAND controller exec cmd timeout.\n"); in wait_controller_finished()
188 static void hisi_nfc_dma_transfer(struct hinfc_host *host, int todev) in hisi_nfc_dma_transfer() argument
[all …]

12345678910>>...30