| /linux/drivers/scsi/arm/ |
| H A D | acornscsi.c | 170 static void acornscsi_done(AS_Host *host, struct scsi_cmnd **SCpntp, 172 static int acornscsi_reconnect_finish(AS_Host *host); 173 static void acornscsi_dma_cleanup(AS_Host *host); 174 static void acornscsi_abortcmd(AS_Host *host); 189 static inline void sbic_arm_write(AS_Host *host, unsigned int reg, unsigned int value) in sbic_arm_write() argument 191 writeb(reg, host->base + SBIC_REGIDX); in sbic_arm_write() 192 writeb(value, host->base + SBIC_REGVAL); in sbic_arm_write() 195 static inline int sbic_arm_read(AS_Host *host, unsigned int reg) in sbic_arm_read() argument 198 return readl(host->base + SBIC_REGIDX) & 255; in sbic_arm_read() 199 writeb(reg, host->base + SBIC_REGIDX); in sbic_arm_read() [all …]
|
| /linux/drivers/mmc/host/ |
| H A D | wbsd.c | 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 101 BUG_ON(host->config == 0); in wbsd_write_config() 103 outb(reg, host->config); in wbsd_write_config() [all …]
|
| H A D | bcm2835.c | 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() 212 struct device *dev = &host->pdev->dev; in bcm2835_dumpregs() 215 bcm2835_dumpcmd(host, mrq->sbc, "sbc"); in bcm2835_dumpregs() 216 bcm2835_dumpcmd(host, mrq->cmd, "cmd"); in bcm2835_dumpregs() 223 bcm2835_dumpcmd(host, mrq->stop, "stop"); in bcm2835_dumpregs() 227 dev_dbg(dev, "SDCMD 0x%08x\n", readl(host->ioaddr + SDCMD)); in bcm2835_dumpregs() [all …]
|
| H A D | usdhi6rol0.c | 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 225 u32 data = ioread32(host->base + reg); in usdhi6_read() [all …]
|
| H A D | mxcmmc.c | 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 196 iowrite32be(val, host->base + reg); in mxcmci_writel() 198 writel(val, host->base + reg); in mxcmci_writel() [all …]
|
| H A D | pxamci.c | 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() 107 gpiod_set_value(host->power, on); in pxamci_set_power() 110 if (host->pdata && host->pdata->setpower) in pxamci_set_power() [all …]
|
| H A 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 …]
|
| H A D | jz4740_mmc.c | 189 static void jz4740_mmc_write_irq_mask(struct jz4740_mmc_host *host, in jz4740_mmc_write_irq_mask() argument 192 if (host->version >= JZ_MMC_JZ4725B) in jz4740_mmc_write_irq_mask() 193 return writel(val, host->base + JZ_REG_MMC_IMASK); in jz4740_mmc_write_irq_mask() 195 return writew(val, host->base + JZ_REG_MMC_IMASK); in jz4740_mmc_write_irq_mask() 198 static void jz4740_mmc_write_irq_reg(struct jz4740_mmc_host *host, in jz4740_mmc_write_irq_reg() argument 201 if (host->version >= JZ_MMC_JZ4780) in jz4740_mmc_write_irq_reg() 202 writel(val, host->base + JZ_REG_MMC_IREG); in jz4740_mmc_write_irq_reg() 204 writew(val, host->base + JZ_REG_MMC_IREG); in jz4740_mmc_write_irq_reg() 207 static uint32_t jz4740_mmc_read_irq_reg(struct jz4740_mmc_host *host) in jz4740_mmc_read_irq_reg() argument 209 if (host->version >= JZ_MMC_JZ4780) in jz4740_mmc_read_irq_reg() [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 50 0, cvm_mmc_irq_names[i], host); in thunder_mmc_register_interrupts() 63 struct cvm_mmc_host *host; in thunder_mmc_probe() local [all …]
|
| H A D | uniphier-sd.c | 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() 109 dma_unmap_sg(mmc_dev(host->mmc), host->sg_ptr, host->sg_len, in uniphier_sd_external_dma_callback() [all …]
|
| H A D | cavium.c | 165 static void check_switch_errors(struct cvm_mmc_host *host) in check_switch_errors() argument 169 emm_switch = readq(host->base + MIO_EMM_SWITCH(host)); in check_switch_errors() 171 dev_err(host->dev, "Switch power class error\n"); in check_switch_errors() 173 dev_err(host->dev, "Switch hs timing error\n"); in check_switch_errors() 175 dev_err(host->dev, "Switch bus width error\n"); in check_switch_errors() 200 static void do_switch(struct cvm_mmc_host *host, u64 emm_switch) in do_switch() argument 212 writeq(emm_switch, host->base + MIO_EMM_SWITCH(host)); in do_switch() 215 writeq(emm_switch, host->base + MIO_EMM_SWITCH(host)); in do_switch() 219 rsp_sts = readq(host->base + MIO_EMM_RSP_STS(host)); in do_switch() 225 check_switch_errors(host); in do_switch() [all …]
|
| H A D | mmci_stm32_sdmmc.c | 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 134 struct sdmmc_idma *idma = host->dma_priv; in _sdmmc_idma_prep_data() [all …]
|
| H A D | sunplus-mmc.c | 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() 207 value0_3 = readl(host->base + SPMMC_SD_RSPBUF0_3_REG); in spmmc_get_rsp() [all …]
|
| H A D | sdhci-of-dwcmshc.c | 289 int (*init)(struct device *dev, struct sdhci_host *host, struct dwcmshc_priv *dwc_priv); 290 void (*postinit)(struct sdhci_host *host, struct dwcmshc_priv *dwc_priv); 293 static void dwcmshc_enable_card_clk(struct sdhci_host *host) in dwcmshc_enable_card_clk() argument 297 ctrl = sdhci_readw(host, SDHCI_CLOCK_CONTROL); in dwcmshc_enable_card_clk() 300 sdhci_writew(host, ctrl, SDHCI_CLOCK_CONTROL); in dwcmshc_enable_card_clk() 336 static void dwcmshc_adma_write_desc(struct sdhci_host *host, void **desc, in dwcmshc_adma_write_desc() argument 342 sdhci_adma_write_desc(host, desc, addr, len, cmd); in dwcmshc_adma_write_desc() 348 sdhci_adma_write_desc(host, desc, addr, tmplen, cmd); in dwcmshc_adma_write_desc() 352 sdhci_adma_write_desc(host, desc, addr, len, cmd); in dwcmshc_adma_write_desc() 355 static void dwcmshc_reset(struct sdhci_host *host, u8 mask) in dwcmshc_reset() argument [all …]
|
| H A D | litex_mmc.c | 123 static int litex_mmc_send_cmd(struct litex_mmc_host *host, in litex_mmc_send_cmd() argument 126 struct device *dev = mmc_dev(host->mmc); in litex_mmc_send_cmd() 131 litex_write32(host->sdcore + LITEX_CORE_CMDARG, arg); in litex_mmc_send_cmd() 132 litex_write32(host->sdcore + LITEX_CORE_CMDCMD, in litex_mmc_send_cmd() 134 litex_write8(host->sdcore + LITEX_CORE_CMDSND, 1); in litex_mmc_send_cmd() 140 if (host->irq > 0 && in litex_mmc_send_cmd() 143 reinit_completion(&host->cmd_done); in litex_mmc_send_cmd() 144 litex_write32(host->sdirq + LITEX_IRQ_ENABLE, in litex_mmc_send_cmd() 146 wait_for_completion(&host->cmd_done); in litex_mmc_send_cmd() 149 ret = litex_mmc_sdcard_wait_done(host->sdcore + LITEX_CORE_CMDEVT, dev); in litex_mmc_send_cmd() [all …]
|
| /linux/fs/lockd/ |
| H A D | host.c | 37 #define for_each_host(host, chain, table) \ argument 40 hlist_for_each_entry((host), (chain), h_hash) 42 #define for_each_host_safe(host, next, chain, table) \ argument 45 hlist_for_each_entry_safe((host), (next), \ 114 struct nlm_host *host = NULL; in nlm_alloc_host() local 129 host = kmalloc(sizeof(*host), GFP_KERNEL); in nlm_alloc_host() 130 if (unlikely(host == NULL)) { in nlm_alloc_host() 136 memcpy(nlm_addr(host), ni->sap, ni->salen); in nlm_alloc_host() 137 host->h_addrlen = ni->salen; in nlm_alloc_host() 138 rpc_set_port(nlm_addr(host), 0); in nlm_alloc_host() [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->io_pos) { in tifm_ms_read_data() 111 buf[off++] = host->io_word & 0xff; in tifm_ms_read_data() 112 host->io_word >>= 8; in tifm_ms_read_data() [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/scsi/ |
| H A 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 …]
|
| /linux/drivers/mmc/core/ |
| H A D | sd_uhs2.c | 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 66 if (host->ios.power_mode == MMC_POWER_OFF) in sd_uhs2_power_off() [all …]
|
| H A D | sdio_irq.c | 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() 113 static void sdio_run_irqs(struct mmc_host *host) in sdio_run_irqs() argument [all …]
|
| /linux/drivers/gpu/host1x/ |
| H A D | dev.c | 303 static void host1x_setup_virtualization_tables(struct host1x *host) in host1x_setup_virtualization_tables() argument 305 const struct host1x_info *info = host->info; in host1x_setup_virtualization_tables() 314 host1x_hypervisor_writel(host, entry->offset, entry->base); in host1x_setup_virtualization_tables() 315 host1x_hypervisor_writel(host, entry->limit, entry->base + 4); in host1x_setup_virtualization_tables() 320 host1x_hypervisor_writel(host, 0xff, info->streamid_vm_table.base + 4 * i); in host1x_setup_virtualization_tables() 325 host1x_hypervisor_writel(host, 0xff, info->classid_vm_table.base + 4 * i); in host1x_setup_virtualization_tables() 330 host1x_hypervisor_writel(host, 0x1, info->mmio_vm_table.base + 4 * i); in host1x_setup_virtualization_tables() 377 static struct iommu_domain *host1x_iommu_attach(struct host1x *host) in host1x_iommu_attach() argument 379 struct iommu_domain *domain = iommu_get_domain_for_dev(host->dev); in host1x_iommu_attach() 383 if (host->dev->archdata.mapping) { in host1x_iommu_attach() [all …]
|
| 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 …]
|