| /linux/drivers/memstick/host/ |
| H A D | jmb38x_ms.c | 154 static unsigned int jmb38x_ms_read_data(struct jmb38x_ms_host *host, in jmb38x_ms_read_data() argument 159 while (host->io_pos && length) { in jmb38x_ms_read_data() 160 buf[off++] = host->io_word[0] & 0xff; in jmb38x_ms_read_data() 161 host->io_word[0] >>= 8; in jmb38x_ms_read_data() 163 host->io_pos--; in jmb38x_ms_read_data() 169 while (!(STATUS_FIFO_EMPTY & readl(host->addr + STATUS))) { in jmb38x_ms_read_data() 172 *(unsigned int *)(buf + off) = __raw_readl(host->addr + DATA); in jmb38x_ms_read_data() 178 && !(STATUS_FIFO_EMPTY & readl(host->addr + STATUS))) { in jmb38x_ms_read_data() 179 host->io_word[0] = readl(host->addr + DATA); in jmb38x_ms_read_data() 180 for (host->io_pos = 4; host->io_pos; --host->io_pos) { in jmb38x_ms_read_data() [all …]
|
| /linux/drivers/mmc/host/ |
| H A D | mxcmmc.c | 3 * linux/drivers/mmc/host/mxcmmc.c - Freescale i.MX MMCI driver 25 #include <linux/mmc/host.h> 175 static inline int is_imx31_mmc(struct mxcmci_host *host) in is_imx31_mmc() argument 177 return host->devtype == IMX31_MMC; in is_imx31_mmc() 180 static inline int is_mpc512x_mmc(struct mxcmci_host *host) in is_mpc512x_mmc() argument 182 return host->devtype == MPC512X_MMC; in is_mpc512x_mmc() 185 static inline u32 mxcmci_readl(struct mxcmci_host *host, int reg) in mxcmci_readl() argument 188 return ioread32be(host->base + reg); in mxcmci_readl() 190 return readl(host->base + reg); in mxcmci_readl() 193 static inline void mxcmci_writel(struct mxcmci_host *host, u32 val, int reg) in mxcmci_writel() argument [all …]
|
| H A D | usdhi6rol0.c | 16 #include <linux/mmc/host.h> 209 static void usdhi6_write(struct usdhi6_host *host, u32 reg, u32 data) in usdhi6_write() argument 211 iowrite32(data, host->base + reg); in usdhi6_write() 212 dev_vdbg(mmc_dev(host->mmc), "%s(0x%p + 0x%x) = 0x%x\n", __func__, in usdhi6_write() 213 host->base, reg, data); in usdhi6_write() 216 static void usdhi6_write16(struct usdhi6_host *host, u32 reg, u16 data) in usdhi6_write16() argument 218 iowrite16(data, host->base + reg); in usdhi6_write16() 219 dev_vdbg(mmc_dev(host->mmc), "%s(0x%p + 0x%x) = 0x%x\n", __func__, in usdhi6_write16() 220 host->base, reg, data); in usdhi6_write16() 223 static u32 usdhi6_read(struct usdhi6_host *host, u32 reg) in usdhi6_read() argument [all …]
|
| H A D | renesas_sdhi_sys_dmac.c | 14 #include <linux/mmc/host.h> 96 static void renesas_sdhi_sys_dmac_enable_dma(struct tmio_mmc_host *host, in renesas_sdhi_sys_dmac_enable_dma() argument 99 struct renesas_sdhi *priv = host_to_priv(host); in renesas_sdhi_sys_dmac_enable_dma() 101 if (!host->chan_tx || !host->chan_rx) in renesas_sdhi_sys_dmac_enable_dma() 105 priv->dma_priv.enable(host, enable); in renesas_sdhi_sys_dmac_enable_dma() 108 static void renesas_sdhi_sys_dmac_abort_dma(struct tmio_mmc_host *host) in renesas_sdhi_sys_dmac_abort_dma() argument 110 renesas_sdhi_sys_dmac_enable_dma(host, false); in renesas_sdhi_sys_dmac_abort_dma() 112 if (host->chan_rx) in renesas_sdhi_sys_dmac_abort_dma() 113 dmaengine_terminate_sync(host->chan_rx); in renesas_sdhi_sys_dmac_abort_dma() 114 if (host->chan_tx) in renesas_sdhi_sys_dmac_abort_dma() [all …]
|
| H A D | sunplus-mmc.c | 15 #include <linux/mmc/host.h> 176 static inline int spmmc_wait_finish(struct spmmc_host *host) in spmmc_wait_finish() argument 180 return readl_poll_timeout(host->base + SPMMC_SD_STATE_REG, state, in spmmc_wait_finish() 185 static inline int spmmc_wait_sdstatus(struct spmmc_host *host, unsigned int status_bit) in spmmc_wait_sdstatus() argument 189 return readl_poll_timeout(host->base + SPMMC_SD_STATUS_REG, status, in spmmc_wait_sdstatus() 194 #define spmmc_wait_rspbuf_full(host) spmmc_wait_sdstatus(host, SPMMC_SDSTATUS_RSP_BUF_FULL) argument 195 #define spmmc_wait_rxbuf_full(host) spmmc_wait_sdstatus(host, SPMMC_SDSTATUS_RX_DATA_BUF_FULL) argument 196 #define spmmc_wait_txbuf_empty(host) spmmc_wait_sdstatus(host, SPMMC_SDSTATUS_TX_DATA_BUF_EMPTY) argument 198 static void spmmc_get_rsp(struct spmmc_host *host, struct mmc_command *cmd) in spmmc_get_rsp() argument 205 if (spmmc_wait_rspbuf_full(host)) in spmmc_get_rsp() [all …]
|
| H A D | sunxi-mmc.c | 3 * Driver for sunxi SD/MMC host controllers 23 #include <linux/mmc/host.h> 76 #define mmc_readl(host, reg) \ argument 77 readl((host)->reg_base + SDXC_##reg) 78 #define mmc_writel(host, reg, value) \ argument 79 writel((value), (host)->reg_base + SDXC_##reg) 214 #define SDXC_IDMAC_DES0_OWN BIT(31) /* 1-idma owns it, 0-host owns it */ 305 static int sunxi_mmc_reset_host(struct sunxi_mmc_host *host) in sunxi_mmc_reset_host() argument 310 mmc_writel(host, REG_GCTRL, SDXC_HARDWARE_RESET); in sunxi_mmc_reset_host() 312 rval = mmc_readl(host, REG_GCTRL); in sunxi_mmc_reset_host() [all …]
|
| H A D | mmci_stm32_sdmmc.c | 10 #include <linux/mmc/host.h> 69 int (*tuning_prepare)(struct mmci_host *host); 81 static int sdmmc_idma_validate_data(struct mmci_host *host, in sdmmc_idma_validate_data() argument 84 struct sdmmc_idma *idma = host->dma_priv; in sdmmc_idma_validate_data() 85 struct device *dev = mmc_dev(host->mmc); in sdmmc_idma_validate_data() 97 host->variant->stm32_idmabsize_align)) { in sdmmc_idma_validate_data() 98 dev_dbg(mmc_dev(host->mmc), in sdmmc_idma_validate_data() 106 dev_dbg(mmc_dev(host->mmc), in sdmmc_idma_validate_data() 117 host->mmc->max_req_size, in sdmmc_idma_validate_data() 131 static int _sdmmc_idma_prep_data(struct mmci_host *host, in _sdmmc_idma_prep_data() argument [all …]
|
| H A D | uniphier-sd.c | 12 #include <linux/mmc/host.h> 82 static void *uniphier_sd_priv(struct tmio_mmc_host *host) in uniphier_sd_priv() argument 84 return container_of(host->pdata, struct uniphier_sd_priv, tmio_data); in uniphier_sd_priv() 87 static void uniphier_sd_dma_endisable(struct tmio_mmc_host *host, int enable) in uniphier_sd_dma_endisable() argument 89 sd_ctrl_write16(host, CTL_DMA_ENABLE, enable ? DMA_ENABLE_DMASDRW : 0); in uniphier_sd_dma_endisable() 95 struct tmio_mmc_host *host = from_work(host, t, dma_issue); in uniphier_sd_external_dma_issue() local 96 struct uniphier_sd_priv *priv = uniphier_sd_priv(host); in uniphier_sd_external_dma_issue() 98 uniphier_sd_dma_endisable(host, 1); in uniphier_sd_external_dma_issue() 105 struct tmio_mmc_host *host = param; in uniphier_sd_external_dma_callback() local 106 struct uniphier_sd_priv *priv = uniphier_sd_priv(host); in uniphier_sd_external_dma_callback() [all …]
|
| H A D | meson-mx-sdhc-mmc.c | 3 * Amlogic Meson6/Meson8/Meson8b/Meson8m2 SDHC MMC host controller driver. 21 #include <linux/mmc/host.h> 68 static void meson_mx_sdhc_reset(struct meson_mx_sdhc_host *host) in meson_mx_sdhc_reset() argument 70 regmap_write(host->regmap, MESON_SDHC_SRST, MESON_SDHC_SRST_MAIN_CTRL | in meson_mx_sdhc_reset() 76 regmap_write(host->regmap, MESON_SDHC_SRST, 0); in meson_mx_sdhc_reset() 82 struct meson_mx_sdhc_host *host = mmc_priv(mmc); in meson_mx_sdhc_clear_fifo() local 85 regmap_read(host->regmap, MESON_SDHC_STAT, &stat); in meson_mx_sdhc_clear_fifo() 90 regmap_write(host->regmap, MESON_SDHC_SRST, MESON_SDHC_SRST_RXFIFO | in meson_mx_sdhc_clear_fifo() 94 regmap_read(host->regmap, MESON_SDHC_STAT, &stat); in meson_mx_sdhc_clear_fifo() 97 dev_warn(mmc_dev(host->mmc), in meson_mx_sdhc_clear_fifo() [all …]
|
| H A D | sdhci-pci-arasan.c | 17 /* Extra registers for Arasan SD/SDIO/MMC Host Controller with PHY */ 93 static int arasan_phy_addr_poll(struct sdhci_host *host, u32 offset, u32 mask) in arasan_phy_addr_poll() argument 101 val = sdhci_readw(host, PHY_ADDR_REG); in arasan_phy_addr_poll() 109 static int arasan_phy_write(struct sdhci_host *host, u8 data, u8 offset) in arasan_phy_write() argument 111 sdhci_writew(host, data, PHY_DAT_REG); in arasan_phy_write() 112 sdhci_writew(host, (PHY_WRITE | offset), PHY_ADDR_REG); in arasan_phy_write() 113 return arasan_phy_addr_poll(host, PHY_ADDR_REG, PHY_BUSY); in arasan_phy_write() 116 static int arasan_phy_read(struct sdhci_host *host, u8 offset, u8 *data) in arasan_phy_read() argument 120 sdhci_writew(host, 0, PHY_DAT_REG); in arasan_phy_read() 121 sdhci_writew(host, offset, PHY_ADDR_REG); in arasan_phy_read() [all …]
|
| H A D | sdhci-milbeaut.c | 60 static void sdhci_milbeaut_soft_voltage_switch(struct sdhci_host *host) in sdhci_milbeaut_soft_voltage_switch() argument 65 ctrl = sdhci_readl(host, F_SDH30_IO_CONTROL2); in sdhci_milbeaut_soft_voltage_switch() 67 sdhci_writel(host, ctrl, F_SDH30_IO_CONTROL2); in sdhci_milbeaut_soft_voltage_switch() 69 sdhci_writel(host, ctrl, F_SDH30_IO_CONTROL2); in sdhci_milbeaut_soft_voltage_switch() 72 sdhci_writel(host, ctrl, F_SDH30_IO_CONTROL2); in sdhci_milbeaut_soft_voltage_switch() 75 ctrl = sdhci_readl(host, F_SDH30_TUNING_SETTING); in sdhci_milbeaut_soft_voltage_switch() 77 sdhci_writel(host, ctrl, F_SDH30_TUNING_SETTING); in sdhci_milbeaut_soft_voltage_switch() 80 static unsigned int sdhci_milbeaut_get_min_clock(struct sdhci_host *host) in sdhci_milbeaut_get_min_clock() argument 85 static void sdhci_milbeaut_reset(struct sdhci_host *host, u8 mask) in sdhci_milbeaut_reset() argument 87 struct f_sdhost_priv *priv = sdhci_priv(host); in sdhci_milbeaut_reset() [all …]
|
| H A D | sdricoh_cs.c | 25 #include <linux/mmc/host.h> 88 static inline unsigned int sdricoh_readl(struct sdricoh_host *host, in sdricoh_readl() argument 91 unsigned int value = readl(host->iobase + reg); in sdricoh_readl() 92 dev_vdbg(host->dev, "rl %x 0x%x\n", reg, value); in sdricoh_readl() 96 static inline void sdricoh_writel(struct sdricoh_host *host, unsigned int reg, in sdricoh_writel() argument 99 writel(value, host->iobase + reg); in sdricoh_writel() 100 dev_vdbg(host->dev, "wl %x 0x%x\n", reg, value); in sdricoh_writel() 104 static inline void sdricoh_writew(struct sdricoh_host *host, unsigned int reg, in sdricoh_writew() argument 107 writew(value, host->iobase + reg); in sdricoh_writew() 108 dev_vdbg(host->dev, "ww %x 0x%x\n", reg, value); in sdricoh_writew() [all …]
|
| H A D | sdhci-bcm-kona.c | 9 #include <linux/mmc/host.h> 47 static int sdhci_bcm_kona_sd_reset(struct sdhci_host *host) in sdhci_bcm_kona_sd_reset() argument 55 /* reset the host using the top level reset */ in sdhci_bcm_kona_sd_reset() 56 val = sdhci_readl(host, KONA_SDHOST_CORECTRL); in sdhci_bcm_kona_sd_reset() 58 sdhci_writel(host, val, KONA_SDHOST_CORECTRL); in sdhci_bcm_kona_sd_reset() 60 while (!(sdhci_readl(host, KONA_SDHOST_CORECTRL) & KONA_SDHOST_RESET)) { in sdhci_bcm_kona_sd_reset() 62 pr_err("Error: sd host is stuck in reset!!!\n"); in sdhci_bcm_kona_sd_reset() 67 /* bring the host out of reset */ in sdhci_bcm_kona_sd_reset() 68 val = sdhci_readl(host, KONA_SDHOST_CORECTRL); in sdhci_bcm_kona_sd_reset() 78 sdhci_writel(host, val, KONA_SDHOST_CORECTRL); in sdhci_bcm_kona_sd_reset() [all …]
|
| /linux/drivers/mtd/nand/raw/ |
| H A D | hisi504_nand.c | 144 static inline unsigned int hinfc_read(struct hinfc_host *host, unsigned int reg) in hinfc_read() argument 146 return readl(host->iobase + reg); in hinfc_read() 149 static inline void hinfc_write(struct hinfc_host *host, unsigned int value, in hinfc_write() argument 152 writel(value, host->iobase + reg); in hinfc_write() 155 static void wait_controller_finished(struct hinfc_host *host) in wait_controller_finished() argument 161 val = hinfc_read(host, HINFC504_STATUS); in wait_controller_finished() 162 if (host->command == NAND_CMD_ERASE2) { in wait_controller_finished() 166 val = hinfc_read(host, HINFC504_STATUS); in wait_controller_finished() 176 dev_err(host->dev, "Wait NAND controller exec cmd timeout.\n"); in wait_controller_finished() 179 static void hisi_nfc_dma_transfer(struct hinfc_host *host, int todev) in hisi_nfc_dma_transfer() argument [all …]
|
| H A D | lpc32xx_mlc.c | 231 static void lpc32xx_nand_setup(struct lpc32xx_nand_host *host) in lpc32xx_nand_setup() argument 236 writel(MLCCMD_RESET, MLC_CMD(host->io_base)); in lpc32xx_nand_setup() 240 clkrate = clk_get_rate(host->clk); in lpc32xx_nand_setup() 246 writew(MLCLOCKPR_MAGIC, MLC_LOCK_PR(host->io_base)); in lpc32xx_nand_setup() 250 writel(tmp, MLC_ICR(host->io_base)); in lpc32xx_nand_setup() 254 writew(MLCLOCKPR_MAGIC, MLC_LOCK_PR(host->io_base)); in lpc32xx_nand_setup() 258 tmp |= MLCTIMEREG_TCEA_DELAY(clkrate / host->ncfg->tcea_delay + 1); in lpc32xx_nand_setup() 259 tmp |= MLCTIMEREG_BUSY_DELAY(clkrate / host->ncfg->busy_delay + 1); in lpc32xx_nand_setup() 260 tmp |= MLCTIMEREG_NAND_TA(clkrate / host->ncfg->nand_ta + 1); in lpc32xx_nand_setup() 261 tmp |= MLCTIMEREG_RD_HIGH(clkrate / host->ncfg->rd_high + 1); in lpc32xx_nand_setup() [all …]
|
| /linux/drivers/memstick/core/ |
| H A D | memstick.c | 179 struct memstick_host *host = container_of(dev, struct memstick_host, in memstick_free() local 181 kfree(host); in memstick_free() 202 * memstick_detect_change - schedule media detection on memstick host 203 * @host: host to use 205 void memstick_detect_change(struct memstick_host *host) in memstick_detect_change() argument 207 queue_work(workqueue, &host->media_checker); in memstick_detect_change() 212 * memstick_next_req - called by host driver to obtain next request to process 213 * @host: host to use 216 * Host calls this function from idle state (*mrq == NULL) or after finishing 220 * Returns: value of 0 means that new request was assigned to the host. [all …]
|
| /linux/drivers/gpu/host1x/ |
| H A D | dev.h | 33 int (*init)(struct host1x_channel *channel, struct host1x *host, 56 void (*show_channel_cdma)(struct host1x *host, 59 void (*show_channel_fifo)(struct host1x *host, 62 void (*show_mlocks)(struct host1x *host, struct output *output); 74 void (*enable_protection)(struct host1x *host); 78 int (*init_host_sync)(struct host1x *host, u32 cpm); 80 struct host1x *host, unsigned int id, u32 thresh); 81 void (*enable_syncpt_intr)(struct host1x *host, unsigned int id); 82 void (*disable_syncpt_intr)(struct host1x *host, unsigned int id); 83 void (*disable_all_syncpt_intrs)(struct host1x *host); [all …]
|
| /linux/sound/soc/spear/ |
| H A D | spdif_out.c | 41 static void spdif_out_configure(struct spdif_out_dev *host) 43 writel(SPDIF_OUT_RESET, host->io_base + SPDIF_OUT_SOFT_RST); 45 writel(readl(host->io_base + SPDIF_OUT_SOFT_RST) & ~SPDIF_OUT_RESET, in spdif_out_configure() 46 host->io_base + SPDIF_OUT_SOFT_RST); in spdif_out_configure() 51 host->io_base + SPDIF_OUT_CFG); in spdif_out_configure() 53 writel(0x7F, host->io_base + SPDIF_OUT_INT_STA_CLR); in spdif_out_configure() 54 writel(0x7F, host->io_base + SPDIF_OUT_INT_EN_CLR); in spdif_out_configure() 60 struct spdif_out_dev *host = snd_soc_dai_get_drvdata(cpu_dai); in spdif_out_startup() 66 ret = clk_enable(host->clk); in spdif_out_startup() 70 host in spdif_out_startup() 44 spdif_out_configure(struct spdif_out_dev * host) spdif_out_configure() argument 63 struct spdif_out_dev *host = snd_soc_dai_get_drvdata(cpu_dai); spdif_out_startup() local 82 struct spdif_out_dev *host = snd_soc_dai_get_drvdata(dai); spdif_out_shutdown() local 91 spdif_out_clock(struct spdif_out_dev * host,u32 core_freq,u32 rate) spdif_out_clock() argument 109 struct spdif_out_dev *host = snd_soc_dai_get_drvdata(dai); spdif_out_hw_params() local 154 struct spdif_out_dev *host = snd_soc_dai_get_drvdata(dai); spdif_out_trigger() local 193 struct spdif_out_dev *host = snd_soc_dai_get_drvdata(dai); spdif_mute() local 217 struct spdif_out_dev *host = snd_soc_dai_get_drvdata(cpu_dai); spdif_mute_get() local 227 struct spdif_out_dev *host = snd_soc_dai_get_drvdata(cpu_dai); spdif_mute_put() local 244 struct spdif_out_dev *host = snd_soc_dai_get_drvdata(dai); spdif_soc_dai_probe() local 283 struct spdif_out_dev *host; spdif_out_probe() local 322 struct spdif_out_dev *host = dev_get_drvdata(&pdev->dev); spdif_out_suspend() local 333 struct spdif_out_dev *host = dev_get_drvdata(&pdev->dev); spdif_out_resume() local [all...] |
| H A D | spdif_in.c | 43 static void spdif_in_configure(struct spdif_in_dev *host) 49 writel(ctrl, host->io_base + SPDIF_IN_CTRL); in spdif_in_configure() 50 writel(0xF, host->io_base + SPDIF_IN_IRQ_MASK); in spdif_in_configure() 55 struct spdif_in_dev *host = snd_soc_dai_get_drvdata(dai); 57 host->dma_params_rx.filter_data = &host->dma_params; in spdif_in_dai_probe() 58 snd_soc_dai_dma_data_set_capture(dai, &host->dma_params_rx); in spdif_in_dai_probe() local 66 struct spdif_in_dev *host = snd_soc_dai_get_drvdata(dai); in spdif_in_shutdown() 71 writel(0x0, host->io_base + SPDIF_IN_IRQ_MASK); in spdif_in_shutdown() 74 static void spdif_in_format(struct spdif_in_dev *host, u3 in spdif_in_shutdown() 46 spdif_in_configure(struct spdif_in_dev * host) spdif_in_configure() argument 69 struct spdif_in_dev *host = snd_soc_dai_get_drvdata(dai); spdif_in_shutdown() local 77 spdif_in_format(struct spdif_in_dev * host,u32 format) spdif_in_format() argument 98 struct spdif_in_dev *host = snd_soc_dai_get_drvdata(dai); spdif_in_hw_params() local 113 struct spdif_in_dev *host = snd_soc_dai_get_drvdata(dai); spdif_in_trigger() local 181 struct spdif_in_dev *host = (struct spdif_in_dev *)arg; spdif_in_irq() local 204 struct spdif_in_dev *host; spdif_in_probe() local [all...] |
| /linux/drivers/mmc/core/ |
| H A D | sd_uhs2.c | 26 #include <linux/mmc/host.h> 45 struct mmc_host *host; member 49 static int sd_uhs2_power_up(struct mmc_host *host) in sd_uhs2_power_up() argument 51 if (host->ios.power_mode == MMC_POWER_ON) in sd_uhs2_power_up() 54 host->ios.vdd = fls(host->ocr_avail) - 1; in sd_uhs2_power_up() 55 host->ios.clock = host->f_init; in sd_uhs2_power_up() 56 host->ios.timing = MMC_TIMING_UHS2_SPEED_A; in sd_uhs2_power_up() 57 host->ios.power_mode = MMC_POWER_ON; in sd_uhs2_power_up() 59 return host->ops->uhs2_control(host, UHS2_SET_IOS); in sd_uhs2_power_up() 62 static int sd_uhs2_power_off(struct mmc_host *host) in sd_uhs2_power_off() argument [all …]
|
| H A D | sdio_irq.c | 21 #include <linux/mmc/host.h> 30 static int sdio_get_pending_irqs(struct mmc_host *host, u8 *pending) in sdio_get_pending_irqs() argument 32 struct mmc_card *card = host->card; in sdio_get_pending_irqs() 35 WARN_ON(!host->claimed); in sdio_get_pending_irqs() 45 !(host->caps & MMC_CAP_SDIO_IRQ)) { in sdio_get_pending_irqs() 58 static int process_sdio_pending_irqs(struct mmc_host *host) in process_sdio_pending_irqs() argument 60 struct mmc_card *card = host->card; in process_sdio_pending_irqs() 62 bool sdio_irq_pending = host->sdio_irq_pending; in process_sdio_pending_irqs() 71 host->sdio_irq_pending = false; in process_sdio_pending_irqs() 84 ret = sdio_get_pending_irqs(host, &pending); in process_sdio_pending_irqs() [all …]
|
| H A D | slot-gpio.c | 12 #include <linux/mmc/host.h> 32 struct mmc_host *host = dev_id; in mmc_gpio_cd_irqt() local 33 struct mmc_gpio *ctx = host->slot.handler_priv; in mmc_gpio_cd_irqt() 35 host->trigger_card_event = true; in mmc_gpio_cd_irqt() 36 mmc_detect_change(host, msecs_to_jiffies(ctx->cd_debounce_delay_ms)); in mmc_gpio_cd_irqt() 41 int mmc_gpio_alloc(struct mmc_host *host) in mmc_gpio_alloc() argument 43 const char *devname = dev_name(host->parent); in mmc_gpio_alloc() 46 ctx = devm_kzalloc(host->parent, sizeof(*ctx), GFP_KERNEL); in mmc_gpio_alloc() 51 ctx->cd_label = devm_kasprintf(host->parent, GFP_KERNEL, "%s cd", devname); in mmc_gpio_alloc() 54 ctx->ro_label = devm_kasprintf(host->parent, GFP_KERNEL, "%s ro", devname); in mmc_gpio_alloc() [all …]
|
| H A D | mmc.c | 19 #include <linux/mmc/host.h> 25 #include "host.h" 116 mmc_hostname(card->host), card->csd.mmca_vsn); in mmc_decode_cid() 164 mmc_hostname(card->host), csd->structure); in mmc_decode_csd() 205 struct mmc_host *host = card->host; in mmc_select_card_type() local 207 u32 caps = host->caps, caps2 = host->caps2; in mmc_select_card_type() 313 mmc_hostname(card->host)); in mmc_manage_enhanced_area() 355 mmc_hostname(card->host)); in mmc_manage_gp_partitions() 391 "version %d\n", mmc_hostname(card->host), in mmc_decode_ext_csd() 398 np = mmc_of_find_child_device(card->host, 0); in mmc_decode_ext_csd() [all …]
|
| /linux/drivers/gpu/host1x/hw/ |
| H A D | intr_hw.c | 14 static void process_32_syncpts(struct host1x *host, unsigned long val, u32 reg_offset) in process_32_syncpts() argument 21 host1x_sync_writel(host, val, HOST1X_SYNC_SYNCPT_THRESH_INT_DISABLE(reg_offset)); in process_32_syncpts() 22 host1x_sync_writel(host, val, HOST1X_SYNC_SYNCPT_THRESH_CPU0_INT_STATUS(reg_offset)); in process_32_syncpts() 25 host1x_intr_handle_interrupt(host, reg_offset * 32 + id); in process_32_syncpts() 31 struct host1x *host = irq_data->host; in syncpt_thresh_isr() local 36 for (i = irq_data->offset; i < DIV_ROUND_UP(host->info->nb_pts, 32); in syncpt_thresh_isr() 37 i += host->num_syncpt_irqs) { in syncpt_thresh_isr() 38 reg = host1x_sync_readl(host, in syncpt_thresh_isr() 41 process_32_syncpts(host, reg, i); in syncpt_thresh_isr() 48 reg = host1x_sync_readl(host, HOST1X_SYNC_SYNCPT_THRESH_CPU0_INT_STATUS(0)); in syncpt_thresh_isr() [all …]
|
| /linux/include/linux/mmc/ |
| H A D | host.h | 3 * linux/include/linux/mmc/host.h 5 * Host driver specific definitions. 163 * It is optional for the host to implement pre_req and post_req in 170 void (*post_req)(struct mmc_host *host, struct mmc_request *req, 172 void (*pre_req)(struct mmc_host *host, struct mmc_request *req); 173 void (*request)(struct mmc_host *host, struct mmc_request *req); 174 /* Submit one request to host in atomic context. */ 175 int (*request_atomic)(struct mmc_host *host, 192 void (*set_ios)(struct mmc_host *host, struct mmc_ios *ios); 201 int (*get_ro)(struct mmc_host *host); [all …]
|