| /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-4.19/drivers/mmc/host/ |
| D | sdhci.c | 2 * linux/drivers/mmc/host/sdhci.c - Secure Digital Host Controller Interface driver 33 #include <linux/mmc/host.h> 43 pr_debug("%s: " DRIVER_NAME ": " f, mmc_hostname(host->mmc), ## x) 46 pr_err("%s: " DRIVER_NAME ": " f, mmc_hostname(host->mmc), ## x) 55 static void sdhci_enable_preset_value(struct sdhci_host *host, bool enable); 57 void sdhci_dumpregs(struct sdhci_host *host) in sdhci_dumpregs() argument 62 sdhci_readl(host, SDHCI_DMA_ADDRESS), in sdhci_dumpregs() 63 sdhci_readw(host, SDHCI_HOST_VERSION)); in sdhci_dumpregs() 65 sdhci_readw(host, SDHCI_BLOCK_SIZE), in sdhci_dumpregs() 66 sdhci_readw(host, SDHCI_BLOCK_COUNT)); in sdhci_dumpregs() [all …]
|
| D | omap.c | 2 * linux/drivers/mmc/host/omap.c 26 #include <linux/mmc/host.h> 75 #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 115 struct mmc_omap_host *host; member [all …]
|
| D | tmio_mmc_core.c | 38 #include <linux/mmc/host.h> 56 static inline void tmio_mmc_start_dma(struct tmio_mmc_host *host, in tmio_mmc_start_dma() argument 59 if (host->dma_ops) in tmio_mmc_start_dma() 60 host->dma_ops->start(host, data); in tmio_mmc_start_dma() 63 static inline void tmio_mmc_enable_dma(struct tmio_mmc_host *host, bool enable) in tmio_mmc_enable_dma() argument 65 if (host->dma_ops) in tmio_mmc_enable_dma() 66 host->dma_ops->enable(host, enable); in tmio_mmc_enable_dma() 69 static inline void tmio_mmc_request_dma(struct tmio_mmc_host *host, in tmio_mmc_request_dma() argument 72 if (host->dma_ops) { in tmio_mmc_request_dma() 73 host->dma_ops->request(host, pdata); in tmio_mmc_request_dma() [all …]
|
| D | s3cmci.c | 18 #include <linux/mmc/host.h> 139 #define dbg(host, channels, args...) \ argument 142 dev_err(&host->pdev->dev, args); \ 144 dev_info(&host->pdev->dev, args); \ 146 dev_dbg(&host->pdev->dev, args); \ 149 static void finalize_request(struct s3cmci_host *host); 151 static void s3cmci_reset(struct s3cmci_host *host); 155 static void dbg_dumpregs(struct s3cmci_host *host, char *prefix) in dbg_dumpregs() argument 160 con = readl(host->base + S3C2410_SDICON); in dbg_dumpregs() 161 pre = readl(host->base + S3C2410_SDIPRE); in dbg_dumpregs() [all …]
|
| D | bcm2835.c | 59 #include <linux/mmc/host.h> 71 #define SDHSTS 0x20 /* SD host status - 11 R/W */ 74 #define SDHCFG 0x38 /* Host configuration - 2 R/W */ 75 #define SDHBCT 0x3c /* Host byte count (debug) - 32 R/W */ 77 #define SDHBLC 0x50 /* Host block count (SDIO/SDHC) - 9 R/W */ 204 static void bcm2835_dumpcmd(struct bcm2835_host *host, struct mmc_command *cmd, in bcm2835_dumpcmd() argument 207 struct device *dev = &host->pdev->dev; in bcm2835_dumpcmd() 213 (cmd == host->cmd) ? '>' : ' ', in bcm2835_dumpcmd() 219 static void bcm2835_dumpregs(struct bcm2835_host *host) in bcm2835_dumpregs() argument 221 struct mmc_request *mrq = host->mrq; in bcm2835_dumpregs() [all …]
|
| D | dw_mmc.c | 33 #include <linux/mmc/host.h> 120 spin_lock_bh(&slot->host->lock); in dw_mci_req_show() 146 spin_unlock_bh(&slot->host->lock); in dw_mci_req_show() 154 struct dw_mci *host = s->private; in dw_mci_regs_show() local 156 pm_runtime_get_sync(host->dev); in dw_mci_regs_show() 158 seq_printf(s, "STATUS:\t0x%08x\n", mci_readl(host, STATUS)); in dw_mci_regs_show() 159 seq_printf(s, "RINTSTS:\t0x%08x\n", mci_readl(host, RINTSTS)); in dw_mci_regs_show() 160 seq_printf(s, "CMD:\t0x%08x\n", mci_readl(host, CMD)); in dw_mci_regs_show() 161 seq_printf(s, "CTRL:\t0x%08x\n", mci_readl(host, CTRL)); in dw_mci_regs_show() 162 seq_printf(s, "INTMASK:\t0x%08x\n", mci_readl(host, INTMASK)); in dw_mci_regs_show() [all …]
|
| D | au1xmmc.c | 2 * linux/drivers/mmc/host/au1xmmc.c - AU1XX0 MMC driver 45 #include <linux/mmc/host.h> 126 /* Status flags used by the host structure */ 166 static inline void IRQ_ON(struct au1xmmc_host *host, u32 mask) in IRQ_ON() argument 168 u32 val = __raw_readl(HOST_CONFIG(host)); in IRQ_ON() 170 __raw_writel(val, HOST_CONFIG(host)); in IRQ_ON() 174 static inline void FLUSH_FIFO(struct au1xmmc_host *host) in FLUSH_FIFO() argument 176 u32 val = __raw_readl(HOST_CONFIG2(host)); in FLUSH_FIFO() 178 __raw_writel(val | SD_CONFIG2_FF, HOST_CONFIG2(host)); in FLUSH_FIFO() 185 __raw_writel(val, HOST_CONFIG2(host)); in FLUSH_FIFO() [all …]
|
| D | mxcmmc.c | 2 * linux/drivers/mmc/host/mxcmmc.c - Freescale i.MX MMCI driver 29 #include <linux/mmc/host.h> 198 static inline int is_imx31_mmc(struct mxcmci_host *host) in is_imx31_mmc() argument 200 return host->devtype == IMX31_MMC; in is_imx31_mmc() 203 static inline int is_mpc512x_mmc(struct mxcmci_host *host) in is_mpc512x_mmc() argument 205 return host->devtype == MPC512X_MMC; in is_mpc512x_mmc() 208 static inline u32 mxcmci_readl(struct mxcmci_host *host, int reg) in mxcmci_readl() argument 211 return ioread32be(host->base + reg); in mxcmci_readl() 213 return readl(host->base + reg); in mxcmci_readl() 216 static inline void mxcmci_writel(struct mxcmci_host *host, u32 val, int reg) in mxcmci_writel() argument [all …]
|
| /kernel/linux/linux-4.19/drivers/mmc/core/ |
| D | host.c | 2 * linux/drivers/mmc/core/host.c 12 * MMC host class device management 25 #include <linux/mmc/host.h> 30 #include "host.h" 41 struct mmc_host *host = cls_dev_to_mmc_host(dev); in mmc_host_classdev_release() local 42 ida_simple_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() [all …]
|
| /kernel/linux/linux-4.19/drivers/scsi/arm/ |
| D | acornscsi.c | 179 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 …]
|
| /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-4.19/drivers/scsi/ |
| D | initio.c | 28 * This is the Linux low-level SCSI driver for Initio INI-9X00U/UW SCSI host 131 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); [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-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-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-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 …]
|
| /kernel/linux/linux-4.19/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), \ 113 struct nlm_host *host = NULL; in nlm_alloc_host() local 119 host = NULL; in nlm_alloc_host() 129 host = kmalloc(sizeof(*host), GFP_KERNEL); in nlm_alloc_host() 130 if (unlikely(host == NULL)) { in nlm_alloc_host() 136 memcpy(nlm_addr(host), ni->sap, ni->salen); in nlm_alloc_host() [all …]
|