| /linux/drivers/mmc/host/ |
| H A D | sdhci.c | 3 * linux/drivers/mmc/host/sdhci.c - Secure Digital Host Controller Interface driver 30 #include <linux/mmc/host.h> 40 pr_debug("%s: " DRIVER_NAME ": " f, mmc_hostname(host->mmc), ## x) 43 pr_err("%s: " DRIVER_NAME ": " f, mmc_hostname(host->mmc), ## x) 50 static bool sdhci_send_command(struct sdhci_host *host, struct mmc_command *cmd); 52 void sdhci_dumpregs(struct sdhci_host *host) in sdhci_dumpregs() argument 57 sdhci_readl(host, SDHCI_DMA_ADDRESS), in sdhci_dumpregs() 58 sdhci_readw(host, SDHCI_HOST_VERSION)); in sdhci_dumpregs() 60 sdhci_readw(host, SDHCI_BLOCK_SIZE), in sdhci_dumpregs() 61 sdhci_readw(host, SDHCI_BLOCK_COUNT)); in sdhci_dumpregs() [all …]
|
| H A D | bcm2835.c | 49 #include <linux/mmc/host.h> 61 #define SDHSTS 0x20 /* SD host status - 11 R/W */ 64 #define SDHCFG 0x38 /* Host configuration - 2 R/W */ 65 #define SDHBCT 0x3c /* Host byte count (debug) - 32 R/W */ 67 #define SDHBLC 0x50 /* Host block count (SDIO/SDHC) - 9 R/W */ 194 static void bcm2835_dumpcmd(struct bcm2835_host *host, struct mmc_command *cmd, in bcm2835_dumpcmd() argument 197 struct device *dev = &host->pdev->dev; in bcm2835_dumpcmd() 203 (cmd == host->cmd) ? '>' : ' ', in bcm2835_dumpcmd() 209 static void bcm2835_dumpregs(struct bcm2835_host *host) in bcm2835_dumpregs() argument 211 struct mmc_request *mrq = host->mrq; in bcm2835_dumpregs() [all …]
|
| 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 | wbsd.c | 3 * linux/drivers/mmc/host/wbsd.c - Winbond W83L51xD SD/MMC driver 30 #include <linux/mmc/host.h> 84 static inline void wbsd_unlock_config(struct wbsd_host *host) in wbsd_unlock_config() argument 86 BUG_ON(host->config == 0); in wbsd_unlock_config() 88 outb(host->unlock_code, host->config); in wbsd_unlock_config() 89 outb(host->unlock_code, host->config); in wbsd_unlock_config() 92 static inline void wbsd_lock_config(struct wbsd_host *host) in wbsd_lock_config() argument 94 BUG_ON(host->config == 0); in wbsd_lock_config() 96 outb(LOCK_CODE, host->config); in wbsd_lock_config() 99 static inline void wbsd_write_config(struct wbsd_host *host, u8 reg, u8 value) in wbsd_write_config() argument [all …]
|
| H A D | pxamci.c | 3 * linux/drivers/mmc/host/pxa.c - PXA MMCI driver 26 #include <linux/mmc/host.h> 76 static int pxamci_init_ocr(struct pxamci_host *host) in pxamci_init_ocr() argument 78 struct mmc_host *mmc = host->mmc; in pxamci_init_ocr() 87 mmc->ocr_avail = host->pdata ? in pxamci_init_ocr() 88 host->pdata->ocr_mask : in pxamci_init_ocr() 95 static inline int pxamci_set_power(struct pxamci_host *host, in pxamci_set_power() argument 99 struct mmc_host *mmc = host->mmc; in pxamci_set_power() 105 if (host->power) { in pxamci_set_power() 106 bool on = !!((1 << vdd) & host->pdata->ocr_mask); in pxamci_set_power() [all …]
|
| H A D | moxart-mmc.c | 2 * MOXA ART MMC host driver. 25 #include <linux/mmc/host.h> 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() [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 | 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 | cavium-thunderx.c | 21 static void thunder_mmc_acquire_bus(struct cvm_mmc_host *host) in thunder_mmc_acquire_bus() argument 23 down(&host->mmc_serializer); in thunder_mmc_acquire_bus() 26 static void thunder_mmc_release_bus(struct cvm_mmc_host *host) in thunder_mmc_release_bus() argument 28 up(&host->mmc_serializer); in thunder_mmc_release_bus() 31 static void thunder_mmc_int_enable(struct cvm_mmc_host *host, u64 val) in thunder_mmc_int_enable() argument 33 writeq(val, host->base + MIO_EMM_INT(host)); in thunder_mmc_int_enable() 34 writeq(val, host->base + MIO_EMM_INT_EN_SET(host)); in thunder_mmc_int_enable() 37 static int thunder_mmc_register_interrupts(struct cvm_mmc_host *host, in thunder_mmc_register_interrupts() argument 63 struct cvm_mmc_host *host; thunder_mmc_probe() local 172 struct cvm_mmc_host *host = pci_get_drvdata(pdev); thunder_mmc_remove() local [all...] |
| H A D | sdhci-pci-gli.c | 309 static inline void gl9750_wt_on(struct sdhci_host *host) in gl9750_wt_on() argument 314 wt_value = sdhci_readl(host, SDHCI_GLI_9750_WT); in gl9750_wt_on() 323 sdhci_writel(host, wt_value, SDHCI_GLI_9750_WT); in gl9750_wt_on() 326 static inline void gl9750_wt_off(struct sdhci_host *host) in gl9750_wt_off() argument 331 wt_value = sdhci_readl(host, SDHCI_GLI_9750_WT); in gl9750_wt_off() 340 sdhci_writel(host, wt_value, SDHCI_GLI_9750_WT); in gl9750_wt_off() 343 static void gli_set_9750(struct sdhci_host *host) in gli_set_9750() argument 354 gl9750_wt_on(host); in gli_set_9750() 357 burst_value = sdhci_readl(host, SDHCI_GLI_9750_GM_BURST_SIZE); in gli_set_9750() 359 sdhci_writel(host, burst_value, SDHCI_GLI_9750_GM_BURST_SIZE); in gli_set_9750() [all …]
|
| H A D | sdhci-of-dwcmshc.c | 3 * Driver for Synopsys DesignWare Cores Mobile Storage Host Controller 316 int (*init)(struct device *dev, struct sdhci_host *host, struct dwcmshc_priv *dwc_priv); 317 void (*postinit)(struct sdhci_host *host, struct dwcmshc_priv *dwc_priv); 338 static void dwcmshc_enable_card_clk(struct sdhci_host *host) in dwcmshc_enable_card_clk() argument 342 ctrl = sdhci_readw(host, SDHCI_CLOCK_CONTROL); in dwcmshc_enable_card_clk() 345 sdhci_writew(host, ctrl, SDHCI_CLOCK_CONTROL); in dwcmshc_enable_card_clk() 381 static void dwcmshc_adma_write_desc(struct sdhci_host *host, void **desc, in dwcmshc_adma_write_desc() argument 387 sdhci_adma_write_desc(host, desc, addr, len, cmd); in dwcmshc_adma_write_desc() 393 sdhci_adma_write_desc(host, desc, addr, tmplen, cmd); in dwcmshc_adma_write_desc() 397 sdhci_adma_write_desc(host, des in dwcmshc_adma_write_desc() 400 dwcmshc_reset(struct sdhci_host * host,u8 mask) dwcmshc_reset() argument 413 dwcmshc_get_max_clock(struct sdhci_host * host) dwcmshc_get_max_clock() argument 423 rk35xx_get_max_clock(struct sdhci_host * host) rk35xx_get_max_clock() argument 433 struct sdhci_host *host = mmc_priv(mmc); dwcmshc_check_auto_cmd23() local 453 dwcmshc_phy_init(struct sdhci_host * host) dwcmshc_phy_init() argument 513 th1520_sdhci_set_phy(struct sdhci_host * host) th1520_sdhci_set_phy() argument 532 dwcmshc_set_uhs_signaling(struct sdhci_host * host,unsigned int timing) dwcmshc_set_uhs_signaling() argument 569 th1520_set_uhs_signaling(struct sdhci_host * host,unsigned int timing) th1520_set_uhs_signaling() argument 587 struct sdhci_host *host = mmc_priv(mmc); dwcmshc_hs400_enhanced_strobe() local 604 struct sdhci_host *host = mmc_priv(mmc); dwcmshc_execute_tuning() local 619 dwcmshc_cqe_irq_handler(struct sdhci_host * host,u32 intmask) dwcmshc_cqe_irq_handler() argument 634 struct sdhci_host *host = mmc_priv(mmc); dwcmshc_sdhci_cqe_enable() local 687 struct sdhci_host *host = mmc_priv(mmc); rk35xx_sdhci_cqe_pre_enable() local 704 struct sdhci_host *host = mmc_priv(mmc); rk35xx_sdhci_cqe_enable() local 720 struct sdhci_host *host = mmc_priv(mmc); rk35xx_sdhci_cqe_disable() local 742 struct sdhci_host *host = mmc_priv(mmc); rk35xx_sdhci_cqe_post_disable() local 752 dwcmshc_rk3568_set_clock(struct sdhci_host * host,unsigned int clock) dwcmshc_rk3568_set_clock() argument 887 rk35xx_sdhci_reset(struct sdhci_host * host,u8 mask) rk35xx_sdhci_reset() argument 909 dwcmshc_rk35xx_init(struct device * dev,struct sdhci_host * host,struct dwcmshc_priv * dwc_priv) dwcmshc_rk35xx_init() argument 947 dwcmshc_rk35xx_postinit(struct sdhci_host * host,struct dwcmshc_priv * dwc_priv) dwcmshc_rk35xx_postinit() argument 961 dwcmshc_rk3576_postinit(struct sdhci_host * host,struct dwcmshc_priv * dwc_priv) dwcmshc_rk3576_postinit() argument 984 th1520_execute_tuning(struct sdhci_host * host,u32 opcode) th1520_execute_tuning() argument 1041 th1520_sdhci_reset(struct sdhci_host * host,u8 mask) th1520_sdhci_reset() argument 1059 th1520_init(struct device * dev,struct sdhci_host * host,struct dwcmshc_priv * dwc_priv) th1520_init() argument 1087 cv18xx_sdhci_reset(struct sdhci_host * host,u8 mask) cv18xx_sdhci_reset() argument 1116 cv18xx_sdhci_set_tap(struct sdhci_host * host,int tap) cv18xx_sdhci_set_tap() argument 1157 cv18xx_sdhci_post_tuning(struct sdhci_host * host) cv18xx_sdhci_post_tuning() argument 1168 cv18xx_sdhci_execute_tuning(struct sdhci_host * host,u32 opcode) cv18xx_sdhci_execute_tuning() argument 1223 sg2042_sdhci_phy_init(struct sdhci_host * host) sg2042_sdhci_phy_init() argument 1285 sg2042_sdhci_reset(struct sdhci_host * host,u8 mask) sg2042_sdhci_reset() argument 1293 sg2042_init(struct device * dev,struct sdhci_host * host,struct dwcmshc_priv * dwc_priv) sg2042_init() argument 1306 dwcmshc_hpe_vendor_specific(struct sdhci_host * host) dwcmshc_hpe_vendor_specific() argument 1324 dwcmshc_hpe_set_emmc(struct sdhci_host * host) dwcmshc_hpe_set_emmc() argument 1335 dwcmshc_hpe_reset(struct sdhci_host * host,u8 mask) dwcmshc_hpe_reset() argument 1342 dwcmshc_hpe_set_uhs_signaling(struct sdhci_host * host,unsigned int timing) dwcmshc_hpe_set_uhs_signaling() argument 1355 dwcmshc_hpe_set_clock(struct sdhci_host * host,unsigned int clock) dwcmshc_hpe_set_clock() argument 1389 dwcmshc_hpe_gsc_init(struct device * dev,struct sdhci_host * host,struct dwcmshc_priv * dwc_priv) dwcmshc_hpe_gsc_init() argument 1422 sdhci_eic7700_set_clock(struct sdhci_host * host,unsigned int clock) sdhci_eic7700_set_clock() argument 1440 sdhci_eic7700_config_phy_delay(struct sdhci_host * host,int delay) sdhci_eic7700_config_phy_delay() argument 1450 sdhci_eic7700_config_phy(struct sdhci_host * host) sdhci_eic7700_config_phy() argument 1496 sdhci_eic7700_reset(struct sdhci_host * host,u8 mask) sdhci_eic7700_reset() argument 1550 sdhci_eic7700_delay_tuning(struct sdhci_host * host,u32 opcode) sdhci_eic7700_delay_tuning() argument 1591 sdhci_eic7700_phase_code_tuning(struct sdhci_host * host,u32 opcode) sdhci_eic7700_phase_code_tuning() argument 1671 sdhci_eic7700_executing_tuning(struct sdhci_host * host,u32 opcode) sdhci_eic7700_executing_tuning() argument 1704 sdhci_eic7700_set_uhs_signaling(struct sdhci_host * host,unsigned int timing) sdhci_eic7700_set_uhs_signaling() argument 1754 sdhci_eic7700_set_uhs_wrapper(struct sdhci_host * host,unsigned int timing) sdhci_eic7700_set_uhs_wrapper() argument 1764 eic7700_init(struct device * dev,struct sdhci_host * host,struct dwcmshc_priv * dwc_priv) eic7700_init() argument 1832 dwcmshc_k230_sdhci_set_clock(struct sdhci_host * host,unsigned int clock) dwcmshc_k230_sdhci_set_clock() argument 1848 sdhci_k230_config_phy_delay(struct sdhci_host * host) sdhci_k230_config_phy_delay() argument 1873 dwcmshc_k230_phy_init(struct sdhci_host * host) dwcmshc_k230_phy_init() argument 1932 dwcmshc_k230_sdhci_reset(struct sdhci_host * host,u8 mask) dwcmshc_k230_sdhci_reset() argument 1953 dwcmshc_k230_init(struct device * dev,struct sdhci_host * host,struct dwcmshc_priv * dwc_priv) dwcmshc_k230_init() argument 2018 dwcmshc_bf3_hw_reset(struct sdhci_host * host) dwcmshc_bf3_hw_reset() argument 2272 dwcmshc_cqhci_init(struct sdhci_host * host,struct platform_device * pdev,const struct dwcmshc_pltfm_data * pltfm_data) dwcmshc_cqhci_init() argument 2404 struct sdhci_host *host; dwcmshc_probe() local 2517 dwcmshc_disable_card_clk(struct sdhci_host * host) dwcmshc_disable_card_clk() argument 2530 struct sdhci_host *host = platform_get_drvdata(pdev); dwcmshc_remove() local 2549 struct sdhci_host *host = dev_get_drvdata(dev); dwcmshc_suspend() local 2577 struct sdhci_host *host = dev_get_drvdata(dev); dwcmshc_resume() local 2620 struct sdhci_host *host = dev_get_drvdata(dev); dwcmshc_runtime_suspend() local 2629 struct sdhci_host *host = dev_get_drvdata(dev); dwcmshc_runtime_resume() local [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 | litex_mmc.c | 24 #include <linux/mmc/host.h> 127 static int litex_mmc_send_cmd(struct litex_mmc_host *host, in litex_mmc_send_cmd() argument 130 struct device *dev = mmc_dev(host->mmc); in litex_mmc_send_cmd() 135 litex_write32(host->sdcore + LITEX_CORE_CMDARG, arg); in litex_mmc_send_cmd() 136 litex_write32(host->sdcore + LITEX_CORE_CMDCMD, in litex_mmc_send_cmd() 138 litex_write8(host->sdcore + LITEX_CORE_CMDSND, 1); in litex_mmc_send_cmd() 144 if (host->irq > 0 && in litex_mmc_send_cmd() 147 reinit_completion(&host->cmd_done); in litex_mmc_send_cmd() 148 litex_write32(host->sdirq + LITEX_IRQ_ENABLE, in litex_mmc_send_cmd() 150 wait_for_completion(&host->cmd_done); in litex_mmc_send_cmd() [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 …]
|
| /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 …]
|
| H A D | tifm_ms.c | 82 static unsigned int tifm_ms_read_data(struct tifm_ms *host, in tifm_ms_read_data() argument 85 struct tifm_dev *sock = host->dev; in tifm_ms_read_data() 88 while (host->io_pos && length) { in tifm_ms_read_data() 89 buf[off++] = host->io_word & 0xff; in tifm_ms_read_data() 90 host->io_word >>= 8; in tifm_ms_read_data() 92 host->io_pos--; in tifm_ms_read_data() 109 host->io_word = readl(sock->addr + SOCK_MS_DATA); in tifm_ms_read_data() 110 for (host->io_pos = 4; host->io_pos; --host in tifm_ms_read_data() 122 tifm_ms_write_data(struct tifm_ms * host,unsigned char * buf,unsigned int length) tifm_ms_write_data() argument 180 tifm_ms_transfer_data(struct tifm_ms * host) tifm_ms_transfer_data() argument 251 tifm_ms_issue_cmd(struct tifm_ms * host) tifm_ms_issue_cmd() argument 333 tifm_ms_complete_cmd(struct tifm_ms * host) tifm_ms_complete_cmd() argument 365 tifm_ms_check_status(struct tifm_ms * host) tifm_ms_check_status() argument 382 struct tifm_ms *host; tifm_ms_data_event() local 418 struct tifm_ms *host; tifm_ms_card_event() local 457 struct tifm_ms *host = memstick_priv(msh); tifm_ms_req_tasklet() local 488 struct tifm_ms *host = memstick_priv(msh); tifm_ms_submit_req() local 497 struct tifm_ms *host = memstick_priv(msh); tifm_ms_set_param() local 537 struct tifm_ms *host = timer_container_of(host, t, timer); tifm_ms_abort() local 553 struct tifm_ms *host; tifm_ms_probe() local 593 struct tifm_ms *host = memstick_priv(msh); tifm_ms_remove() local [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 …]
|
| /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 dai->capture_dma_data = &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 …]
|