/openbmc/linux/drivers/mmc/host/ |
D | bcm2835.c |
|
D | pxamci.c |
|
D | usdhi6rol0.c |
|
D | omap_hsmmc.c |
|
D | cavium-thunderx.c |
|
D | alcor.c |
|
D | toshsd.c |
|
D | sunplus-mmc.c |
|
D | sunxi-mmc.c |
|
D | meson-mx-sdio.c |
|
D | sdhci-milbeaut.c |
|
D | sdhci-of-esdhc.c |
|
D | sdhci-pci-arasan.c |
|
/openbmc/u-boot/drivers/mmc/ |
H A D | sh_sdhi.c | 37 static inline void sh_sdhi_writeq(struct sh_sdhi_host *host, int reg, u64 val) in sh_sdhi_writeq() argument 39 writeq(val, host->addr + (reg << host->bus_shift)); in sh_sdhi_writeq() 42 static inline u64 sh_sdhi_readq(struct sh_sdhi_host *host, int reg) in sh_sdhi_readq() argument 44 return readq(host->addr + (reg << host->bus_shift)); in sh_sdhi_readq() 47 static inline void sh_sdhi_writew(struct sh_sdhi_host *host, int reg, u16 val) in sh_sdhi_writew() argument 49 writew(val, host->addr + (reg << host->bus_shift)); in sh_sdhi_writew() 52 static inline u16 sh_sdhi_readw(struct sh_sdhi_host *host, int reg) in sh_sdhi_readw() argument 54 return readw(host->addr + (reg << host->bus_shift)); in sh_sdhi_readw() 57 static void sh_sdhi_detect(struct sh_sdhi_host *host) in sh_sdhi_detect() argument 59 sh_sdhi_writew(host, SDHI_OPTION, in sh_sdhi_detect() [all …]
|
H A D | sh_mmcif.c | 26 struct sh_mmcif_host *host = dev_id; in sh_mmcif_intr() local 29 state = sh_mmcif_read(&host->regs->ce_int); in sh_mmcif_intr() 30 state &= sh_mmcif_read(&host->regs->ce_int_mask); in sh_mmcif_intr() 33 sh_mmcif_write(~(INT_RBSYE | INT_CRSPE), &host->regs->ce_int); in sh_mmcif_intr() 34 sh_mmcif_bitclr(MASK_MRBSYE, &host->regs->ce_int_mask); in sh_mmcif_intr() 37 sh_mmcif_write(~INT_CRSPE, &host->regs->ce_int); in sh_mmcif_intr() 38 sh_mmcif_bitclr(MASK_MCRSPE, &host->regs->ce_int_mask); in sh_mmcif_intr() 40 if (sh_mmcif_read(&host->regs->ce_cmd_set) & CMD_SET_RBSY) in sh_mmcif_intr() 44 sh_mmcif_write(~INT_BUFREN, &host->regs->ce_int); in sh_mmcif_intr() 45 sh_mmcif_bitclr(MASK_MBUFREN, &host->regs->ce_int_mask); in sh_mmcif_intr() [all …]
|
H A D | sdhci.c | 22 static void sdhci_reset(struct sdhci_host *host, u8 mask) in sdhci_reset() argument 28 sdhci_writeb(host, mask, SDHCI_SOFTWARE_RESET); in sdhci_reset() 29 while (sdhci_readb(host, SDHCI_SOFTWARE_RESET) & mask) { in sdhci_reset() 40 static void sdhci_cmd_done(struct sdhci_host *host, struct mmc_cmd *cmd) in sdhci_cmd_done() argument 46 cmd->response[i] = sdhci_readl(host, in sdhci_cmd_done() 49 cmd->response[i] |= sdhci_readb(host, in sdhci_cmd_done() 53 cmd->response[0] = sdhci_readl(host, SDHCI_RESPONSE); in sdhci_cmd_done() 57 static void sdhci_transfer_pio(struct sdhci_host *host, struct mmc_data *data) in sdhci_transfer_pio() argument 64 *(u32 *)offs = sdhci_readl(host, SDHCI_BUFFER); in sdhci_transfer_pio() 66 sdhci_writel(host, *(u32 *)offs, SDHCI_BUFFER); in sdhci_transfer_pio() [all …]
|
H A D | exynos_dw_mmc.c | 38 struct dwmci_host host; member 47 static void exynos_dwmci_clksel(struct dwmci_host *host) in exynos_dwmci_clksel() argument 51 container_of(host, struct dwmci_exynos_priv_data, host); in exynos_dwmci_clksel() 53 struct dwmci_exynos_priv_data *priv = host->priv; in exynos_dwmci_clksel() 55 dwmci_writel(host, DWMCI_CLKSEL, priv->sdr_timing); in exynos_dwmci_clksel() 58 unsigned int exynos_dwmci_get_clk(struct dwmci_host *host, uint freq) in exynos_dwmci_get_clk() argument 69 clk_div = ((dwmci_readl(host, DWMCI_CLKSEL) >> DWMCI_DIVRATIO_BIT) in exynos_dwmci_get_clk() 71 sclk = get_mmc_clk(host->dev_index); in exynos_dwmci_get_clk() 75 * When clock unit is broken, need to set "host->div" in exynos_dwmci_get_clk() 77 return sclk / clk_div / (host->div + 1); in exynos_dwmci_get_clk() [all …]
|
H A D | mtk-sd.c | 286 static void msdc_reset_hw(struct msdc_host *host) in msdc_reset_hw() argument 290 setbits_le32(&host->base->msdc_cfg, MSDC_CFG_RST); in msdc_reset_hw() 292 readl_poll_timeout(&host->base->msdc_cfg, reg, in msdc_reset_hw() 296 static void msdc_fifo_clr(struct msdc_host *host) in msdc_fifo_clr() argument 300 setbits_le32(&host->base->msdc_fifocs, MSDC_FIFOCS_CLR); in msdc_fifo_clr() 302 readl_poll_timeout(&host->base->msdc_fifocs, reg, in msdc_fifo_clr() 306 static u32 msdc_fifo_rx_bytes(struct msdc_host *host) in msdc_fifo_rx_bytes() argument 308 return (readl(&host->base->msdc_fifocs) & in msdc_fifo_rx_bytes() 312 static u32 msdc_fifo_tx_bytes(struct msdc_host *host) in msdc_fifo_tx_bytes() argument 314 return (readl(&host->base->msdc_fifocs) & in msdc_fifo_tx_bytes() [all …]
|
H A D | bcm2835_sdhost.c | 22 * and is based on drivers/mmc/host/bcm2835.c in Linux which is written by 56 #define SDHSTS 0x20 /* SD host status - 11 R/W */ 59 #define SDHCFG 0x38 /* Host configuration - 2 R/W */ 60 #define SDHBCT 0x3c /* Host byte count (debug) - 32 R/W */ 62 #define SDHBLC 0x50 /* Host block count (SDIO/SDHC) - 9 R/W */ 182 static void bcm2835_dumpregs(struct bcm2835_host *host) in bcm2835_dumpregs() argument 185 dev_dbg(dev, "SDCMD 0x%08x\n", readl(host->ioaddr + SDCMD)); in bcm2835_dumpregs() 186 dev_dbg(dev, "SDARG 0x%08x\n", readl(host->ioaddr + SDARG)); in bcm2835_dumpregs() 187 dev_dbg(dev, "SDTOUT 0x%08x\n", readl(host->ioaddr + SDTOUT)); in bcm2835_dumpregs() 188 dev_dbg(dev, "SDCDIV 0x%08x\n", readl(host->ioaddr + SDCDIV)); in bcm2835_dumpregs() [all …]
|
H A D | dw_mmc.c | 19 static int dwmci_wait_reset(struct dwmci_host *host, u32 value) in dwmci_wait_reset() argument 24 dwmci_writel(host, DWMCI_CTRL, value); in dwmci_wait_reset() 27 ctrl = dwmci_readl(host, DWMCI_CTRL); in dwmci_wait_reset() 45 static void dwmci_prepare_data(struct dwmci_host *host, in dwmci_prepare_data() argument 57 dwmci_wait_reset(host, DWMCI_CTRL_FIFO_RESET); in dwmci_prepare_data() 60 dwmci_writel(host, DWMCI_IDSTS, 0xFFFFFFFF); in dwmci_prepare_data() 63 dwmci_writel(host, DWMCI_DBADDR, (ulong)cur_idmac); in dwmci_prepare_data() 87 ctrl = dwmci_readl(host, DWMCI_CTRL); in dwmci_prepare_data() 89 dwmci_writel(host, DWMCI_CTRL, ctrl); in dwmci_prepare_data() 91 ctrl = dwmci_readl(host, DWMCI_BMOD); in dwmci_prepare_data() [all …]
|
/openbmc/linux/drivers/mtd/nand/raw/ |
D | hisi504_nand.c |
|
/openbmc/linux/drivers/memstick/host/ |
D | tifm_ms.c |
|
/openbmc/linux/drivers/mmc/core/ |
D | core.h |
|
D | host.h |
|
/openbmc/openbmc-test-automation/lib/ |
H A D | host.tcl | 3 # This file provides valuable host and IP manipulation procedures such as get_host_name_ip, etc. 8 proc get_host_name_ip {host {quiet 1}} { 10 # Get the host name, short host name and the IP address and return them as a list. 15 # lassign [get_host_name_ip $host] host_name short_host_name ip_address 18 # host The host name or IP address to be obtained. 22 lassign [cmd_fnc "host $host" "${quiet}" "" "${print_output}"] rc out_buf 26 # Host is host name. 31 # Host is IP address. 34 set ip_address ${host} 38 # Create the short name from the host name. [all …]
|