Home
last modified time | relevance | path

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

12345678910>>...73

/linux-6.6.21/drivers/scsi/arm/
Dacornscsi.c170 static void acornscsi_done(AS_Host *host, struct scsi_cmnd **SCpntp,
172 static int acornscsi_reconnect_finish(AS_Host *host);
173 static void acornscsi_dma_cleanup(AS_Host *host);
174 static void acornscsi_abortcmd(AS_Host *host);
189 static inline void sbic_arm_write(AS_Host *host, unsigned int reg, unsigned int value) in sbic_arm_write() argument
191 writeb(reg, host->base + SBIC_REGIDX); in sbic_arm_write()
192 writeb(value, host->base + SBIC_REGVAL); in sbic_arm_write()
195 static inline int sbic_arm_read(AS_Host *host, unsigned int reg) in sbic_arm_read() argument
198 return readl(host->base + SBIC_REGIDX) & 255; in sbic_arm_read()
199 writeb(reg, host->base + SBIC_REGIDX); in sbic_arm_read()
[all …]
/linux-6.6.21/drivers/mmc/host/
Dsdhci.c40 pr_debug("%s: " DRIVER_NAME ": " f, mmc_hostname(host->mmc), ## x)
43 pr_err("%s: " DRIVER_NAME ": " f, mmc_hostname(host->mmc), ## x)
50 static void sdhci_enable_preset_value(struct sdhci_host *host, bool enable);
52 static bool sdhci_send_command(struct sdhci_host *host, struct mmc_command *cmd);
54 void sdhci_dumpregs(struct sdhci_host *host) in sdhci_dumpregs() argument
59 sdhci_readl(host, SDHCI_DMA_ADDRESS), in sdhci_dumpregs()
60 sdhci_readw(host, SDHCI_HOST_VERSION)); in sdhci_dumpregs()
62 sdhci_readw(host, SDHCI_BLOCK_SIZE), in sdhci_dumpregs()
63 sdhci_readw(host, SDHCI_BLOCK_COUNT)); in sdhci_dumpregs()
65 sdhci_readl(host, SDHCI_ARGUMENT), in sdhci_dumpregs()
[all …]
Dwbsd.c84 static inline void wbsd_unlock_config(struct wbsd_host *host) in wbsd_unlock_config() argument
86 BUG_ON(host->config == 0); in wbsd_unlock_config()
88 outb(host->unlock_code, host->config); in wbsd_unlock_config()
89 outb(host->unlock_code, host->config); in wbsd_unlock_config()
92 static inline void wbsd_lock_config(struct wbsd_host *host) in wbsd_lock_config() argument
94 BUG_ON(host->config == 0); in wbsd_lock_config()
96 outb(LOCK_CODE, host->config); in wbsd_lock_config()
99 static inline void wbsd_write_config(struct wbsd_host *host, u8 reg, u8 value) in wbsd_write_config() argument
101 BUG_ON(host->config == 0); in wbsd_write_config()
103 outb(reg, host->config); in wbsd_write_config()
[all …]
Dtmio_mmc_core.c53 static inline void tmio_mmc_start_dma(struct tmio_mmc_host *host, in tmio_mmc_start_dma() argument
56 if (host->dma_ops) in tmio_mmc_start_dma()
57 host->dma_ops->start(host, data); in tmio_mmc_start_dma()
60 static inline void tmio_mmc_end_dma(struct tmio_mmc_host *host) in tmio_mmc_end_dma() argument
62 if (host->dma_ops && host->dma_ops->end) in tmio_mmc_end_dma()
63 host->dma_ops->end(host); in tmio_mmc_end_dma()
66 static inline void tmio_mmc_enable_dma(struct tmio_mmc_host *host, bool enable) in tmio_mmc_enable_dma() argument
68 if (host->dma_ops) in tmio_mmc_enable_dma()
69 host->dma_ops->enable(host, enable); in tmio_mmc_enable_dma()
72 static inline void tmio_mmc_request_dma(struct tmio_mmc_host *host, in tmio_mmc_request_dma() argument
[all …]
Dbcm2835.c192 static void bcm2835_dumpcmd(struct bcm2835_host *host, struct mmc_command *cmd, in bcm2835_dumpcmd() argument
195 struct device *dev = &host->pdev->dev; in bcm2835_dumpcmd()
201 (cmd == host->cmd) ? '>' : ' ', in bcm2835_dumpcmd()
207 static void bcm2835_dumpregs(struct bcm2835_host *host) in bcm2835_dumpregs() argument
209 struct mmc_request *mrq = host->mrq; in bcm2835_dumpregs()
210 struct device *dev = &host->pdev->dev; in bcm2835_dumpregs()
213 bcm2835_dumpcmd(host, mrq->sbc, "sbc"); in bcm2835_dumpregs()
214 bcm2835_dumpcmd(host, mrq->cmd, "cmd"); in bcm2835_dumpregs()
221 bcm2835_dumpcmd(host, mrq->stop, "stop"); in bcm2835_dumpregs()
225 dev_dbg(dev, "SDCMD 0x%08x\n", readl(host->ioaddr + SDCMD)); in bcm2835_dumpregs()
[all …]
Ddw_mmc.c118 spin_lock_bh(&slot->host->lock); in dw_mci_req_show()
144 spin_unlock_bh(&slot->host->lock); in dw_mci_req_show()
152 struct dw_mci *host = s->private; in dw_mci_regs_show() local
154 pm_runtime_get_sync(host->dev); in dw_mci_regs_show()
156 seq_printf(s, "STATUS:\t0x%08x\n", mci_readl(host, STATUS)); in dw_mci_regs_show()
157 seq_printf(s, "RINTSTS:\t0x%08x\n", mci_readl(host, RINTSTS)); in dw_mci_regs_show()
158 seq_printf(s, "CMD:\t0x%08x\n", mci_readl(host, CMD)); in dw_mci_regs_show()
159 seq_printf(s, "CTRL:\t0x%08x\n", mci_readl(host, CTRL)); in dw_mci_regs_show()
160 seq_printf(s, "INTMASK:\t0x%08x\n", mci_readl(host, INTMASK)); in dw_mci_regs_show()
161 seq_printf(s, "CLKENA:\t0x%08x\n", mci_readl(host, CLKENA)); in dw_mci_regs_show()
[all …]
Dusdhi6rol0.c209 static void usdhi6_write(struct usdhi6_host *host, u32 reg, u32 data) in usdhi6_write() argument
211 iowrite32(data, host->base + reg); in usdhi6_write()
212 dev_vdbg(mmc_dev(host->mmc), "%s(0x%p + 0x%x) = 0x%x\n", __func__, in usdhi6_write()
213 host->base, reg, data); in usdhi6_write()
216 static void usdhi6_write16(struct usdhi6_host *host, u32 reg, u16 data) in usdhi6_write16() argument
218 iowrite16(data, host->base + reg); in usdhi6_write16()
219 dev_vdbg(mmc_dev(host->mmc), "%s(0x%p + 0x%x) = 0x%x\n", __func__, in usdhi6_write16()
220 host->base, reg, data); in usdhi6_write16()
223 static u32 usdhi6_read(struct usdhi6_host *host, u32 reg) in usdhi6_read() argument
225 u32 data = ioread32(host->base + reg); in usdhi6_read()
[all …]
Domap.c73 #define mmc_omap7xx() (host->features & MMC_OMAP7XX)
74 #define mmc_omap15xx() (host->features & MMC_OMAP15XX)
75 #define mmc_omap16xx() (host->features & MMC_OMAP16XX)
77 #define mmc_omap1() (host->features & MMC_OMAP1_MASK)
80 #define OMAP_MMC_REG(host, reg) (OMAP_MMC_REG_##reg << (host)->reg_shift) argument
81 #define OMAP_MMC_READ(host, reg) __raw_readw((host)->virt_base + OMAP_MMC_REG(host, reg)) argument
82 #define OMAP_MMC_WRITE(host, reg, val) __raw_writew((val), (host)->virt_base + OMAP_MMC_REG(host, r… argument
113 struct mmc_omap_host *host; member
181 if (slot != NULL && slot->host->fclk_enabled && slot->fclk_freq > 0) { in mmc_omap_fclk_offdelay()
187 static void mmc_omap_fclk_enable(struct mmc_omap_host *host, unsigned int enable) in mmc_omap_fclk_enable() argument
[all …]
Dmxcmmc.c175 static inline int is_imx31_mmc(struct mxcmci_host *host) in is_imx31_mmc() argument
177 return host->devtype == IMX31_MMC; in is_imx31_mmc()
180 static inline int is_mpc512x_mmc(struct mxcmci_host *host) in is_mpc512x_mmc() argument
182 return host->devtype == MPC512X_MMC; in is_mpc512x_mmc()
185 static inline u32 mxcmci_readl(struct mxcmci_host *host, int reg) in mxcmci_readl() argument
188 return ioread32be(host->base + reg); in mxcmci_readl()
190 return readl(host->base + reg); in mxcmci_readl()
193 static inline void mxcmci_writel(struct mxcmci_host *host, u32 val, int reg) in mxcmci_writel() argument
196 iowrite32be(val, host->base + reg); in mxcmci_writel()
198 writel(val, host->base + reg); in mxcmci_writel()
[all …]
Domap_hsmmc.c153 #define mmc_pdata(host) host->pdata argument
214 static void omap_hsmmc_start_dma_transfer(struct omap_hsmmc_host *host);
219 struct omap_hsmmc_host *host = mmc_priv(mmc); in omap_hsmmc_enable_supply() local
229 if (!IS_ERR(mmc->supply.vqmmc) && !host->vqmmc_enabled) { in omap_hsmmc_enable_supply()
235 host->vqmmc_enabled = true; in omap_hsmmc_enable_supply()
251 struct omap_hsmmc_host *host = mmc_priv(mmc); in omap_hsmmc_disable_supply() local
253 if (!IS_ERR(mmc->supply.vqmmc) && host->vqmmc_enabled) { in omap_hsmmc_disable_supply()
259 host->vqmmc_enabled = false; in omap_hsmmc_disable_supply()
280 static int omap_hsmmc_set_pbias(struct omap_hsmmc_host *host, bool power_on) in omap_hsmmc_set_pbias() argument
284 if (IS_ERR(host->pbias)) in omap_hsmmc_set_pbias()
[all …]
Dau1xmmc.c164 static inline void IRQ_ON(struct au1xmmc_host *host, u32 mask) in IRQ_ON() argument
166 u32 val = __raw_readl(HOST_CONFIG(host)); in IRQ_ON()
168 __raw_writel(val, HOST_CONFIG(host)); in IRQ_ON()
172 static inline void FLUSH_FIFO(struct au1xmmc_host *host) in FLUSH_FIFO() argument
174 u32 val = __raw_readl(HOST_CONFIG2(host)); in FLUSH_FIFO()
176 __raw_writel(val | SD_CONFIG2_FF, HOST_CONFIG2(host)); in FLUSH_FIFO()
183 __raw_writel(val, HOST_CONFIG2(host)); in FLUSH_FIFO()
187 static inline void IRQ_OFF(struct au1xmmc_host *host, u32 mask) in IRQ_OFF() argument
189 u32 val = __raw_readl(HOST_CONFIG(host)); in IRQ_OFF()
191 __raw_writel(val, HOST_CONFIG(host)); in IRQ_OFF()
[all …]
Datmel-mci.c385 u32 (*prepare_data)(struct atmel_mci *host, struct mmc_data *data);
386 void (*submit_data)(struct atmel_mci *host, struct mmc_data *data);
387 void (*stop_transfer)(struct atmel_mci *host);
410 struct atmel_mci *host; member
430 #define atmci_test_and_clear_pending(host, event) \ argument
431 test_and_clear_bit(event, &host->pending_events)
432 #define atmci_set_completed(host, event) \ argument
433 set_bit(event, &host->completed_events)
434 #define atmci_set_pending(host, event) \ argument
435 set_bit(event, &host->pending_events)
[all …]
Dsh_mmcif.c257 #define sh_mmcif_host_to_dev(host) (&host->pd->dev) argument
259 static inline void sh_mmcif_bitset(struct sh_mmcif_host *host, in sh_mmcif_bitset() argument
262 writel(val | readl(host->addr + reg), host->addr + reg); in sh_mmcif_bitset()
265 static inline void sh_mmcif_bitclr(struct sh_mmcif_host *host, in sh_mmcif_bitclr() argument
268 writel(~val & readl(host->addr + reg), host->addr + reg); in sh_mmcif_bitclr()
273 struct sh_mmcif_host *host = arg; in sh_mmcif_dma_complete() local
274 struct mmc_request *mrq = host->mrq; in sh_mmcif_dma_complete()
275 struct device *dev = sh_mmcif_host_to_dev(host); in sh_mmcif_dma_complete()
283 complete(&host->dma_complete); in sh_mmcif_dma_complete()
286 static void sh_mmcif_start_dma_rx(struct sh_mmcif_host *host) in sh_mmcif_start_dma_rx() argument
[all …]
Dpxamci.c76 static int pxamci_init_ocr(struct pxamci_host *host) in pxamci_init_ocr() argument
78 struct mmc_host *mmc = host->mmc; in pxamci_init_ocr()
87 mmc->ocr_avail = host->pdata ? in pxamci_init_ocr()
88 host->pdata->ocr_mask : in pxamci_init_ocr()
95 static inline int pxamci_set_power(struct pxamci_host *host, in pxamci_set_power() argument
99 struct mmc_host *mmc = host->mmc; in pxamci_set_power()
105 if (host->power) { in pxamci_set_power()
106 bool on = !!((1 << vdd) & host->pdata->ocr_mask); in pxamci_set_power()
107 gpiod_set_value(host->power, on); in pxamci_set_power()
110 if (host->pdata && host->pdata->setpower) in pxamci_set_power()
[all …]
Dmtk-sd.c667 static void msdc_reset_hw(struct msdc_host *host) in msdc_reset_hw() argument
671 sdr_set_bits(host->base + MSDC_CFG, MSDC_CFG_RST); in msdc_reset_hw()
672 readl_poll_timeout_atomic(host->base + MSDC_CFG, val, !(val & MSDC_CFG_RST), 0, 0); in msdc_reset_hw()
674 sdr_set_bits(host->base + MSDC_FIFOCS, MSDC_FIFOCS_CLR); in msdc_reset_hw()
675 readl_poll_timeout_atomic(host->base + MSDC_FIFOCS, val, in msdc_reset_hw()
678 val = readl(host->base + MSDC_INT); in msdc_reset_hw()
679 writel(val, host->base + MSDC_INT); in msdc_reset_hw()
682 static void msdc_cmd_next(struct msdc_host *host,
684 static void __msdc_enable_sdio_irq(struct msdc_host *host, int enb);
702 static inline void msdc_dma_setup(struct msdc_host *host, struct msdc_dma *dma, in msdc_dma_setup() argument
[all …]
Ddavinci_mmc.c216 static void mmc_davinci_sg_to_buf(struct mmc_davinci_host *host) in mmc_davinci_sg_to_buf() argument
218 host->buffer_bytes_left = sg_dma_len(host->sg); in mmc_davinci_sg_to_buf()
219 host->buffer = sg_virt(host->sg); in mmc_davinci_sg_to_buf()
220 if (host->buffer_bytes_left > host->bytes_left) in mmc_davinci_sg_to_buf()
221 host->buffer_bytes_left = host->bytes_left; in mmc_davinci_sg_to_buf()
224 static void davinci_fifo_data_trans(struct mmc_davinci_host *host, in davinci_fifo_data_trans() argument
230 if (host->buffer_bytes_left == 0) { in davinci_fifo_data_trans()
231 host->sg = sg_next(host->data->sg); in davinci_fifo_data_trans()
232 mmc_davinci_sg_to_buf(host); in davinci_fifo_data_trans()
235 p = host->buffer; in davinci_fifo_data_trans()
[all …]
Dmmci.c49 static void mmci_variant_init(struct mmci_host *host);
50 static void ux500_variant_init(struct mmci_host *host);
51 static void ux500v2_variant_init(struct mmci_host *host);
369 struct mmci_host *host = mmc_priv(mmc); in mmci_card_busy() local
373 spin_lock_irqsave(&host->lock, flags); in mmci_card_busy()
374 if (readl(host->base + MMCISTATUS) & host->variant->busy_detect_flag) in mmci_card_busy()
376 spin_unlock_irqrestore(&host->lock, flags); in mmci_card_busy()
381 static void mmci_reg_delay(struct mmci_host *host) in mmci_reg_delay() argument
390 if (host->cclk < 25000000) in mmci_reg_delay()
399 void mmci_write_clkreg(struct mmci_host *host, u32 clk) in mmci_write_clkreg() argument
[all …]
Dalcor.c72 static inline void alcor_rmw8(struct alcor_sdmmc_host *host, unsigned int addr, in alcor_rmw8() argument
75 struct alcor_pci_priv *priv = host->alcor_pci; in alcor_rmw8()
87 static inline void alcor_mask_sd_irqs(struct alcor_sdmmc_host *host) in alcor_mask_sd_irqs() argument
89 struct alcor_pci_priv *priv = host->alcor_pci; in alcor_mask_sd_irqs()
94 static inline void alcor_unmask_sd_irqs(struct alcor_sdmmc_host *host) in alcor_unmask_sd_irqs() argument
96 struct alcor_pci_priv *priv = host->alcor_pci; in alcor_unmask_sd_irqs()
104 static void alcor_reset(struct alcor_sdmmc_host *host, u8 val) in alcor_reset() argument
106 struct alcor_pci_priv *priv = host->alcor_pci; in alcor_reset()
116 dev_err(host->dev, "%s: timeout\n", __func__); in alcor_reset()
122 static void alcor_data_set_dma(struct alcor_sdmmc_host *host) in alcor_data_set_dma() argument
[all …]
/linux-6.6.21/drivers/scsi/
Dinitio.c117 static struct scsi_ctrl_blk *initio_find_busy_scb(struct initio_host * host, u16 tarlun);
118 static struct scsi_ctrl_blk *initio_find_done_scb(struct initio_host * host);
120 static int tulip_main(struct initio_host * host);
122 static int initio_next_state(struct initio_host * host);
123 static int initio_state_1(struct initio_host * host);
124 static int initio_state_2(struct initio_host * host);
125 static int initio_state_3(struct initio_host * host);
126 static int initio_state_4(struct initio_host * host);
127 static int initio_state_5(struct initio_host * host);
128 static int initio_state_6(struct initio_host * host);
[all …]
/linux-6.6.21/drivers/mmc/core/
Dhost.c41 struct mmc_host *host = cls_dev_to_mmc_host(dev); in mmc_host_class_prepare() local
47 if (!host->bus_ops) in mmc_host_class_prepare()
51 if (host->bus_ops->pre_suspend) in mmc_host_class_prepare()
52 return host->bus_ops->pre_suspend(host); in mmc_host_class_prepare()
59 struct mmc_host *host = cls_dev_to_mmc_host(dev); in mmc_host_class_complete() local
61 _mmc_detect_change(host, 0, false); in mmc_host_class_complete()
76 struct mmc_host *host = cls_dev_to_mmc_host(dev); in mmc_host_classdev_release() local
77 wakeup_source_unregister(host->ws); in mmc_host_classdev_release()
78 if (of_alias_get_id(host->parent->of_node, "mmc") < 0) in mmc_host_classdev_release()
79 ida_simple_remove(&mmc_host_ida, host->index); in mmc_host_classdev_release()
[all …]
Dcore.c82 static void mmc_should_fail_request(struct mmc_host *host, in mmc_should_fail_request() argument
97 !should_fail(&host->fail_mmc_request, data->blksz * data->blocks)) in mmc_should_fail_request()
106 static inline void mmc_should_fail_request(struct mmc_host *host, in mmc_should_fail_request() argument
119 void mmc_command_done(struct mmc_host *host, struct mmc_request *mrq) in mmc_command_done() argument
127 mmc_hostname(host), mrq->cmd->opcode); in mmc_command_done()
139 void mmc_request_done(struct mmc_host *host, struct mmc_request *mrq) in mmc_request_done() argument
146 !host->retune_crc_disable && in mmc_request_done()
150 mmc_retune_needed(host); in mmc_request_done()
152 if (err && cmd->retries && mmc_host_is_spi(host)) { in mmc_request_done()
157 if (host->ongoing_mrq == mrq) in mmc_request_done()
[all …]
/linux-6.6.21/fs/lockd/
Dhost.c37 #define for_each_host(host, chain, table) \ argument
40 hlist_for_each_entry((host), (chain), h_hash)
42 #define for_each_host_safe(host, next, chain, table) \ argument
45 hlist_for_each_entry_safe((host), (next), \
114 struct nlm_host *host = NULL; in nlm_alloc_host() local
120 host = NULL; in nlm_alloc_host()
130 host = kmalloc(sizeof(*host), GFP_KERNEL); in nlm_alloc_host()
131 if (unlikely(host == NULL)) { in nlm_alloc_host()
137 memcpy(nlm_addr(host), ni->sap, ni->salen); in nlm_alloc_host()
138 host->h_addrlen = ni->salen; in nlm_alloc_host()
[all …]
/linux-6.6.21/drivers/memstick/host/
Djmb38x_ms.c154 static unsigned int jmb38x_ms_read_data(struct jmb38x_ms_host *host, in jmb38x_ms_read_data() argument
159 while (host->io_pos && length) { in jmb38x_ms_read_data()
160 buf[off++] = host->io_word[0] & 0xff; in jmb38x_ms_read_data()
161 host->io_word[0] >>= 8; in jmb38x_ms_read_data()
163 host->io_pos--; in jmb38x_ms_read_data()
169 while (!(STATUS_FIFO_EMPTY & readl(host->addr + STATUS))) { in jmb38x_ms_read_data()
172 *(unsigned int *)(buf + off) = __raw_readl(host->addr + DATA); in jmb38x_ms_read_data()
178 && !(STATUS_FIFO_EMPTY & readl(host->addr + STATUS))) { in jmb38x_ms_read_data()
179 host->io_word[0] = readl(host->addr + DATA); in jmb38x_ms_read_data()
180 for (host->io_pos = 4; host->io_pos; --host->io_pos) { in jmb38x_ms_read_data()
[all …]
Dtifm_ms.c82 static unsigned int tifm_ms_read_data(struct tifm_ms *host, in tifm_ms_read_data() argument
85 struct tifm_dev *sock = host->dev; in tifm_ms_read_data()
88 while (host->io_pos && length) { in tifm_ms_read_data()
89 buf[off++] = host->io_word & 0xff; in tifm_ms_read_data()
90 host->io_word >>= 8; in tifm_ms_read_data()
92 host->io_pos--; in tifm_ms_read_data()
109 host->io_word = readl(sock->addr + SOCK_MS_DATA); in tifm_ms_read_data()
110 for (host->io_pos = 4; host->io_pos; --host->io_pos) { in tifm_ms_read_data()
111 buf[off++] = host->io_word & 0xff; in tifm_ms_read_data()
112 host->io_word >>= 8; in tifm_ms_read_data()
[all …]
/linux-6.6.21/drivers/mtd/nand/raw/
Dhisi504_nand.c144 static inline unsigned int hinfc_read(struct hinfc_host *host, unsigned int reg) in hinfc_read() argument
146 return readl(host->iobase + reg); in hinfc_read()
149 static inline void hinfc_write(struct hinfc_host *host, unsigned int value, in hinfc_write() argument
152 writel(value, host->iobase + reg); in hinfc_write()
155 static void wait_controller_finished(struct hinfc_host *host) in wait_controller_finished() argument
161 val = hinfc_read(host, HINFC504_STATUS); in wait_controller_finished()
162 if (host->command == NAND_CMD_ERASE2) { in wait_controller_finished()
166 val = hinfc_read(host, HINFC504_STATUS); in wait_controller_finished()
176 dev_err(host->dev, "Wait NAND controller exec cmd timeout.\n"); in wait_controller_finished()
179 static void hisi_nfc_dma_transfer(struct hinfc_host *host, int todev) in hisi_nfc_dma_transfer() argument
[all …]

12345678910>>...73