/openbmc/linux/drivers/scsi/arm/ |
H A D | acornscsi.c | 330 host->host->host_no); in acornscsi_resetcard() 351 host->host->host_no); in acornscsi_resetcard() 356 host->host->host_no); in acornscsi_resetcard() 712 host->host->host_no, acornscsi_target(host))); in acornscsi_kick() 1570 host->host->host_no, acornscsi_target(host), in acornscsi_message() 1587 host->host->host_no, acornscsi_target(host), in acornscsi_message() 1627 host->host->host_no, acornscsi_target(host), in acornscsi_message() 1690 host->host->host_no, acornscsi_target(host)); in acornscsi_starttransfer() 1804 host->host->host_no, acornscsi_target(host))); in acornscsi_reconnect_finish() 2293 host->host->host_no, acornscsi_target(host)); in acornscsi_sbicintr() [all …]
|
/openbmc/linux/drivers/mmc/host/ |
H A D | sdhci.c | 114 host->ops->dump_vendor_regs(host); in sdhci_dumpregs() 245 host->ops->reset(host, mask); in sdhci_do_reset() 255 host->ops->enable_dma(host); in sdhci_reset_for_all() 2464 host->ops->set_clock(host, host->clock); in sdhci_set_ios() 2566 host->ops->hw_reset(host); in sdhci_hw_reset() 3111 host->ops->set_clock(host, host->clock); in sdhci_request_done() 3769 free_irq(host->irq, host); in sdhci_suspend_host() 3926 host->ier = host->cqe_ier; in sdhci_cqe_enable() 4394 host->max_clk = host->ops->get_max_clock(host); in sdhci_setup_host() 4852 free_irq(host->irq, host); in __sdhci_add_host() [all …]
|
H A D | wbsd.c | 88 outb(host->unlock_code, host->config); in wbsd_unlock_config() 89 outb(host->unlock_code, host->config); in wbsd_unlock_config() 152 host->clk = wbsd_read_index(host, WBSD_IDX_CLK); in wbsd_init_device() 246 host->remain = host->cur_sg->length; in wbsd_init_sg() 262 host->remain = host->cur_sg->length; in wbsd_next_sg() 412 buffer = wbsd_map_sg(host) + host->offset; in wbsd_empty_fifo() 478 buffer = wbsd_map_sg(host) + host->offset; in wbsd_fill_fifo() 621 set_dma_addr(host->dma, host->dma_addr); in wbsd_prepare_data() 734 wbsd_request_end(host, host->mrq); in wbsd_finish_data() 1379 host->dma_addr = dma_map_single(mmc_dev(host->mmc), host->dma_buffer, in wbsd_request_dma() [all …]
|
H A D | tmio_mmc_core.c | 57 host->dma_ops->start(host, data); in tmio_mmc_start_dma() 63 host->dma_ops->end(host); in tmio_mmc_end_dma() 86 host->dma_ops->release(host); in tmio_mmc_release_dma() 92 host->dma_ops->abort(host); in tmio_mmc_abort_dma() 98 host->dma_ops->dataend(host); in tmio_mmc_dataend_dma() 202 host->reset(host, preserve); in tmio_mmc_reset() 674 if (host->dma_ops && host->dma_ops->dma_irq && host->dma_ops->dma_irq(host)) in __tmio_mmc_sdcard_irq() 986 host->set_clock(host, 0); in tmio_mmc_set_ios() 1285 host->clk_disable(host); in tmio_mmc_clk_disable() 1295 host->set_clock(host, 0); in tmio_mmc_host_runtime_suspend() [all …]
|
H A D | bcm2835.c | 267 writel(host->hcfg, host->ioaddr + SDHCFG); in bcm2835_reset_internal() 268 writel(host->cdiv, host->ioaddr + SDCDIV); in bcm2835_reset_internal() 528 host->hcfg = (host->hcfg & ~all_irqs) | in bcm2835_set_transfer_irqs() 531 host->hcfg = (host->hcfg & ~all_irqs) | in bcm2835_set_transfer_irqs() 536 writel(host->hcfg, host->ioaddr + SDHCFG); in bcm2835_set_transfer_irqs() 719 writel(host->hcfg, host->ioaddr + SDHCFG); in bcm2835_finish_data() 799 if (host->data && host->dma_desc) in bcm2835_finish_command() 940 writel(host->hcfg, host->ioaddr + SDHCFG); in bcm2835_data_irq() 1213 if (host->data && host->dma_desc) { in bcm2835_request() 1332 free_irq(host->irq, host); in bcm2835_add_host() [all …]
|
H A D | dw_mmc.c | 172 struct dw_mci *host = slot->host; in dw_mci_init_debugfs() local 428 host->dma_ops->stop(host); in dw_mci_stop_dma() 429 host->dma_ops->cleanup(host); in dw_mci_stop_dma() 489 host->dma_ops->cleanup(host); in dw_mci_dmac_complete_dma() 1096 host->dma_ops->stop(host); in dw_mci_submit_data_dma() 1130 host->dma_ops->stop(host); in dw_mci_submit_data_dma() 2930 slot->host = host; in dw_mci_init_slot() 3433 host->fifo_reg = host->regs + host->data_addr_override; in dw_mci_probe() 3473 host->dma_ops->exit(host); in dw_mci_probe() 3501 host->dma_ops->exit(host); in dw_mci_remove() [all …]
|
H A D | usdhi6rol0.c | 299 err, host->wait, host->mrq ? host->mrq->cmd->opcode : -1); in usdhi6_error_code() 329 host->blk_page = host->bounce_buf; in usdhi6_blk_bounce() 351 host->offset = host->sg->offset; in usdhi6_sg_prep() 385 host->blk_page = host->pg.mapped; in usdhi6_sg_map() 388 host->pg.page, page_to_pfn(host->pg.page), host->pg.mapped, in usdhi6_sg_map() 445 host->blk_page = host->pg.mapped; in usdhi6_sg_advance() 506 host->pg.page = nth_page(sg_page(host->sg), host->page_idx); in usdhi6_sg_advance() 508 host->blk_page = host->pg.mapped; in usdhi6_sg_advance() 511 host->pg.page, page_to_pfn(host->pg.page), host->pg.mapped, in usdhi6_sg_advance() 777 if (host->imclk == rate || host->imclk == host->rate || !rate) in usdhi6_clk_set() [all …]
|
H A D | omap.c | 204 struct mmc_omap_host *host = slot->host; in mmc_omap_select_slot() local 267 struct mmc_omap_host *host = slot->host; in mmc_omap_release_slot() local 632 mmc_omap_cmd_done(host, host->cmd); in mmc_omap_abort_command() 660 sg = host->data->sg + host->sg_idx; in mmc_omap_sg_to_buf() 683 BUG_ON(host->sg_idx == host->sg_len); in mmc_omap_xfer_data() 856 mmc_omap_cmd_done(host, host->cmd); in mmc_omap_irq() 1090 host->dma_tx : host->dma_rx; in mmc_omap_start_request() 1120 host = slot->host; in mmc_omap_set_power() 1270 slot->host = host; in mmc_omap_new_slot() 1507 free_irq(host->irq, host); in mmc_omap_probe() [all …]
|
H A D | mxcmmc.c | 230 if (host->pdata && host->pdata->setpower) in mxcmci_set_power() 391 host->desc->callback_param = host; in mxcmci_start_cmd() 520 mxcmci_set_clk_rate(host, host->clock); in mxcmci_poll_status() 628 mxcmci_finish_request(host, host->req); in mxcmci_datawork() 632 mxcmci_finish_request(host, host->req); in mxcmci_datawork() 683 if (!host->data && host->req) { in mxcmci_cmd_done() 684 mxcmci_finish_request(host, host->req); in mxcmci_cmd_done() 692 if (!mxcmci_use_dma(host) && host->data) in mxcmci_cmd_done() 885 if (host->pdata && host->pdata->get_ro) in mxcmci_get_ro() 1135 if (host->pdata && host->pdata->init) { in mxcmci_probe() [all …]
|
H A D | au1xmmc.c | 213 if (host->platdata && host->platdata->set_power) in au1xmmc_set_power() 214 host->platdata->set_power(host->mmc, state); in au1xmmc_set_power() 221 if (host->platdata && host->platdata->card_inserted) in au1xmmc_card_inserted() 222 return !!host->platdata->card_inserted(host->mmc); in au1xmmc_card_inserted() 447 if (host->pio.index < host->dma.len) { in au1xmmc_receive_pio() 1053 if (host->platdata && host->platdata->led) { in au1xmmc_probe() 1082 if (host->platdata && host->platdata->led) in au1xmmc_probe() 1105 free_irq(host->irq, host); in au1xmmc_probe() 1125 if (host->platdata && host->platdata->led) in au1xmmc_remove() 1131 host->platdata->cd_setup(host->mmc, 0); in au1xmmc_remove() [all …]
|
H A D | omap_hsmmc.c | 153 #define mmc_pdata(host) host->pdata argument 697 host->con = OMAP_HSMMC_READ(host->base, CON); in omap_hsmmc_context_save() 844 if (host->cmd && host->cmd->opcode == 6 && in omap_hsmmc_xfer_done() 873 if (host->mrq->sbc && (host->cmd == host->mrq->sbc) && in omap_hsmmc_cmd_done() 897 omap_hsmmc_request_done(host, host->mrq); in omap_hsmmc_cmd_done() 920 host->data->sg, host->data->sg_len, in omap_hsmmc_dma_cleanup() 1012 } else if (host->mrq && host->mrq->cmd) in hsmmc_command_incomplete() 1030 if (host->data || host->response_busy) { in omap_hsmmc_do_irq() 1058 omap_hsmmc_cmd_done(host, host->cmd); in omap_hsmmc_do_irq() 1432 host->clk_rate = clk_get_rate(host->fclk); in omap_hsmmc_request() [all …]
|
H A D | atmel-mci.c | 738 host = from_timer(host, t, timer); in atmci_timeout_timer() 751 host->stop_transfer(host); in atmci_timeout_timer() 927 host->sg = sg_next(host->sg); in atmci_pdc_set_single_buf() 1348 host->submit_data(host, data); in atmci_start_request() 1606 WARN_ON(host->cmd || host->data); in atmci_request_end() 1727 host->stop_transfer(host); in atmci_detect_change() 1731 host->stop_transfer(host); in atmci_detect_change() 1813 host->stop_transfer(host); in atmci_tasklet_func() 1925 host->stop_transfer(host); in atmci_tasklet_func() 1942 host->stop_transfer(host); in atmci_tasklet_func() [all …]
|
H A D | sh_mmcif.c | 257 #define sh_mmcif_host_to_dev(host) (&host->pd->dev) argument 432 host->chan_tx = sh_mmcif_request_dma_pdata(host, in sh_mmcif_request_dma() 434 host->chan_rx = sh_mmcif_request_dma_pdata(host, in sh_mmcif_request_dma() 447 if (!host->chan_tx || !host->chan_rx || in sh_mmcif_request_dma() 459 host->chan_tx = host->chan_rx = NULL; in sh_mmcif_request_dma() 589 host->state, host->wait_for); in sh_mmcif_error_manage() 593 host->state, host->wait_for); in sh_mmcif_error_manage() 597 host->state, host->wait_for); in sh_mmcif_error_manage() 607 host->sg_blkidx += host->blocksize; in sh_mmcif_next_block() 1023 host->mmc->f_max, host->mmc->f_min); in sh_mmcif_clk_setup() [all …]
|
H A D | pxamci.c | 110 if (host->pdata && host->pdata->setpower) in pxamci_set_power() 142 writel(host->imask, host->base + MMC_I_MASK); in pxamci_enable_irq() 152 writel(host->imask, host->base + MMC_I_MASK); in pxamci_disable_irq() 323 pxamci_finish_request(host, host->mrq); in pxamci_cmd_done() 365 pxamci_start_cmd(host, host->mrq->stop, host->cmdat); in pxamci_data_done() 367 pxamci_finish_request(host, host->mrq); in pxamci_data_done() 431 if (host->pdata && host->pdata->get_ro) in pxamci_get_ro() 507 host->clkrt, host->cmdat); in pxamci_set_ios() 663 host->clkrate = clk_get_rate(host->clk); in pxamci_probe() 766 if (host->pdata && host->pdata->exit) in pxamci_probe() [all …]
|
H A D | mtk-sd.c | 956 msdc_set_timeout(host, host->timeout_ns, host->timeout_clks); in msdc_set_mclk() 1091 msdc_dma_setup(host, &host->dma, data); in msdc_start_data() 1523 host->mrq, host->mrq->cmd->opcode); in msdc_request_timeout() 1527 msdc_cmd_done(host, MSDC_INT_CMDTMO, host->mrq, in msdc_request_timeout() 2814 if (!host->dma.gpd || !host->dma.bd) { in msdc_drv_probe() 2818 msdc_init_gpd_bd(host, &host->dma); in msdc_drv_probe() 2839 host->cq_host->mmio = host->base + 0x800; in msdc_drv_probe() 2877 host->dma.gpd, host->dma.gpd_addr); in msdc_drv_probe() 2881 host->dma.bd, host->dma.bd_addr); in msdc_drv_probe() 2907 host->dma.gpd, host->dma.gpd_addr); in msdc_drv_remove() [all …]
|
H A D | davinci_mmc.c | 218 host->buffer_bytes_left = sg_dma_len(host->sg); in mmc_davinci_sg_to_buf() 219 host->buffer = sg_virt(host->sg); in mmc_davinci_sg_to_buf() 220 if (host->buffer_bytes_left > host->bytes_left) in mmc_davinci_sg_to_buf() 221 host->buffer_bytes_left = host->bytes_left; in mmc_davinci_sg_to_buf() 231 host->sg = sg_next(host->data->sg); in davinci_fifo_data_trans() 579 host->sg = host->data->sg; in mmc_davinci_prepare_data() 871 if (host->cmd == NULL && host->data == NULL) { in mmc_davinci_irq() 926 davinci_fifo_data_trans(host, host->bytes_left); in mmc_davinci_irq() 1002 mmc_davinci_cmd_done(host, host->cmd); in mmc_davinci_irq() 1234 host->mmc_input_clk = clk_get_rate(host->clk); in davinci_mmcsd_probe() [all …]
|
H A D | mmci.c | 445 host->cclk = host->mclk; in mmci_set_clkreg() 450 host->cclk = host->mclk; in mmci_set_clkreg() 461 host->cclk = host->mclk / (clk + 2); in mmci_set_clkreg() 480 host->mmc->actual_clock = host->cclk; in mmci_set_clkreg() 497 host->ops->dma_release(host); in mmci_dma_release() 507 if (host->ops->dma_setup(host)) in mmci_dma_setup() 614 host->ops->dma_finalize(host, data); in mmci_dma_finalize() 623 host->ops->dma_error(host); in mmci_dma_error() 956 mmci_dma_unmap(host, host->data); in mmci_dmae_error() 1846 mmci_request_end(host, host->mrq); in mmci_irq_thread() [all …]
|
H A D | alcor.c | 130 if (!host->sg) { in alcor_data_set_dma() 144 host->sg = sg_next(host->sg); in alcor_data_set_dma() 145 host->sg_count--; in alcor_data_set_dma() 214 host->blocks--; in alcor_trf_block_pio() 254 host->sg_count, host->blocks); in alcor_prepare_data() 269 host->cmd = cmd; in alcor_send_cmd() 323 if (!host->mrq) in alcor_request_complete() 419 if (!host->cmd) in alcor_cmd_irq_done() 514 if (!host->dma_on && host->blocks) { in alcor_data_irq_done() 543 (host->dma_on && !host->sg_count)) in alcor_data_irq_thread() [all …]
|
/openbmc/linux/drivers/scsi/ |
H A D | initio.c | 574 host->idmask = ~(1 << host->scsi_id); in initio_init() 597 outb(host->sconf1, host->addr + TUL_SConfig); in initio_init() 625 host->targets[i].sconfig0 = host->sconf1; in initio_init() 637 host->addr, host->pci_dev->irq, in initio_init() 638 host->bios_addr, host->scsi_id); in initio_init() 1150 host->jsint = inb(host->addr + TUL_SInt); in tulip_scsi() 2178 if (host->msg[0] != 2 || host->msg[1] != 3) in initio_msgin_extend() 2205 outb(host->msg[2], host->addr + TUL_SFifo); in initio_msgin_extend() 2413 host->jsint = inb(host->addr + TUL_SInt); in wait_tulip() 2459 host->jsint = inb(host->addr + TUL_SInt); in initio_wait_disc() [all …]
|
/openbmc/linux/drivers/mmc/core/ |
H A D | host.c | 52 return host->bus_ops->pre_suspend(host); in mmc_host_class_prepare() 80 kfree(host); in mmc_host_classdev_release() 189 if (!host->need_retune || host->doing_retune || !host->card) in mmc_retune() 218 struct mmc_host *host = from_timer(host, t, retune_timer); in mmc_retune_timer() local 424 if (host->dsr_req && (host->dsr & ~0xffff)) { in mmc_of_parse() 529 if (!host) in mmc_alloc_host() 551 dev_set_name(&host->class_dev, "mmc%d", host->index); in mmc_alloc_host() 586 return host; in mmc_alloc_host() 605 if (!host) { in devm_mmc_alloc_host() 610 *dr = host; in devm_mmc_alloc_host() [all …]
|
H A D | core.c | 259 host->cqe_ops->cqe_off(host); in __mmc_start_request() 261 host->ops->request(host, mrq); in __mmc_start_request() 445 mrq->host = host; in mmc_cqe_start_req() 898 host->ops->set_ios(host, ios); in mmc_set_ios() 935 host->cqe_ops->cqe_off(host); in mmc_execute_tuning() 983 host->cqe_ops->cqe_off(host); in mmc_set_initial_state() 1003 host->ops->hs400_enhanced_strobe(host, &host->ios); in mmc_set_initial_state() 1236 if (host->ops->card_busy && !host->ops->card_busy(host)) { in mmc_set_uhs_voltage() 1257 if (host->ops->card_busy && host->ops->card_busy(host)) in mmc_set_uhs_voltage() 2223 host->ops->card_event(host); in mmc_rescan() [all …]
|
/openbmc/u-boot/drivers/mmc/ |
H A D | sh_sdhi.c | 39 writeq(val, host->addr + (reg << host->bus_shift)); in sh_sdhi_writeq() 44 return readq(host->addr + (reg << host->bus_shift)); in sh_sdhi_readq() 49 writew(val, host->addr + (reg << host->bus_shift)); in sh_sdhi_writew() 54 return readw(host->addr + (reg << host->bus_shift)); in sh_sdhi_readw() 108 host->sd_error = 1; in sh_sdhi_intr() 109 host->wait_int = 1; in sh_sdhi_intr() 762 if (!host) in sh_sdhi_init() 771 host->ch = ch; in sh_sdhi_init() 782 if (host) in sh_sdhi_init() 783 free(host); in sh_sdhi_init() [all …]
|
/openbmc/linux/fs/lockd/ |
H A D | host.c | 130 host = kmalloc(sizeof(*host), GFP_KERNEL); in nlm_alloc_host() 170 return host; in nlm_alloc_host() 266 host->h_name, host->h_addrbuf); in nlmclnt_lookup_host() 279 host->h_name, host->h_addrbuf); in nlmclnt_lookup_host() 383 __func__, host->h_name, host->h_addrbuf); in nlmsvc_lookup_host() 400 __func__, host->h_name, host->h_addrbuf); in nlmsvc_lookup_host() 433 host->h_name, host->h_addrbuf); in nlm_bind_host() 608 host->h_name, refcount_read(&host->h_count), in nlm_complain_hosts() 609 host->h_inuse, host->h_expires, host->net->ns.inum); in nlm_complain_hosts() 681 host->h_name, refcount_read(&host->h_count), in nlm_gc_hosts() [all …]
|
/openbmc/linux/drivers/memstick/host/ |
H A D | jmb38x_ms.c | 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() 234 writel(host->io_word[0], host->addr + DATA); in jmb38x_ms_write_data() 309 length = host->req->sg.length - host->block_pos; in jmb38x_ms_transfer_data() 310 off = host->req->sg.offset + host->block_pos; in jmb38x_ms_transfer_data() 312 length = host->req->data_len - host->block_pos; in jmb38x_ms_transfer_data() 329 buf = host->req->data + host->block_pos; in jmb38x_ms_transfer_data() 330 p_cnt = host->req->data_len - host->block_pos; in jmb38x_ms_transfer_data() 356 writel(host->io_word[0], host->addr + TPC_P0); in jmb38x_ms_transfer_data() 357 writel(host->io_word[1], host->addr + TPC_P1); in jmb38x_ms_transfer_data() [all …]
|
/openbmc/linux/drivers/mtd/nand/raw/ |
H A D | hisi504_nand.c | 273 host->cache_addr_value[0] = host->addr_value[0]; in hisi_nfc_send_cmd_readstart() 274 host->cache_addr_value[1] = host->addr_value[1]; in hisi_nfc_send_cmd_readstart() 367 return *(uint8_t *)(host->mmio + host->offset - 1); in hisi_nfc_read_byte() 369 return *(uint8_t *)(host->buffer + host->offset - 1); in hisi_nfc_read_byte() 377 memcpy(host->buffer + host->offset, buf, len); in hisi_nfc_write_buf() 385 memcpy(buf, host->buffer + host->offset, len); in hisi_nfc_read_buf() 483 hisi_nfc_send_cmd_reset(host, host->chipselect); in hisi_nfc_cmdfunc() 585 host->version = hinfc_read(host, HINFC_VERSION); in hisi_nfc_host_init() 699 host->buffer = dmam_alloc_coherent(host->dev, in hisi_nfc_attach_chip() 705 host->dma_oob = host->dma_buffer + mtd->writesize; in hisi_nfc_attach_chip() [all …]
|