/linux-4.4.14/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 …]
|
D | cumana_1.c | 22 #define priv(host) ((struct NCR5380_hostdata *)(host)->hostdata) argument 48 NCR5380_pwrite(struct Scsi_Host *host, unsigned char *addr, int len) in NCR5380_pwrite() argument 51 void __iomem *dma = priv(host)->dma + 0x2000; in NCR5380_pwrite() 55 writeb(0x02, priv(host)->base + CTRL); in NCR5380_pwrite() 61 status = readb(priv(host)->base + STAT); in NCR5380_pwrite() 80 writeb(0x12, priv(host)->base + CTRL); in NCR5380_pwrite() 85 status = readb(priv(host)->base + STAT); in NCR5380_pwrite() 95 status = readb(priv(host)->base + STAT); in NCR5380_pwrite() 106 writeb(priv(host)->ctrl | 0x40, priv(host)->base + CTRL); in NCR5380_pwrite() 111 NCR5380_pread(struct Scsi_Host *host, unsigned char *addr, int len) in NCR5380_pread() argument [all …]
|
D | oak.c | 22 #define priv(host) ((struct NCR5380_hostdata *)(host)->hostdata) argument 24 #define NCR5380_setup(host) _base = priv(host)->base argument 122 struct Scsi_Host *host; in oakscsi_probe() local 129 host = scsi_host_alloc(&oakscsi_template, sizeof(struct NCR5380_hostdata)); in oakscsi_probe() 130 if (!host) { in oakscsi_probe() 135 priv(host)->base = ioremap(ecard_resource_start(ec, ECARD_RES_MEMC), in oakscsi_probe() 137 if (!priv(host)->base) { in oakscsi_probe() 142 host->irq = NO_IRQ; in oakscsi_probe() 143 host->n_io_port = 255; in oakscsi_probe() 145 NCR5380_init(host, 0); in oakscsi_probe() [all …]
|
D | powertec.c | 102 powertecscsi_terminator_ctl(struct Scsi_Host *host, int on_off) in powertecscsi_terminator_ctl() argument 104 struct powertec_info *info = (struct powertec_info *)host->hostdata; in powertecscsi_terminator_ctl() 131 powertecscsi_dma_setup(struct Scsi_Host *host, struct scsi_pointer *SCp, in powertecscsi_dma_setup() argument 134 struct powertec_info *info = (struct powertec_info *)host->hostdata; in powertecscsi_dma_setup() 135 struct device *dev = scsi_get_device(host); in powertecscsi_dma_setup() 173 powertecscsi_dma_stop(struct Scsi_Host *host, struct scsi_pointer *SCp) in powertecscsi_dma_stop() argument 175 struct powertec_info *info = (struct powertec_info *)host->hostdata; in powertecscsi_dma_stop() 185 const char *powertecscsi_info(struct Scsi_Host *host) in powertecscsi_info() argument 187 struct powertec_info *info = (struct powertec_info *)host->hostdata; in powertecscsi_info() 191 host->hostt->name, info->info.scsi.type, info->ec->slot_no, in powertecscsi_info() [all …]
|
D | cumana_2.c | 122 cumanascsi_2_terminator_ctl(struct Scsi_Host *host, int on_off) in cumanascsi_2_terminator_ctl() argument 124 struct cumanascsi2_info *info = (struct cumanascsi2_info *)host->hostdata; in cumanascsi_2_terminator_ctl() 157 cumanascsi_2_dma_setup(struct Scsi_Host *host, struct scsi_pointer *SCp, in cumanascsi_2_dma_setup() argument 160 struct cumanascsi2_info *info = (struct cumanascsi2_info *)host->hostdata; in cumanascsi_2_dma_setup() 161 struct device *dev = scsi_get_device(host); in cumanascsi_2_dma_setup() 209 cumanascsi_2_dma_pseudo(struct Scsi_Host *host, struct scsi_pointer *SCp, in cumanascsi_2_dma_pseudo() argument 212 struct cumanascsi2_info *info = (struct cumanascsi2_info *)host->hostdata; in cumanascsi_2_dma_pseudo() 283 cumanascsi_2_dma_stop(struct Scsi_Host *host, struct scsi_pointer *SCp) in cumanascsi_2_dma_stop() argument 285 struct cumanascsi2_info *info = (struct cumanascsi2_info *)host->hostdata; in cumanascsi_2_dma_stop() 297 const char *cumanascsi_2_info(struct Scsi_Host *host) in cumanascsi_2_info() argument [all …]
|
D | eesox.c | 121 eesoxscsi_terminator_ctl(struct Scsi_Host *host, int on_off) in eesoxscsi_terminator_ctl() argument 123 struct eesoxscsi_info *info = (struct eesoxscsi_info *)host->hostdata; in eesoxscsi_terminator_ctl() 126 spin_lock_irqsave(host->host_lock, flags); in eesoxscsi_terminator_ctl() 133 spin_unlock_irqrestore(host->host_lock, flags); in eesoxscsi_terminator_ctl() 158 eesoxscsi_dma_setup(struct Scsi_Host *host, struct scsi_pointer *SCp, in eesoxscsi_dma_setup() argument 161 struct eesoxscsi_info *info = (struct eesoxscsi_info *)host->hostdata; in eesoxscsi_dma_setup() 162 struct device *dev = scsi_get_device(host); in eesoxscsi_dma_setup() 353 eesoxscsi_dma_pseudo(struct Scsi_Host *host, struct scsi_pointer *SCp, in eesoxscsi_dma_pseudo() argument 356 struct eesoxscsi_info *info = (struct eesoxscsi_info *)host->hostdata; in eesoxscsi_dma_pseudo() 370 eesoxscsi_dma_stop(struct Scsi_Host *host, struct scsi_pointer *SCp) in eesoxscsi_dma_stop() argument [all …]
|
D | arxescsi.c | 66 arxescsi_dma_setup(struct Scsi_Host *host, struct scsi_pointer *SCp, in arxescsi_dma_setup() argument 112 arxescsi_dma_pseudo(struct Scsi_Host *host, struct scsi_pointer *SCp, in arxescsi_dma_pseudo() argument 115 struct arxescsi_info *info = (struct arxescsi_info *)host->hostdata; in arxescsi_dma_pseudo() 198 static void arxescsi_dma_stop(struct Scsi_Host *host, struct scsi_pointer *SCp) in arxescsi_dma_stop() argument 211 static const char *arxescsi_info(struct Scsi_Host *host) in arxescsi_info() argument 213 struct arxescsi_info *info = (struct arxescsi_info *)host->hostdata; in arxescsi_info() 217 host->hostt->name, info->info.scsi.type, info->ec->slot_no, in arxescsi_info() 224 arxescsi_show_info(struct seq_file *m, struct Scsi_Host *host) in arxescsi_show_info() argument 227 info = (struct arxescsi_info *)host->hostdata; in arxescsi_show_info() 254 struct Scsi_Host *host; in arxescsi_probe() local [all …]
|
D | acornscsi.h | 266 host->status[(_q)][host->status_ptr[(_q)]].when = jiffies; \ 267 host->status[(_q)][host->status_ptr[(_q)]].ssr = (_ssr); \ 268 host->status[(_q)][host->status_ptr[(_q)]].ph = (_ph); \ 269 host->status[(_q)][host->status_ptr[(_q)]].irq = (_irq); \ 270 host->status_ptr[(_q)] = (host->status_ptr[(_q)] + 1) & (STATUS_BUFFER_SIZE - 1); \ 278 struct Scsi_Host *host; /* host */ member
|
/linux-4.4.14/drivers/mmc/host/ |
D | sdhci.c | 55 static void sdhci_enable_preset_value(struct sdhci_host *host, bool enable); 56 static int sdhci_pre_dma_transfer(struct sdhci_host *host, 58 static int sdhci_do_get_cd(struct sdhci_host *host); 61 static int sdhci_runtime_pm_get(struct sdhci_host *host); 62 static int sdhci_runtime_pm_put(struct sdhci_host *host); 63 static void sdhci_runtime_pm_bus_on(struct sdhci_host *host); 64 static void sdhci_runtime_pm_bus_off(struct sdhci_host *host); 66 static inline int sdhci_runtime_pm_get(struct sdhci_host *host) in sdhci_runtime_pm_get() argument 70 static inline int sdhci_runtime_pm_put(struct sdhci_host *host) in sdhci_runtime_pm_put() argument 74 static void sdhci_runtime_pm_bus_on(struct sdhci_host *host) in sdhci_runtime_pm_bus_on() argument [all …]
|
D | wbsd.c | 87 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 …]
|
D | s3cmci.c | 135 #define dbg(host, channels, args...) \ argument 138 dev_err(&host->pdev->dev, args); \ 140 dev_info(&host->pdev->dev, args); \ 142 dev_dbg(&host->pdev->dev, args); \ 145 static void finalize_request(struct s3cmci_host *host); 147 static void s3cmci_reset(struct s3cmci_host *host); 151 static void dbg_dumpregs(struct s3cmci_host *host, char *prefix) in dbg_dumpregs() argument 156 con = readl(host->base + S3C2410_SDICON); in dbg_dumpregs() 157 pre = readl(host->base + S3C2410_SDIPRE); in dbg_dumpregs() 158 cmdarg = readl(host->base + S3C2410_SDICMDARG); in dbg_dumpregs() [all …]
|
D | tmio_mmc_dma.c | 26 void tmio_mmc_enable_dma(struct tmio_mmc_host *host, bool enable) in tmio_mmc_enable_dma() argument 28 if (!host->chan_tx || !host->chan_rx) in tmio_mmc_enable_dma() 31 if (host->dma->enable) in tmio_mmc_enable_dma() 32 host->dma->enable(host, enable); in tmio_mmc_enable_dma() 35 void tmio_mmc_abort_dma(struct tmio_mmc_host *host) in tmio_mmc_abort_dma() argument 37 tmio_mmc_enable_dma(host, false); in tmio_mmc_abort_dma() 39 if (host->chan_rx) in tmio_mmc_abort_dma() 40 dmaengine_terminate_all(host->chan_rx); in tmio_mmc_abort_dma() 41 if (host->chan_tx) in tmio_mmc_abort_dma() 42 dmaengine_terminate_all(host->chan_tx); in tmio_mmc_abort_dma() [all …]
|
D | usdhi6rol0.c | 205 static void usdhi6_write(struct usdhi6_host *host, u32 reg, u32 data) in usdhi6_write() argument 207 iowrite32(data, host->base + reg); in usdhi6_write() 208 dev_vdbg(mmc_dev(host->mmc), "%s(0x%p + 0x%x) = 0x%x\n", __func__, in usdhi6_write() 209 host->base, reg, data); in usdhi6_write() 212 static void usdhi6_write16(struct usdhi6_host *host, u32 reg, u16 data) in usdhi6_write16() argument 214 iowrite16(data, host->base + reg); in usdhi6_write16() 215 dev_vdbg(mmc_dev(host->mmc), "%s(0x%p + 0x%x) = 0x%x\n", __func__, in usdhi6_write16() 216 host->base, reg, data); in usdhi6_write16() 219 static u32 usdhi6_read(struct usdhi6_host *host, u32 reg) in usdhi6_read() argument 221 u32 data = ioread32(host->base + reg); in usdhi6_read() [all …]
|
D | mxcmmc.c | 197 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 …]
|
D | dw_mmc.c | 105 static bool dw_mci_reset(struct dw_mci *host); 106 static bool dw_mci_ctrl_reset(struct dw_mci *host, u32 reset); 119 spin_lock_bh(&slot->host->lock); in dw_mci_req_show() 145 spin_unlock_bh(&slot->host->lock); in dw_mci_req_show() 191 struct dw_mci *host = slot->host; in dw_mci_init_debugfs() local 199 node = debugfs_create_file("regs", S_IRUSR, root, host, in dw_mci_init_debugfs() 209 node = debugfs_create_u32("state", S_IRUSR, root, (u32 *)&host->state); in dw_mci_init_debugfs() 214 (u32 *)&host->pending_events); in dw_mci_init_debugfs() 219 (u32 *)&host->completed_events); in dw_mci_init_debugfs() 236 struct dw_mci *host = slot->host; in dw_mci_prepare_command() local [all …]
|
D | au1xmmc.c | 165 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 …]
|
D | omap_hsmmc.c | 160 #define mmc_pdata(host) host->pdata argument 232 static void omap_hsmmc_start_dma_transfer(struct omap_hsmmc_host *host); 236 struct omap_hsmmc_host *host = dev_get_drvdata(dev); in omap_hsmmc_card_detect() local 238 return mmc_gpio_get_cd(host->mmc); in omap_hsmmc_card_detect() 243 struct omap_hsmmc_host *host = dev_get_drvdata(dev); in omap_hsmmc_get_cover_state() local 245 return mmc_gpio_get_cd(host->mmc); in omap_hsmmc_get_cover_state() 251 struct omap_hsmmc_host *host = mmc_priv(mmc); in omap_hsmmc_enable_supply() local 261 if (mmc->supply.vqmmc && !host->vqmmc_enabled) { in omap_hsmmc_enable_supply() 267 host->vqmmc_enabled = 1; in omap_hsmmc_enable_supply() 283 struct omap_hsmmc_host *host = mmc_priv(mmc); in omap_hsmmc_disable_supply() local [all …]
|
D | omap.c | 76 #define mmc_omap7xx() (host->features & MMC_OMAP7XX) 77 #define mmc_omap15xx() (host->features & MMC_OMAP15XX) 78 #define mmc_omap16xx() (host->features & MMC_OMAP16XX) 80 #define mmc_omap1() (host->features & MMC_OMAP1_MASK) 83 #define OMAP_MMC_REG(host, reg) (OMAP_MMC_REG_##reg << (host)->reg_shift) argument 84 #define OMAP_MMC_READ(host, reg) __raw_readw((host)->virt_base + OMAP_MMC_REG(host, reg)) argument 85 #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 179 if (slot != NULL && slot->host->fclk_enabled && slot->fclk_freq > 0) { in mmc_omap_fclk_offdelay() 185 static void mmc_omap_fclk_enable(struct mmc_omap_host *host, unsigned int enable) in mmc_omap_fclk_enable() argument [all …]
|
D | sh_mmcif.c | 270 #define sh_mmcif_host_to_dev(host) (&host->pd->dev) argument 272 static inline void sh_mmcif_bitset(struct sh_mmcif_host *host, in sh_mmcif_bitset() argument 275 writel(val | readl(host->addr + reg), host->addr + reg); in sh_mmcif_bitset() 278 static inline void sh_mmcif_bitclr(struct sh_mmcif_host *host, in sh_mmcif_bitclr() argument 281 writel(~val & readl(host->addr + reg), host->addr + reg); in sh_mmcif_bitclr() 286 struct sh_mmcif_host *host = arg; in sh_mmcif_dma_complete() local 287 struct mmc_request *mrq = host->mrq; in sh_mmcif_dma_complete() 288 struct device *dev = sh_mmcif_host_to_dev(host); in sh_mmcif_dma_complete() 296 complete(&host->dma_complete); in sh_mmcif_dma_complete() 299 static void sh_mmcif_start_dma_rx(struct sh_mmcif_host *host) in sh_mmcif_start_dma_rx() argument [all …]
|
D | atmel-mci.c | 225 u32 (*prepare_data)(struct atmel_mci *host, struct mmc_data *data); 226 void (*submit_data)(struct atmel_mci *host, struct mmc_data *data); 227 void (*stop_transfer)(struct atmel_mci *host); 251 struct atmel_mci *host; member 272 #define atmci_test_and_clear_pending(host, event) \ argument 273 test_and_clear_bit(event, &host->pending_events) 274 #define atmci_set_completed(host, event) \ argument 275 set_bit(event, &host->completed_events) 276 #define atmci_set_pending(host, event) \ argument 277 set_bit(event, &host->pending_events) [all …]
|
D | davinci_mmc.c | 231 static void mmc_davinci_sg_to_buf(struct mmc_davinci_host *host) in mmc_davinci_sg_to_buf() argument 233 host->buffer_bytes_left = sg_dma_len(host->sg); in mmc_davinci_sg_to_buf() 234 host->buffer = sg_virt(host->sg); in mmc_davinci_sg_to_buf() 235 if (host->buffer_bytes_left > host->bytes_left) in mmc_davinci_sg_to_buf() 236 host->buffer_bytes_left = host->bytes_left; in mmc_davinci_sg_to_buf() 239 static void davinci_fifo_data_trans(struct mmc_davinci_host *host, in davinci_fifo_data_trans() argument 245 if (host->buffer_bytes_left == 0) { in davinci_fifo_data_trans() 246 host->sg = sg_next(host->data->sg); in davinci_fifo_data_trans() 247 mmc_davinci_sg_to_buf(host); in davinci_fifo_data_trans() 250 p = host->buffer; in davinci_fifo_data_trans() [all …]
|
D | tmio_mmc_pio.c | 54 void tmio_mmc_enable_mmc_irqs(struct tmio_mmc_host *host, u32 i) in tmio_mmc_enable_mmc_irqs() argument 56 host->sdcard_irq_mask &= ~(i & TMIO_MASK_IRQ); in tmio_mmc_enable_mmc_irqs() 57 sd_ctrl_write32(host, CTL_IRQ_MASK, host->sdcard_irq_mask); in tmio_mmc_enable_mmc_irqs() 60 void tmio_mmc_disable_mmc_irqs(struct tmio_mmc_host *host, u32 i) in tmio_mmc_disable_mmc_irqs() argument 62 host->sdcard_irq_mask |= (i & TMIO_MASK_IRQ); in tmio_mmc_disable_mmc_irqs() 63 sd_ctrl_write32(host, CTL_IRQ_MASK, host->sdcard_irq_mask); in tmio_mmc_disable_mmc_irqs() 66 static void tmio_mmc_ack_mmc_irqs(struct tmio_mmc_host *host, u32 i) in tmio_mmc_ack_mmc_irqs() argument 68 sd_ctrl_write32(host, CTL_STATUS, ~i); in tmio_mmc_ack_mmc_irqs() 71 static void tmio_mmc_init_sg(struct tmio_mmc_host *host, struct mmc_data *data) in tmio_mmc_init_sg() argument 73 host->sg_len = data->sg_len; in tmio_mmc_init_sg() [all …]
|
D | pxamci.c | 86 static inline void pxamci_init_ocr(struct pxamci_host *host) in pxamci_init_ocr() argument 89 host->vcc = 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 …]
|
D | moxart-mmc.c | 151 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 …]
|
D | mmci.c | 225 struct mmci_host *host = mmc_priv(mmc); in mmci_card_busy() local 231 spin_lock_irqsave(&host->lock, flags); in mmci_card_busy() 232 if (readl(host->base + MMCISTATUS) & MCI_ST_CARDBUSY) in mmci_card_busy() 234 spin_unlock_irqrestore(&host->lock, flags); in mmci_card_busy() 245 static int mmci_validate_data(struct mmci_host *host, in mmci_validate_data() argument 252 dev_err(mmc_dev(host->mmc), in mmci_validate_data() 260 static void mmci_reg_delay(struct mmci_host *host) in mmci_reg_delay() argument 269 if (host->cclk < 25000000) in mmci_reg_delay() 278 static void mmci_write_clkreg(struct mmci_host *host, u32 clk) in mmci_write_clkreg() argument 280 if (host->clk_reg != clk) { in mmci_write_clkreg() [all …]
|
D | android-goldfish.c | 58 #define GOLDFISH_MMC_READ(host, addr) (readl(host->reg_base + addr)) argument 59 #define GOLDFISH_MMC_WRITE(host, addr, x) (writel(x, host->reg_base + addr)) argument 135 goldfish_mmc_cover_is_open(struct goldfish_mmc_host *host) in goldfish_mmc_cover_is_open() argument 144 struct goldfish_mmc_host *host = dev_get_drvdata(dev); in goldfish_mmc_show_cover_switch() local 146 return sprintf(buf, "%s\n", goldfish_mmc_cover_is_open(host) ? "open" : in goldfish_mmc_show_cover_switch() 153 goldfish_mmc_start_command(struct goldfish_mmc_host *host, struct mmc_command *cmd) in goldfish_mmc_start_command() argument 159 host->cmd = cmd; in goldfish_mmc_start_command() 180 dev_err(mmc_dev(host->mmc), in goldfish_mmc_start_command() 196 if (host->bus_mode == MMC_BUSMODE_OPENDRAIN) in goldfish_mmc_start_command() 202 if (host->data && !(host->data->flags & MMC_DATA_WRITE)) in goldfish_mmc_start_command() [all …]
|
D | mtk-sd.c | 363 static void msdc_reset_hw(struct msdc_host *host) in msdc_reset_hw() argument 367 sdr_set_bits(host->base + MSDC_CFG, MSDC_CFG_RST); in msdc_reset_hw() 368 while (readl(host->base + MSDC_CFG) & MSDC_CFG_RST) in msdc_reset_hw() 371 sdr_set_bits(host->base + MSDC_FIFOCS, MSDC_FIFOCS_CLR); in msdc_reset_hw() 372 while (readl(host->base + MSDC_FIFOCS) & MSDC_FIFOCS_CLR) in msdc_reset_hw() 375 val = readl(host->base + MSDC_INT); in msdc_reset_hw() 376 writel(val, host->base + MSDC_INT); in msdc_reset_hw() 379 static void msdc_cmd_next(struct msdc_host *host, 398 static inline void msdc_dma_setup(struct msdc_host *host, struct msdc_dma *dma, in msdc_dma_setup() argument 442 sdr_set_field(host->base + MSDC_DMA_CFG, MSDC_DMA_CFG_DECSEN, 1); in msdc_dma_setup() [all …]
|
D | toshsd.c | 38 static void toshsd_init(struct toshsd_host *host) in toshsd_init() argument 41 pci_write_config_byte(host->pdev, SD_PCICFG_CLKSTOP, in toshsd_init() 43 pci_write_config_byte(host->pdev, SD_PCICFG_CARDDETECT, 2); in toshsd_init() 46 iowrite16(0, host->ioaddr + SD_SOFTWARERESET); /* assert */ in toshsd_init() 48 iowrite16(1, host->ioaddr + SD_SOFTWARERESET); /* deassert */ in toshsd_init() 52 iowrite16(0, host->ioaddr + SD_CARDCLOCKCTRL); in toshsd_init() 53 iowrite32(0, host->ioaddr + SD_CARDSTATUS); in toshsd_init() 54 iowrite32(0, host->ioaddr + SD_ERRORSTATUS0); in toshsd_init() 55 iowrite16(0, host->ioaddr + SD_STOPINTERNAL); in toshsd_init() 58 iowrite16(0x100, host->ioaddr + SDIO_BASE + SDIO_CLOCKNWAITCTRL); in toshsd_init() [all …]
|
D | sunxi-mmc.c | 74 #define mmc_readl(host, reg) \ argument 75 readl((host)->reg_base + SDXC_##reg) 76 #define mmc_writel(host, reg, value) \ argument 77 writel((value), (host)->reg_base + SDXC_##reg) 261 static int sunxi_mmc_reset_host(struct sunxi_mmc_host *host) in sunxi_mmc_reset_host() argument 266 mmc_writel(host, REG_GCTRL, SDXC_HARDWARE_RESET); in sunxi_mmc_reset_host() 268 rval = mmc_readl(host, REG_GCTRL); in sunxi_mmc_reset_host() 272 dev_err(mmc_dev(host->mmc), "fatal err reset timeout\n"); in sunxi_mmc_reset_host() 282 struct sunxi_mmc_host *host = mmc_priv(mmc); in sunxi_mmc_init_host() local 284 if (sunxi_mmc_reset_host(host)) in sunxi_mmc_init_host() [all …]
|
D | mmc_spi.c | 164 static inline int mmc_cs_off(struct mmc_spi_host *host) in mmc_cs_off() argument 167 return spi_setup(host->spi); in mmc_cs_off() 171 mmc_spi_readbytes(struct mmc_spi_host *host, unsigned len) in mmc_spi_readbytes() argument 175 if (len > sizeof(*host->data)) { in mmc_spi_readbytes() 180 host->status.len = len; in mmc_spi_readbytes() 182 if (host->dma_dev) in mmc_spi_readbytes() 183 dma_sync_single_for_device(host->dma_dev, in mmc_spi_readbytes() 184 host->data_dma, sizeof(*host->data), in mmc_spi_readbytes() 187 status = spi_sync_locked(host->spi, &host->readback); in mmc_spi_readbytes() 189 if (host->dma_dev) in mmc_spi_readbytes() [all …]
|
D | bfin_sdh.c | 86 static void sdh_stop_clock(struct sdh_host *host) in sdh_stop_clock() argument 92 static void sdh_enable_stat_irq(struct sdh_host *host, unsigned int mask) in sdh_enable_stat_irq() argument 96 spin_lock_irqsave(&host->lock, flags); in sdh_enable_stat_irq() 97 host->imask |= mask; in sdh_enable_stat_irq() 100 spin_unlock_irqrestore(&host->lock, flags); in sdh_enable_stat_irq() 103 static void sdh_disable_stat_irq(struct sdh_host *host, unsigned int mask) in sdh_disable_stat_irq() argument 107 spin_lock_irqsave(&host->lock, flags); in sdh_disable_stat_irq() 108 host->imask &= ~mask; in sdh_disable_stat_irq() 109 bfin_write_SDH_MASK0(host->imask); in sdh_disable_stat_irq() 111 spin_unlock_irqrestore(&host->lock, flags); in sdh_disable_stat_irq() [all …]
|
D | jz4740_mmc.c | 165 static void jz4740_mmc_release_dma_channels(struct jz4740_mmc_host *host) in jz4740_mmc_release_dma_channels() argument 167 if (!host->use_dma) in jz4740_mmc_release_dma_channels() 170 dma_release_channel(host->dma_tx); in jz4740_mmc_release_dma_channels() 171 dma_release_channel(host->dma_rx); in jz4740_mmc_release_dma_channels() 174 static int jz4740_mmc_acquire_dma_channels(struct jz4740_mmc_host *host) in jz4740_mmc_acquire_dma_channels() argument 181 host->dma_tx = dma_request_channel(mask, NULL, host); in jz4740_mmc_acquire_dma_channels() 182 if (!host->dma_tx) { in jz4740_mmc_acquire_dma_channels() 183 dev_err(mmc_dev(host->mmc), "Failed to get dma_tx channel\n"); in jz4740_mmc_acquire_dma_channels() 187 host->dma_rx = dma_request_channel(mask, NULL, host); in jz4740_mmc_acquire_dma_channels() 188 if (!host->dma_rx) { in jz4740_mmc_acquire_dma_channels() [all …]
|
D | tifm_sd.c | 114 static void tifm_sd_read_fifo(struct tifm_sd *host, struct page *pg, in tifm_sd_read_fifo() argument 117 struct tifm_dev *sock = host->dev; in tifm_sd_read_fifo() 122 if (host->cmd_flags & DATA_CARRY) { in tifm_sd_read_fifo() 123 buf[pos++] = host->bounce_buf_data[0]; in tifm_sd_read_fifo() 124 host->cmd_flags &= ~DATA_CARRY; in tifm_sd_read_fifo() 131 host->bounce_buf_data[0] = (val >> 8) & 0xff; in tifm_sd_read_fifo() 132 host->cmd_flags |= DATA_CARRY; in tifm_sd_read_fifo() 140 static void tifm_sd_write_fifo(struct tifm_sd *host, struct page *pg, in tifm_sd_write_fifo() argument 143 struct tifm_dev *sock = host->dev; in tifm_sd_write_fifo() 148 if (host->cmd_flags & DATA_CARRY) { in tifm_sd_write_fifo() [all …]
|
D | rtsx_pci_sdmmc.c | 63 static inline struct device *sdmmc_dev(struct realtek_pci_sdmmc *host) in sdmmc_dev() argument 65 return &(host->pdev->dev); in sdmmc_dev() 68 static inline void sd_clear_error(struct realtek_pci_sdmmc *host) in sd_clear_error() argument 70 rtsx_pci_write_register(host->pcr, CARD_STOP, in sd_clear_error() 75 static void dump_reg_range(struct realtek_pci_sdmmc *host, u16 start, u16 end) in dump_reg_range() argument 87 rtsx_pci_read_register(host->pcr, start + i + j, in dump_reg_range() 89 dev_dbg(sdmmc_dev(host), "0x%04X(%d): %8ph\n", in dump_reg_range() 94 static void sd_print_debug_regs(struct realtek_pci_sdmmc *host) in sd_print_debug_regs() argument 96 dump_reg_range(host, 0xFDA0, 0xFDB3); in sd_print_debug_regs() 97 dump_reg_range(host, 0xFD52, 0xFD69); in sd_print_debug_regs() [all …]
|
D | sdhci-of-esdhc.c | 48 static u32 esdhc_readl_fixup(struct sdhci_host *host, in esdhc_readl_fixup() argument 51 struct sdhci_pltfm_host *pltfm_host = sdhci_priv(host); in esdhc_readl_fixup() 73 static u16 esdhc_readw_fixup(struct sdhci_host *host, in esdhc_readw_fixup() argument 86 static u8 esdhc_readb_fixup(struct sdhci_host *host, in esdhc_readb_fixup() argument 125 static u32 esdhc_writel_fixup(struct sdhci_host *host, in esdhc_writel_fixup() argument 143 static u32 esdhc_writew_fixup(struct sdhci_host *host, in esdhc_writew_fixup() argument 146 struct sdhci_pltfm_host *pltfm_host = sdhci_priv(host); in esdhc_writew_fixup() 177 static u32 esdhc_writeb_fixup(struct sdhci_host *host, in esdhc_writeb_fixup() argument 200 if (host->quirks2 & SDHCI_QUIRK2_BROKEN_HOST_CONTROL) in esdhc_writeb_fixup() 219 static u32 esdhc_be_readl(struct sdhci_host *host, int reg) in esdhc_be_readl() argument [all …]
|
D | mvsdio.c | 62 static int mvsd_setup_data(struct mvsd_host *host, struct mmc_data *data) in mvsd_setup_data() argument 64 void __iomem *iobase = host->base; in mvsd_setup_data() 83 dev_warn(host->dev, "FIFO_EMPTY bit missing\n"); in mvsd_setup_data() 88 dev_dbg(host->dev, "*** wait for FIFO_EMPTY bit " in mvsd_setup_data() 94 tmout = DIV_ROUND_UP(data->timeout_ns, host->ns_per_clk); in mvsd_setup_data() 102 dev_dbg(host->dev, "data %s at 0x%08x: blocks=%d blksz=%d tmout=%u (%d)\n", in mvsd_setup_data() 107 host->ctrl &= ~MVSD_HOST_CTRL_TMOUT_MASK; in mvsd_setup_data() 108 host->ctrl |= MVSD_HOST_CTRL_TMOUT(tmout_index); in mvsd_setup_data() 109 mvsd_write(MVSD_HOST_CTRL, host->ctrl); in mvsd_setup_data() 123 host->pio_size = data->blocks * data->blksz; in mvsd_setup_data() [all …]
|
D | tmio_mmc.h | 48 void (*enable)(struct tmio_mmc_host *host, bool enable); 59 void (*set_pwr)(struct platform_device *host, int state); 60 void (*set_clk_div)(struct platform_device *host, int state); 97 int (*write16_hook)(struct tmio_mmc_host *host, int addr); 105 void tmio_mmc_host_free(struct tmio_mmc_host *host); 106 int tmio_mmc_host_probe(struct tmio_mmc_host *host, 108 void tmio_mmc_host_remove(struct tmio_mmc_host *host); 109 void tmio_mmc_do_data_irq(struct tmio_mmc_host *host); 111 void tmio_mmc_enable_mmc_irqs(struct tmio_mmc_host *host, u32 i); 112 void tmio_mmc_disable_mmc_irqs(struct tmio_mmc_host *host, u32 i); [all …]
|
D | sdhci.h | 520 u32 (*read_l)(struct sdhci_host *host, int reg); 521 u16 (*read_w)(struct sdhci_host *host, int reg); 522 u8 (*read_b)(struct sdhci_host *host, int reg); 523 void (*write_l)(struct sdhci_host *host, u32 val, int reg); 524 void (*write_w)(struct sdhci_host *host, u16 val, int reg); 525 void (*write_b)(struct sdhci_host *host, u8 val, int reg); 528 void (*set_clock)(struct sdhci_host *host, unsigned int clock); 530 int (*enable_dma)(struct sdhci_host *host); 531 unsigned int (*get_max_clock)(struct sdhci_host *host); 532 unsigned int (*get_min_clock)(struct sdhci_host *host); [all …]
|
D | sdhci-bcm-kona.c | 60 static int sdhci_bcm_kona_sd_reset(struct sdhci_host *host) in sdhci_bcm_kona_sd_reset() argument 69 val = sdhci_readl(host, KONA_SDHOST_CORECTRL); in sdhci_bcm_kona_sd_reset() 71 sdhci_writel(host, val, KONA_SDHOST_CORECTRL); in sdhci_bcm_kona_sd_reset() 73 while (!(sdhci_readl(host, KONA_SDHOST_CORECTRL) & KONA_SDHOST_RESET)) { in sdhci_bcm_kona_sd_reset() 81 val = sdhci_readl(host, KONA_SDHOST_CORECTRL); in sdhci_bcm_kona_sd_reset() 91 sdhci_writel(host, val, KONA_SDHOST_CORECTRL); in sdhci_bcm_kona_sd_reset() 96 static void sdhci_bcm_kona_sd_init(struct sdhci_host *host) in sdhci_bcm_kona_sd_init() argument 101 val = sdhci_readl(host, KONA_SDHOST_COREIMR); in sdhci_bcm_kona_sd_init() 103 sdhci_writel(host, val, KONA_SDHOST_COREIMR); in sdhci_bcm_kona_sd_init() 106 val = sdhci_readl(host, KONA_SDHOST_CORECTRL); in sdhci_bcm_kona_sd_init() [all …]
|
D | sdhci-esdhc-imx.c | 251 static inline void esdhc_clrset_le(struct sdhci_host *host, u32 mask, u32 val, int reg) in esdhc_clrset_le() argument 253 void __iomem *base = host->ioaddr + (reg & ~0x3); in esdhc_clrset_le() 259 static u32 esdhc_readl_le(struct sdhci_host *host, int reg) in esdhc_readl_le() argument 261 struct sdhci_pltfm_host *pltfm_host = sdhci_priv(host); in esdhc_readl_le() 263 u32 val = readl(host->ioaddr + reg); in esdhc_readl_le() 296 val = readl(host->ioaddr + SDHCI_CAPABILITIES) & 0xFFFF; in esdhc_readl_le() 328 writel(SDHCI_INT_RESPONSE, host->ioaddr + in esdhc_readl_le() 337 static void esdhc_writel_le(struct sdhci_host *host, u32 val, int reg) in esdhc_writel_le() argument 339 struct sdhci_pltfm_host *pltfm_host = sdhci_priv(host); in esdhc_writel_le() 353 data = readl(host->ioaddr + SDHCI_HOST_CONTROL); in esdhc_writel_le() [all …]
|
D | dw_mmc-exynos.c | 79 static inline u8 dw_mci_exynos_get_ciu_div(struct dw_mci *host) in dw_mci_exynos_get_ciu_div() argument 81 struct dw_mci_exynos_priv_data *priv = host->priv; in dw_mci_exynos_get_ciu_div() 89 return SDMMC_CLKSEL_GET_DIV(mci_readl(host, CLKSEL64)) + 1; in dw_mci_exynos_get_ciu_div() 91 return SDMMC_CLKSEL_GET_DIV(mci_readl(host, CLKSEL)) + 1; in dw_mci_exynos_get_ciu_div() 94 static int dw_mci_exynos_priv_init(struct dw_mci *host) in dw_mci_exynos_priv_init() argument 96 struct dw_mci_exynos_priv_data *priv = host->priv; in dw_mci_exynos_priv_init() 100 mci_writel(host, MPSBEGIN0, 0); in dw_mci_exynos_priv_init() 101 mci_writel(host, MPSEND0, SDMMC_ENDING_SEC_NR_MAX); in dw_mci_exynos_priv_init() 102 mci_writel(host, MPSCTRL0, SDMMC_MPSCTRL_SECURE_WRITE_BIT | in dw_mci_exynos_priv_init() 109 priv->saved_strobe_ctrl = mci_readl(host, HS400_DLINE_CTRL); in dw_mci_exynos_priv_init() [all …]
|
D | sdhci-pltfm.c | 39 unsigned int sdhci_pltfm_clk_get_max_clock(struct sdhci_host *host) in sdhci_pltfm_clk_get_max_clock() argument 41 struct sdhci_pltfm_host *pltfm_host = sdhci_priv(host); in sdhci_pltfm_clk_get_max_clock() 72 struct sdhci_host *host = platform_get_drvdata(pdev); in sdhci_get_of_property() local 73 struct sdhci_pltfm_host *pltfm_host = sdhci_priv(host); in sdhci_get_of_property() 77 host->quirks |= SDHCI_QUIRK_MULTIBLOCK_READ_ACMD12; in sdhci_get_of_property() 82 host->quirks |= SDHCI_QUIRK_FORCE_1_BIT_DATA; in sdhci_get_of_property() 85 host->quirks |= SDHCI_QUIRK_INVERTED_WRITE_PROTECT; in sdhci_get_of_property() 88 host->quirks |= SDHCI_QUIRK_BROKEN_CARD_DETECTION; in sdhci_get_of_property() 91 host->quirks2 |= SDHCI_QUIRK2_NO_1_8_V; in sdhci_get_of_property() 94 host->quirks |= SDHCI_QUIRK_BROKEN_DMA; in sdhci_get_of_property() [all …]
|
D | sdricoh_cs.c | 102 static inline unsigned int sdricoh_readl(struct sdricoh_host *host, in sdricoh_readl() argument 105 unsigned int value = readl(host->iobase + reg); in sdricoh_readl() 106 dev_vdbg(host->dev, "rl %x 0x%x\n", reg, value); in sdricoh_readl() 110 static inline void sdricoh_writel(struct sdricoh_host *host, unsigned int reg, in sdricoh_writel() argument 113 writel(value, host->iobase + reg); in sdricoh_writel() 114 dev_vdbg(host->dev, "wl %x 0x%x\n", reg, value); in sdricoh_writel() 118 static inline unsigned int sdricoh_readw(struct sdricoh_host *host, in sdricoh_readw() argument 121 unsigned int value = readw(host->iobase + reg); in sdricoh_readw() 122 dev_vdbg(host->dev, "rb %x 0x%x\n", reg, value); in sdricoh_readw() 126 static inline void sdricoh_writew(struct sdricoh_host *host, unsigned int reg, in sdricoh_writew() argument [all …]
|
D | sdhci_f_sdh30.c | 52 static void sdhci_f_sdh30_soft_voltage_switch(struct sdhci_host *host) in sdhci_f_sdh30_soft_voltage_switch() argument 54 struct f_sdhost_priv *priv = sdhci_priv(host); in sdhci_f_sdh30_soft_voltage_switch() 58 ctrl = sdhci_readl(host, F_SDH30_IO_CONTROL2); in sdhci_f_sdh30_soft_voltage_switch() 60 sdhci_writel(host, ctrl, F_SDH30_IO_CONTROL2); in sdhci_f_sdh30_soft_voltage_switch() 62 sdhci_writel(host, ctrl, F_SDH30_IO_CONTROL2); in sdhci_f_sdh30_soft_voltage_switch() 65 sdhci_writel(host, ctrl, F_SDH30_IO_CONTROL2); in sdhci_f_sdh30_soft_voltage_switch() 70 ctrl = sdhci_readl(host, F_SDH30_ESD_CONTROL); in sdhci_f_sdh30_soft_voltage_switch() 72 sdhci_writel(host, ctrl, F_SDH30_ESD_CONTROL); in sdhci_f_sdh30_soft_voltage_switch() 75 ctrl = sdhci_readl(host, F_SDH30_TUNING_SETTING); in sdhci_f_sdh30_soft_voltage_switch() 77 sdhci_writel(host, ctrl, F_SDH30_TUNING_SETTING); in sdhci_f_sdh30_soft_voltage_switch() [all …]
|
D | sdhci-s3c.c | 48 struct sdhci_host *host; member 76 static inline struct sdhci_s3c *to_s3c(struct sdhci_host *host) in to_s3c() argument 78 return sdhci_priv(host); in to_s3c() 87 static unsigned int sdhci_s3c_get_max_clk(struct sdhci_host *host) in sdhci_s3c_get_max_clk() argument 89 struct sdhci_s3c *ourhost = to_s3c(host); in sdhci_s3c_get_max_clk() 156 static void sdhci_s3c_set_clock(struct sdhci_host *host, unsigned int clock) in sdhci_s3c_set_clock() argument 158 struct sdhci_s3c *ourhost = to_s3c(host); in sdhci_s3c_set_clock() 165 host->mmc->actual_clock = 0; in sdhci_s3c_set_clock() 169 sdhci_set_clock(host, clock); in sdhci_s3c_set_clock() 195 host->max_clk = ourhost->clk_rates[best_src]; in sdhci_s3c_set_clock() [all …]
|
D | rtsx_usb_sdmmc.c | 70 static inline struct device *sdmmc_dev(struct rtsx_usb_sdmmc *host) in sdmmc_dev() argument 72 return &(host->pdev->dev); in sdmmc_dev() 75 static inline void sd_clear_error(struct rtsx_usb_sdmmc *host) in sd_clear_error() argument 77 struct rtsx_ucr *ucr = host->ucr; in sd_clear_error() 87 static void sd_print_debug_regs(struct rtsx_usb_sdmmc *host) in sd_print_debug_regs() argument 89 struct rtsx_ucr *ucr = host->ucr; in sd_print_debug_regs() 93 dev_dbg(sdmmc_dev(host), "SD_STAT1: 0x%x\n", val); in sd_print_debug_regs() 95 dev_dbg(sdmmc_dev(host), "SD_STAT2: 0x%x\n", val); in sd_print_debug_regs() 97 dev_dbg(sdmmc_dev(host), "SD_BUS_STAT: 0x%x\n", val); in sd_print_debug_regs() 100 #define sd_print_debug_regs(host) argument [all …]
|
D | sdhci-acpi.c | 74 struct sdhci_host *host; member 86 static int sdhci_acpi_enable_dma(struct sdhci_host *host) in sdhci_acpi_enable_dma() argument 88 struct sdhci_acpi_host *c = sdhci_priv(host); in sdhci_acpi_enable_dma() 95 if (host->flags & SDHCI_USE_64_BIT_DMA) { in sdhci_acpi_enable_dma() 96 if (host->quirks2 & SDHCI_QUIRK2_BROKEN_64_BIT_DMA) { in sdhci_acpi_enable_dma() 97 host->flags &= ~SDHCI_USE_64_BIT_DMA; in sdhci_acpi_enable_dma() 113 static void sdhci_acpi_int_hw_reset(struct sdhci_host *host) in sdhci_acpi_int_hw_reset() argument 117 reg = sdhci_readb(host, SDHCI_POWER_CONTROL); in sdhci_acpi_int_hw_reset() 119 sdhci_writeb(host, reg, SDHCI_POWER_CONTROL); in sdhci_acpi_int_hw_reset() 123 sdhci_writeb(host, reg, SDHCI_POWER_CONTROL); in sdhci_acpi_int_hw_reset() [all …]
|
D | sdhci-msm.c | 67 static inline int msm_dll_poll_ck_out_en(struct sdhci_host *host, u8 poll) in msm_dll_poll_ck_out_en() argument 71 struct mmc_host *mmc = host->mmc; in msm_dll_poll_ck_out_en() 74 ck_out_en = !!(readl_relaxed(host->ioaddr + CORE_DLL_CONFIG) & in msm_dll_poll_ck_out_en() 85 ck_out_en = !!(readl_relaxed(host->ioaddr + CORE_DLL_CONFIG) & in msm_dll_poll_ck_out_en() 92 static int msm_config_cm_dll_phase(struct sdhci_host *host, u8 phase) in msm_config_cm_dll_phase() argument 101 struct mmc_host *mmc = host->mmc; in msm_config_cm_dll_phase() 103 spin_lock_irqsave(&host->lock, flags); in msm_config_cm_dll_phase() 105 config = readl_relaxed(host->ioaddr + CORE_DLL_CONFIG); in msm_config_cm_dll_phase() 108 writel_relaxed(config, host->ioaddr + CORE_DLL_CONFIG); in msm_config_cm_dll_phase() 111 rc = msm_dll_poll_ck_out_en(host, 0); in msm_config_cm_dll_phase() [all …]
|
D | via-sdmmc.c | 333 static void via_print_sdchc(struct via_crdr_mmc_host *host) in via_print_sdchc() argument 335 void __iomem *addrbase = host->sdhc_mmiobase; in via_print_sdchc() 352 static void via_print_pcictrl(struct via_crdr_mmc_host *host) in via_print_pcictrl() argument 354 void __iomem *addrbase = host->pcictrl_mmiobase; in via_print_pcictrl() 366 static void via_save_pcictrlreg(struct via_crdr_mmc_host *host) in via_save_pcictrlreg() argument 371 pm_pcictrl_reg = &(host->pm_pcictrl_reg); in via_save_pcictrlreg() 372 addrbase = host->pcictrl_mmiobase; in via_save_pcictrlreg() 385 static void via_restore_pcictrlreg(struct via_crdr_mmc_host *host) in via_restore_pcictrlreg() argument 390 pm_pcictrl_reg = &(host->pm_pcictrl_reg); in via_restore_pcictrlreg() 391 addrbase = host->pcictrl_mmiobase; in via_restore_pcictrlreg() [all …]
|
D | mxs-mmc.c | 78 struct mxs_mmc_host *host = mmc_priv(mmc); in mxs_mmc_get_cd() local 79 struct mxs_ssp *ssp = &host->ssp; in mxs_mmc_get_cd() 82 if (host->broken_cd) in mxs_mmc_get_cd() 99 static int mxs_mmc_reset(struct mxs_mmc_host *host) in mxs_mmc_reset() argument 101 struct mxs_ssp *ssp = &host->ssp; in mxs_mmc_reset() 125 if (host->sdio_irq_en) { in mxs_mmc_reset() 135 static void mxs_mmc_start_cmd(struct mxs_mmc_host *host, 138 static void mxs_mmc_request_done(struct mxs_mmc_host *host) in mxs_mmc_request_done() argument 140 struct mmc_command *cmd = host->cmd; in mxs_mmc_request_done() 141 struct mmc_data *data = host->data; in mxs_mmc_request_done() [all …]
|
D | sdhci-pxav3.c | 131 struct sdhci_host *host) in armada_38x_quirks() argument 134 struct sdhci_pltfm_host *pltfm_host = sdhci_priv(host); in armada_38x_quirks() 138 host->quirks &= ~SDHCI_QUIRK_CAP_CLOCK_BASE_BROKEN; in armada_38x_quirks() 139 host->quirks |= SDHCI_QUIRK_MISSING_CAPS; in armada_38x_quirks() 153 host->caps1 = sdhci_readl(host, SDHCI_CAPABILITIES_1); in armada_38x_quirks() 154 host->caps1 &= ~(SDHCI_SUPPORT_SDR50 | SDHCI_SUPPORT_DDR50); in armada_38x_quirks() 164 host->caps = sdhci_readl(host, SDHCI_CAPABILITIES); in armada_38x_quirks() 166 host->caps &= ~SDHCI_CAN_VDD_180; in armada_38x_quirks() 167 host->mmc->caps &= ~MMC_CAP_1_8V_DDR; in armada_38x_quirks() 169 host->caps &= ~SDHCI_CAN_VDD_330; in armada_38x_quirks() [all …]
|
D | dw_mmc-pltfm.c | 29 static void dw_mci_pltfm_prepare_command(struct dw_mci *host, u32 *cmdr) in dw_mci_pltfm_prepare_command() argument 45 struct dw_mci *host; in dw_mci_pltfm_register() local 48 host = devm_kzalloc(&pdev->dev, sizeof(struct dw_mci), GFP_KERNEL); in dw_mci_pltfm_register() 49 if (!host) in dw_mci_pltfm_register() 52 host->irq = platform_get_irq(pdev, 0); in dw_mci_pltfm_register() 53 if (host->irq < 0) in dw_mci_pltfm_register() 54 return host->irq; in dw_mci_pltfm_register() 56 host->drv_data = drv_data; in dw_mci_pltfm_register() 57 host->dev = &pdev->dev; in dw_mci_pltfm_register() 58 host->irq_flags = 0; in dw_mci_pltfm_register() [all …]
|
D | dw_mmc-k3.c | 35 static void dw_mci_k3_set_ios(struct dw_mci *host, struct mmc_ios *ios) in dw_mci_k3_set_ios() argument 39 ret = clk_set_rate(host->ciu_clk, ios->clock); in dw_mci_k3_set_ios() 41 dev_warn(host->dev, "failed to set rate %uHz\n", ios->clock); in dw_mci_k3_set_ios() 43 host->bus_hz = clk_get_rate(host->ciu_clk); in dw_mci_k3_set_ios() 50 static int dw_mci_hi6220_parse_dt(struct dw_mci *host) in dw_mci_hi6220_parse_dt() argument 54 priv = devm_kzalloc(host->dev, sizeof(*priv), GFP_KERNEL); in dw_mci_hi6220_parse_dt() 58 priv->reg = syscon_regmap_lookup_by_phandle(host->dev->of_node, in dw_mci_hi6220_parse_dt() 63 host->priv = priv; in dw_mci_hi6220_parse_dt() 71 struct dw_mci *host; in dw_mci_hi6220_switch_voltage() local 75 host = slot->host; in dw_mci_hi6220_switch_voltage() [all …]
|
D | sdhci-spear.c | 47 struct spear_sdhci *host) in sdhci_probe_config_dt() argument 55 host->card_int_gpio = cd_gpio; in sdhci_probe_config_dt() 60 struct sdhci_host *host; in sdhci_probe() local 67 host = sdhci_alloc_host(dev, sizeof(*sdhci)); in sdhci_probe() 68 if (IS_ERR(host)) { in sdhci_probe() 69 ret = PTR_ERR(host); in sdhci_probe() 75 host->ioaddr = devm_ioremap_resource(&pdev->dev, iomem); in sdhci_probe() 76 if (IS_ERR(host->ioaddr)) { in sdhci_probe() 77 ret = PTR_ERR(host->ioaddr); in sdhci_probe() 82 host->hw_name = "sdhci"; in sdhci_probe() [all …]
|
D | sdhci-iproc.c | 39 static inline u32 sdhci_iproc_readl(struct sdhci_host *host, int reg) in sdhci_iproc_readl() argument 41 u32 val = readl(host->ioaddr + reg); in sdhci_iproc_readl() 44 mmc_hostname(host->mmc), reg, val); in sdhci_iproc_readl() 48 static u16 sdhci_iproc_readw(struct sdhci_host *host, int reg) in sdhci_iproc_readw() argument 50 u32 val = sdhci_iproc_readl(host, (reg & ~3)); in sdhci_iproc_readw() 55 static u8 sdhci_iproc_readb(struct sdhci_host *host, int reg) in sdhci_iproc_readb() argument 57 u32 val = sdhci_iproc_readl(host, (reg & ~3)); in sdhci_iproc_readb() 62 static inline void sdhci_iproc_writel(struct sdhci_host *host, u32 val, int reg) in sdhci_iproc_writel() argument 65 mmc_hostname(host->mmc), reg, val); in sdhci_iproc_writel() 67 writel(val, host->ioaddr + reg); in sdhci_iproc_writel() [all …]
|
D | sdhci-pxav2.c | 54 static void pxav2_reset(struct sdhci_host *host, u8 mask) in pxav2_reset() argument 56 struct platform_device *pdev = to_platform_device(mmc_dev(host->mmc)); in pxav2_reset() 59 sdhci_reset(host, mask); in pxav2_reset() 69 tmp = readw(host->ioaddr + SD_CLOCK_BURST_SIZE_SETUP); in pxav2_reset() 77 writew(tmp, host->ioaddr + SD_CLOCK_BURST_SIZE_SETUP); in pxav2_reset() 81 tmp = readw(host->ioaddr + SD_FIFO_PARAM); in pxav2_reset() 83 writew(tmp, host->ioaddr + SD_FIFO_PARAM); in pxav2_reset() 85 tmp = readw(host->ioaddr + SD_FIFO_PARAM); in pxav2_reset() 88 writew(tmp, host->ioaddr + SD_FIFO_PARAM); in pxav2_reset() 93 static void pxav2_mmc_set_bus_width(struct sdhci_host *host, int width) in pxav2_mmc_set_bus_width() argument [all …]
|
D | sh_mobile_sdhi.c | 38 #define host_to_priv(host) container_of((host)->pdata, struct sh_mobile_sdhi, mmc_data) argument 91 static void sh_mobile_sdhi_sdbuf_width(struct tmio_mmc_host *host, int width) in sh_mobile_sdhi_sdbuf_width() argument 99 switch (sd_ctrl_read16(host, CTL_VERSION)) { in sh_mobile_sdhi_sdbuf_width() 111 sd_ctrl_write16(host, EXT_ACC, val); in sh_mobile_sdhi_sdbuf_width() 117 struct tmio_mmc_host *host = mmc_priv(mmc); in sh_mobile_sdhi_clk_enable() local 118 struct sh_mobile_sdhi *priv = host_to_priv(host); in sh_mobile_sdhi_clk_enable() 126 sh_mobile_sdhi_sdbuf_width(host, 16); in sh_mobile_sdhi_clk_enable() 134 struct tmio_mmc_host *host = mmc_priv(mmc); in sh_mobile_sdhi_clk_disable() local 135 struct sh_mobile_sdhi *priv = host_to_priv(host); in sh_mobile_sdhi_clk_disable() 139 static int sh_mobile_sdhi_wait_idle(struct tmio_mmc_host *host) in sh_mobile_sdhi_wait_idle() argument [all …]
|
D | dw_mmc-rockchip.c | 29 static void dw_mci_rockchip_prepare_command(struct dw_mci *host, u32 *cmdr) in dw_mci_rockchip_prepare_command() argument 34 static int dw_mci_rk3288_setup_clock(struct dw_mci *host) in dw_mci_rk3288_setup_clock() argument 36 host->bus_hz /= RK3288_CLKGEN_DIV; in dw_mci_rk3288_setup_clock() 41 static void dw_mci_rk3288_set_ios(struct dw_mci *host, struct mmc_ios *ios) in dw_mci_rk3288_set_ios() argument 43 struct dw_mci_rockchip_priv_data *priv = host->priv; in dw_mci_rk3288_set_ios() 67 ret = clk_set_rate(host->ciu_clk, cclkin); in dw_mci_rk3288_set_ios() 69 dev_warn(host->dev, "failed to set rate %uHz\n", ios->clock); in dw_mci_rk3288_set_ios() 71 bus_hz = clk_get_rate(host->ciu_clk) / RK3288_CLKGEN_DIV; in dw_mci_rk3288_set_ios() 72 if (bus_hz != host->bus_hz) { in dw_mci_rk3288_set_ios() 73 host->bus_hz = bus_hz; in dw_mci_rk3288_set_ios() [all …]
|
D | sdhci-tegra.c | 54 static u16 tegra_sdhci_readw(struct sdhci_host *host, int reg) in tegra_sdhci_readw() argument 56 struct sdhci_pltfm_host *pltfm_host = sdhci_priv(host); in tegra_sdhci_readw() 66 return readw(host->ioaddr + reg); in tegra_sdhci_readw() 69 static void tegra_sdhci_writew(struct sdhci_host *host, u16 val, int reg) in tegra_sdhci_writew() argument 71 struct sdhci_pltfm_host *pltfm_host = sdhci_priv(host); in tegra_sdhci_writew() 83 host->ioaddr + SDHCI_TRANSFER_MODE); in tegra_sdhci_writew() 87 writew(val, host->ioaddr + reg); in tegra_sdhci_writew() 90 static void tegra_sdhci_writel(struct sdhci_host *host, u32 val, int reg) in tegra_sdhci_writel() argument 92 struct sdhci_pltfm_host *pltfm_host = sdhci_priv(host); in tegra_sdhci_writel() 103 writel(val, host->ioaddr + reg); in tegra_sdhci_writel() [all …]
|
D | sdhci-sirf.c | 26 static void sdhci_sirf_set_bus_width(struct sdhci_host *host, int width) in sdhci_sirf_set_bus_width() argument 30 ctrl = sdhci_readb(host, SDHCI_HOST_CONTROL); in sdhci_sirf_set_bus_width() 43 sdhci_writeb(host, ctrl, SDHCI_HOST_CONTROL); in sdhci_sirf_set_bus_width() 46 static u32 sdhci_sirf_readl_le(struct sdhci_host *host, int reg) in sdhci_sirf_readl_le() argument 48 u32 val = readl(host->ioaddr + reg); in sdhci_sirf_readl_le() 51 (host->mmc->caps & MMC_CAP_UHS_SDR50))) { in sdhci_sirf_readl_le() 66 static u16 sdhci_sirf_readw_le(struct sdhci_host *host, int reg) in sdhci_sirf_readw_le() argument 70 ret = readw(host->ioaddr + reg); in sdhci_sirf_readw_le() 73 ret = readw(host->ioaddr + SDHCI_HOST_VERSION); in sdhci_sirf_readw_le() 80 static int sdhci_sirf_execute_tuning(struct sdhci_host *host, u32 opcode) in sdhci_sirf_execute_tuning() argument [all …]
|
D | sdhci-st.c | 150 static void st_mmcss_cconfig(struct device_node *np, struct sdhci_host *host) in st_mmcss_cconfig() argument 152 struct sdhci_pltfm_host *pltfm_host = sdhci_priv(host); in st_mmcss_cconfig() 153 struct mmc_host *mhost = host->mmc; in st_mmcss_cconfig() 165 host->ioaddr + ST_MMC_CCONFIG_REG_1); in st_mmcss_cconfig() 184 writel_relaxed(cconf2, host->ioaddr + ST_MMC_CCONFIG_REG_2); in st_mmcss_cconfig() 191 host->ioaddr + ST_MMC_GP_OUTPUT); in st_mmcss_cconfig() 217 writel_relaxed(cconf3, host->ioaddr + ST_MMC_CCONFIG_REG_3); in st_mmcss_cconfig() 218 writel_relaxed(cconf4, host->ioaddr + ST_MMC_CCONFIG_REG_4); in st_mmcss_cconfig() 219 writel_relaxed(cconf5, host->ioaddr + ST_MMC_CCONFIG_REG_5); in st_mmcss_cconfig() 250 static int sdhci_st_set_dll_for_clock(struct sdhci_host *host) in sdhci_st_set_dll_for_clock() argument [all …]
|
D | sdhci-pltfm.h | 40 static inline u32 sdhci_be32bs_readl(struct sdhci_host *host, int reg) in sdhci_be32bs_readl() argument 42 return in_be32(host->ioaddr + reg); in sdhci_be32bs_readl() 45 static inline u16 sdhci_be32bs_readw(struct sdhci_host *host, int reg) in sdhci_be32bs_readw() argument 47 return in_be16(host->ioaddr + (reg ^ 0x2)); in sdhci_be32bs_readw() 50 static inline u8 sdhci_be32bs_readb(struct sdhci_host *host, int reg) in sdhci_be32bs_readb() argument 52 return in_8(host->ioaddr + (reg ^ 0x3)); in sdhci_be32bs_readb() 55 static inline void sdhci_be32bs_writel(struct sdhci_host *host, in sdhci_be32bs_writel() argument 58 out_be32(host->ioaddr + reg, val); in sdhci_be32bs_writel() 61 static inline void sdhci_be32bs_writew(struct sdhci_host *host, in sdhci_be32bs_writew() argument 64 struct sdhci_pltfm_host *pltfm_host = sdhci_priv(host); in sdhci_be32bs_writew() [all …]
|
D | sdhci-bcm2835.c | 57 static void bcm2835_sdhci_writel(struct sdhci_host *host, u32 val, int reg) in bcm2835_sdhci_writel() argument 59 writel(val, host->ioaddr + reg); in bcm2835_sdhci_writel() 64 static inline u32 bcm2835_sdhci_readl(struct sdhci_host *host, int reg) in bcm2835_sdhci_readl() argument 66 u32 val = readl(host->ioaddr + reg); in bcm2835_sdhci_readl() 74 static void bcm2835_sdhci_writew(struct sdhci_host *host, u16 val, int reg) in bcm2835_sdhci_writew() argument 76 struct sdhci_pltfm_host *pltfm_host = sdhci_priv(host); in bcm2835_sdhci_writew() 79 bcm2835_sdhci_readl(host, reg & ~3); in bcm2835_sdhci_writew() 88 bcm2835_sdhci_writel(host, newval, reg & ~3); in bcm2835_sdhci_writew() 91 static u16 bcm2835_sdhci_readw(struct sdhci_host *host, int reg) in bcm2835_sdhci_readw() argument 93 u32 val = bcm2835_sdhci_readl(host, (reg & ~3)); in bcm2835_sdhci_readw() [all …]
|
D | dw_mmc-pci.c | 42 struct dw_mci *host; in dw_mci_pci_probe() local 49 host = devm_kzalloc(&pdev->dev, sizeof(struct dw_mci), GFP_KERNEL); in dw_mci_pci_probe() 50 if (!host) in dw_mci_pci_probe() 53 host->irq = pdev->irq; in dw_mci_pci_probe() 54 host->irq_flags = IRQF_SHARED; in dw_mci_pci_probe() 55 host->dev = &pdev->dev; in dw_mci_pci_probe() 56 host->pdata = &pci_board_data; in dw_mci_pci_probe() 62 host->regs = pcim_iomap_table(pdev)[PCI_BAR_NO]; in dw_mci_pci_probe() 66 ret = dw_mci_probe(host); in dw_mci_pci_probe() 70 pci_set_drvdata(pdev, host); in dw_mci_pci_probe() [all …]
|
D | sdhci-of-arasan.c | 40 static unsigned int sdhci_arasan_get_timeout_clock(struct sdhci_host *host) in sdhci_arasan_get_timeout_clock() argument 44 struct sdhci_pltfm_host *pltfm_host = sdhci_priv(host); in sdhci_arasan_get_timeout_clock() 46 div = readl(host->ioaddr + SDHCI_ARASAN_CLK_CTRL_OFFSET); in sdhci_arasan_get_timeout_clock() 82 struct sdhci_host *host = platform_get_drvdata(pdev); in sdhci_arasan_suspend() local 83 struct sdhci_pltfm_host *pltfm_host = sdhci_priv(host); in sdhci_arasan_suspend() 87 ret = sdhci_suspend_host(host); in sdhci_arasan_suspend() 107 struct sdhci_host *host = platform_get_drvdata(pdev); in sdhci_arasan_resume() local 108 struct sdhci_pltfm_host *pltfm_host = sdhci_priv(host); in sdhci_arasan_resume() 125 return sdhci_resume_host(host); in sdhci_arasan_resume() 136 struct sdhci_host *host; in sdhci_arasan_probe() local [all …]
|
D | sdhci-pci-core.c | 51 slot->host->caps = in ricoh_mmc_probe_slot() 114 slot->host->mmc->caps |= MMC_CAP_8_BIT_DATA; in mrst_hc_probe_slot() 134 slot->host->mmc->caps |= MMC_CAP_8_BIT_DATA; in pch_hc_probe_slot() 143 struct sdhci_host *host = slot->host; in sdhci_pci_sd_cd() local 145 mmc_detect_change(host->mmc, msecs_to_jiffies(200)); in sdhci_pci_sd_cd() 209 slot->host->mmc->caps |= MMC_CAP_8_BIT_DATA | MMC_CAP_NONREMOVABLE; in mfd_emmc_probe_slot() 210 slot->host->mmc->caps2 |= MMC_CAP2_BOOTPART_NOACC | in mfd_emmc_probe_slot() 217 slot->host->mmc->caps |= MMC_CAP_POWER_OFF_CARD | MMC_CAP_NONREMOVABLE; in mfd_sdio_probe_slot() 255 static void sdhci_pci_int_hw_reset(struct sdhci_host *host) in sdhci_pci_int_hw_reset() argument 259 reg = sdhci_readb(host, SDHCI_POWER_CONTROL); in sdhci_pci_int_hw_reset() [all …]
|
D | sdhci-dove.c | 31 static u16 sdhci_dove_readw(struct sdhci_host *host, int reg) in sdhci_dove_readw() argument 41 ret = readw(host->ioaddr + reg); in sdhci_dove_readw() 46 static u32 sdhci_dove_readl(struct sdhci_host *host, int reg) in sdhci_dove_readl() argument 50 ret = readl(host->ioaddr + reg); in sdhci_dove_readl() 81 struct sdhci_host *host; in sdhci_dove_probe() local 85 host = sdhci_pltfm_init(pdev, &sdhci_dove_pdata, 0); in sdhci_dove_probe() 86 if (IS_ERR(host)) in sdhci_dove_probe() 87 return PTR_ERR(host); in sdhci_dove_probe() 89 pltfm_host = sdhci_priv(host); in sdhci_dove_probe() 95 ret = mmc_of_parse(host->mmc); in sdhci_dove_probe() [all …]
|
D | sdhci-cns3xxx.c | 21 static unsigned int sdhci_cns3xxx_get_max_clk(struct sdhci_host *host) in sdhci_cns3xxx_get_max_clk() argument 26 static void sdhci_cns3xxx_set_clock(struct sdhci_host *host, unsigned int clock) in sdhci_cns3xxx_set_clock() argument 28 struct device *dev = mmc_dev(host->mmc); in sdhci_cns3xxx_set_clock() 33 host->mmc->actual_clock = 0; in sdhci_cns3xxx_set_clock() 35 sdhci_writew(host, 0, SDHCI_CLOCK_CONTROL); in sdhci_cns3xxx_set_clock() 40 while (host->max_clk / div > clock) { in sdhci_cns3xxx_set_clock() 54 clock, host->max_clk / div); in sdhci_cns3xxx_set_clock() 62 sdhci_writew(host, clk, SDHCI_CLOCK_CONTROL); in sdhci_cns3xxx_set_clock() 65 while (!((clk = sdhci_readw(host, SDHCI_CLOCK_CONTROL)) in sdhci_cns3xxx_set_clock() 76 sdhci_writew(host, clk, SDHCI_CLOCK_CONTROL); in sdhci_cns3xxx_set_clock()
|
D | tmio_mmc.c | 63 struct tmio_mmc_host *host; in tmio_mmc_probe() local 95 host = tmio_mmc_host_alloc(pdev); in tmio_mmc_probe() 96 if (!host) in tmio_mmc_probe() 100 host->bus_shift = resource_size(res) >> 10; in tmio_mmc_probe() 102 ret = tmio_mmc_host_probe(host, pdata); in tmio_mmc_probe() 108 dev_name(&pdev->dev), host); in tmio_mmc_probe() 112 pr_info("%s at 0x%08lx irq %d\n", mmc_hostname(host->mmc), in tmio_mmc_probe() 113 (unsigned long)host->ctl, irq); in tmio_mmc_probe() 118 tmio_mmc_host_remove(host); in tmio_mmc_probe() 120 tmio_mmc_host_free(host); in tmio_mmc_probe() [all …]
|
D | sdhci-of-at91.c | 58 struct sdhci_host *host; in sdhci_at91_probe() local 95 host = sdhci_pltfm_init(pdev, soc_data, 0); in sdhci_at91_probe() 96 if (IS_ERR(host)) in sdhci_at91_probe() 97 return PTR_ERR(host); in sdhci_at91_probe() 105 caps0 = readl(host->ioaddr + SDHCI_CAPABILITIES); in sdhci_at91_probe() 106 caps1 = readl(host->ioaddr + SDHCI_CAPABILITIES_1); in sdhci_at91_probe() 127 writel(SDMMC_CACR_KEY | SDMMC_CACR_CAPWREN, host->ioaddr + SDMMC_CACR); in sdhci_at91_probe() 128 writel(caps1, host->ioaddr + SDHCI_CAPABILITIES_1); in sdhci_at91_probe() 130 writel(0, host->ioaddr + SDMMC_CACR); in sdhci_at91_probe() 138 pltfm_host = sdhci_priv(host); in sdhci_at91_probe() [all …]
|
/linux-4.4.14/drivers/mmc/core/ |
D | host.c | 42 struct mmc_host *host = cls_dev_to_mmc_host(dev); in mmc_host_classdev_release() local 44 idr_remove(&mmc_host_idr, host->index); in mmc_host_classdev_release() 46 kfree(host); in mmc_host_classdev_release() 64 void mmc_retune_enable(struct mmc_host *host) in mmc_retune_enable() argument 66 host->can_retune = 1; in mmc_retune_enable() 67 if (host->retune_period) in mmc_retune_enable() 68 mod_timer(&host->retune_timer, in mmc_retune_enable() 69 jiffies + host->retune_period * HZ); in mmc_retune_enable() 72 void mmc_retune_disable(struct mmc_host *host) in mmc_retune_disable() argument 74 host->can_retune = 0; in mmc_retune_disable() [all …]
|
D | core.c | 92 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 131 void mmc_request_done(struct mmc_host *host, struct mmc_request *mrq) in mmc_request_done() argument 142 mmc_retune_needed(host); in mmc_request_done() 144 if (err && cmd->retries && mmc_host_is_spi(host)) { in mmc_request_done() 149 if (err && cmd->retries && !mmc_card_removed(host->card)) { in mmc_request_done() 157 mmc_should_fail_request(host, mrq); in mmc_request_done() 159 led_trigger_event(host->led, LED_OFF); in mmc_request_done() 163 mmc_hostname(host), mrq->sbc->opcode, in mmc_request_done() [all …]
|
D | sdio.c | 119 mmc_hostname(card->host), cccr_vsn); in sdio_read_cccr() 160 if (mmc_host_uhs(card->host)) { in sdio_read_cccr() 208 if (!(card->host->caps & MMC_CAP_4_BIT_DATA)) in sdio_enable_wide() 220 mmc_hostname(card->host), ctrl); in sdio_enable_wide() 265 if (!(card->host->caps & MMC_CAP_4_BIT_DATA)) in sdio_disable_wide() 285 mmc_set_bus_width(card->host, MMC_BUS_WIDTH_1); in sdio_disable_wide() 297 else if ((card->host->caps & MMC_CAP_4_BIT_DATA) && in sdio_enable_4bit_bus() 309 mmc_set_bus_width(card->host, MMC_BUS_WIDTH_4); in sdio_enable_4bit_bus() 325 if (!(card->host->caps & MMC_CAP_SD_HIGHSPEED)) in mmc_sdio_switch_hs() 436 mmc_set_driver_type(card->host, drv_type); in sdio_select_driver_type() [all …]
|
D | sd.c | 178 mmc_hostname(card->host), csd_struct); in mmc_decode_csd() 202 mmc_hostname(card->host), scr_struct); in mmc_decode_scr() 233 mmc_hostname(card->host)); in mmc_read_ssr() 244 mmc_hostname(card->host)); in mmc_read_ssr() 269 mmc_hostname(card->host)); in mmc_read_ssr() 290 mmc_hostname(card->host)); in mmc_read_switch() 300 mmc_hostname(card->host)); in mmc_read_switch() 319 mmc_hostname(card->host)); in mmc_read_switch() 354 if (!(card->host->caps & MMC_CAP_SD_HIGHSPEED)) in mmc_sd_switch_hs() 363 "switch capabilities.\n", mmc_hostname(card->host)); in mmc_sd_switch_hs() [all …]
|
D | sdio_irq.c | 31 static int process_sdio_pending_irqs(struct mmc_host *host) in process_sdio_pending_irqs() argument 33 struct mmc_card *card = host->card; in process_sdio_pending_irqs() 44 if (func && host->sdio_irq_pending) { in process_sdio_pending_irqs() 57 !(host->caps & MMC_CAP_SDIO_IRQ)) { in process_sdio_pending_irqs() 92 void sdio_run_irqs(struct mmc_host *host) in sdio_run_irqs() argument 94 mmc_claim_host(host); in sdio_run_irqs() 95 host->sdio_irq_pending = true; in sdio_run_irqs() 96 process_sdio_pending_irqs(host); in sdio_run_irqs() 97 mmc_release_host(host); in sdio_run_irqs() 103 struct mmc_host *host = _host; in sdio_irq_thread() local [all …]
|
D | mmc.c | 110 mmc_hostname(card->host), card->csd.mmca_vsn); in mmc_decode_cid() 144 mmc_hostname(card->host), csd->structure); in mmc_decode_csd() 184 struct mmc_host *host = card->host; in mmc_select_card_type() local 186 u32 caps = host->caps, caps2 = host->caps2; in mmc_select_card_type() 287 mmc_hostname(card->host)); in mmc_manage_enhanced_area() 317 mmc_hostname(card->host)); in mmc_manage_gp_partitions() 354 "version %d\n", mmc_hostname(card->host), in mmc_decode_ext_csd() 361 np = mmc_of_find_child_device(card->host, 0); in mmc_decode_ext_csd() 425 if (ext_csd[EXT_CSD_BOOT_MULT] && mmc_boot_partition_access(card->host)) { in mmc_decode_ext_csd() 512 mmc_hostname(card->host)); in mmc_decode_ext_csd() [all …]
|
D | core.h | 33 void mmc_attach_bus(struct mmc_host *host, const struct mmc_bus_ops *ops); 34 void mmc_detach_bus(struct mmc_host *host); 36 struct device_node *mmc_of_find_child_device(struct mmc_host *host, 41 void mmc_set_chip_select(struct mmc_host *host, int mode); 42 void mmc_set_clock(struct mmc_host *host, unsigned int hz); 43 void mmc_set_bus_mode(struct mmc_host *host, unsigned int mode); 44 void mmc_set_bus_width(struct mmc_host *host, unsigned int width); 45 u32 mmc_select_voltage(struct mmc_host *host, u32 ocr); 46 int mmc_set_signal_voltage(struct mmc_host *host, int signal_voltage, u32 ocr); 47 int __mmc_set_signal_voltage(struct mmc_host *host, int signal_voltage); [all …]
|
D | slot-gpio.c | 36 struct mmc_host *host = dev_id; in mmc_gpio_cd_irqt() local 38 host->trigger_card_event = true; in mmc_gpio_cd_irqt() 39 mmc_detect_change(host, msecs_to_jiffies(200)); in mmc_gpio_cd_irqt() 44 int mmc_gpio_alloc(struct mmc_host *host) in mmc_gpio_alloc() argument 46 size_t len = strlen(dev_name(host->parent)) + 4; in mmc_gpio_alloc() 47 struct mmc_gpio *ctx = devm_kzalloc(host->parent, in mmc_gpio_alloc() 52 snprintf(ctx->cd_label, len, "%s cd", dev_name(host->parent)); in mmc_gpio_alloc() 53 snprintf(ctx->ro_label, len, "%s ro", dev_name(host->parent)); in mmc_gpio_alloc() 54 host->slot.handler_priv = ctx; in mmc_gpio_alloc() 55 host->slot.cd_irq = -EINVAL; in mmc_gpio_alloc() [all …]
|
D | pwrseq.h | 12 void (*pre_power_on)(struct mmc_host *host); 13 void (*post_power_on)(struct mmc_host *host); 14 void (*power_off)(struct mmc_host *host); 15 void (*free)(struct mmc_host *host); 24 int mmc_pwrseq_alloc(struct mmc_host *host); 25 void mmc_pwrseq_pre_power_on(struct mmc_host *host); 26 void mmc_pwrseq_post_power_on(struct mmc_host *host); 27 void mmc_pwrseq_power_off(struct mmc_host *host); 28 void mmc_pwrseq_free(struct mmc_host *host); 30 struct mmc_pwrseq *mmc_pwrseq_simple_alloc(struct mmc_host *host, [all …]
|
D | mmc_ops.c | 64 BUG_ON(!card->host); in __mmc_send_status() 67 if (!mmc_host_is_spi(card->host)) in __mmc_send_status() 73 err = mmc_wait_for_cmd(card->host, &cmd, MMC_CMD_RETRIES); in __mmc_send_status() 91 static int _mmc_select_card(struct mmc_host *host, struct mmc_card *card) in _mmc_select_card() argument 96 BUG_ON(!host); in _mmc_select_card() 108 err = mmc_wait_for_cmd(host, &cmd, MMC_CMD_RETRIES); in _mmc_select_card() 119 return _mmc_select_card(card->host, card); in mmc_select_card() 122 int mmc_deselect_cards(struct mmc_host *host) in mmc_deselect_cards() argument 124 return _mmc_select_card(host, NULL); in mmc_deselect_cards() 135 int mmc_set_dsr(struct mmc_host *host) in mmc_set_dsr() argument [all …]
|
D | pwrseq.c | 22 struct mmc_pwrseq *(*alloc)(struct mmc_host *host, struct device *dev); 50 int mmc_pwrseq_alloc(struct mmc_host *host) in mmc_pwrseq_alloc() argument 58 np = of_parse_phandle(host->parent->of_node, "mmc-pwrseq", 0); in mmc_pwrseq_alloc() 74 pwrseq = match->alloc(host, &pdev->dev); in mmc_pwrseq_alloc() 80 host->pwrseq = pwrseq; in mmc_pwrseq_alloc() 81 dev_info(host->parent, "allocated mmc-pwrseq\n"); in mmc_pwrseq_alloc() 88 void mmc_pwrseq_pre_power_on(struct mmc_host *host) in mmc_pwrseq_pre_power_on() argument 90 struct mmc_pwrseq *pwrseq = host->pwrseq; in mmc_pwrseq_pre_power_on() 93 pwrseq->ops->pre_power_on(host); in mmc_pwrseq_pre_power_on() 96 void mmc_pwrseq_post_power_on(struct mmc_host *host) in mmc_pwrseq_post_power_on() argument [all …]
|
D | bus.c | 132 struct mmc_host *host = card->host; in mmc_bus_shutdown() local 138 if (host->bus_ops->shutdown) { in mmc_bus_shutdown() 139 ret = host->bus_ops->shutdown(host); in mmc_bus_shutdown() 142 mmc_hostname(host), ret); in mmc_bus_shutdown() 150 struct mmc_host *host = card->host; in mmc_bus_suspend() local 157 ret = host->bus_ops->suspend(host); in mmc_bus_suspend() 164 struct mmc_host *host = card->host; in mmc_bus_resume() local 167 ret = host->bus_ops->resume(host); in mmc_bus_resume() 170 mmc_hostname(host), ret); in mmc_bus_resume() 181 struct mmc_host *host = card->host; in mmc_runtime_suspend() local [all …]
|
D | sd_ops.c | 25 int mmc_app_cmd(struct mmc_host *host, struct mmc_card *card) in mmc_app_cmd() argument 30 BUG_ON(!host); in mmc_app_cmd() 31 BUG_ON(card && (card->host != host)); in mmc_app_cmd() 43 err = mmc_wait_for_cmd(host, &cmd, 0); in mmc_app_cmd() 48 if (!mmc_host_is_spi(host) && !(cmd.resp[0] & R1_APP_CMD)) in mmc_app_cmd() 68 int mmc_wait_for_app_cmd(struct mmc_host *host, struct mmc_card *card, in mmc_wait_for_app_cmd() argument 85 err = mmc_app_cmd(host, card); in mmc_wait_for_app_cmd() 88 if (mmc_host_is_spi(host)) { in mmc_wait_for_app_cmd() 103 mmc_wait_for_req(host, &mrq); in mmc_wait_for_app_cmd() 110 if (mmc_host_is_spi(host)) { in mmc_wait_for_app_cmd() [all …]
|
D | debugfs.c | 55 struct mmc_host *host = s->private; in mmc_ios_show() local 56 struct mmc_ios *ios = &host->ios; in mmc_ios_show() 60 if (host->actual_clock) in mmc_ios_show() 61 seq_printf(s, "actual clock:\t%u Hz\n", host->actual_clock); in mmc_ios_show() 211 struct mmc_host *host = data; in mmc_clock_opt_get() local 213 *val = host->ios.clock; in mmc_clock_opt_get() 220 struct mmc_host *host = data; in mmc_clock_opt_set() local 223 if (val > host->f_max) in mmc_clock_opt_set() 226 mmc_claim_host(host); in mmc_clock_opt_set() 227 mmc_set_clock(host, (unsigned int) val); in mmc_clock_opt_set() [all …]
|
D | sdio_ops.c | 22 int mmc_send_io_op_cond(struct mmc_host *host, u32 ocr, u32 *rocr) in mmc_send_io_op_cond() argument 27 BUG_ON(!host); in mmc_send_io_op_cond() 34 err = mmc_wait_for_cmd(host, &cmd, MMC_CMD_RETRIES); in mmc_send_io_op_cond() 43 if (mmc_host_is_spi(host)) { in mmc_send_io_op_cond() 63 *rocr = cmd.resp[mmc_host_is_spi(host) ? 1 : 0]; in mmc_send_io_op_cond() 68 static int mmc_io_rw_direct_host(struct mmc_host *host, int write, unsigned fn, in mmc_io_rw_direct_host() argument 74 BUG_ON(!host); in mmc_io_rw_direct_host() 89 err = mmc_wait_for_cmd(host, &cmd, 0); in mmc_io_rw_direct_host() 93 if (mmc_host_is_spi(host)) { in mmc_io_rw_direct_host() 105 if (mmc_host_is_spi(host)) in mmc_io_rw_direct_host() [all …]
|
D | mmc_ops.h | 16 int mmc_deselect_cards(struct mmc_host *host); 17 int mmc_set_dsr(struct mmc_host *host); 18 int mmc_go_idle(struct mmc_host *host); 19 int mmc_send_op_cond(struct mmc_host *host, u32 ocr, u32 *rocr); 20 int mmc_all_send_cid(struct mmc_host *host, u32 *cid); 24 int mmc_send_cid(struct mmc_host *host, u32 *cid); 25 int mmc_spi_read_ocr(struct mmc_host *host, int highcap, u32 *ocrp); 26 int mmc_spi_set_crc(struct mmc_host *host, int use_crc); 30 int mmc_switch_status_error(struct mmc_host *host, u32 status);
|
D | pwrseq_simple.c | 43 static void mmc_pwrseq_simple_pre_power_on(struct mmc_host *host) in mmc_pwrseq_simple_pre_power_on() argument 45 struct mmc_pwrseq_simple *pwrseq = container_of(host->pwrseq, in mmc_pwrseq_simple_pre_power_on() 56 static void mmc_pwrseq_simple_post_power_on(struct mmc_host *host) in mmc_pwrseq_simple_post_power_on() argument 58 struct mmc_pwrseq_simple *pwrseq = container_of(host->pwrseq, in mmc_pwrseq_simple_post_power_on() 64 static void mmc_pwrseq_simple_power_off(struct mmc_host *host) in mmc_pwrseq_simple_power_off() argument 66 struct mmc_pwrseq_simple *pwrseq = container_of(host->pwrseq, in mmc_pwrseq_simple_power_off() 77 static void mmc_pwrseq_simple_free(struct mmc_host *host) in mmc_pwrseq_simple_free() argument 79 struct mmc_pwrseq_simple *pwrseq = container_of(host->pwrseq, in mmc_pwrseq_simple_free() 97 struct mmc_pwrseq *mmc_pwrseq_simple_alloc(struct mmc_host *host, in mmc_pwrseq_simple_alloc() argument
|
D | host.h | 18 void mmc_retune_enable(struct mmc_host *host); 19 void mmc_retune_disable(struct mmc_host *host); 20 void mmc_retune_hold(struct mmc_host *host); 21 void mmc_retune_release(struct mmc_host *host); 22 int mmc_retune(struct mmc_host *host);
|
/linux-4.4.14/drivers/scsi/ |
D | initio.c | 147 static struct scsi_ctrl_blk *initio_find_busy_scb(struct initio_host * host, u16 tarlun); 148 static struct scsi_ctrl_blk *initio_find_done_scb(struct initio_host * host); 150 static int tulip_main(struct initio_host * host); 152 static int initio_next_state(struct initio_host * host); 153 static int initio_state_1(struct initio_host * host); 154 static int initio_state_2(struct initio_host * host); 155 static int initio_state_3(struct initio_host * host); 156 static int initio_state_4(struct initio_host * host); 157 static int initio_state_5(struct initio_host * host); 158 static int initio_state_6(struct initio_host * host); [all …]
|
D | a100u2w.c | 85 static struct orc_scb *__orc_alloc_scb(struct orc_host * host); 86 static void inia100_scb_handler(struct orc_host *host, struct orc_scb *scb); 139 static u8 wait_chip_ready(struct orc_host * host) in wait_chip_ready() argument 144 if (inb(host->base + ORC_HCTRL) & HOSTSTOP) /* Wait HOSTSTOP set */ in wait_chip_ready() 151 static u8 wait_firmware_ready(struct orc_host * host) in wait_firmware_ready() argument 156 if (inb(host->base + ORC_HSTUS) & RREADY) /* Wait READY set */ in wait_firmware_ready() 164 static u8 wait_scsi_reset_done(struct orc_host * host) in wait_scsi_reset_done() argument 169 if (!(inb(host->base + ORC_HCTRL) & SCSIRST)) /* Wait SCSIRST done */ in wait_scsi_reset_done() 177 static u8 wait_HDO_off(struct orc_host * host) in wait_HDO_off() argument 182 if (!(inb(host->base + ORC_HCTRL) & HDO)) /* Wait HDO off */ in wait_HDO_off() [all …]
|
D | aha1740.c | 86 #define HOSTDATA(host) ((struct aha1740_hostdata *) &host->hostdata) argument 88 static inline struct ecb *ecb_dma_to_cpu (struct Scsi_Host *host, in ecb_dma_to_cpu() argument 91 struct aha1740_hostdata *hdata = HOSTDATA (host); in ecb_dma_to_cpu() 99 static inline dma_addr_t ecb_cpu_to_dma (struct Scsi_Host *host, void *cpu) in ecb_cpu_to_dma() argument 101 struct aha1740_hostdata *hdata = HOSTDATA (host); in ecb_cpu_to_dma() 111 struct aha1740_hostdata *host = HOSTDATA(shpnt); in aha1740_show_info() local 114 shpnt->io_port, shpnt->irq, host->edev->slot, in aha1740_show_info() 115 host->translation ? "en" : "dis"); in aha1740_show_info() 209 struct Scsi_Host *host = (struct Scsi_Host *) dev_id; in aha1740_intr_handle() local 221 if (!host) in aha1740_intr_handle() [all …]
|
D | wd7000.c | 467 Adapter *host; /* host adapter */ member 738 static inline void wd7000_enable_intr(Adapter * host) in wd7000_enable_intr() argument 740 host->control |= INT_EN; in wd7000_enable_intr() 741 outb(host->control, host->iobase + ASC_CONTROL); in wd7000_enable_intr() 745 static inline void wd7000_enable_dma(Adapter * host) in wd7000_enable_dma() argument 748 host->control |= DMA_EN; in wd7000_enable_dma() 749 outb(host->control, host->iobase + ASC_CONTROL); in wd7000_enable_dma() 752 set_dma_mode(host->dma, DMA_MODE_CASCADE); in wd7000_enable_dma() 753 enable_dma(host->dma); in wd7000_enable_dma() 777 static inline int command_out(Adapter * host, unchar * cmd, int len) in command_out() argument [all …]
|
D | 53c700.c | 173 STATIC void NCR_700_chip_setup(struct Scsi_Host *host); 174 STATIC void NCR_700_chip_reset(struct Scsi_Host *host); 278 (struct NCR_700_Host_Parameters *)SDp->host->hostdata[0]; in NCR_700_get_SXFER() 292 struct Scsi_Host *host; in NCR_700_detect() local 334 host = scsi_host_alloc(tpnt, 4); in NCR_700_detect() 335 if (!host) in NCR_700_detect() 369 host->max_id = 8; in NCR_700_detect() 370 host->max_lun = NCR_700_MAX_LUNS; in NCR_700_detect() 372 host->transportt = NCR_700_transport_template; in NCR_700_detect() 373 host->unique_id = (unsigned long)hostdata->base; in NCR_700_detect() [all …]
|
D | a4000t.c | 39 struct Scsi_Host *host; in amiga_a4000t_scsi_probe() local 66 host = NCR_700_detect(&a4000t_scsi_driver_template, hostdata, in amiga_a4000t_scsi_probe() 68 if (!host) { in amiga_a4000t_scsi_probe() 74 host->this_id = 7; in amiga_a4000t_scsi_probe() 75 host->base = scsi_addr; in amiga_a4000t_scsi_probe() 76 host->irq = IRQ_AMIGA_PORTS; in amiga_a4000t_scsi_probe() 78 if (request_irq(host->irq, NCR_700_intr, IRQF_SHARED, "a4000t-scsi", in amiga_a4000t_scsi_probe() 79 host)) { in amiga_a4000t_scsi_probe() 84 platform_set_drvdata(pdev, host); in amiga_a4000t_scsi_probe() 85 scsi_scan_host(host); in amiga_a4000t_scsi_probe() [all …]
|
D | sni_53c710.c | 72 struct Scsi_Host *host; in snirm710_probe() local 96 host = NCR_700_detect(&snirm710_template, hostdata, &dev->dev); in snirm710_probe() 97 if (!host) in snirm710_probe() 99 host->this_id = 7; in snirm710_probe() 100 host->base = base; in snirm710_probe() 101 host->irq = platform_get_irq(dev, 0); in snirm710_probe() 102 if(request_irq(host->irq, NCR_700_intr, IRQF_SHARED, "snirm710", host)) { in snirm710_probe() 107 dev_set_drvdata(&dev->dev, host); in snirm710_probe() 108 scsi_scan_host(host); in snirm710_probe() 113 scsi_host_put(host); in snirm710_probe() [all …]
|
D | mvme16x_scsi.c | 39 struct Scsi_Host * host = NULL; in mvme16x_probe() local 67 host = NCR_700_detect(&mvme16x_scsi_driver_template, hostdata, in mvme16x_probe() 69 if (!host) { in mvme16x_probe() 74 host->this_id = 7; in mvme16x_probe() 75 host->base = 0xfff47000UL; in mvme16x_probe() 76 host->irq = MVME16x_IRQ_SCSI; in mvme16x_probe() 77 if (request_irq(host->irq, NCR_700_intr, 0, "mvme16x-scsi", host)) { in mvme16x_probe() 92 platform_set_drvdata(dev, host); in mvme16x_probe() 93 scsi_scan_host(host); in mvme16x_probe() 98 scsi_host_put(host); in mvme16x_probe() [all …]
|
D | bvme6000_scsi.c | 40 struct Scsi_Host *host; in bvme6000_probe() local 62 host = NCR_700_detect(&bvme6000_scsi_driver_template, hostdata, in bvme6000_probe() 64 if (!host) { in bvme6000_probe() 69 host->base = BVME_NCR53C710_BASE; in bvme6000_probe() 70 host->this_id = 7; in bvme6000_probe() 71 host->irq = BVME_IRQ_SCSI; in bvme6000_probe() 73 host)) { in bvme6000_probe() 78 platform_set_drvdata(dev, host); in bvme6000_probe() 79 scsi_scan_host(host); in bvme6000_probe() 84 scsi_host_put(host); in bvme6000_probe() [all …]
|
D | sgiwd93.c | 41 #define host_to_hostdata(host) ((struct ip22_hostdata *)((host)->hostdata)) argument 55 struct Scsi_Host * host = dev_id; in sgiwd93_intr() local 58 spin_lock_irqsave(host->host_lock, flags); in sgiwd93_intr() 59 wd33c93_intr(host); in sgiwd93_intr() 60 spin_unlock_irqrestore(host->host_lock, flags); in sgiwd93_intr() 105 struct ip22_hostdata *hdata = host_to_hostdata(cmd->device->host); in dma_setup() 107 (struct hpc3_scsiregs *) cmd->device->host->base; in dma_setup() 148 hregs = (struct hpc3_scsiregs *) SCpnt->device->host->base; in dma_stop() 202 spin_lock_irq(cmd->device->host->host_lock); in sgiwd93_bus_reset() 204 spin_unlock_irq(cmd->device->host->host_lock); in sgiwd93_bus_reset() [all …]
|
D | zorro7xx.c | 77 struct Scsi_Host *host; in zorro7xx_init_one() local 118 host = NCR_700_detect(&zorro7xx_scsi_driver_template, hostdata, in zorro7xx_init_one() 120 if (!host) { in zorro7xx_init_one() 126 host->this_id = 7; in zorro7xx_init_one() 127 host->base = ioaddr; in zorro7xx_init_one() 128 host->irq = IRQ_AMIGA_PORTS; in zorro7xx_init_one() 130 if (request_irq(host->irq, NCR_700_intr, IRQF_SHARED, "zorro7xx-scsi", in zorro7xx_init_one() 131 host)) { in zorro7xx_init_one() 136 zorro_set_drvdata(z, host); in zorro7xx_init_one() 137 scsi_scan_host(host); in zorro7xx_init_one() [all …]
|
D | lasi700.c | 103 struct Scsi_Host *host; in lasi700_probe() local 127 host = NCR_700_detect(&lasi700_template, hostdata, &dev->dev); in lasi700_probe() 128 if (!host) in lasi700_probe() 130 host->this_id = 7; in lasi700_probe() 131 host->base = base; in lasi700_probe() 132 host->irq = dev->irq; in lasi700_probe() 133 if(request_irq(dev->irq, NCR_700_intr, IRQF_SHARED, "lasi700", host)) { in lasi700_probe() 138 dev_set_drvdata(&dev->dev, host); in lasi700_probe() 139 scsi_scan_host(host); in lasi700_probe() 144 scsi_host_put(host); in lasi700_probe() [all …]
|
D | 3w-sas.c | 114 spin_lock_irqsave(tw_dev->host->host_lock, flags); in twl_sysfs_aen_read() 116 spin_unlock_irqrestore(tw_dev->host->host_lock, flags); in twl_sysfs_aen_read() 145 spin_lock_irqsave(tw_dev->host->host_lock, flags); in twl_sysfs_compat_info() 147 spin_unlock_irqrestore(tw_dev->host->host_lock, flags); in twl_sysfs_compat_info() 166 struct Scsi_Host *host = class_to_shost(dev); in twl_show_stats() local 167 TW_Device_Extension *tw_dev = (TW_Device_Extension *)host->hostdata; in twl_show_stats() 171 spin_lock_irqsave(tw_dev->host->host_lock, flags); in twl_show_stats() 190 spin_unlock_irqrestore(tw_dev->host->host_lock, flags); in twl_show_stats() 230 char host[16]; in twl_aen_queue_event() local 238 host[0] = '\0'; in twl_aen_queue_event() [all …]
|
D | sim710.c | 101 struct Scsi_Host * host = NULL; in sim710_probe_common() local 128 if((host = NCR_700_detect(&sim710_driver_template, hostdata, dev)) in sim710_probe_common() 133 host->this_id = scsi_id; in sim710_probe_common() 134 host->base = base_addr; in sim710_probe_common() 135 host->irq = irq; in sim710_probe_common() 136 if (request_irq(irq, NCR_700_intr, IRQF_SHARED, "sim710", host)) { in sim710_probe_common() 141 dev_set_drvdata(dev, host); in sim710_probe_common() 142 scsi_scan_host(host); in sim710_probe_common() 147 scsi_host_put(host); in sim710_probe_common() 158 struct Scsi_Host *host = dev_get_drvdata(dev); in sim710_device_remove() local [all …]
|
D | xen-scsifront.c | 103 struct Scsi_Host *host; member 214 shost_printk(KERN_ALERT, info->host, KBUILD_MODNAME in scsifront_gnttab_done() 273 shost_printk(KERN_ERR, info->host, KBUILD_MODNAME in scsifront_sync_cmd_done() 325 spin_lock_irqsave(info->host->host_lock, flags); in scsifront_cmd_done() 331 spin_unlock_irqrestore(info->host->host_lock, flags); in scsifront_cmd_done() 390 if (data_grants > info->host->sg_tablesize) { in map_data_for_request() 391 shost_printk(KERN_ERR, info->host, KBUILD_MODNAME in map_data_for_request() 407 shost_printk(KERN_ERR, info->host, KBUILD_MODNAME in map_data_for_request() 598 struct Scsi_Host *host = sc->device->host; in scsifront_action_handler() local 599 struct vscsifrnt_info *info = shost_priv(host); in scsifront_action_handler() [all …]
|
D | zalon.c | 94 struct Scsi_Host *host; in zalon_probe() local 135 host = ncr_attach(&zalon7xx_template, unit, &device); in zalon_probe() 136 if (!host) in zalon_probe() 139 if (request_irq(dev->irq, ncr53c8xx_intr, IRQF_SHARED, "zalon", host)) { in zalon_probe() 147 dev_set_drvdata(&dev->dev, host); in zalon_probe() 149 error = scsi_add_host(host, &dev->dev); in zalon_probe() 153 scsi_scan_host(host); in zalon_probe() 157 free_irq(dev->irq, host); in zalon_probe() 159 ncr53c8xx_release(host); in zalon_probe() 172 struct Scsi_Host *host = dev_get_drvdata(&dev->dev); in zalon_remove() local [all …]
|
D | storvsc_drv.c | 420 struct Scsi_Host *host; member 451 struct Scsi_Host *host; member 464 sdev = scsi_device_lookup(wrk->host, 0, 0, lun); in storvsc_device_scan() 477 struct Scsi_Host *host; in storvsc_host_scan() local 481 host = wrk->host; in storvsc_host_scan() 494 mutex_lock(&host->scan_mutex); in storvsc_host_scan() 495 shost_for_each_device(sdev, host) in storvsc_host_scan() 497 mutex_unlock(&host->scan_mutex); in storvsc_host_scan() 501 scsi_scan_host(host); in storvsc_host_scan() 512 if (!scsi_host_get(wrk->host)) in storvsc_remove_lun() [all …]
|
D | 3w-9xxx.c | 159 struct Scsi_Host *host = class_to_shost(dev); in twa_show_stats() local 160 TW_Device_Extension *tw_dev = (TW_Device_Extension *)host->hostdata; in twa_show_stats() 164 spin_lock_irqsave(tw_dev->host->host_lock, flags); in twa_show_stats() 187 spin_unlock_irqrestore(tw_dev->host->host_lock, flags); in twa_show_stats() 311 TW_PRINTK(tw_dev->host, TW_DRIVER, 0x1, "Found unaligned address during AEN drain"); in twa_aen_drain_queue() 321 TW_PRINTK(tw_dev->host, TW_DRIVER, 0x2, "Error posting request sense"); in twa_aen_drain_queue() 327 TW_PRINTK(tw_dev->host, TW_DRIVER, 0x3, "No valid response while draining AEN queue"); in twa_aen_drain_queue() 378 char host[16]; in twa_aen_queue_event() local 387 host[0] = '\0'; in twa_aen_queue_event() 388 if (tw_dev->host) { in twa_aen_queue_event() [all …]
|
D | NCR_D700.c | 181 struct Scsi_Host *host; in NCR_D700_probe_one() local 205 host = NCR_700_detect(&NCR_D700_driver_template, hostdata, p->dev); in NCR_D700_probe_one() 206 if (!host) { in NCR_D700_probe_one() 211 p->hosts[siop] = host; in NCR_D700_probe_one() 213 host->this_id = id_array[slot * 2 + siop]; in NCR_D700_probe_one() 214 host->irq = irq; in NCR_D700_probe_one() 215 host->base = region; in NCR_D700_probe_one() 216 scsi_scan_host(host); in NCR_D700_probe_one() 353 NCR_D700_remove_one(struct Scsi_Host *host) in NCR_D700_remove_one() argument 355 scsi_remove_host(host); in NCR_D700_remove_one() [all …]
|
D | jazz_esp.c | 135 struct Scsi_Host *host; in esp_jazz_probe() local 140 host = scsi_host_alloc(tpnt, sizeof(struct esp)); in esp_jazz_probe() 143 if (!host) in esp_jazz_probe() 146 host->max_id = 8; in esp_jazz_probe() 147 esp = shost_priv(host); in esp_jazz_probe() 149 esp->host = host; in esp_jazz_probe() 173 host->irq = platform_get_irq(dev, 0); in esp_jazz_probe() 174 err = request_irq(host->irq, scsi_esp_intr, IRQF_SHARED, "ESP", esp); in esp_jazz_probe() 179 esp->host->this_id = esp->scsi_id; in esp_jazz_probe() 192 free_irq(host->irq, esp); in esp_jazz_probe() [all …]
|
D | scsi_ioctl.c | 41 static int ioctl_probe(struct Scsi_Host *host, void __user *buffer) in ioctl_probe() argument 50 if (host->hostt->info) in ioctl_probe() 51 string = host->hostt->info(host); in ioctl_probe() 53 string = host->hostt->name; in ioctl_probe() 174 struct device *dev = scsi_get_device(sdev->host); in scsi_ioctl_get_pci() 227 + ((sdev->host->host_no & 0xff) << 24), in scsi_ioctl() 229 __put_user(sdev->host->unique_id, in scsi_ioctl() 233 return put_user(sdev->host->host_no, (int __user *)arg); in scsi_ioctl() 235 return ioctl_probe(sdev->host, arg); in scsi_ioctl() 266 if (sdev->host->hostt->ioctl) in scsi_ioctl() [all …]
|
D | sun3x_esp.c | 122 esp->host->unique_id); in sun3x_esp_dma_drain() 138 "invalidate!\n", esp->host->unique_id); in sun3x_esp_dma_invalidate() 200 struct Scsi_Host *host; in esp_sun3x_probe() local 205 host = scsi_host_alloc(tpnt, sizeof(struct esp)); in esp_sun3x_probe() 206 if (!host) in esp_sun3x_probe() 209 host->max_id = 8; in esp_sun3x_probe() 210 esp = shost_priv(host); in esp_sun3x_probe() 212 esp->host = host; in esp_sun3x_probe() 236 host->irq = platform_get_irq(dev, 0); in esp_sun3x_probe() 237 err = request_irq(host->irq, scsi_esp_intr, IRQF_SHARED, in esp_sun3x_probe() [all …]
|
D | nsp32.c | 369 nsp32_hw_data *data = (nsp32_hw_data *)SCpnt->device->host->hostdata; in nsp32_build_identify() 390 nsp32_hw_data *data = (nsp32_hw_data *)SCpnt->device->host->hostdata; in nsp32_build_sdtr() 407 nsp32_hw_data *data = (nsp32_hw_data *)SCpnt->device->host->hostdata; in nsp32_build_nop() 425 nsp32_hw_data *data = (nsp32_hw_data *)SCpnt->device->host->hostdata; in nsp32_build_reject() 438 unsigned int base = SCpnt->host->io_port; 456 nsp32_hw_data *data = (nsp32_hw_data *)SCpnt->device->host->hostdata; in nsp32_selection_autopara() 457 unsigned int base = SCpnt->device->host->io_port; in nsp32_selection_autopara() 458 unsigned int host_id = SCpnt->device->host->this_id; in nsp32_selection_autopara() 587 nsp32_hw_data *data = (nsp32_hw_data *)SCpnt->device->host->hostdata; in nsp32_selection_autoscsi() 588 unsigned int base = SCpnt->device->host->io_port; in nsp32_selection_autoscsi() [all …]
|
D | stex.c | 301 struct Scsi_Host *host; member 420 dst->max_sg_count = cpu_to_le16(hba->host->sg_tablesize); in stex_map_sg() 452 dst->max_sg_count = cpu_to_le16(hba->host->sg_tablesize); in stex_ss_map_sg() 553 struct Scsi_Host *host; in stex_queuecommand_lck() local 558 host = cmd->device->host; in stex_queuecommand_lck() 561 hba = (struct st_hba *) &host->hostdata[0]; in stex_queuecommand_lck() 589 if (hba->cardtype == st_shasta || id == host->max_id - 1) { in stex_queuecommand_lck() 595 if (id == host->max_id - 1) { in stex_queuecommand_lck() 602 if (lun >= host->max_lun) { in stex_queuecommand_lck() 607 if (id != host->max_id - 1) in stex_queuecommand_lck() [all …]
|
/linux-4.4.14/drivers/block/ |
D | mg_disk.c | 149 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 …]
|
D | sx8.c | 246 struct carm_host *host; member 467 static inline void *carm_ref_msg(struct carm_host *host, in carm_ref_msg() argument 470 return host->msg_base + (msg_idx * CARM_MSG_SIZE); in carm_ref_msg() 473 static inline dma_addr_t carm_ref_msg_dma(struct carm_host *host, in carm_ref_msg_dma() argument 476 return host->msg_dma + (msg_idx * CARM_MSG_SIZE); in carm_ref_msg_dma() 479 static int carm_send_msg(struct carm_host *host, in carm_send_msg() argument 482 void __iomem *mmio = host->mmio; in carm_send_msg() 483 u32 msg = (u32) carm_ref_msg_dma(host, crq->tag); in carm_send_msg() 508 static struct carm_request *carm_get_request(struct carm_host *host) in carm_get_request() argument 513 if (host->hw_sg_used >= (CARM_MAX_HOST_SG - CARM_MAX_REQ_SG)) in carm_get_request() [all …]
|
/linux-4.4.14/fs/lockd/ |
D | host.c | 36 #define for_each_host(host, chain, table) \ argument 39 hlist_for_each_entry((host), (chain), h_hash) 41 #define for_each_host_safe(host, next, chain, table) \ argument 44 hlist_for_each_entry_safe((host), (next), \ 112 struct nlm_host *host = NULL; in nlm_alloc_host() local 118 host = NULL; in nlm_alloc_host() 128 host = kmalloc(sizeof(*host), GFP_KERNEL); in nlm_alloc_host() 129 if (unlikely(host == NULL)) { in nlm_alloc_host() 135 memcpy(nlm_addr(host), ni->sap, ni->salen); in nlm_alloc_host() 136 host->h_addrlen = ni->salen; in nlm_alloc_host() [all …]
|
D | clntlock.c | 55 struct nlm_host *host; in nlmclnt_init() local 63 host = nlmclnt_lookup_host(nlm_init->address, nlm_init->addrlen, in nlmclnt_init() 67 if (host == NULL) in nlmclnt_init() 69 if (host->h_rpcclnt == NULL && nlm_bind_host(host) == NULL) in nlmclnt_init() 72 return host; in nlmclnt_init() 74 nlmclnt_release_host(host); in nlmclnt_init() 86 void nlmclnt_done(struct nlm_host *host) in nlmclnt_done() argument 88 struct net *net = host->net; in nlmclnt_done() 90 nlmclnt_release_host(host); in nlmclnt_done() 98 struct nlm_wait *nlmclnt_prepare_block(struct nlm_host *host, struct file_lock *fl) in nlmclnt_prepare_block() argument [all …]
|
D | clntproc.c | 30 static void nlmclnt_locks_init_private(struct file_lock *fl, struct nlm_host *host); 57 if (!atomic_dec_and_lock(&lockowner->count, &lockowner->host->h_lock)) in nlm_put_lockowner() 60 spin_unlock(&lockowner->host->h_lock); in nlm_put_lockowner() 61 nlmclnt_release_host(lockowner->host); in nlm_put_lockowner() 65 static inline int nlm_pidbusy(struct nlm_host *host, uint32_t pid) in nlm_pidbusy() argument 68 list_for_each_entry(lockowner, &host->h_lockowners, list) { in nlm_pidbusy() 75 static inline uint32_t __nlm_alloc_pid(struct nlm_host *host) in __nlm_alloc_pid() argument 79 res = host->h_pidcount++; in __nlm_alloc_pid() 80 } while (nlm_pidbusy(host, res) < 0); in __nlm_alloc_pid() 84 static struct nlm_lockowner *__nlm_find_lockowner(struct nlm_host *host, fl_owner_t owner) in __nlm_find_lockowner() argument [all …]
|
D | svc4proc.c | 25 struct nlm_host *host = NULL; in nlm4svc_retrieve_args() local 35 if (!(host = nlmsvc_lookup_host(rqstp, lock->caller, lock->len)) in nlm4svc_retrieve_args() 36 || (argp->monitor && nsm_monitor(host) < 0)) in nlm4svc_retrieve_args() 38 *hostp = host; in nlm4svc_retrieve_args() 48 lock->fl.fl_owner = (fl_owner_t) host; in nlm4svc_retrieve_args() 55 nlmsvc_release_host(host); in nlm4svc_retrieve_args() 78 struct nlm_host *host; in nlm4svc_proc_test() local 86 if ((resp->status = nlm4svc_retrieve_args(rqstp, argp, &host, &file))) in nlm4svc_proc_test() 90 resp->status = nlmsvc_testlock(rqstp, file, host, &argp->lock, &resp->lock, &resp->cookie); in nlm4svc_proc_test() 96 nlmsvc_release_host(host); in nlm4svc_proc_test() [all …]
|
D | svcproc.c | 54 struct nlm_host *host = NULL; in nlmsvc_retrieve_args() local 64 if (!(host = nlmsvc_lookup_host(rqstp, lock->caller, lock->len)) in nlmsvc_retrieve_args() 65 || (argp->monitor && nsm_monitor(host) < 0)) in nlmsvc_retrieve_args() 67 *hostp = host; in nlmsvc_retrieve_args() 78 lock->fl.fl_owner = (fl_owner_t) host; in nlmsvc_retrieve_args() 85 nlmsvc_release_host(host); in nlmsvc_retrieve_args() 108 struct nlm_host *host; in nlmsvc_proc_test() local 116 if ((resp->status = nlmsvc_retrieve_args(rqstp, argp, &host, &file))) in nlmsvc_proc_test() 120 …resp->status = cast_status(nlmsvc_testlock(rqstp, file, host, &argp->lock, &resp->lock, &resp->coo… in nlmsvc_proc_test() 127 nlmsvc_release_host(host); in nlmsvc_proc_test() [all …]
|
D | svcsubs.c | 162 nlm_traverse_locks(struct nlm_host *host, struct nlm_file *file, in nlm_traverse_locks() argument 183 if (match(lockhost, host)) { in nlm_traverse_locks() 213 nlm_inspect_file(struct nlm_host *host, struct nlm_file *file, nlm_host_match_fn_t match) in nlm_inspect_file() argument 215 nlmsvc_traverse_blocks(host, file, match); in nlm_inspect_file() 216 nlmsvc_traverse_shares(host, file, match); in nlm_inspect_file() 217 return nlm_traverse_locks(host, file, match); in nlm_inspect_file() 332 struct nlm_host *host = data; in nlmsvc_mark_host() local 335 (host->net == hint->net)) in nlmsvc_mark_host() 336 host->h_inuse = 1; in nlmsvc_mark_host() 343 struct nlm_host *host = data; in nlmsvc_same_host() local [all …]
|
/linux-4.4.14/drivers/memstick/host/ |
D | jmb38x_ms.c | 157 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 …]
|
D | tifm_ms.c | 86 static unsigned int tifm_ms_read_data(struct tifm_ms *host, in tifm_ms_read_data() argument 89 struct tifm_dev *sock = host->dev; in tifm_ms_read_data() 92 while (host->io_pos && length) { in tifm_ms_read_data() 93 buf[off++] = host->io_word & 0xff; in tifm_ms_read_data() 94 host->io_word >>= 8; in tifm_ms_read_data() 96 host->io_pos--; in tifm_ms_read_data() 113 host->io_word = readl(sock->addr + SOCK_MS_DATA); in tifm_ms_read_data() 114 for (host->io_pos = 4; host->io_pos; --host->io_pos) { in tifm_ms_read_data() 115 buf[off++] = host->io_word & 0xff; in tifm_ms_read_data() 116 host->io_word >>= 8; in tifm_ms_read_data() [all …]
|
D | rtsx_usb_ms.c | 54 static inline struct device *ms_dev(struct rtsx_usb_ms *host) in ms_dev() argument 56 return &(host->pdev->dev); in ms_dev() 59 static inline void ms_clear_error(struct rtsx_usb_ms *host) in ms_clear_error() argument 61 struct rtsx_ucr *ucr = host->ucr; in ms_clear_error() 72 static void ms_print_debug_regs(struct rtsx_usb_ms *host) in ms_print_debug_regs() argument 74 struct rtsx_ucr *ucr = host->ucr; in ms_print_debug_regs() 104 dev_dbg(ms_dev(host), "0x%04X: 0x%02x\n", i, *(ptr++)); in ms_print_debug_regs() 106 dev_dbg(ms_dev(host), "0x%04X: 0x%02x\n", i, *(ptr++)); in ms_print_debug_regs() 108 dev_dbg(ms_dev(host), "0x%04X: 0x%02x\n", i, *(ptr++)); in ms_print_debug_regs() 110 dev_dbg(ms_dev(host), "0x%04X: 0x%02x\n", CARD_DATA_SOURCE, *(ptr++)); in ms_print_debug_regs() [all …]
|
D | rtsx_pci_ms.c | 45 static inline struct device *ms_dev(struct realtek_pci_ms *host) in ms_dev() argument 47 return &(host->pdev->dev); in ms_dev() 50 static inline void ms_clear_error(struct realtek_pci_ms *host) in ms_clear_error() argument 52 rtsx_pci_write_register(host->pcr, CARD_STOP, in ms_clear_error() 58 static void ms_print_debug_regs(struct realtek_pci_ms *host) in ms_print_debug_regs() argument 60 struct rtsx_pcr *pcr = host->pcr; in ms_print_debug_regs() 74 dev_dbg(ms_dev(host), "0x%04X: 0x%02x\n", i, *(ptr++)); in ms_print_debug_regs() 76 dev_dbg(ms_dev(host), "0x%04X: 0x%02x\n", i, *(ptr++)); in ms_print_debug_regs() 81 #define ms_print_debug_regs(host) argument 85 static int ms_power_on(struct realtek_pci_ms *host) in ms_power_on() argument [all …]
|
/linux-4.4.14/drivers/mtd/nand/ |
D | hisi504_nand.c | 155 static inline unsigned int hinfc_read(struct hinfc_host *host, unsigned int reg) in hinfc_read() argument 157 return readl(host->iobase + reg); in hinfc_read() 160 static inline void hinfc_write(struct hinfc_host *host, unsigned int value, in hinfc_write() argument 163 writel(value, host->iobase + reg); in hinfc_write() 166 static void wait_controller_finished(struct hinfc_host *host) in wait_controller_finished() argument 172 val = hinfc_read(host, HINFC504_STATUS); in wait_controller_finished() 173 if (host->command == NAND_CMD_ERASE2) { in wait_controller_finished() 177 val = hinfc_read(host, HINFC504_STATUS); in wait_controller_finished() 187 dev_err(host->dev, "Wait NAND controller exec cmd timeout.\n"); in wait_controller_finished() 190 static void hisi_nfc_dma_transfer(struct hinfc_host *host, int todev) in hisi_nfc_dma_transfer() argument [all …]
|
D | mxc_nand.c | 45 #define NFC_V1_V2_BUF_SIZE (host->regs + 0x00) 46 #define NFC_V1_V2_BUF_ADDR (host->regs + 0x04) 47 #define NFC_V1_V2_FLASH_ADDR (host->regs + 0x06) 48 #define NFC_V1_V2_FLASH_CMD (host->regs + 0x08) 49 #define NFC_V1_V2_CONFIG (host->regs + 0x0a) 50 #define NFC_V1_V2_ECC_STATUS_RESULT (host->regs + 0x0c) 51 #define NFC_V1_V2_RSLTMAIN_AREA (host->regs + 0x0e) 52 #define NFC_V1_V2_RSLTSPARE_AREA (host->regs + 0x10) 53 #define NFC_V1_V2_WRPROT (host->regs + 0x12) 54 #define NFC_V1_UNLOCKSTART_BLKADDR (host->regs + 0x14) [all …]
|
D | atmel_nand.c | 165 static void atmel_nand_enable(struct atmel_nand_host *host) in atmel_nand_enable() argument 167 if (gpio_is_valid(host->board.enable_pin)) in atmel_nand_enable() 168 gpio_set_value(host->board.enable_pin, 0); in atmel_nand_enable() 174 static void atmel_nand_disable(struct atmel_nand_host *host) in atmel_nand_disable() argument 176 if (gpio_is_valid(host->board.enable_pin)) in atmel_nand_disable() 177 gpio_set_value(host->board.enable_pin, 1); in atmel_nand_disable() 186 struct atmel_nand_host *host = nand_chip->priv; in atmel_nand_cmd_ctrl() local 190 atmel_nand_enable(host); in atmel_nand_cmd_ctrl() 192 atmel_nand_disable(host); in atmel_nand_cmd_ctrl() 198 writeb(cmd, host->io_base + (1 << host->board.cle)); in atmel_nand_cmd_ctrl() [all …]
|
D | lpc32xx_mlc.c | 228 static void lpc32xx_nand_setup(struct lpc32xx_nand_host *host) in lpc32xx_nand_setup() argument 233 writel(MLCCMD_RESET, MLC_CMD(host->io_base)); in lpc32xx_nand_setup() 237 clkrate = clk_get_rate(host->clk); in lpc32xx_nand_setup() 243 writew(MLCLOCKPR_MAGIC, MLC_LOCK_PR(host->io_base)); in lpc32xx_nand_setup() 247 writel(tmp, MLC_ICR(host->io_base)); in lpc32xx_nand_setup() 251 writew(MLCLOCKPR_MAGIC, MLC_LOCK_PR(host->io_base)); in lpc32xx_nand_setup() 255 tmp |= MLCTIMEREG_TCEA_DELAY(clkrate / host->ncfg->tcea_delay + 1); in lpc32xx_nand_setup() 256 tmp |= MLCTIMEREG_BUSY_DELAY(clkrate / host->ncfg->busy_delay + 1); in lpc32xx_nand_setup() 257 tmp |= MLCTIMEREG_NAND_TA(clkrate / host->ncfg->nand_ta + 1); in lpc32xx_nand_setup() 258 tmp |= MLCTIMEREG_RD_HIGH(clkrate / host->ncfg->rd_high + 1); in lpc32xx_nand_setup() [all …]
|
D | lpc32xx_slc.c | 225 static void lpc32xx_nand_setup(struct lpc32xx_nand_host *host) in lpc32xx_nand_setup() argument 230 writel(SLCCTRL_SW_RESET, SLC_CTRL(host->io_base)); in lpc32xx_nand_setup() 234 writel(0, SLC_CFG(host->io_base)); in lpc32xx_nand_setup() 235 writel(0, SLC_IEN(host->io_base)); in lpc32xx_nand_setup() 237 SLC_ICR(host->io_base)); in lpc32xx_nand_setup() 240 clkrate = clk_get_rate(host->clk); in lpc32xx_nand_setup() 245 tmp = SLCTAC_WDR(host->ncfg->wdr_clks) | in lpc32xx_nand_setup() 246 SLCTAC_WWIDTH(clkrate, host->ncfg->wwidth) | in lpc32xx_nand_setup() 247 SLCTAC_WHOLD(clkrate, host->ncfg->whold) | in lpc32xx_nand_setup() 248 SLCTAC_WSETUP(clkrate, host->ncfg->wsetup) | in lpc32xx_nand_setup() [all …]
|
D | fsmc_nand.c | 333 struct fsmc_nand_data *host; in fsmc_select_chip() local 335 host = container_of(mtd, struct fsmc_nand_data, mtd); in fsmc_select_chip() 345 if (host->select_chip) in fsmc_select_chip() 346 host->select_chip(chipnr, in fsmc_select_chip() 351 dev_err(host->dev, "unsupported chip-select %d\n", chipnr); in fsmc_select_chip() 362 struct fsmc_nand_data *host = container_of(mtd, in fsmc_cmd_ctrl() local 364 void __iomem *regs = host->regs_va; in fsmc_cmd_ctrl() 365 unsigned int bank = host->bank; in fsmc_cmd_ctrl() 371 this->IO_ADDR_R = host->cmd_va; in fsmc_cmd_ctrl() 372 this->IO_ADDR_W = host->cmd_va; in fsmc_cmd_ctrl() [all …]
|
D | socrates_nand.c | 49 struct socrates_nand_host *host = this->priv; in socrates_nand_write_buf() local 52 out_be32(host->io_base, FPGA_NAND_ENABLE | in socrates_nand_write_buf() 68 struct socrates_nand_host *host = this->priv; in socrates_nand_read_buf() local 73 out_be32(host->io_base, val); in socrates_nand_read_buf() 75 buf[i] = (in_be32(host->io_base) >> in socrates_nand_read_buf() 109 struct socrates_nand_host *host = nand_chip->priv; in socrates_nand_cmd_ctrl() local 125 out_be32(host->io_base, val); in socrates_nand_cmd_ctrl() 134 struct socrates_nand_host *host = nand_chip->priv; in socrates_nand_device_ready() local 136 if (in_be32(host->io_base) & FPGA_NAND_BUSY) in socrates_nand_device_ready() 146 struct socrates_nand_host *host; in socrates_nand_probe() local [all …]
|
D | pxa3xx_nand.c | 215 struct pxa3xx_nand_host *host[NUM_CHIP_SELECT]; member 388 static void pxa3xx_nand_set_timing(struct pxa3xx_nand_host *host, in pxa3xx_nand_set_timing() argument 391 struct pxa3xx_nand_info *info = host->info_data; in pxa3xx_nand_set_timing() 412 static void pxa3xx_nand_set_sdr_timing(struct pxa3xx_nand_host *host, in pxa3xx_nand_set_sdr_timing() argument 415 struct pxa3xx_nand_info *info = host->info_data; in pxa3xx_nand_set_sdr_timing() 416 struct nand_chip *chip = &host->chip; in pxa3xx_nand_set_sdr_timing() 451 static int pxa3xx_nand_init_timings_compat(struct pxa3xx_nand_host *host, in pxa3xx_nand_init_timings_compat() argument 455 struct nand_chip *chip = &host->chip; in pxa3xx_nand_init_timings_compat() 456 struct pxa3xx_nand_info *info = host->info_data; in pxa3xx_nand_init_timings_compat() 462 chip->cmdfunc(host->mtd, NAND_CMD_READID, 0x00, -1); in pxa3xx_nand_init_timings_compat() [all …]
|
/linux-4.4.14/drivers/gpu/host1x/ |
D | dev.h | 39 int (*init)(struct host1x_channel *channel, struct host1x *host, 62 void (*show_channel_cdma)(struct host1x *host, 65 void (*show_channel_fifo)(struct host1x *host, 68 void (*show_mlocks)(struct host1x *host, struct output *output); 82 int (*init_host_sync)(struct host1x *host, u32 cpm, 85 struct host1x *host, u32 id, u32 thresh); 86 void (*enable_syncpt_intr)(struct host1x *host, u32 id); 87 void (*disable_syncpt_intr)(struct host1x *host, u32 id); 88 void (*disable_all_syncpt_intrs)(struct host1x *host); 89 int (*free_syncpt_irq)(struct host1x *host); [all …]
|
D | syncpt.c | 34 host1x_syncpt_base_request(struct host1x *host) in host1x_syncpt_base_request() argument 36 struct host1x_syncpt_base *bases = host->bases; in host1x_syncpt_base_request() 39 for (i = 0; i < host->info->nb_bases; i++) in host1x_syncpt_base_request() 43 if (i >= host->info->nb_bases) in host1x_syncpt_base_request() 56 static struct host1x_syncpt *host1x_syncpt_alloc(struct host1x *host, in host1x_syncpt_alloc() argument 61 struct host1x_syncpt *sp = host->syncpt; in host1x_syncpt_alloc() 64 for (i = 0; i < host->info->nb_pts && sp->name; i++, sp++) in host1x_syncpt_alloc() 67 if (i >= host->info->nb_pts) in host1x_syncpt_alloc() 71 sp->base = host1x_syncpt_base_request(host); in host1x_syncpt_alloc() 110 void host1x_syncpt_restore(struct host1x *host) in host1x_syncpt_restore() argument [all …]
|
D | dev.c | 102 struct host1x *host; in host1x_probe() local 123 host = devm_kzalloc(&pdev->dev, sizeof(*host), GFP_KERNEL); in host1x_probe() 124 if (!host) in host1x_probe() 127 mutex_init(&host->devices_lock); in host1x_probe() 128 INIT_LIST_HEAD(&host->devices); in host1x_probe() 129 INIT_LIST_HEAD(&host->list); in host1x_probe() 130 host->dev = &pdev->dev; in host1x_probe() 131 host->info = id->data; in host1x_probe() 134 platform_set_drvdata(pdev, host); in host1x_probe() 136 host->regs = devm_ioremap_resource(&pdev->dev, regs); in host1x_probe() [all …]
|
D | intr.c | 99 static void reset_threshold_interrupt(struct host1x *host, in reset_threshold_interrupt() argument 106 host1x_hw_intr_set_syncpt_threshold(host, id, thresh); in reset_threshold_interrupt() 107 host1x_hw_intr_enable_syncpt_intr(host, id); in reset_threshold_interrupt() 164 static int process_wait_list(struct host1x *host, in process_wait_list() argument 182 host1x_hw_intr_disable_syncpt_intr(host, syncpt->id); in process_wait_list() 184 reset_threshold_interrupt(host, &syncpt->intr.wait_head, in process_wait_list() 206 struct host1x *host = syncpt->host; in syncpt_thresh_work() local 208 (void)process_wait_list(host, syncpt, in syncpt_thresh_work() 209 host1x_syncpt_load(host->syncpt + id)); in syncpt_thresh_work() 212 int host1x_intr_add_action(struct host1x *host, u32 id, u32 thresh, in host1x_intr_add_action() argument [all …]
|
D | channel.c | 27 int host1x_channel_list_init(struct host1x *host) in host1x_channel_list_init() argument 29 INIT_LIST_HEAD(&host->chlist.list); in host1x_channel_list_init() 30 mutex_init(&host->chlist_mutex); in host1x_channel_list_init() 32 if (host->info->nb_channels > BITS_PER_LONG) { in host1x_channel_list_init() 42 struct host1x *host = dev_get_drvdata(job->channel->dev->parent); in host1x_job_submit() local 44 return host1x_hw_channel_submit(host, job); in host1x_job_submit() 71 struct host1x *host = dev_get_drvdata(channel->dev->parent); in host1x_channel_put() local 73 host1x_hw_cdma_stop(host, &channel->cdma); in host1x_channel_put() 85 struct host1x *host = dev_get_drvdata(dev->parent); in host1x_channel_request() local 86 int max_channels = host->info->nb_channels; in host1x_channel_request() [all …]
|
D | syncpt.h | 46 struct host1x *host; member 55 int host1x_syncpt_init(struct host1x *host); 58 void host1x_syncpt_deinit(struct host1x *host); 61 int host1x_syncpt_nb_pts(struct host1x *host); 64 int host1x_syncpt_nb_bases(struct host1x *host); 67 int host1x_syncpt_nb_mlocks(struct host1x *host); 110 void host1x_syncpt_save(struct host1x *host); 113 void host1x_syncpt_restore(struct host1x *host); 124 return sp->id < host1x_syncpt_nb_pts(sp->host); in host1x_syncpt_is_valid()
|
D | intr.h | 78 int host1x_intr_add_action(struct host1x *host, u32 id, u32 thresh, 87 void host1x_intr_put_ref(struct host1x *host, u32 id, void *ref); 90 int host1x_intr_init(struct host1x *host, unsigned int irq_sync); 93 void host1x_intr_deinit(struct host1x *host); 96 void host1x_intr_start(struct host1x *host); 99 void host1x_intr_stop(struct host1x *host);
|
/linux-4.4.14/drivers/memstick/core/ |
D | memstick.c | 184 struct memstick_host *host = container_of(dev, struct memstick_host, in memstick_free() local 186 kfree(host); in memstick_free() 210 void memstick_detect_change(struct memstick_host *host) in memstick_detect_change() argument 212 queue_work(workqueue, &host->media_checker); in memstick_detect_change() 226 int memstick_next_req(struct memstick_host *host, struct memstick_request **mrq) in memstick_next_req() argument 230 if ((*mrq) && (*mrq)->error && host->retries) { in memstick_next_req() 232 host->retries--; in memstick_next_req() 236 if (host->card && host->card->next_request) in memstick_next_req() 237 rc = host->card->next_request(host->card, mrq); in memstick_next_req() 240 host->retries = cmd_retries > 1 ? cmd_retries - 1 : 1; in memstick_next_req() [all …]
|
/linux-4.4.14/sound/soc/spear/ |
D | spdif_out.c | 44 static void spdif_out_configure(struct spdif_out_dev *host) in spdif_out_configure() argument 46 writel(SPDIF_OUT_RESET, host->io_base + SPDIF_OUT_SOFT_RST); in spdif_out_configure() 48 writel(readl(host->io_base + SPDIF_OUT_SOFT_RST) & ~SPDIF_OUT_RESET, in spdif_out_configure() 49 host->io_base + SPDIF_OUT_SOFT_RST); in spdif_out_configure() 54 host->io_base + SPDIF_OUT_CFG); in spdif_out_configure() 56 writel(0x7F, host->io_base + SPDIF_OUT_INT_STA_CLR); in spdif_out_configure() 57 writel(0x7F, host->io_base + SPDIF_OUT_INT_EN_CLR); in spdif_out_configure() 63 struct spdif_out_dev *host = snd_soc_dai_get_drvdata(cpu_dai); in spdif_out_startup() local 69 ret = clk_enable(host->clk); in spdif_out_startup() 73 host->running = true; in spdif_out_startup() [all …]
|
D | spdif_in.c | 46 static void spdif_in_configure(struct spdif_in_dev *host) in spdif_in_configure() argument 52 writel(ctrl, host->io_base + SPDIF_IN_CTRL); in spdif_in_configure() 53 writel(0xF, host->io_base + SPDIF_IN_IRQ_MASK); in spdif_in_configure() 58 struct spdif_in_dev *host = snd_soc_dai_get_drvdata(dai); in spdif_in_dai_probe() local 60 host->dma_params_rx.filter_data = &host->dma_params; in spdif_in_dai_probe() 61 dai->capture_dma_data = &host->dma_params_rx; in spdif_in_dai_probe() 69 struct spdif_in_dev *host = snd_soc_dai_get_drvdata(dai); in spdif_in_shutdown() local 74 writel(0x0, host->io_base + SPDIF_IN_IRQ_MASK); in spdif_in_shutdown() 77 static void spdif_in_format(struct spdif_in_dev *host, u32 format) in spdif_in_format() argument 79 u32 ctrl = readl(host->io_base + SPDIF_IN_CTRL); in spdif_in_format() [all …]
|
/linux-4.4.14/drivers/video/fbdev/ |
D | mxsfb.c | 187 #define mxsfb_is_v3(host) (host->devdata->ipversion == 3) argument 188 #define mxsfb_is_v4(host) (host->devdata->ipversion == 4) argument 214 static inline u32 set_hsync_pulse_width(struct mxsfb_info *host, unsigned val) in set_hsync_pulse_width() argument 216 return (val & host->devdata->hs_wdth_mask) << in set_hsync_pulse_width() 217 host->devdata->hs_wdth_shift; in set_hsync_pulse_width() 220 static inline u32 get_hsync_pulse_width(struct mxsfb_info *host, unsigned val) in get_hsync_pulse_width() argument 222 return (val >> host->devdata->hs_wdth_shift) & in get_hsync_pulse_width() 223 host->devdata->hs_wdth_mask; in get_hsync_pulse_width() 272 struct mxsfb_info *host = to_imxfb_host(fb_info); in mxsfb_check_var() local 290 switch (host->ld_intf_width) { in mxsfb_check_var() [all …]
|
/linux-4.4.14/drivers/scsi/ufs/ |
D | ufs-qcom.c | 47 static int ufs_qcom_set_bus_vote(struct ufs_qcom_host *host, int vote); 48 static void ufs_qcom_get_default_testbus_cfg(struct ufs_qcom_host *host); 104 static void ufs_qcom_disable_lane_clks(struct ufs_qcom_host *host) in ufs_qcom_disable_lane_clks() argument 106 if (!host->is_lane_clks_enabled) in ufs_qcom_disable_lane_clks() 109 clk_disable_unprepare(host->tx_l1_sync_clk); in ufs_qcom_disable_lane_clks() 110 clk_disable_unprepare(host->tx_l0_sync_clk); in ufs_qcom_disable_lane_clks() 111 clk_disable_unprepare(host->rx_l1_sync_clk); in ufs_qcom_disable_lane_clks() 112 clk_disable_unprepare(host->rx_l0_sync_clk); in ufs_qcom_disable_lane_clks() 114 host->is_lane_clks_enabled = false; in ufs_qcom_disable_lane_clks() 117 static int ufs_qcom_enable_lane_clks(struct ufs_qcom_host *host) in ufs_qcom_enable_lane_clks() argument [all …]
|
/linux-4.4.14/scripts/ |
D | Makefile.host | 27 host-csingle := $(foreach m,$(__hostprogs), \ 31 host-cmulti := $(foreach m,$(__hostprogs),\ 35 host-cobjs := $(sort $(foreach m,$(__hostprogs),$($(m)-objs))) 40 host-cxxmulti := $(foreach m,$(__hostprogs),$(if $($(m)-cxxobjs),$(m))) 43 host-cxxobjs := $(sort $(foreach m,$(host-cxxmulti),$($(m)-cxxobjs))) 48 host-objdirs := $(dir $(__hostprogs) $(host-cobjs) $(host-cxxobjs)) 50 host-objdirs := $(strip $(sort $(filter-out ./,$(host-objdirs)))) 54 host-csingle := $(addprefix $(obj)/,$(host-csingle)) 55 host-cmulti := $(addprefix $(obj)/,$(host-cmulti)) 56 host-cobjs := $(addprefix $(obj)/,$(host-cobjs)) [all …]
|
/linux-4.4.14/drivers/gpu/host1x/hw/ |
D | intr_hw.c | 34 struct host1x *host = syncpt->host; in host1x_intr_syncpt_handle() local 36 host1x_sync_writel(host, BIT_MASK(id), in host1x_intr_syncpt_handle() 38 host1x_sync_writel(host, BIT_MASK(id), in host1x_intr_syncpt_handle() 41 queue_work(host->intr_wq, &syncpt->intr.work); in host1x_intr_syncpt_handle() 46 struct host1x *host = dev_id; in syncpt_thresh_isr() local 50 for (i = 0; i < DIV_ROUND_UP(host->info->nb_pts, 32); i++) { in syncpt_thresh_isr() 51 reg = host1x_sync_readl(host, in syncpt_thresh_isr() 55 host->syncpt + (i * BITS_PER_LONG + id); in syncpt_thresh_isr() 63 static void _host1x_intr_disable_all_syncpt_intrs(struct host1x *host) in _host1x_intr_disable_all_syncpt_intrs() argument 67 for (i = 0; i < DIV_ROUND_UP(host->info->nb_pts, 32); ++i) { in _host1x_intr_disable_all_syncpt_intrs() [all …]
|
D | syncpt_hw.c | 29 struct host1x *host = sp->host; in syncpt_restore() local 31 host1x_sync_writel(host, min, HOST1X_SYNC_SYNCPT(sp->id)); in syncpt_restore() 39 struct host1x *host = sp->host; in syncpt_restore_wait_base() local 40 host1x_sync_writel(host, sp->base_val, in syncpt_restore_wait_base() 49 struct host1x *host = sp->host; in syncpt_read_wait_base() local 51 host1x_sync_readl(host, HOST1X_SYNC_SYNCPT_BASE(sp->id)); in syncpt_read_wait_base() 59 struct host1x *host = sp->host; in syncpt_load() local 65 live = host1x_sync_readl(host, HOST1X_SYNC_SYNCPT(sp->id)); in syncpt_load() 69 dev_err(host->dev, "%s failed: id=%u, min=%d, max=%d\n", in syncpt_load() 82 struct host1x *host = sp->host; in syncpt_cpu_incr() local [all …]
|
D | host1x04.c | 32 int host1x04_init(struct host1x *host) in host1x04_init() argument 34 host->channel_op = &host1x_channel_ops; in host1x04_init() 35 host->cdma_op = &host1x_cdma_ops; in host1x04_init() 36 host->cdma_pb_op = &host1x_pushbuffer_ops; in host1x04_init() 37 host->syncpt_op = &host1x_syncpt_ops; in host1x04_init() 38 host->intr_op = &host1x_intr_ops; in host1x04_init() 39 host->debug_op = &host1x_debug_ops; in host1x04_init()
|
D | host1x02.c | 32 int host1x02_init(struct host1x *host) in host1x02_init() argument 34 host->channel_op = &host1x_channel_ops; in host1x02_init() 35 host->cdma_op = &host1x_cdma_ops; in host1x02_init() 36 host->cdma_pb_op = &host1x_pushbuffer_ops; in host1x02_init() 37 host->syncpt_op = &host1x_syncpt_ops; in host1x02_init() 38 host->intr_op = &host1x_intr_ops; in host1x02_init() 39 host->debug_op = &host1x_debug_ops; in host1x02_init()
|
D | host1x01.c | 32 int host1x01_init(struct host1x *host) in host1x01_init() argument 34 host->channel_op = &host1x_channel_ops; in host1x01_init() 35 host->cdma_op = &host1x_cdma_ops; in host1x01_init() 36 host->cdma_pb_op = &host1x_pushbuffer_ops; in host1x01_init() 37 host->syncpt_op = &host1x_syncpt_ops; in host1x01_init() 38 host->intr_op = &host1x_intr_ops; in host1x01_init() 39 host->debug_op = &host1x_debug_ops; in host1x01_init()
|
D | debug_hw.c | 178 static void host1x_debug_show_channel_cdma(struct host1x *host, in host1x_debug_show_channel_cdma() argument 190 cbread = host1x_sync_readl(host, HOST1X_SYNC_CBREAD(ch->id)); in host1x_debug_show_channel_cdma() 191 cbstat = host1x_sync_readl(host, HOST1X_SYNC_CBSTAT(ch->id)); in host1x_debug_show_channel_cdma() 213 host1x_sync_readl(host, HOST1X_SYNC_SYNCPT_BASE(base)); in host1x_debug_show_channel_cdma() 232 static void host1x_debug_show_channel_fifo(struct host1x *host, in host1x_debug_show_channel_fifo() argument 248 host1x_sync_writel(host, 0x0, HOST1X_SYNC_CFPEEK_CTRL); in host1x_debug_show_channel_fifo() 249 host1x_sync_writel(host, HOST1X_SYNC_CFPEEK_CTRL_ENA_F(1) | in host1x_debug_show_channel_fifo() 253 val = host1x_sync_readl(host, HOST1X_SYNC_CFPEEK_PTRS); in host1x_debug_show_channel_fifo() 257 val = host1x_sync_readl(host, HOST1X_SYNC_CF_SETUP(ch->id)); in host1x_debug_show_channel_fifo() 262 host1x_sync_writel(host, 0x0, HOST1X_SYNC_CFPEEK_CTRL); in host1x_debug_show_channel_fifo() [all …]
|
/linux-4.4.14/include/linux/mmc/ |
D | host.h | 91 void (*post_req)(struct mmc_host *host, struct mmc_request *req, 93 void (*pre_req)(struct mmc_host *host, struct mmc_request *req, 95 void (*request)(struct mmc_host *host, struct mmc_request *req); 116 void (*set_ios)(struct mmc_host *host, struct mmc_ios *ios); 117 int (*get_ro)(struct mmc_host *host); 118 int (*get_cd)(struct mmc_host *host); 120 void (*enable_sdio_irq)(struct mmc_host *host, int enable); 123 void (*init_card)(struct mmc_host *host, struct mmc_card *card); 125 int (*start_signal_voltage_switch)(struct mmc_host *host, struct mmc_ios *ios); 128 int (*card_busy)(struct mmc_host *host); [all …]
|
D | slot-gpio.h | 16 int mmc_gpio_get_ro(struct mmc_host *host); 17 int mmc_gpio_request_ro(struct mmc_host *host, unsigned int gpio); 19 int mmc_gpio_get_cd(struct mmc_host *host); 20 int mmc_gpio_request_cd(struct mmc_host *host, unsigned int gpio, 23 int mmc_gpiod_request_cd(struct mmc_host *host, const char *con_id, 26 int mmc_gpiod_request_ro(struct mmc_host *host, const char *con_id, 29 void mmc_gpio_set_cd_isr(struct mmc_host *host, 31 void mmc_gpiod_request_cd_irq(struct mmc_host *host);
|
/linux-4.4.14/arch/powerpc/include/asm/ |
D | dcr.h | 41 #define DCR_MAP_OK(host) dcr_map_ok_generic(host) argument 43 #define dcr_unmap(host, dcr_c) dcr_unmap_generic(host, dcr_c) argument 44 #define dcr_read(host, dcr_n) dcr_read_generic(host, dcr_n) argument 45 #define dcr_write(host, dcr_n, value) dcr_write_generic(host, dcr_n, value) argument 51 #define DCR_MAP_OK(host) dcr_map_ok_native(host) argument 53 #define dcr_unmap(host, dcr_c) dcr_unmap_native(host, dcr_c) argument 54 #define dcr_read(host, dcr_n) dcr_read_native(host, dcr_n) argument 55 #define dcr_write(host, dcr_n, value) dcr_write_native(host, dcr_n, value) argument 58 #define DCR_MAP_OK(host) dcr_map_ok_mmio(host) argument 60 #define dcr_unmap(host, dcr_c) dcr_unmap_mmio(host, dcr_c) argument [all …]
|
D | dcr-mmio.h | 32 static inline bool dcr_map_ok_mmio(dcr_host_mmio_t host) in dcr_map_ok_mmio() argument 34 return host.token != NULL; in dcr_map_ok_mmio() 40 extern void dcr_unmap_mmio(dcr_host_mmio_t host, unsigned int dcr_c); 42 static inline u32 dcr_read_mmio(dcr_host_mmio_t host, unsigned int dcr_n) in dcr_read_mmio() argument 44 return in_be32(host.token + ((host.base + dcr_n) * host.stride)); in dcr_read_mmio() 47 static inline void dcr_write_mmio(dcr_host_mmio_t host, in dcr_write_mmio() argument 51 out_be32(host.token + ((host.base + dcr_n) * host.stride), value); in dcr_write_mmio()
|
/linux-4.4.14/arch/powerpc/sysdev/ |
D | dcr.c | 50 bool dcr_map_ok_generic(dcr_host_t host) in dcr_map_ok_generic() argument 52 if (host.type == DCR_HOST_NATIVE) in dcr_map_ok_generic() 53 return dcr_map_ok_native(host.host.native); in dcr_map_ok_generic() 54 else if (host.type == DCR_HOST_MMIO) in dcr_map_ok_generic() 55 return dcr_map_ok_mmio(host.host.mmio); in dcr_map_ok_generic() 65 dcr_host_t host; in dcr_map_generic() local 69 host.type = DCR_HOST_INVALID; in dcr_map_generic() 73 return host; in dcr_map_generic() 80 host.type = DCR_HOST_NATIVE; in dcr_map_generic() 81 host.host.native = dcr_map_native(dev, dcr_n, dcr_c); in dcr_map_generic() [all …]
|
/linux-4.4.14/arch/powerpc/platforms/powermac/ |
D | low_i2c.c | 185 name, __kw_state_names[host->state], isr); \ 197 static inline u8 __kw_read_reg(struct pmac_i2c_host_kw *host, reg_t reg) in __kw_read_reg() argument 199 return readb(host->base + (((unsigned int)reg) << host->bsteps)); in __kw_read_reg() 202 static inline void __kw_write_reg(struct pmac_i2c_host_kw *host, in __kw_write_reg() argument 205 writeb(val, host->base + (((unsigned)reg) << host->bsteps)); in __kw_write_reg() 206 (void)__kw_read_reg(host, reg_subaddr); in __kw_write_reg() 209 #define kw_write_reg(reg, val) __kw_write_reg(host, reg, val) 210 #define kw_read_reg(reg) __kw_read_reg(host, reg) 212 static u8 kw_i2c_wait_interrupt(struct pmac_i2c_host_kw *host) in kw_i2c_wait_interrupt() argument 226 if (host->polled) { in kw_i2c_wait_interrupt() [all …]
|
/linux-4.4.14/drivers/net/wireless/rsi/ |
D | rsi_91x_sdio.c | 65 return mmc_wait_for_cmd(card->host, &io_cmd, 0); in rsi_cmd52writebyte() 90 err = mmc_wait_for_cmd(card->host, &io_cmd, 0); in rsi_cmd52readbyte() 113 struct mmc_host *host; in rsi_issue_sdiocommand() local 116 host = func->card->host; in rsi_issue_sdiocommand() 122 err = mmc_wait_for_cmd(host, &cmd, 3); in rsi_issue_sdiocommand() 157 struct mmc_host *host = card->host; in rsi_reset_card() local 158 s32 bit = (fls(host->ocr_avail) - 1); in rsi_reset_card() 178 host->ios.vdd = bit; in rsi_reset_card() 179 host->ios.chip_select = MMC_CS_DONTCARE; in rsi_reset_card() 180 host->ios.bus_mode = MMC_BUSMODE_OPENDRAIN; in rsi_reset_card() [all …]
|
/linux-4.4.14/drivers/i2c/busses/ |
D | i2c-cbus-gpio.c | 52 static void cbus_send_bit(struct cbus_host *host, unsigned bit) in cbus_send_bit() argument 54 gpio_set_value(host->dat_gpio, bit ? 1 : 0); in cbus_send_bit() 55 gpio_set_value(host->clk_gpio, 1); in cbus_send_bit() 56 gpio_set_value(host->clk_gpio, 0); in cbus_send_bit() 65 static void cbus_send_data(struct cbus_host *host, unsigned data, unsigned len) in cbus_send_data() argument 70 cbus_send_bit(host, data & (1 << (i - 1))); in cbus_send_data() 77 static int cbus_receive_bit(struct cbus_host *host) in cbus_receive_bit() argument 81 gpio_set_value(host->clk_gpio, 1); in cbus_receive_bit() 82 ret = gpio_get_value(host->dat_gpio); in cbus_receive_bit() 83 gpio_set_value(host->clk_gpio, 0); in cbus_receive_bit() [all …]
|
/linux-4.4.14/drivers/ata/ |
D | pata_samsung_cf.c | 107 struct s3c_ide_info *info = ap->host->private_data; in pata_s3c_set_piomode() 151 static void ata_outb(struct ata_host *host, u8 addr, void __iomem *reg) in ata_outb() argument 153 struct s3c_ide_info *info = host->private_data; in ata_outb() 162 static u8 ata_inb(struct ata_host *host, void __iomem *reg) in ata_inb() argument 164 struct s3c_ide_info *info = host->private_data; in ata_inb() 184 ata_outb(ap->host, tf->ctl, ioaddr->ctl_addr); in pata_s3c_tf_load() 190 ata_outb(ap->host, tf->hob_feature, ioaddr->feature_addr); in pata_s3c_tf_load() 191 ata_outb(ap->host, tf->hob_nsect, ioaddr->nsect_addr); in pata_s3c_tf_load() 192 ata_outb(ap->host, tf->hob_lbal, ioaddr->lbal_addr); in pata_s3c_tf_load() 193 ata_outb(ap->host, tf->hob_lbam, ioaddr->lbam_addr); in pata_s3c_tf_load() [all …]
|
D | pata_arasan_cf.c | 187 struct ata_host *host; member 228 struct device *dev = acdev->host->dev; in cf_dumpregs() 284 struct ata_port *ap = acdev->host->ports[0]; in cf_card_detect() 308 struct arasan_cf_pdata *pdata = dev_get_platdata(acdev->host->dev); in cf_init() 315 dev_dbg(acdev->host->dev, "clock enable failed"); in cf_init() 321 dev_warn(acdev->host->dev, "clock set rate failed"); in cf_init() 326 spin_lock_irqsave(&acdev->host->lock, flags); in cf_init() 338 spin_unlock_irqrestore(&acdev->host->lock, flags); in cf_init() 347 spin_lock_irqsave(&acdev->host->lock, flags); in cf_exit() 353 spin_unlock_irqrestore(&acdev->host->lock, flags); in cf_exit() [all …]
|
D | pata_cs5520.c | 71 struct pci_dev *pdev = to_pci_dev(ap->host->dev); in cs5520_set_timings() 129 struct ata_host *host; in cs5520_init_one() local 157 host = ata_host_alloc_pinfo(&pdev->dev, ppi, 2); in cs5520_init_one() 158 if (!host) in cs5520_init_one() 186 ioaddr = &host->ports[0]->ioaddr; in cs5520_init_one() 193 ata_port_desc(host->ports[0], in cs5520_init_one() 195 ata_port_pbar_desc(host->ports[0], 4, 0, "bmdma"); in cs5520_init_one() 197 ioaddr = &host->ports[1]->ioaddr; in cs5520_init_one() 204 ata_port_desc(host->ports[1], in cs5520_init_one() 206 ata_port_pbar_desc(host->ports[1], 4, 8, "bmdma"); in cs5520_init_one() [all …]
|
D | sata_sx4.c | 224 static unsigned int pdc20621_dimm_init(struct ata_host *host); 225 static int pdc20621_detect_dimm(struct ata_host *host); 226 static unsigned int pdc20621_i2c_read(struct ata_host *host, 228 static int pdc20621_prog_dimm0(struct ata_host *host); 229 static unsigned int pdc20621_prog_dimm_global(struct ata_host *host); 231 static void pdc20621_get_from_dimm(struct ata_host *host, 234 static void pdc20621_put_to_dimm(struct ata_host *host, 301 struct device *dev = ap->host->dev; in pdc_port_start() 458 void __iomem *mmio = ap->host->iomap[PDC_MMIO_BAR]; in pdc20621_dma_prep() 459 void __iomem *dimm_mmio = ap->host->iomap[PDC_DIMM_BAR]; in pdc20621_dma_prep() [all …]
|
D | sata_qstor.c | 118 static void qs_host_stop(struct ata_host *host); 177 static void __iomem *qs_mmio_base(struct ata_host *host) in qs_mmio_base() argument 179 return host->iomap[QS_MMIO_BAR]; in qs_mmio_base() 189 u8 __iomem *chan = qs_mmio_base(ap->host) + (ap->port_no * 0x4000); in qs_enter_reg_mode() 199 u8 __iomem *chan = qs_mmio_base(ap->host) + (ap->port_no * 0x4000); in qs_reset_channel_logic() 208 u8 __iomem *mmio_base = qs_mmio_base(ap->host); in qs_freeze() 216 u8 __iomem *mmio_base = qs_mmio_base(ap->host); in qs_thaw() 319 u8 __iomem *chan = qs_mmio_base(ap->host) + (ap->port_no * 0x4000); in qs_packet_start() 371 static inline unsigned int qs_intr_pkt(struct ata_host *host) in qs_intr_pkt() argument 375 u8 __iomem *mmio_base = qs_mmio_base(host); in qs_intr_pkt() [all …]
|
D | pata_sil680.c | 86 struct pci_dev *pdev = to_pci_dev(ap->host->dev); in sil680_cable_detect() 118 struct pci_dev *pdev = to_pci_dev(ap->host->dev); in sil680_set_piomode() 166 struct pci_dev *pdev = to_pci_dev(ap->host->dev); in sil680_set_dmamode() 221 struct pci_dev *pdev = to_pci_dev(ap->host->dev); in sil680_sff_irq_check() 342 struct ata_host *host; in sil680_init_one() local 371 host = ata_host_alloc_pinfo(&pdev->dev, ppi, 2); in sil680_init_one() 372 if (!host) in sil680_init_one() 374 host->iomap = pcim_iomap_table(pdev); in sil680_init_one() 386 mmio_base = host->iomap[SIL680_MMIO_BAR]; in sil680_init_one() 387 host->ports[0]->ioaddr.bmdma_addr = mmio_base + 0x00; in sil680_init_one() [all …]
|
D | sata_uli.c | 105 struct uli_priv *hpriv = ap->host->private_data; in get_scr_cfg_addr() 111 struct pci_dev *pdev = to_pci_dev(link->ap->host->dev); in uli_scr_cfg_read() 121 struct pci_dev *pdev = to_pci_dev(link->ap->host->dev); in uli_scr_cfg_write() 149 struct ata_host *host; in uli_init_one() local 166 host = ata_host_alloc_pinfo(&pdev->dev, ppi, n_ports); in uli_init_one() 167 if (!host) in uli_init_one() 173 host->private_data = hpriv; in uli_init_one() 176 rc = ata_pci_sff_init_host(host); in uli_init_one() 180 ata_pci_bmdma_init(host); in uli_init_one() 182 iomap = host->iomap; in uli_init_one() [all …]
|
D | pata_imx.c | 47 struct pata_imx_priv *priv = ap->host->private_data; in pata_imx_set_mode() 95 struct ata_host *host; in pata_imx_probe() local 121 host = ata_host_alloc(&pdev->dev, 1); in pata_imx_probe() 122 if (!host) { in pata_imx_probe() 127 host->private_data = priv; in pata_imx_probe() 128 ap = host->ports[0]; in pata_imx_probe() 161 ret = ata_host_activate(host, irq, ata_sff_interrupt, 0, in pata_imx_probe() 176 struct ata_host *host = platform_get_drvdata(pdev); in pata_imx_remove() local 177 struct pata_imx_priv *priv = host->private_data; in pata_imx_remove() 179 ata_host_detach(host); in pata_imx_remove() [all …]
|
D | sata_via.c | 206 struct pci_dev *pdev = to_pci_dev(link->ap->host->dev); in vt8251_scr_read() 254 struct pci_dev *pdev = to_pci_dev(link->ap->host->dev); in vt8251_scr_write() 395 struct pci_dev *pdev = to_pci_dev(ap->host->dev); in vt6421_pata_cable_detect() 406 struct pci_dev *pdev = to_pci_dev(ap->host->dev); in vt6421_set_pio_mode() 414 struct pci_dev *pdev = to_pci_dev(ap->host->dev); in vt6421_set_dma_mode() 440 void __iomem * const * iomap = ap->host->iomap; in vt6421_init_addrs() 461 struct ata_host *host; in vt6420_prepare_host() local 464 rc = ata_pci_bmdma_prepare_host(pdev, ppi, &host); in vt6420_prepare_host() 467 *r_host = host; in vt6420_prepare_host() 475 host->ports[0]->ioaddr.scr_addr = svia_scr_addr(host->iomap[5], 0); in vt6420_prepare_host() [all …]
|
D | libahci_platform.c | 30 static void ahci_host_stop(struct ata_host *host); 512 struct ata_host *host; in ahci_platform_init_host() local 543 host = ata_host_alloc_pinfo(dev, ppi, n_ports); in ahci_platform_init_host() 544 if (!host) in ahci_platform_init_host() 547 host->private_data = hpriv; in ahci_platform_init_host() 550 host->flags |= ATA_HOST_PARALLEL_SCAN; in ahci_platform_init_host() 555 ahci_reset_em(host); in ahci_platform_init_host() 557 for (i = 0; i < host->n_ports; i++) { in ahci_platform_init_host() 558 struct ata_port *ap = host->ports[i]; in ahci_platform_init_host() 586 rc = ahci_reset_controller(host); in ahci_platform_init_host() [all …]
|
D | acard-ahci.c | 130 struct ata_host *host = pci_get_drvdata(pdev); in acard_ahci_pci_device_suspend() local 131 struct ahci_host_priv *hpriv = host->private_data; in acard_ahci_pci_device_suspend() 158 struct ata_host *host = pci_get_drvdata(pdev); in acard_ahci_pci_device_resume() local 166 rc = ahci_reset_controller(host); in acard_ahci_pci_device_resume() 170 ahci_init_controller(host); in acard_ahci_pci_device_resume() 173 ata_host_resume(host); in acard_ahci_pci_device_resume() 210 static void acard_ahci_pci_print_info(struct ata_host *host) in acard_ahci_pci_print_info() argument 212 struct pci_dev *pdev = to_pci_dev(host->dev); in acard_ahci_pci_print_info() 226 ahci_print_info(host, scc_s); in acard_ahci_pci_print_info() 326 struct ahci_host_priv *hpriv = ap->host->private_data; in acard_ahci_port_start() [all …]
|
D | ata_piix.c | 523 struct pci_dev *pdev = to_pci_dev(ap->host->dev); in ich_pata_cable_detect() 524 struct piix_host_priv *hpriv = ap->host->private_data; in ich_pata_cable_detect() 556 struct pci_dev *pdev = to_pci_dev(ap->host->dev); in piix_pata_prereset() 568 struct pci_dev *dev = to_pci_dev(ap->host->dev); in piix_set_timings() 681 struct pci_dev *dev = to_pci_dev(ap->host->dev); in do_pata_set_dmamode() 795 struct piix_host_priv *hpriv = ap->host->private_data; in piix_sidpr_sel() 804 struct piix_host_priv *hpriv = link->ap->host->private_data; in piix_sidpr_scr_read() 817 struct piix_host_priv *hpriv = link->ap->host->private_data; in piix_sidpr_scr_write() 1006 struct ata_host *host = pci_get_drvdata(pdev); in piix_pci_device_suspend() local 1010 rc = ata_host_suspend(host, mesg); in piix_pci_device_suspend() [all …]
|
D | sata_sil.c | 270 void __iomem *mmio_base = ap->host->iomap[SIL_MMIO_BAR]; in sil_bmdma_stop() 296 void __iomem *mmio_base = ap->host->iomap[SIL_MMIO_BAR]; in sil_bmdma_start() 363 void __iomem *mmio_base = ap->host->iomap[SIL_MMIO_BAR]; in sil_set_mode() 523 struct ata_host *host = dev_instance; in sil_interrupt() local 524 void __iomem *mmio_base = host->iomap[SIL_MMIO_BAR]; in sil_interrupt() 528 spin_lock(&host->lock); in sil_interrupt() 530 for (i = 0; i < host->n_ports; i++) { in sil_interrupt() 531 struct ata_port *ap = host->ports[i]; in sil_interrupt() 546 spin_unlock(&host->lock); in sil_interrupt() 553 void __iomem *mmio_base = ap->host->iomap[SIL_MMIO_BAR]; in sil_freeze() [all …]
|
D | sata_fsl.c | 294 static void fsl_sata_set_irq_coalescing(struct ata_host *host, in fsl_sata_set_irq_coalescing() argument 297 struct sata_fsl_host_priv *host_priv = host->private_data; in fsl_sata_set_irq_coalescing() 312 spin_lock_irqsave(&host->lock, flags); in fsl_sata_set_irq_coalescing() 317 spin_unlock_irqrestore(&host->lock, flags); in fsl_sata_set_irq_coalescing() 356 struct ata_host *host = dev_get_drvdata(dev); in fsl_sata_rx_watermark_show() local 357 struct sata_fsl_host_priv *host_priv = host->private_data; in fsl_sata_rx_watermark_show() 360 spin_lock_irqsave(&host->lock, flags); in fsl_sata_rx_watermark_show() 364 spin_unlock_irqrestore(&host->lock, flags); in fsl_sata_rx_watermark_show() 374 struct ata_host *host = dev_get_drvdata(dev); in fsl_sata_rx_watermark_store() local 375 struct sata_fsl_host_priv *host_priv = host->private_data; in fsl_sata_rx_watermark_store() [all …]
|
D | pata_atp867x.c | 83 #define ATP867X_IOBASE(ap) ((ap)->host->iomap[0]) 123 struct pci_dev *pdev = to_pci_dev(ap->host->dev); in atp867x_set_dmamode() 265 struct pci_dev *pdev = to_pci_dev(ap->host->dev); in atp867x_cable_detect() 351 struct pci_dev *pdev = to_pci_dev(ap->host->dev); in atp867x_set_priv() 371 static void atp867x_fixup(struct ata_host *host) in atp867x_fixup() argument 373 struct pci_dev *pdev = to_pci_dev(host->dev); in atp867x_fixup() 374 struct ata_port *ap = host->ports[0]; in atp867x_fixup() 417 static int atp867x_ata_pci_sff_init_host(struct ata_host *host) in atp867x_ata_pci_sff_init_host() argument 419 struct device *gdev = host->dev; in atp867x_ata_pci_sff_init_host() 432 host->iomap = pcim_iomap_table(pdev); in atp867x_ata_pci_sff_init_host() [all …]
|
D | pata_ninja32.c | 104 struct ata_host *host; in ninja32_init_one() local 109 host = ata_host_alloc(&dev->dev, 1); in ninja32_init_one() 110 if (!host) in ninja32_init_one() 112 ap = host->ports[0]; in ninja32_init_one() 124 host->iomap = pcim_iomap_table(dev); in ninja32_init_one() 135 base = host->iomap[0]; in ninja32_init_one() 151 return ata_host_activate(host, dev->irq, ata_bmdma_interrupt, in ninja32_init_one() 158 struct ata_host *host = pci_get_drvdata(pdev); in ninja32_reinit_one() local 164 ninja32_program(host->iomap[0]); in ninja32_reinit_one() 165 ata_host_resume(host); in ninja32_reinit_one()
|
D | pata_pdc2027x.c | 189 return ap->host->iomap[PDC_MMIO_BAR] + ap->port_no * 0x100 + offset; in port_mmio() 477 static long pdc_read_counter(struct ata_host *host) in pdc_read_counter() argument 479 void __iomem *mmio_base = host->iomap[PDC_MMIO_BAR]; in pdc_read_counter() 518 static void pdc_adjust_pll(struct ata_host *host, long pll_clock, unsigned int board_idx) in pdc_adjust_pll() argument 520 void __iomem *mmio_base = host->iomap[PDC_MMIO_BAR]; in pdc_adjust_pll() 604 static long pdc_detect_pll_input_clock(struct ata_host *host) in pdc_detect_pll_input_clock() argument 606 void __iomem *mmio_base = host->iomap[PDC_MMIO_BAR]; in pdc_detect_pll_input_clock() 619 start_count = pdc_read_counter(host); in pdc_detect_pll_input_clock() 626 end_count = pdc_read_counter(host); in pdc_detect_pll_input_clock() 652 static int pdc_hardware_init(struct ata_host *host, unsigned int board_idx) in pdc_hardware_init() argument [all …]
|
D | sata_vsc.c | 124 mask_addr = ap->host->iomap[VSC_MMIO_BAR] + in vsc_freeze() 135 mask_addr = ap->host->iomap[VSC_MMIO_BAR] + in vsc_thaw() 147 mask_addr = ap->host->iomap[VSC_MMIO_BAR] + in vsc_intr_mask_update() 266 struct ata_host *host = dev_instance; in vsc_sata_interrupt() local 271 status = readl(host->iomap[VSC_MMIO_BAR] + VSC_SATA_INT_STAT_OFFSET); in vsc_sata_interrupt() 275 dev_err(host->dev, in vsc_sata_interrupt() 280 spin_lock(&host->lock); in vsc_sata_interrupt() 282 for (i = 0; i < host->n_ports; i++) { in vsc_sata_interrupt() 285 vsc_port_intr(port_status, host->ports[i]); in vsc_sata_interrupt() 290 spin_unlock(&host->lock); in vsc_sata_interrupt() [all …]
|
D | sata_rcar.c | 225 struct sata_rcar_priv *priv = ap->host->private_data; in sata_rcar_freeze() 235 struct sata_rcar_priv *priv = ap->host->private_data; in sata_rcar_thaw() 566 struct sata_rcar_priv *priv = ap->host->private_data; in sata_rcar_bmdma_setup() 592 struct sata_rcar_priv *priv = ap->host->private_data; in sata_rcar_bmdma_start() 606 struct sata_rcar_priv *priv = ap->host->private_data; in sata_rcar_bmdma_stop() 624 struct sata_rcar_priv *priv = ap->host->private_data; in sata_rcar_bmdma_status() 678 struct sata_rcar_priv *priv = ap->host->private_data; in sata_rcar_serr_interrupt() 723 struct ata_host *host = dev_instance; in sata_rcar_interrupt() local 724 struct sata_rcar_priv *priv = host->private_data; in sata_rcar_interrupt() 731 spin_lock_irqsave(&host->lock, flags); in sata_rcar_interrupt() [all …]
|
D | pata_hpt3x3.c | 39 struct pci_dev *pdev = to_pci_dev(ap->host->dev); in hpt3x3_set_piomode() 69 struct pci_dev *pdev = to_pci_dev(ap->host->dev); in hpt3x3_set_dmamode() 201 struct ata_host *host; in hpt3x3_init_one() local 209 host = ata_host_alloc_pinfo(&pdev->dev, ppi, 2); in hpt3x3_init_one() 210 if (!host) in hpt3x3_init_one() 223 host->iomap = pcim_iomap_table(pdev); in hpt3x3_init_one() 231 base = host->iomap[4]; /* Bus mastering base */ in hpt3x3_init_one() 233 for (i = 0; i < host->n_ports; i++) { in hpt3x3_init_one() 234 struct ata_port *ap = host->ports[i]; in hpt3x3_init_one() 248 return ata_host_activate(host, pdev->irq, ata_bmdma_interrupt, in hpt3x3_init_one() [all …]
|
/linux-4.4.14/drivers/usb/ |
D | Makefile | 16 obj-$(CONFIG_PCI) += host/ 17 obj-$(CONFIG_USB_EHCI_HCD) += host/ 18 obj-$(CONFIG_USB_ISP116X_HCD) += host/ 19 obj-$(CONFIG_USB_OHCI_HCD) += host/ 20 obj-$(CONFIG_USB_UHCI_HCD) += host/ 21 obj-$(CONFIG_USB_FHCI_HCD) += host/ 22 obj-$(CONFIG_USB_XHCI_HCD) += host/ 23 obj-$(CONFIG_USB_SL811_HCD) += host/ 24 obj-$(CONFIG_USB_ISP1362_HCD) += host/ 25 obj-$(CONFIG_USB_U132_HCD) += host/ [all …]
|
/linux-4.4.14/drivers/mtd/nand/brcmnand/ |
D | brcmnand.c | 578 static void brcmnand_wr_corr_thresh(struct brcmnand_host *host, u8 val) in brcmnand_wr_corr_thresh() argument 580 struct brcmnand_controller *ctrl = host->ctrl; in brcmnand_wr_corr_thresh() 583 int cs = host->cs; in brcmnand_wr_corr_thresh() 648 static void brcmnand_set_ecc_enabled(struct brcmnand_host *host, int en) in brcmnand_set_ecc_enabled() argument 650 struct brcmnand_controller *ctrl = host->ctrl; in brcmnand_set_ecc_enabled() 651 u16 offs = brcmnand_cs_offset(ctrl, host->cs, BRCMNAND_CS_ACC_CONTROL); in brcmnand_set_ecc_enabled() 657 acc_control |= host->hwcfg.ecc_level in brcmnand_set_ecc_enabled() 677 static int brcmnand_get_sector_size_1k(struct brcmnand_host *host) in brcmnand_get_sector_size_1k() argument 679 struct brcmnand_controller *ctrl = host->ctrl; in brcmnand_get_sector_size_1k() 681 u16 acc_control_offs = brcmnand_cs_offset(ctrl, host->cs, in brcmnand_get_sector_size_1k() [all …]
|
/linux-4.4.14/drivers/scsi/arcmsr/ |
D | arcmsr_attr.c | 70 struct Scsi_Host *host = class_to_shost(dev); in arcmsr_sysfs_iop_message_read() local 71 struct AdapterControlBlock *acb = (struct AdapterControlBlock *) host->hostdata; in arcmsr_sysfs_iop_message_read() 117 struct Scsi_Host *host = class_to_shost(dev); in arcmsr_sysfs_iop_message_write() local 118 struct AdapterControlBlock *acb = (struct AdapterControlBlock *) host->hostdata; in arcmsr_sysfs_iop_message_write() 165 struct Scsi_Host *host = class_to_shost(dev); in arcmsr_sysfs_iop_message_clear() local 166 struct AdapterControlBlock *acb = (struct AdapterControlBlock *) host->hostdata; in arcmsr_sysfs_iop_message_clear() 222 struct Scsi_Host *host = acb->host; in arcmsr_alloc_sysfs_attr() local 225 error = sysfs_create_bin_file(&host->shost_dev.kobj, &arcmsr_sysfs_message_read_attr); in arcmsr_alloc_sysfs_attr() 230 error = sysfs_create_bin_file(&host->shost_dev.kobj, &arcmsr_sysfs_message_write_attr); in arcmsr_alloc_sysfs_attr() 235 error = sysfs_create_bin_file(&host->shost_dev.kobj, &arcmsr_sysfs_message_clear_attr); in arcmsr_alloc_sysfs_attr() [all …]
|
/linux-4.4.14/drivers/gpu/drm/msm/dsi/ |
D | dsi.h | 62 struct mipi_dsi_host *host; member 137 int msm_dsi_host_xfer_prepare(struct mipi_dsi_host *host, 139 void msm_dsi_host_xfer_restore(struct mipi_dsi_host *host, 141 int msm_dsi_host_cmd_tx(struct mipi_dsi_host *host, 143 int msm_dsi_host_cmd_rx(struct mipi_dsi_host *host, 145 void msm_dsi_host_cmd_xfer_commit(struct mipi_dsi_host *host, 147 int msm_dsi_host_enable(struct mipi_dsi_host *host); 148 int msm_dsi_host_disable(struct mipi_dsi_host *host); 149 int msm_dsi_host_power_on(struct mipi_dsi_host *host); 150 int msm_dsi_host_power_off(struct mipi_dsi_host *host); [all …]
|
D | dsi_manager.c | 84 ret = msm_dsi_host_register(msm_dsi->host, true); in dsi_mgr_host_register() 89 ret = msm_dsi_host_set_src_pll(msm_dsi->host, src_pll); in dsi_mgr_host_register() 104 ret = msm_dsi_host_register(sdsi->host, false); in dsi_mgr_host_register() 107 ret = msm_dsi_host_register(mdsi->host, true); in dsi_mgr_host_register() 113 ret = msm_dsi_host_set_src_pll(msm_dsi->host, src_pll); in dsi_mgr_host_register() 116 ret = msm_dsi_host_set_src_pll(other_dsi->host, src_pll); in dsi_mgr_host_register() 158 msm_dsi->panel = msm_dsi_host_get_panel(msm_dsi->host, in dsi_mgr_connector_detect() 169 other_dsi->host, NULL); in dsi_mgr_connector_detect() 341 struct mipi_dsi_host *host = msm_dsi->host; in dsi_mgr_bridge_pre_enable() local 351 ret = msm_dsi_host_power_on(host); in dsi_mgr_bridge_pre_enable() [all …]
|
/linux-4.4.14/arch/um/os-Linux/ |
D | util.c | 49 struct utsname host; in setup_machinename() local 51 uname(&host); in setup_machinename() 54 if (!strcmp(host.machine, "x86_64")) { in setup_machinename() 59 if (!strcmp(host.machine, "i686")) { in setup_machinename() 65 strcpy(machine_out, host.machine); in setup_machinename() 70 struct utsname host; in setup_hostinfo() local 72 uname(&host); in setup_hostinfo() 73 snprintf(buf, len, "%s %s %s %s %s", host.sysname, host.nodename, in setup_hostinfo() 74 host.release, host.version, host.machine); in setup_hostinfo()
|
/linux-4.4.14/drivers/scsi/fnic/ |
D | fnic_main.c | 187 static struct fc_host_statistics *fnic_get_stats(struct Scsi_Host *host) in fnic_get_stats() argument 190 struct fc_lport *lp = shost_priv(host); in fnic_get_stats() 205 FNIC_MAIN_DBG(KERN_DEBUG, fnic->lport->host, in fnic_get_stats() 230 void fnic_dump_fchost_stats(struct Scsi_Host *host, in fnic_dump_fchost_stats() argument 233 FNIC_MAIN_NOTE(KERN_NOTICE, host, in fnic_dump_fchost_stats() 236 FNIC_MAIN_NOTE(KERN_NOTICE, host, in fnic_dump_fchost_stats() 239 FNIC_MAIN_NOTE(KERN_NOTICE, host, in fnic_dump_fchost_stats() 242 FNIC_MAIN_NOTE(KERN_NOTICE, host, in fnic_dump_fchost_stats() 245 FNIC_MAIN_NOTE(KERN_NOTICE, host, in fnic_dump_fchost_stats() 248 FNIC_MAIN_NOTE(KERN_NOTICE, host, in fnic_dump_fchost_stats() [all …]
|
D | fnic_scsi.c | 183 struct Scsi_Host *host = fnic->lport->host; in __fnic_set_state_flags() local 184 int sh_locked = spin_is_locked(host->host_lock); in __fnic_set_state_flags() 188 spin_lock_irqsave(host->host_lock, flags); in __fnic_set_state_flags() 196 spin_unlock_irqrestore(host->host_lock, flags); in __fnic_set_state_flags() 243 FNIC_SCSI_DBG(KERN_DEBUG, fnic->lport->host, in fnic_fw_reset_handler() 247 FNIC_SCSI_DBG(KERN_DEBUG, fnic->lport->host, in fnic_fw_reset_handler() 291 FNIC_SCSI_DBG(KERN_DEBUG, fnic->lport->host, in fnic_flogi_reg_handler() 297 FNIC_SCSI_DBG(KERN_DEBUG, fnic->lport->host, in fnic_flogi_reg_handler() 382 FNIC_SCSI_DBG(KERN_INFO, fnic->lport->host, in fnic_queue_wq_copy_desc() 431 struct fc_lport *lp = shost_priv(sc->device->host); in fnic_queuecommand_lck() [all …]
|
/linux-4.4.14/fs/ubifs/ |
D | xattr.c | 100 static int create_xattr(struct ubifs_info *c, struct inode *host, in create_xattr() argument 105 struct ubifs_inode *ui, *host_ui = ubifs_inode(host); in create_xattr() 112 host->i_ino, host_ui->xattr_cnt); in create_xattr() 124 host->i_ino, names_len, XATTR_LIST_MAX); in create_xattr() 132 inode = ubifs_new_inode(c, host, S_IFREG | S_IRWXUGO); in create_xattr() 156 host->i_ctime = ubifs_current_time(host); in create_xattr() 162 err = ubifs_jnl_update(c, host, nm, inode, 0, 1); in create_xattr() 197 static int change_xattr(struct ubifs_info *c, struct inode *host, in change_xattr() argument 201 struct ubifs_inode *host_ui = ubifs_inode(host); in change_xattr() 225 host->i_ctime = ubifs_current_time(host); in change_xattr() [all …]
|
/linux-4.4.14/drivers/ide/ |
D | ide-cs.c | 64 struct ide_host *host; member 118 struct ide_host *host; in idecs_register() local 141 rc = ide_host_add(&idecs_port_info, hws, 1, &host); in idecs_register() 145 hwif = host->ports[0]; in idecs_register() 148 return host; in idecs_register() 155 return host; in idecs_register() 158 return host; in idecs_register() 194 struct ide_host *host; in ide_config() local 227 host = idecs_register(io_base, ctl_base, link->irq, link); in ide_config() 228 if (host == NULL && resource_size(link->resource[0]) == 0x20) { in ide_config() [all …]
|
D | ide-probe.c | 825 static void ide_host_enable_irqs(struct ide_host *host) in ide_host_enable_irqs() argument 830 ide_host_for_each_port(i, hwif, host) { in ide_host_enable_irqs() 849 struct ide_host *host = hwif->host; in init_irq() local 850 irq_handler_t irq_handler = host->irq_handler; in init_irq() 851 int sa = host->irq_flags; in init_irq() 856 if (!host->get_lock) in init_irq() 868 if (hwif->host->host_flags & IDE_HFLAG_SERIALIZE) in init_irq() 1095 hwif->host->host_flags |= IDE_HFLAG_SERIALIZE; in ide_init_port() 1284 struct ide_host *host; in ide_host_alloc() local 1289 host = kzalloc_node(sizeof(*host), GFP_KERNEL, node); in ide_host_alloc() [all …]
|
/linux-4.4.14/drivers/scsi/pcmcia/ |
D | nsp_cs.c | 179 nsp_hw_data *data = (nsp_hw_data *)SCpnt->device->host->hostdata; in nsp_scsi_done() 194 nsp_hw_data *data = (nsp_hw_data *)SCpnt->device->host->hostdata; in nsp_queuecommand_lck() 366 unsigned int host_id = SCpnt->device->host->this_id; in nsphw_start_selection() 367 unsigned int base = SCpnt->device->host->io_port; in nsphw_start_selection() 369 nsp_hw_data *data = (nsp_hw_data *)SCpnt->device->host->hostdata; in nsphw_start_selection() 449 nsp_hw_data *data = (nsp_hw_data *)SCpnt->device->host->hostdata; in nsp_analyze_sdtr() 505 unsigned int base = SCpnt->device->host->io_port; in nsp_start_timer() 506 nsp_hw_data *data = (nsp_hw_data *)SCpnt->device->host->hostdata; in nsp_start_timer() 519 unsigned int base = SCpnt->device->host->io_port; in nsp_negate_signal() 548 unsigned int base = SCpnt->device->host->io_port; in nsp_expect_signal() [all …]
|
D | fdomain_stub.c | 64 struct Scsi_Host *host; member 119 struct Scsi_Host *host; in fdomain_config() local 140 host = __fdomain_16x0_detect(&fdomain_driver_template); in fdomain_config() 141 if (!host) { in fdomain_config() 146 if (scsi_add_host(host, NULL)) in fdomain_config() 148 scsi_scan_host(host); in fdomain_config() 150 info->host = host; in fdomain_config() 167 scsi_remove_host(info->host); in fdomain_release() 169 scsi_unregister(info->host); in fdomain_release()
|
D | qlogic_stub.c | 82 struct Scsi_Host *host; member 90 static struct Scsi_Host *qlogic_detect(struct scsi_host_template *host, in qlogic_detect() argument 99 qinitid = host->this_id; in qlogic_detect() 105 host->name = qlogic_name; in qlogic_detect() 106 shost = scsi_host_alloc(host, sizeof(struct qlogicfas408_priv)); in qlogic_detect() 192 struct Scsi_Host *host; in qlogic_config() local 216 host = qlogic_detect(&qlogicfas_driver_template, link, in qlogic_config() 219 host = qlogic_detect(&qlogicfas_driver_template, link, in qlogic_config() 222 if (!host) { in qlogic_config() 227 info->host = host; in qlogic_config() [all …]
|
/linux-4.4.14/drivers/usb/storage/ |
D | scsiglue.c | 73 static const char* host_info(struct Scsi_Host *host) in host_info() argument 75 struct us_data *us = host_to_us(host); in host_info() 81 struct us_data *us = host_to_us(sdev->host); in slave_alloc() 116 struct us_data *us = host_to_us(sdev->host); in slave_configure() 327 struct us_data *us = host_to_us(srb->device->host); in queuecommand_lck() 361 struct us_data *us = host_to_us(srb->device->host); in DEF_SCSI_QCMD() 397 struct us_data *us = host_to_us(srb->device->host); in device_reset() 413 struct us_data *us = host_to_us(srb->device->host); in bus_reset() 428 struct Scsi_Host *host = us_to_host(us); in usb_stor_report_device_reset() local 430 scsi_report_device_reset(host, 0, 0); in usb_stor_report_device_reset() [all …]
|
/linux-4.4.14/include/linux/ |
D | memstick.h | 257 struct memstick_host *host; member 290 void (*request)(struct memstick_host *host); 292 int (*set_param)(struct memstick_host *host, 315 int memstick_add_host(struct memstick_host *host); 316 void memstick_remove_host(struct memstick_host *host); 317 void memstick_free_host(struct memstick_host *host); 318 void memstick_detect_change(struct memstick_host *host); 319 void memstick_suspend_host(struct memstick_host *host); 320 void memstick_resume_host(struct memstick_host *host); 326 int memstick_next_req(struct memstick_host *host, [all …]
|
/linux-4.4.14/Documentation/video4linux/ |
D | soc-camera.txt | 11 - camera host - an interface, to which a camera is connected. Typically a 14 - camera host bus - a connection between a camera host and a camera. Can be 21 The soc-camera subsystem initially provided a unified API between camera host 24 with non-soc-camera hosts possible. The camera host API to the soc-camera core 28 method is supported by host drivers. However, the soc-camera core also provides 31 The subsystem has been designed to support multiple camera host interfaces and 38 As of 3.7 there are seven host drivers in the mainline: atmel-isi.c, 43 Camera host API 46 A host camera driver is registered using the 50 function. The host object can be initialized as follows: [all …]
|
/linux-4.4.14/arch/um/ |
D | Kconfig.net | 12 kernels can talk to each other, the host, and with the host's help, 29 running UML to exchange packets with its host over one of the 30 host's Ethertap devices, such as /dev/tap0. Additional running 34 link with the host. 36 To use this, your host kernel must have support for Ethertap 37 devices. Also, if your host kernel is 2.4.x, it must have 45 If you'd like to set up an IP network with the host and/or the 56 packets with the host over a TUN/TAP device. This option will only 57 work with a 2.4 host, unless you've applied the TUN/TAP patch to 58 your 2.2 host kernel. [all …]
|
/linux-4.4.14/Documentation/mic/ |
D | mic_overview.txt | 5 memory and I/O. The host OS loads a device driver as is typical for 7 transfers control to the card OS downloaded from the host driver. The 8 host driver supports OSPM suspend and resume operations. It shuts down 13 Since it is a PCIe card, it does not have the ability to host hardware 21 shared between the host s/w and the card s/w. 0 to 3 are used by host 24 created on it by the host/card drivers. On host the channels are private 25 and used only by the host driver to transfer data for the virtio devices. 31 The Coprocessor State Management (COSM) driver on the host allows for 36 virtio backends are situated on the host rather than the card given better 37 single threaded performance for the host compared to MIC, the ability of [all …]
|
/linux-4.4.14/tools/usb/usbip/src/ |
D | usbip_attach.c | 47 static int record_connection(char *host, char *port, char *busid, int rhport) in record_connection() argument 76 host, port, busid); in record_connection() 172 static int attach_device(char *host, char *busid) in attach_device() argument 178 sockfd = usbip_net_tcp_connect(host, usbip_port_string); in attach_device() 192 rc = record_connection(host, usbip_port_string, busid, rhport); in attach_device() 208 char *host = NULL; in usbip_attach() local 221 host = optarg; in usbip_attach() 231 if (!host || !busid) in usbip_attach() 234 ret = attach_device(host, busid); in usbip_attach()
|
/linux-4.4.14/drivers/scsi/esas2r/ |
D | esas2r_main.c | 63 struct Scsi_Host *host = class_to_shost(dev); in esas2r_adapter_from_kobj() local 65 return (struct esas2r_adapter *)host->hostdata; in esas2r_adapter_from_kobj() 358 struct Scsi_Host *host = NULL; in esas2r_probe() local 392 host = scsi_host_alloc(&driver_template, host_alloc_size); in esas2r_probe() 393 if (host == NULL) { in esas2r_probe() 398 memset(host->hostdata, 0, host_alloc_size); in esas2r_probe() 400 a = (struct esas2r_adapter *)host->hostdata; in esas2r_probe() 402 esas2r_log(ESAS2R_LOG_INFO, "scsi_host_alloc() OK host: %p", host); in esas2r_probe() 406 host->max_id = ESAS2R_MAX_ID + 1; in esas2r_probe() 407 host->max_lun = 255; in esas2r_probe() [all …]
|