| /kernel/linux/linux-6.6/drivers/mmc/host/ |
| D | sdhci.c | 3 * linux/drivers/mmc/host/sdhci.c - Secure Digital Host Controller Interface driver 30 #include <linux/mmc/host.h> 40 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() [all …]
|
| D | tmio_mmc_core.c | 36 #include <linux/mmc/host.h> 53 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() [all …]
|
| D | omap.c | 3 * linux/drivers/mmc/host/omap.c 23 #include <linux/mmc/host.h> 73 #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 [all …]
|
| D | bcm2835.c | 48 #include <linux/mmc/host.h> 60 #define SDHSTS 0x20 /* SD host status - 11 R/W */ 63 #define SDHCFG 0x38 /* Host configuration - 2 R/W */ 64 #define SDHBCT 0x3c /* Host byte count (debug) - 32 R/W */ 66 #define SDHBLC 0x50 /* Host block count (SDIO/SDHC) - 9 R/W */ 192 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() [all …]
|
| D | dw_mmc.c | 31 #include <linux/mmc/host.h> 118 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() [all …]
|
| D | mxcmmc.c | 3 * linux/drivers/mmc/host/mxcmmc.c - Freescale i.MX MMCI driver 25 #include <linux/mmc/host.h> 175 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 [all …]
|
| D | au1xmmc.c | 3 * linux/drivers/mmc/host/au1xmmc.c - AU1XX0 MMC driver 43 #include <linux/mmc/host.h> 124 /* Status flags used by the host structure */ 164 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() [all …]
|
| D | usdhi6rol0.c | 16 #include <linux/mmc/host.h> 209 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 [all …]
|
| /kernel/linux/linux-5.10/drivers/mmc/host/ |
| D | sdhci.c | 3 * linux/drivers/mmc/host/sdhci.c - Secure Digital Host Controller Interface driver 31 #include <linux/mmc/host.h> 41 pr_debug("%s: " DRIVER_NAME ": " f, mmc_hostname(host->mmc), ## x) 44 pr_err("%s: " DRIVER_NAME ": " f, mmc_hostname(host->mmc), ## x) 51 static void sdhci_enable_preset_value(struct sdhci_host *host, bool enable); 53 static bool sdhci_send_command(struct sdhci_host *host, struct mmc_command *cmd); 55 void sdhci_dumpregs(struct sdhci_host *host) in sdhci_dumpregs() argument 60 sdhci_readl(host, SDHCI_DMA_ADDRESS), in sdhci_dumpregs() 61 sdhci_readw(host, SDHCI_HOST_VERSION)); in sdhci_dumpregs() 63 sdhci_readw(host, SDHCI_BLOCK_SIZE), in sdhci_dumpregs() [all …]
|
| D | s3cmci.c | 15 #include <linux/mmc/host.h> 130 #define dbg(host, channels, args...) \ argument 133 dev_err(&host->pdev->dev, args); \ 135 dev_info(&host->pdev->dev, args); \ 137 dev_dbg(&host->pdev->dev, args); \ 140 static void finalize_request(struct s3cmci_host *host); 142 static void s3cmci_reset(struct s3cmci_host *host); 146 static void dbg_dumpregs(struct s3cmci_host *host, char *prefix) in dbg_dumpregs() argument 151 con = readl(host->base + S3C2410_SDICON); in dbg_dumpregs() 152 pre = readl(host->base + S3C2410_SDIPRE); in dbg_dumpregs() [all …]
|
| D | omap.c | 3 * linux/drivers/mmc/host/omap.c 23 #include <linux/mmc/host.h> 72 #define mmc_omap7xx() (host->features & MMC_OMAP7XX) 73 #define mmc_omap15xx() (host->features & MMC_OMAP15XX) 74 #define mmc_omap16xx() (host->features & MMC_OMAP16XX) 76 #define mmc_omap1() (host->features & MMC_OMAP1_MASK) 79 #define OMAP_MMC_REG(host, reg) (OMAP_MMC_REG_##reg << (host)->reg_shift) argument 80 #define OMAP_MMC_READ(host, reg) __raw_readw((host)->virt_base + OMAP_MMC_REG(host, reg)) argument 81 #define OMAP_MMC_WRITE(host, reg, val) __raw_writew((val), (host)->virt_base + OMAP_MMC_REG(host, r… argument 112 struct mmc_omap_host *host; member [all …]
|
| D | bcm2835.c | 48 #include <linux/mmc/host.h> 60 #define SDHSTS 0x20 /* SD host status - 11 R/W */ 63 #define SDHCFG 0x38 /* Host configuration - 2 R/W */ 64 #define SDHBCT 0x3c /* Host byte count (debug) - 32 R/W */ 66 #define SDHBLC 0x50 /* Host block count (SDIO/SDHC) - 9 R/W */ 192 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() [all …]
|
| D | dw_mmc.c | 29 #include <linux/mmc/host.h> 116 spin_lock_bh(&slot->host->lock); in dw_mci_req_show() 142 spin_unlock_bh(&slot->host->lock); in dw_mci_req_show() 150 struct dw_mci *host = s->private; in dw_mci_regs_show() local 152 pm_runtime_get_sync(host->dev); in dw_mci_regs_show() 154 seq_printf(s, "STATUS:\t0x%08x\n", mci_readl(host, STATUS)); in dw_mci_regs_show() 155 seq_printf(s, "RINTSTS:\t0x%08x\n", mci_readl(host, RINTSTS)); in dw_mci_regs_show() 156 seq_printf(s, "CMD:\t0x%08x\n", mci_readl(host, CMD)); in dw_mci_regs_show() 157 seq_printf(s, "CTRL:\t0x%08x\n", mci_readl(host, CTRL)); in dw_mci_regs_show() 158 seq_printf(s, "INTMASK:\t0x%08x\n", mci_readl(host, INTMASK)); in dw_mci_regs_show() [all …]
|
| D | tmio_mmc_core.c | 36 #include <linux/mmc/host.h> 53 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() [all …]
|
| D | mxcmmc.c | 3 * linux/drivers/mmc/host/mxcmmc.c - Freescale i.MX MMCI driver 25 #include <linux/mmc/host.h> 192 static inline int is_imx31_mmc(struct mxcmci_host *host) in is_imx31_mmc() argument 194 return host->devtype == IMX31_MMC; in is_imx31_mmc() 197 static inline int is_mpc512x_mmc(struct mxcmci_host *host) in is_mpc512x_mmc() argument 199 return host->devtype == MPC512X_MMC; in is_mpc512x_mmc() 202 static inline u32 mxcmci_readl(struct mxcmci_host *host, int reg) in mxcmci_readl() argument 205 return ioread32be(host->base + reg); in mxcmci_readl() 207 return readl(host->base + reg); in mxcmci_readl() 210 static inline void mxcmci_writel(struct mxcmci_host *host, u32 val, int reg) in mxcmci_writel() argument [all …]
|
| D | au1xmmc.c | 3 * linux/drivers/mmc/host/au1xmmc.c - AU1XX0 MMC driver 43 #include <linux/mmc/host.h> 124 /* Status flags used by the host structure */ 164 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() [all …]
|
| /kernel/linux/linux-5.10/drivers/scsi/arm/ |
| D | acornscsi.c | 176 static void acornscsi_done(AS_Host *host, struct scsi_cmnd **SCpntp, 178 static int acornscsi_reconnect_finish(AS_Host *host); 179 static void acornscsi_dma_cleanup(AS_Host *host); 180 static void acornscsi_abortcmd(AS_Host *host, unsigned char tag); 195 static inline void sbic_arm_write(AS_Host *host, unsigned int reg, unsigned int value) in sbic_arm_write() argument 197 writeb(reg, host->base + SBIC_REGIDX); in sbic_arm_write() 198 writeb(value, host->base + SBIC_REGVAL); in sbic_arm_write() 201 static inline int sbic_arm_read(AS_Host *host, unsigned int reg) in sbic_arm_read() argument 204 return readl(host->base + SBIC_REGIDX) & 255; in sbic_arm_read() 205 writeb(reg, host->base + SBIC_REGIDX); in sbic_arm_read() [all …]
|
| /kernel/linux/linux-6.6/drivers/scsi/arm/ |
| D | acornscsi.c | 170 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 …]
|
| /kernel/linux/linux-5.10/drivers/scsi/ |
| D | initio.c | 14 * This is the Linux low-level SCSI driver for Initio INI-9X00U/UW SCSI host 117 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); [all …]
|
| /kernel/linux/linux-6.6/drivers/scsi/ |
| D | initio.c | 14 * This is the Linux low-level SCSI driver for Initio INI-9X00U/UW SCSI host 117 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); [all …]
|
| /kernel/linux/linux-5.10/drivers/mmc/core/ |
| D | host.c | 3 * linux/drivers/mmc/core/host.c 9 * MMC host class device management 23 #include <linux/mmc/host.h> 28 #include "host.h" 40 struct mmc_host *host = cls_dev_to_mmc_host(dev); in mmc_host_class_prepare() local 46 if (!host->bus_ops) in mmc_host_class_prepare() 50 if (host->bus_ops->pre_suspend) in mmc_host_class_prepare() 51 return host->bus_ops->pre_suspend(host); in mmc_host_class_prepare() 58 struct mmc_host *host = cls_dev_to_mmc_host(dev); in mmc_host_class_complete() local 60 _mmc_detect_change(host, 0, false); in mmc_host_class_complete() [all …]
|
| /kernel/linux/linux-6.6/fs/lockd/ |
| D | host.c | 3 * linux/fs/lockd/host.c 37 #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() [all …]
|
| /kernel/linux/linux-5.10/fs/lockd/ |
| D | host.c | 3 * linux/fs/lockd/host.c 37 #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() [all …]
|
| /kernel/linux/linux-6.6/drivers/memstick/host/ |
| D | jmb38x_ms.c | 154 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 …]
|
| /kernel/linux/linux-5.10/drivers/memstick/host/ |
| D | jmb38x_ms.c | 154 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 …]
|