/drivers/memstick/ |
H A D | Makefile | 8 obj-$(CONFIG_MEMSTICK) += host/
|
/drivers/misc/mic/ |
H A D | Makefile | 5 obj-$(CONFIG_INTEL_MIC_HOST) += host/
|
/drivers/mmc/core/ |
H A 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); 25 int mmc_send_cid(struct mmc_host *host, u32 *cid); 26 int mmc_spi_read_ocr(struct mmc_host *host, int highcap, u32 *ocrp); 27 int mmc_spi_set_crc(struct mmc_host *host, int use_crc);
|
H A D | sd.c | 19 #include <linux/mmc/host.h> 178 mmc_hostname(card->host), csd_struct); 202 mmc_hostname(card->host), scr_struct); 233 mmc_hostname(card->host)); 244 mmc_hostname(card->host)); 269 mmc_hostname(card->host)); 290 mmc_hostname(card->host)); 300 mmc_hostname(card->host)); 312 * If the host or the card can't do the switch, 319 mmc_hostname(card->host)); 530 sd_get_host_max_current(struct mmc_host *host) argument 718 mmc_sd_get_cid(struct mmc_host *host, u32 ocr, u32 *cid, u32 *rocr) argument 794 mmc_sd_get_csd(struct mmc_host *host, struct mmc_card *card) argument 812 mmc_sd_setup_card(struct mmc_host *host, struct mmc_card *card, bool reinit) argument 924 mmc_sd_init_card(struct mmc_host *host, u32 ocr, struct mmc_card *oldcard) argument 1040 mmc_sd_remove(struct mmc_host *host) argument 1052 mmc_sd_alive(struct mmc_host *host) argument 1060 mmc_sd_detect(struct mmc_host *host) argument 1105 _mmc_sd_suspend(struct mmc_host *host) argument 1133 mmc_sd_suspend(struct mmc_host *host) argument 1150 _mmc_sd_resume(struct mmc_host *host) argument 1193 mmc_sd_resume(struct mmc_host *host) argument 1210 mmc_sd_runtime_suspend(struct mmc_host *host) argument 1228 mmc_sd_runtime_resume(struct mmc_host *host) argument 1243 mmc_sd_power_restore(struct mmc_host *host) argument 1269 mmc_attach_sd(struct mmc_host *host) argument [all...] |
/drivers/gpu/host1x/hw/ |
H A D | syncpt_hw.c | 29 struct host1x *host = sp->host; local 31 host1x_sync_writel(host, min, HOST1X_SYNC_SYNCPT(sp->id)); 39 struct host1x *host = sp->host; local 40 host1x_sync_writel(host, sp->base_val, 49 struct host1x *host = sp->host; local 51 host1x_sync_readl(host, HOST1X_SYNC_SYNCPT_BASE(sp->id)); 59 struct host1x *host local 82 struct host1x *host = sp->host; local [all...] |
/drivers/mmc/host/ |
H A D | sdhci-of-esdhc.c | 21 #include <linux/mmc/host.h> 27 static u32 esdhc_readl(struct sdhci_host *host, int reg) argument 31 ret = in_be32(host->ioaddr + reg); 43 u32 tmp = in_be32(host->ioaddr + SDHCI_SLOT_INT_STATUS); 52 static u16 esdhc_readw(struct sdhci_host *host, int reg) argument 59 ret = in_be32(host->ioaddr + base) & 0xffff; 61 ret = (in_be32(host->ioaddr + base) >> shift) & 0xffff; 65 static u8 esdhc_readb(struct sdhci_host *host, int reg) argument 69 u8 ret = (in_be32(host->ioaddr + base) >> shift) & 0xff; 78 dma_bits = in_be32(host 90 esdhc_writel(struct sdhci_host *host, u32 val, int reg) argument 102 esdhc_writew(struct sdhci_host *host, u16 val, int reg) argument 115 esdhc_writeb(struct sdhci_host *host, u8 val, int reg) argument 152 esdhci_of_adma_workaround(struct sdhci_host *host, u32 intmask) argument 180 esdhc_of_enable_dma(struct sdhci_host *host) argument 186 esdhc_of_get_max_clock(struct sdhci_host *host) argument 193 esdhc_of_get_min_clock(struct sdhci_host *host) argument 200 esdhc_of_set_clock(struct sdhci_host *host, unsigned int clock) argument 244 esdhc_of_platform_init(struct sdhci_host *host) argument 257 esdhc_pltfm_set_bus_width(struct sdhci_host *host, int width) argument 302 struct sdhci_host *host = dev_get_drvdata(dev); local 311 struct sdhci_host *host = dev_get_drvdata(dev); local 345 struct sdhci_host *host; local [all...] |
H A D | sdhci-pltfm.c | 39 unsigned int sdhci_pltfm_clk_get_max_clock(struct sdhci_host *host) argument 41 struct sdhci_pltfm_host *pltfm_host = sdhci_priv(host); 72 struct sdhci_host *host = platform_get_drvdata(pdev); local 73 struct sdhci_pltfm_host *pltfm_host = sdhci_priv(host); 80 host->quirks |= SDHCI_QUIRK_MULTIBLOCK_READ_ACMD12; 85 host->quirks |= SDHCI_QUIRK_FORCE_1_BIT_DATA; 88 host->quirks |= SDHCI_QUIRK_INVERTED_WRITE_PROTECT; 91 host->quirks |= SDHCI_QUIRK_BROKEN_CARD_DETECTION; 94 host->quirks2 |= SDHCI_QUIRK2_NO_1_8_V; 97 host 125 struct sdhci_host *host; local 195 struct sdhci_host *host = platform_get_drvdata(pdev); local 208 struct sdhci_host *host; local 227 struct sdhci_host *host = platform_get_drvdata(pdev); local 240 struct sdhci_host *host = dev_get_drvdata(dev); local 248 struct sdhci_host *host = dev_get_drvdata(dev); local [all...] |
H A D | sdhci-st.c | 25 #include <linux/mmc/host.h> 29 static u32 sdhci_st_readl(struct sdhci_host *host, int reg) argument 35 ret = readl_relaxed(host->ioaddr + reg); 40 ret = readl_relaxed(host->ioaddr + reg); 62 struct sdhci_host *host; local 74 host = sdhci_pltfm_init(pdev, &sdhci_st_pdata, 0); 75 if (IS_ERR(host)) { 77 return PTR_ERR(host); 80 ret = mmc_of_parse(host->mmc); 89 pltfm_host = sdhci_priv(host); 118 struct sdhci_host *host = platform_get_drvdata(pdev); local 129 struct sdhci_host *host = dev_get_drvdata(dev); local 143 struct sdhci_host *host = dev_get_drvdata(dev); local [all...] |
H A D | sdhci.h | 2 * linux/drivers/mmc/host/sdhci.h - Secure Digital Host Controller Interface driver 271 u32 (*read_l)(struct sdhci_host *host, int reg); 272 u16 (*read_w)(struct sdhci_host *host, int reg); 273 u8 (*read_b)(struct sdhci_host *host, int reg); 274 void (*write_l)(struct sdhci_host *host, u32 val, int reg); 275 void (*write_w)(struct sdhci_host *host, u16 val, int reg); 276 void (*write_b)(struct sdhci_host *host, u8 val, int reg); 279 void (*set_clock)(struct sdhci_host *host, unsigned int clock); 281 int (*enable_dma)(struct sdhci_host *host); 282 unsigned int (*get_max_clock)(struct sdhci_host *host); 303 sdhci_writel(struct sdhci_host *host, u32 val, int reg) argument 311 sdhci_writew(struct sdhci_host *host, u16 val, int reg) argument 319 sdhci_writeb(struct sdhci_host *host, u8 val, int reg) argument 327 sdhci_readl(struct sdhci_host *host, int reg) argument 335 sdhci_readw(struct sdhci_host *host, int reg) argument 343 sdhci_readb(struct sdhci_host *host, int reg) argument 353 sdhci_writel(struct sdhci_host *host, u32 val, int reg) argument 358 sdhci_writew(struct sdhci_host *host, u16 val, int reg) argument 363 sdhci_writeb(struct sdhci_host *host, u8 val, int reg) argument 368 sdhci_readl(struct sdhci_host *host, int reg) argument 373 sdhci_readw(struct sdhci_host *host, int reg) argument 378 sdhci_readb(struct sdhci_host *host, int reg) argument 389 sdhci_priv(struct sdhci_host *host) argument 400 sdhci_sdio_irq_enabled(struct sdhci_host *host) argument [all...] |
H A D | moxart-mmc.c | 2 * MOXA ART MMC host driver. 24 #include <linux/mmc/host.h> 150 static inline void moxart_init_sg(struct moxart_host *host, argument 153 host->cur_sg = data->sg; 154 host->num_sg = data->sg_len; 155 host->data_remain = host->cur_sg->length; 157 if (host->data_remain > host->data_len) 158 host 161 moxart_next_sg(struct moxart_host *host) argument 179 moxart_wait_for_status(struct moxart_host *host, u32 mask, u32 *status) argument 203 moxart_send_command(struct moxart_host *host, struct mmc_command *cmd) argument 251 struct moxart_host *host = param; local 256 moxart_transfer_dma(struct mmc_data *data, struct moxart_host *host) argument 307 moxart_transfer_pio(struct moxart_host *host) argument 366 moxart_prepare_data(struct moxart_host *host) argument 398 struct moxart_host *host = mmc_priv(mmc); local 466 struct moxart_host *host = (struct moxart_host *)devid; local 494 struct moxart_host *host = mmc_priv(mmc); local 544 struct moxart_host *host = mmc_priv(mmc); local 561 struct moxart_host *host = NULL; local 686 struct moxart_host *host = mmc_priv(mmc); local [all...] |
H A D | sdricoh_cs.c | 38 #include <linux/mmc/host.h> 102 static inline unsigned int sdricoh_readl(struct sdricoh_host *host, argument 105 unsigned int value = readl(host->iobase + reg); 106 dev_vdbg(host->dev, "rl %x 0x%x\n", reg, value); 110 static inline void sdricoh_writel(struct sdricoh_host *host, unsigned int reg, argument 113 writel(value, host->iobase + reg); 114 dev_vdbg(host->dev, "wl %x 0x%x\n", reg, value); 118 static inline unsigned int sdricoh_readw(struct sdricoh_host *host, argument 121 unsigned int value = readw(host->iobase + reg); 122 dev_vdbg(host 126 sdricoh_writew(struct sdricoh_host *host, unsigned int reg, unsigned short value) argument 133 sdricoh_readb(struct sdricoh_host *host, unsigned int reg) argument 141 sdricoh_query_status(struct sdricoh_host *host, unsigned int wanted, unsigned int timeout) argument 167 sdricoh_mmc_cmd(struct sdricoh_host *host, unsigned char opcode, unsigned int arg) argument 198 sdricoh_reset(struct sdricoh_host *host) argument 217 sdricoh_blockio(struct sdricoh_host *host, int read, u8 *buf, int len) argument 267 struct sdricoh_host *host = mmc_priv(mmc); local 357 struct sdricoh_host *host = mmc_priv(mmc); local 378 struct sdricoh_host *host = mmc_priv(mmc); local 404 struct sdricoh_host *host = NULL; local 506 struct sdricoh_host *host = mmc_priv(mmc); local [all...] |
H A D | sdhci-cns3xxx.c | 17 #include <linux/mmc/host.h> 21 static unsigned int sdhci_cns3xxx_get_max_clk(struct sdhci_host *host) argument 26 static void sdhci_cns3xxx_set_clock(struct sdhci_host *host, unsigned int clock) argument 28 struct device *dev = mmc_dev(host->mmc); 33 host->mmc->actual_clock = 0; 35 sdhci_writew(host, 0, SDHCI_CLOCK_CONTROL); 40 while (host->max_clk / div > clock) { 54 clock, host->max_clk / div); 62 sdhci_writew(host, clk, SDHCI_CLOCK_CONTROL); 65 while (!((clk = sdhci_readw(host, SDHCI_CLOCK_CONTRO [all...] |
H A D | tmio_mmc.h | 2 * linux/drivers/mmc/host/tmio_mmc.h 51 void (*set_pwr)(struct platform_device *host, int state); 52 void (*set_clk_div)(struct platform_device *host, int state); 81 spinlock_t lock; /* protect host private data */ 88 int tmio_mmc_host_probe(struct tmio_mmc_host **host, 91 void tmio_mmc_host_remove(struct tmio_mmc_host *host); 92 void tmio_mmc_do_data_irq(struct tmio_mmc_host *host); 94 void tmio_mmc_enable_mmc_irqs(struct tmio_mmc_host *host, u32 i); 95 void tmio_mmc_disable_mmc_irqs(struct tmio_mmc_host *host, u32 i); 116 void tmio_mmc_start_dma(struct tmio_mmc_host *host, struc 122 tmio_mmc_start_dma(struct tmio_mmc_host *host, struct mmc_data *data) argument 127 tmio_mmc_enable_dma(struct tmio_mmc_host *host, bool enable) argument 131 tmio_mmc_request_dma(struct tmio_mmc_host *host, struct tmio_mmc_data *pdata) argument 138 tmio_mmc_release_dma(struct tmio_mmc_host *host) argument 142 tmio_mmc_abort_dma(struct tmio_mmc_host *host) argument 152 sd_ctrl_read16(struct tmio_mmc_host *host, int addr) argument 157 sd_ctrl_read16_rep(struct tmio_mmc_host *host, int addr, u16 *buf, int count) argument 163 sd_ctrl_read32(struct tmio_mmc_host *host, int addr) argument 169 sd_ctrl_write16(struct tmio_mmc_host *host, int addr, u16 val) argument 179 sd_ctrl_write16_rep(struct tmio_mmc_host *host, int addr, u16 *buf, int count) argument 185 sd_ctrl_write32(struct tmio_mmc_host *host, int addr, u32 val) argument [all...] |
H A D | rtsx_pci_sdmmc.c | 28 #include <linux/mmc/host.h> 62 static inline struct device *sdmmc_dev(struct realtek_pci_sdmmc *host) argument 64 return &(host->pdev->dev); 67 static inline void sd_clear_error(struct realtek_pci_sdmmc *host) argument 69 rtsx_pci_write_register(host->pcr, CARD_STOP, 74 static void sd_print_debug_regs(struct realtek_pci_sdmmc *host) argument 76 struct rtsx_pcr *pcr = host->pcr; 80 /* Print SD host internal registers */ 90 dev_dbg(sdmmc_dev(host), "0x%04X: 0x%02x\n", i, *(ptr++)); 92 dev_dbg(sdmmc_dev(host), " 106 sd_pre_dma_transfer(struct realtek_pci_sdmmc *host, struct mmc_data *data, bool pre) argument 143 struct realtek_pci_sdmmc *host = mmc_priv(mmc); local 160 struct realtek_pci_sdmmc *host = mmc_priv(mmc); local 169 sd_read_data(struct realtek_pci_sdmmc *host, u8 *cmd, u16 byte_cnt, u8 *buf, int buf_len, int timeout) argument 229 sd_write_data(struct realtek_pci_sdmmc *host, u8 *cmd, u16 byte_cnt, u8 *buf, int buf_len, int timeout) argument 286 sd_send_cmd_get_rsp(struct realtek_pci_sdmmc *host, struct mmc_command *cmd) argument 441 sd_rw_multi(struct realtek_pci_sdmmc *host, struct mmc_request *mrq) argument 514 sd_enable_initial_mode(struct realtek_pci_sdmmc *host) argument 520 sd_disable_initial_mode(struct realtek_pci_sdmmc *host) argument 526 sd_normal_rw(struct realtek_pci_sdmmc *host, struct mmc_request *mrq) argument 563 sd_change_phase(struct realtek_pci_sdmmc *host, u8 sample_point, bool rx) argument 611 sd_search_final_phase(struct realtek_pci_sdmmc *host, u32 phase_map) argument 638 sd_wait_data_idle(struct realtek_pci_sdmmc *host) argument 652 sd_tuning_rx_cmd(struct realtek_pci_sdmmc *host, u8 opcode, u8 sample_point) argument 674 sd_tuning_phase(struct realtek_pci_sdmmc *host, u8 opcode, u32 *phase_map) argument 692 sd_tuning_rx(struct realtek_pci_sdmmc *host, u8 opcode) argument 739 struct realtek_pci_sdmmc *host = container_of(work, local 816 struct realtek_pci_sdmmc *host = mmc_priv(mmc); local 829 sd_set_bus_width(struct realtek_pci_sdmmc *host, unsigned char bus_width) argument 846 sd_power_on(struct realtek_pci_sdmmc *host) argument 880 sd_power_off(struct realtek_pci_sdmmc *host) argument 903 sd_set_power_mode(struct realtek_pci_sdmmc *host, unsigned char power_mode) argument 916 sd_set_timing(struct realtek_pci_sdmmc *host, unsigned char timing) argument 990 struct realtek_pci_sdmmc *host = mmc_priv(mmc); local 1038 struct realtek_pci_sdmmc *host = mmc_priv(mmc); local 1063 struct realtek_pci_sdmmc *host = mmc_priv(mmc); local 1086 sd_wait_voltage_stable_1(struct realtek_pci_sdmmc *host) argument 1119 sd_wait_voltage_stable_2(struct realtek_pci_sdmmc *host) argument 1161 struct realtek_pci_sdmmc *host = mmc_priv(mmc); local 1213 struct realtek_pci_sdmmc *host = mmc_priv(mmc); local 1273 init_extra_caps(struct realtek_pci_sdmmc *host) argument 1292 realtek_init_host(struct realtek_pci_sdmmc *host) argument 1318 struct realtek_pci_sdmmc *host = platform_get_drvdata(pdev); local 1326 struct realtek_pci_sdmmc *host; local 1369 struct realtek_pci_sdmmc *host = platform_get_drvdata(pdev); local [all...] |
H A D | sdhci-esdhc-imx.c | 21 #include <linux/mmc/host.h> 213 static inline void esdhc_clrset_le(struct sdhci_host *host, u32 mask, u32 val, int reg) argument 215 void __iomem *base = host->ioaddr + (reg & ~0x3); 221 static u32 esdhc_readl_le(struct sdhci_host *host, int reg) argument 223 struct sdhci_pltfm_host *pltfm_host = sdhci_priv(host); 225 u32 val = readl(host->ioaddr + reg); 258 val = readl(host->ioaddr + SDHCI_CAPABILITIES) & 0xFFFF; 287 writel(SDHCI_INT_RESPONSE, host->ioaddr + 296 static void esdhc_writel_le(struct sdhci_host *host, u32 val, int reg) argument 298 struct sdhci_pltfm_host *pltfm_host = sdhci_priv(host); 348 esdhc_readw_le(struct sdhci_host *host, int reg) argument 408 esdhc_writew_le(struct sdhci_host *host, u16 val, int reg) argument 508 esdhc_writeb_le(struct sdhci_host *host, u8 val, int reg) argument 570 esdhc_pltfm_get_max_clock(struct sdhci_host *host) argument 582 esdhc_pltfm_get_min_clock(struct sdhci_host *host) argument 589 esdhc_pltfm_set_clock(struct sdhci_host *host, unsigned int clock) argument 649 esdhc_pltfm_get_ro(struct sdhci_host *host) argument 668 esdhc_pltfm_set_bus_width(struct sdhci_host *host, int width) argument 688 esdhc_prepare_tuning(struct sdhci_host *host, u32 val) argument 712 esdhc_send_tuning_cmd(struct sdhci_host *host, u32 opcode, struct scatterlist *sg) argument 755 esdhc_post_tuning(struct sdhci_host *host) argument 764 esdhc_executing_tuning(struct sdhci_host *host, u32 opcode) argument 810 esdhc_change_pinstate(struct sdhci_host *host, unsigned int uhs) argument 841 esdhc_set_uhs_signaling(struct sdhci_host *host, unsigned timing) argument 875 esdhc_reset(struct sdhci_host *host, u8 mask) argument 883 esdhc_get_max_timeout_count(struct sdhci_host *host) argument 891 esdhc_set_timeout(struct sdhci_host *host, struct mmc_command *cmd) argument 981 struct sdhci_host *host; local 1165 struct sdhci_host *host = platform_get_drvdata(pdev); local 1189 struct sdhci_host *host = dev_get_drvdata(dev); local 1207 struct sdhci_host *host = dev_get_drvdata(dev); local [all...] |
H A D | mvsdio.c | 26 #include <linux/mmc/host.h> 63 static int mvsd_setup_data(struct mvsd_host *host, struct mmc_data *data) argument 65 void __iomem *iobase = host->base; 84 dev_warn(host->dev, "FIFO_EMPTY bit missing\n"); 89 dev_dbg(host->dev, "*** wait for FIFO_EMPTY bit " 95 tmout = DIV_ROUND_UP(data->timeout_ns, host->ns_per_clk); 103 dev_dbg(host->dev, "data %s at 0x%08x: blocks=%d blksz=%d tmout=%u (%d)\n", 108 host->ctrl &= ~MVSD_HOST_CTRL_TMOUT_MASK; 109 host->ctrl |= MVSD_HOST_CTRL_TMOUT(tmout_index); 110 mvsd_write(MVSD_HOST_CTRL, host 140 struct mvsd_host *host = mmc_priv(mmc); local 241 mvsd_finish_cmd(struct mvsd_host *host, struct mmc_command *cmd, u32 err_status) argument 286 mvsd_finish_data(struct mvsd_host *host, struct mmc_data *data, u32 err_status) argument 347 struct mvsd_host *host = dev; local 513 struct mvsd_host *host = (struct mvsd_host *)data; local 554 struct mvsd_host *host = mmc_priv(mmc); local 571 mvsd_power_up(struct mvsd_host *host) argument 585 mvsd_power_down(struct mvsd_host *host) argument 601 struct mvsd_host *host = mmc_priv(mmc); local 673 mv_conf_mbus_windows(struct mvsd_host *host, const struct mbus_dram_target_info *dram) argument 698 struct mvsd_host *host = NULL; local 840 struct mvsd_host *host = mmc_priv(mmc); local [all...] |
H A D | tifm_sd.c | 16 #include <linux/mmc/host.h> 113 /* for some reason, host won't respond correctly to readw/writew */ 114 static void tifm_sd_read_fifo(struct tifm_sd *host, struct page *pg, argument 117 struct tifm_dev *sock = host->dev; 122 if (host->cmd_flags & DATA_CARRY) { 123 buf[pos++] = host->bounce_buf_data[0]; 124 host->cmd_flags &= ~DATA_CARRY; 131 host->bounce_buf_data[0] = (val >> 8) & 0xff; 132 host->cmd_flags |= DATA_CARRY; 140 static void tifm_sd_write_fifo(struct tifm_sd *host, struc argument 167 tifm_sd_transfer_data(struct tifm_sd *host) argument 224 tifm_sd_bounce_block(struct tifm_sd *host, struct mmc_data *r_data) argument 263 tifm_sd_set_dma_data(struct tifm_sd *host, struct mmc_data *r_data) argument 372 tifm_sd_exec(struct tifm_sd *host, struct mmc_command *cmd) argument 403 tifm_sd_check_status(struct tifm_sd *host) argument 478 struct tifm_sd *host; local 506 struct tifm_sd *host; local 593 tifm_sd_set_data_timeout(struct tifm_sd *host, struct mmc_data *data) argument 623 struct tifm_sd *host = mmc_priv(mmc); local 737 struct tifm_sd *host = (struct tifm_sd*)data; local 788 struct tifm_sd *host = (struct tifm_sd*)data; local 799 struct tifm_sd *host = mmc_priv(mmc); local 867 struct tifm_sd *host = mmc_priv(mmc); local 884 tifm_sd_initialize_host(struct tifm_sd *host) argument 950 struct tifm_sd *host; local 1001 struct tifm_sd *host = mmc_priv(mmc); local 1039 struct tifm_sd *host = mmc_priv(mmc); local [all...] |
H A D | dw_mmc-k3.c | 14 #include <linux/mmc/host.h> 21 static void dw_mci_k3_set_ios(struct dw_mci *host, struct mmc_ios *ios) argument 25 ret = clk_set_rate(host->ciu_clk, ios->clock); 27 dev_warn(host->dev, "failed to set rate %uHz\n", ios->clock); 29 host->bus_hz = clk_get_rate(host->ciu_clk); 56 struct dw_mci *host = dev_get_drvdata(dev); local 59 ret = dw_mci_suspend(host); 61 clk_disable_unprepare(host->ciu_clk); 68 struct dw_mci *host local [all...] |
H A D | dw_mmc-pci.c | 18 #include <linux/mmc/host.h> 42 struct dw_mci *host; local 49 host = devm_kzalloc(&pdev->dev, sizeof(struct dw_mci), GFP_KERNEL); 50 if (!host) 53 host->irq = pdev->irq; 54 host->irq_flags = IRQF_SHARED; 55 host->dev = &pdev->dev; 56 host->pdata = &pci_board_data; 62 host->regs = pcim_iomap_table(pdev)[PCI_BAR_NO]; 66 ret = dw_mci_probe(host); 77 struct dw_mci *host = pci_get_drvdata(pdev); local 86 struct dw_mci *host = pci_get_drvdata(pdev); local 94 struct dw_mci *host = pci_get_drvdata(pdev); local [all...] |
/drivers/gpu/host1x/ |
H A D | syncpt.c | 34 host1x_syncpt_base_request(struct host1x *host) argument 36 struct host1x_syncpt_base *bases = host->bases; 39 for (i = 0; i < host->info->nb_bases; i++) 43 if (i >= host->info->nb_bases) 56 static struct host1x_syncpt *host1x_syncpt_alloc(struct host1x *host, argument 61 struct host1x_syncpt *sp = host->syncpt; 64 for (i = 0; i < host->info->nb_pts && sp->name; i++, sp++) 67 if (i >= host->info->nb_pts) 71 sp->base = host1x_syncpt_base_request(host); 110 void host1x_syncpt_restore(struct host1x *host) argument 126 host1x_syncpt_save(struct host1x *host) argument 340 host1x_syncpt_init(struct host1x *host) argument 380 struct host1x *host = dev_get_drvdata(dev->parent); local 399 host1x_syncpt_deinit(struct host1x *host) argument 428 host1x_syncpt_nb_pts(struct host1x *host) argument 433 host1x_syncpt_nb_bases(struct host1x *host) argument 438 host1x_syncpt_nb_mlocks(struct host1x *host) argument 443 host1x_syncpt_get(struct host1x *host, u32 id) argument [all...] |
H A D | channel.c | 27 int host1x_channel_list_init(struct host1x *host) argument 29 INIT_LIST_HEAD(&host->chlist.list); 30 mutex_init(&host->chlist_mutex); 32 if (host->info->nb_channels > BITS_PER_LONG) { 42 struct host1x *host = dev_get_drvdata(job->channel->dev->parent); local 44 return host1x_hw_channel_submit(host, job); 71 struct host1x *host = dev_get_drvdata(channel->dev->parent); local 73 host1x_hw_cdma_stop(host, &channel->cdma); 85 struct host1x *host = dev_get_drvdata(dev->parent); local 86 int max_channels = host 125 struct host1x *host = dev_get_drvdata(channel->dev->parent); local [all...] |
/drivers/memstick/core/ |
H A D | memstick.c | 184 struct memstick_host *host = container_of(dev, struct memstick_host, local 186 kfree(host); 207 * memstick_detect_change - schedule media detection on memstick host 208 * @host - host to use 210 void memstick_detect_change(struct memstick_host *host) argument 212 queue_work(workqueue, &host->media_checker); 217 * memstick_next_req - called by host driver to obtain next request to process 218 * @host - host t 226 memstick_next_req(struct memstick_host *host, struct memstick_request **mrq) argument 252 memstick_new_req(struct memstick_host *host) argument 381 memstick_alloc_card(struct memstick_host *host) argument 422 memstick_power_on(struct memstick_host *host) argument 434 struct memstick_host *host = container_of(work, struct memstick_host, local 493 struct memstick_host *host; local 511 memstick_add_host(struct memstick_host *host) argument 547 memstick_remove_host(struct memstick_host *host) argument 568 memstick_free_host(struct memstick_host *host) argument 579 memstick_suspend_host(struct memstick_host *host) argument 591 memstick_resume_host(struct memstick_host *host) argument [all...] |
/drivers/scsi/arm/ |
H A D | oak.c | 26 #define priv(host) ((struct NCR5380_hostdata *)(host)->hostdata) 28 #define NCR5380_setup(host) _base = priv(host)->base 133 struct Scsi_Host *host; local 140 host = scsi_host_alloc(&oakscsi_template, sizeof(struct NCR5380_hostdata)); 141 if (!host) { 146 priv(host)->base = ioremap(ecard_resource_start(ec, ECARD_RES_MEMC), 148 if (!priv(host)->base) { 153 host 185 struct Scsi_Host *host = ecard_get_drvdata(ec); local [all...] |
/drivers/mtd/nand/ |
H A D | atmel_nand.c | 159 static void atmel_nand_enable(struct atmel_nand_host *host) argument 161 if (gpio_is_valid(host->board.enable_pin)) 162 gpio_set_value(host->board.enable_pin, 0); 168 static void atmel_nand_disable(struct atmel_nand_host *host) argument 170 if (gpio_is_valid(host->board.enable_pin)) 171 gpio_set_value(host->board.enable_pin, 1); 180 struct atmel_nand_host *host = nand_chip->priv; local 184 atmel_nand_enable(host); 186 atmel_nand_disable(host); 192 writeb(cmd, host 203 struct atmel_nand_host *host = nand_chip->priv; local 213 struct atmel_nand_host *host = chip->priv; local 285 struct atmel_nand_host *host = nand_chip->priv; local 298 struct atmel_nand_host *host = nand_chip->priv; local 327 nfc_set_sram_bank(struct atmel_nand_host *host, unsigned int bank) argument 345 nfc_get_sram_off(struct atmel_nand_host *host) argument 353 nfc_sram_phys(struct atmel_nand_host *host) argument 370 struct atmel_nand_host *host = chip->priv; local 443 struct atmel_nand_host *host = chip->priv; local 459 struct atmel_nand_host *host = chip->priv; local 507 pmecc_get_alpha_to(struct atmel_nand_host *host) argument 518 pmecc_data_alloc(struct atmel_nand_host *host) argument 551 struct atmel_nand_host *host = nand_chip->priv; local 568 struct atmel_nand_host *host = nand_chip->priv; local 610 struct atmel_nand_host *host = nand_chip->priv; local 768 struct atmel_nand_host *host = nand_chip->priv; local 820 struct atmel_nand_host *host = nand_chip->priv; local 866 struct atmel_nand_host *host = nand_chip->priv; local 905 pmecc_enable(struct atmel_nand_host *host, int ecc_op) argument 932 struct atmel_nand_host *host = chip->priv; local 969 struct atmel_nand_host *host = chip->priv; local 1005 struct atmel_nand_host *host = nand_chip->priv; local 1072 pmecc_choose_ecc(struct atmel_nand_host *host, int *cap, int *sector_size) argument 1115 atmel_pmecc_nand_init_params(struct platform_device *pdev, struct atmel_nand_host *host) argument 1250 struct atmel_nand_host *host = nand_chip->priv; local 1296 struct atmel_nand_host *host = chip->priv; local 1354 struct atmel_nand_host *host = nand_chip->priv; local 1420 struct atmel_nand_host *host = nand_chip->priv; local 1426 atmel_of_init_port(struct atmel_nand_host *host, struct device_node *np) argument 1517 atmel_hw_nand_init_params(struct platform_device *pdev, struct atmel_nand_host *host) argument 1575 nfc_read_status(struct atmel_nand_host *host) argument 1597 struct atmel_nand_host *host = dev_id; local 1625 nfc_prepare_interrupt(struct atmel_nand_host *host, u32 flag) argument 1640 nfc_wait_interrupt(struct atmel_nand_host *host, u32 flag) argument 1676 nfc_send_command(struct atmel_nand_host *host, unsigned int cmd, unsigned int addr, unsigned char cycle0) argument 1707 struct atmel_nand_host *host = nand_chip->priv; local 1723 struct atmel_nand_host *host = nand_chip->priv; local 1775 struct atmel_nand_host *host = chip->priv; local 1901 struct atmel_nand_host *host = chip->priv; local 1961 struct atmel_nand_host *host = chip->priv; local 2023 struct atmel_nand_host *host; local 2217 struct atmel_nand_host *host = platform_get_drvdata(pdev); local [all...] |
H A D | lpc32xx_mlc.c | 228 static void lpc32xx_nand_setup(struct lpc32xx_nand_host *host) argument 233 writel(MLCCMD_RESET, MLC_CMD(host->io_base)); 237 clkrate = clk_get_rate(host->clk); 243 writew(MLCLOCKPR_MAGIC, MLC_LOCK_PR(host->io_base)); 247 writel(tmp, MLC_ICR(host->io_base)); 251 writew(MLCLOCKPR_MAGIC, MLC_LOCK_PR(host->io_base)); 255 tmp |= MLCTIMEREG_TCEA_DELAY(clkrate / host->ncfg->tcea_delay + 1); 256 tmp |= MLCTIMEREG_BUSY_DELAY(clkrate / host->ncfg->busy_delay + 1); 257 tmp |= MLCTIMEREG_NAND_TA(clkrate / host->ncfg->nand_ta + 1); 258 tmp |= MLCTIMEREG_RD_HIGH(clkrate / host 279 struct lpc32xx_nand_host *host = nand_chip->priv; local 295 struct lpc32xx_nand_host *host = nand_chip->priv; local 305 lpc3xxx_nand_irq(int irq, struct lpc32xx_nand_host *host) argument 321 struct lpc32xx_nand_host *host = chip->priv; local 341 struct lpc32xx_nand_host *host = chip->priv; local 369 lpc32xx_wp_enable(struct lpc32xx_nand_host *host) argument 378 lpc32xx_wp_disable(struct lpc32xx_nand_host *host) argument 393 struct lpc32xx_nand_host *host = chip->priv; local 434 struct lpc32xx_nand_host *host = chip->priv; local 500 struct lpc32xx_nand_host *host = chip->priv; local 545 struct lpc32xx_nand_host *host = chip->priv; local 566 lpc32xx_dma_setup(struct lpc32xx_nand_host *host) argument 644 struct lpc32xx_nand_host *host; local 817 struct lpc32xx_nand_host *host = platform_get_drvdata(pdev); local 837 struct lpc32xx_nand_host *host = platform_get_drvdata(pdev); local 853 struct lpc32xx_nand_host *host = platform_get_drvdata(pdev); local [all...] |