| /bsp/raspberry-pi/raspi-dm2.0/drivers/sdhci/ |
| A D | sdhci.c | 67 return host->cmd || host->data_cmd; in sdhci_has_requests() 369 host->ops->reset(host, mask); in sdhci_do_reset() 409 host->ops->enable_dma(host); in sdhci_reset_for_all() 1266 host->ops->set_timeout(host, cmd); in sdhci_set_timeout() 1306 if (host->cmd && host->cmd->mrq == mrq) in __sdhci_finish_mrq() 1356 host->ops->card_event(host); in sdhci_card_event() 2106 if (host->cmd || host->data_cmd) in sdhci_request_done() 2115 host->ops->set_clock(host, host->clock); in sdhci_request_done() 2264 if (host->data || host->data_cmd || (host->cmd && sdhci_data_line_cmd(host->cmd))) in sdhci_timeout_data_timer() 2998 host->max_clk = host->ops->get_max_clock(host); in sdhci_setup_host() [all …]
|
| /bsp/allwinner/libraries/sunxi-hal/hal/source/sdmmc/ |
| A D | hal_sdhost.c | 1380 host->wbytes, host->wtimes_us, host->wcount,\ in __mci_end_data_time_stats() 1392 host->rbytes, host->rtimes_us, host->rcount,\ in __mci_end_data_time_stats() 1759 if (!host->present || host->wait_voltage_stable || !host->cd_delay) { in __mci_voltage_stable_det() 1762 host->param.cd_cb(host->present); in __mci_voltage_stable_det() 1971 ret = host->bus_ops->suspend(host); in __mci_suspend() 1974 host->bus_ops->resume(host); in __mci_suspend() 1986 ret = host->bus_ops->resume(host); in __mci_suspend() 2098 ret = host->bus_ops->resume(host); in __mci_resume() 2295 host->max_req_size = host->max_blk_size * host->max_blk_count; in hal_sdc_init() 2296 host->max_seg_size = host->max_req_size; in hal_sdc_init() [all …]
|
| A D | sdio_irq.c | 113 mmc_claim_host(host); 114 host->sdio_irq_pending = true; 116 mmc_release_host(host); 122 struct mmc_host *host = _host; local 155 mmc_claim_host(host); 158 mmc_release_host(host); 225 struct mmc_host *host = card->host; local 229 if (!host->sdio_irqs++) { 242 host->sdio_irqs--; 256 struct mmc_host *host = card->host; local [all …]
|
| A D | core.c | 308 if (!host || (card && (card->host != host))) { in mmc_app_cmd() 841 if (!host) { in mmc_detach_bus() 846 if (!host->bus_ops) in mmc_detach_bus() 869 if (!host) { in mmc_rescan() 874 card->host = host; in mmc_rescan() 895 mmc_go_idle(host); in mmc_rescan() 899 if (mmc_send_if_cond(host, host->ocr_avail)) { in mmc_rescan() 964 host = card->host; in mmc_card_deinit() 1194 if (!host) { in mmc_card_restore() 1207 card->host = host; in mmc_card_restore() [all …]
|
| A D | sd.c | 71 if (!host) { in mmc_send_app_op_cond() 547 mmc_host_clk_hold(card->host); in mmc_sd_init_uhs_card() 775 if (!host || !cxd) { in mmc_send_cxd_native() 866 mmc_host_clk_hold(card->host); in mmc_sd_setup_card() 1035 mmc_card_deinit(host->card); in mmc_sd_suspend() 1053 mmc_rescan(card, host->sdc_id); in mmc_sd_resume() 1076 if (!host) { in mmc_attach_sd() 1105 host->card = card; in mmc_attach_sd() 1123 mmc_detach_bus(host); in mmc_deattach_sd() 1124 host->card = NULL; in mmc_deattach_sd() [all …]
|
| A D | sdio.c | 518 if (!host) { in mmc_io_rw_direct_host() 1110 if (!host) { in mmc_sdio_remove() 1114 if (!host->card) { in mmc_sdio_remove() 1127 host->card = NULL; in mmc_sdio_remove() 1616 mmc_go_idle(host); in mmc_sd_get_cid() 1888 struct mmc_host *host = card->host; in sdio_set_host_pm_flags() local 1946 if (mmc_card_keep_power(host) && mmc_card_wake_sdio_irq(host)) { in mmc_sdio_suspend() 1960 if (!host) { in mmc_sdio_resume() 1981 HAL_SDC_Set_BusWidth(host->card->host, MMC_BUS_WIDTH_4); in mmc_sdio_resume() 2035 if (!host) { in mmc_attach_sdio() [all …]
|
| /bsp/dm365/drivers/ |
| A D | mmcsd.c | 474 host->ops->request(host, mrq); in mmc_request_done() 526 if (host->sdio_int && !(host->mmcsd_regs->SDIOST0 & in mmc_dm365_xfer_done() 556 if (!data->stop || (host->cmd && host->cmd->err)) in mmc_dm365_xfer_done() 578 mmc_dm365_xfer_done(host, host->data); in mmc_dm365_dma_cb() 831 mmc_dm365_dma_setup(host, RT_TRUE, &host->tx_template); 840 mmc_dm365_dma_setup(host, RT_FALSE, &host->rx_template); 863 mmc_dm365_dma_setup(host, RT_TRUE, &host->tx_template); in acquire_dma_channels() 873 mmc_dm365_dma_setup(host, RT_FALSE, &host->rx_template); in acquire_dma_channels() 1210 if (host->cmd == RT_NULL && host->data == RT_NULL) in mmc_dm365_irq() 1249 dm365_fifo_data_trans(host, host->bytes_left); in mmc_dm365_irq() [all …]
|
| /bsp/raspberry-pi/raspi-dm2.0/drivers/sdhci/sdhci-platform/ |
| A D | sdhci-platform.c | 51 struct sdhci_host *host; in sdhci_pltfm_init() local 68 if (!host) in sdhci_pltfm_init() 72 host->irq = irq; in sdhci_pltfm_init() 73 host->ioaddr = ioaddr; in sdhci_pltfm_init() 77 host->ops = pdata->ops; in sdhci_pltfm_init() 86 pdev->priv = host; in sdhci_pltfm_init() 88 return host; in sdhci_pltfm_init() 95 struct sdhci_host *host; in sdhci_pltfm_init_and_add_host() local 99 if (!host) in sdhci_pltfm_init_and_add_host() 104 ret = sdhci_add_host(host); in sdhci_pltfm_init_and_add_host() [all …]
|
| /bsp/raspberry-pi/raspi-dm2.0/drivers/sdhci/include/ |
| A D | sdhci.h | 328 #define SDHCI_ADMA2_64_DESC_SZ(host) ((host)->v4_mode ? 16 : 12) argument 706 host->ops->write_l(host, val, reg); in sdhci_writel() 714 host->ops->write_w(host, val, reg); in sdhci_writew() 722 host->ops->write_b(host, val, reg); in sdhci_writeb() 729 if (host->ops->read_l) in sdhci_readl() 730 return host->ops->read_l(host, reg); in sdhci_readl() 737 if (host->ops->read_w) in sdhci_readw() 738 return host->ops->read_w(host, reg); in sdhci_readw() 745 if (host->ops->read_b) in sdhci_readb() 746 return host->ops->read_b(host, reg); in sdhci_readb() [all …]
|
| A D | sdhci_host.h | 138 int (*get_ro)(struct mmc_host *host); 147 int (*get_cd)(struct mmc_host *host); 326 return (void *)host->private; in mmc_priv() 330 #define mmc_host_is_spi(host) ((host)->caps & MMC_CAP_SPI) argument 348 return host->sdio_irqs > 0; in sdio_irq_claimed() 366 if (host->can_retune) in mmc_retune_needed() 367 host->need_retune = 1; in mmc_retune_needed() 372 return host->can_retune == 1; in mmc_can_retune() 377 return host->doing_retune == 1; in mmc_doing_retune() 382 return host->doing_retune == 1 || host->doing_init_tune == 1; in mmc_doing_tune() [all …]
|
| /bsp/k230/drivers/interdrv/sdio/ |
| A D | drv_sdhci.c | 204 sdhci_writeb(host, host->tx_delay_line - 128, DWC_MSHC_SDCLKDL_DC); in dwcmshc_phy_delay_config() 207 sdhci_writeb(host, host->tx_delay_line, DWC_MSHC_SDCLKDL_DC); in dwcmshc_phy_delay_config() 209 sdhci_writeb(host, host->rx_delay_line, DWC_MSHC_SMPLDL_CNFG); in dwcmshc_phy_delay_config() 225 if (host->io_fixed_1v8) in dwcmshc_phy_init() 282 if (host->index == 0) in sdhci_reset() 291 if (host->have_phy) in sdhci_reset() 294 sdhci_writeb(host, host->mshc_ctrl_r, MSHC_CTRL_R); in sdhci_reset() 626 sdio_irq_wakeup(host->host); in sdhci_irq() 639 RT_ASSERT(host != RT_NULL); in kd_mmc_request() 765 mmcsd_req_complete(host); in kd_mmc_request() [all …]
|
| /bsp/hpmicro/libraries/hpm_sdk/components/serial_nor/interface/spi/ |
| A D | hpm_serial_nor_host_spi.c | 44 dev->host.host_ops.init = init; in serial_nor_host_ops_use_spi() 46 dev->host.host_ops.set_cs = dev->host.host_param.param.set_cs; in serial_nor_host_ops_use_spi() 47 dev->host.host_ops.set_frequency = dev->host.host_param.param.set_frequency; in serial_nor_host_ops_use_spi() 55 stat = read(host, command_seq); in transfer() 164 if ((host == NULL) || (host->host_param.param.host_base == NULL)) { in init() 267 if ((cmd_seq->data_phase.len > host->host_param.param.transfer_max_size) || (host == NULL) in write() 276 host->host_param.param.set_cs(host->host_param.param.pin_or_cs_index, false); in write() 300 host->host_param.param.set_cs(host->host_param.param.pin_or_cs_index, true); in write() 318 if ((host == NULL) || (host->host_param.param.host_base == NULL)) { in read() 342 host->host_param.param.set_cs(host->host_param.param.pin_or_cs_index, false); in read() [all …]
|
| /bsp/hc32/libraries/hc32_drivers/ |
| A D | drv_usbh.c | 130 pdev->host.ErrCnt[chnum] = 0U; in usb_host_chx_out_isr() 155 pdev->host.ErrCnt[chnum] ++; in usb_host_chx_out_isr() 281 pdev->host.hc[chnum].xfer_count += pdev->host.XferCnt[chnum]; in usb_host_chx_in_isr() 352 pdev->host.ErrCnt[chnum] ++; in usb_host_chx_in_isr() 425 pdev->host.is_dev_connect = 0U; in usb_host_disconn_isr() 589 pdev->host.XferCnt[u8chnum] = pdev->host.hc[u8chnum].xfer_count; in usb_host_rxflvl_isr() 701 pdev->host.hc[hc_num].ep_idx = (uint8_t) pdev->host.channel[hc_num] & 0x7FU; in usb_host_chopen() 702 pdev->host.hc[hc_num].is_epin = (uint8_t)((pdev->host.channel[hc_num] & 0x80U) == 0x80U); in usb_host_chopen() 722 pdev->host.hc[hc_num].ep_idx = (uint8_t) pdev->host.channel[hc_num] & 0x7FU; in usb_host_ch_init() 723 pdev->host.hc[hc_num].is_epin = (uint8_t)((pdev->host.channel[hc_num] & 0x80U) == 0x80U); in usb_host_ch_init() [all …]
|
| /bsp/raspberry-pi/raspi-dm2.0/drivers/sdhci/src/ |
| A D | fit-mmc.c | 86 rt_sem_release(&host->sem_ack); in plat_request() 145 mmcsd_req_complete(&host->rthost); in mmc_request_done() 183 rt_free(host); in mmc_remove_host() 221 int mmc_of_parse(struct mmc_host *host) in mmc_of_parse() argument 223 struct rt_device *dev = host->parent; in mmc_of_parse() 238 host->caps |= MMC_CAP_8_BIT_DATA; in mmc_of_parse() 269 host->caps2 |= MMC_CAP2_NO_SDIO; in mmc_of_parse() 274 host->caps2 |= MMC_CAP2_NO_SD; in mmc_of_parse() 279 host->caps |= MMC_CAP_3_3V_DDR; in mmc_of_parse() 284 host->caps |= MMC_CAP_1_8V_DDR; in mmc_of_parse() [all …]
|
| /bsp/raspberry-pi/raspi-dm2.0/drivers/ |
| A D | drv_sd.c | 40 rt_uint32_t val = readl(host->ioaddr + reg); in sdhci_iproc_readl() 78 mmc_hostname(host->mmc), reg, val); in sdhci_iproc_writel() 79 writel(val, host->ioaddr + reg); in sdhci_iproc_writel() 80 if (host->clock <= 400000) in sdhci_iproc_writel() 83 if (host->clock) in sdhci_iproc_writel() 84 rt_hw_us_delay((4 * 1000000 + host->clock - 1) / host->clock); in sdhci_iproc_writel() 143 sdhci_iproc_writel(host, newval, reg & ~3); in sdhci_iproc_writeb() 173 struct sdhci_host *host; in bcm2835_probe() local 178 pltfm_host = sdhci_priv(host); in bcm2835_probe() 183 ret = mmc_of_parse(host->mmc); in bcm2835_probe() [all …]
|
| /bsp/at32/libraries/rt_drivers/ |
| A D | drv_usbotgh.c | 105 usbh_reset_port(&p_usbotg_instance->p_otg_core->host); in drv_reset_port() 123 p_usbotg_instance->p_otg_core->host.hch[pipe->pipe_index].dir = direction; in drv_pipe_xfer() 241 p_usbotg_instance->p_otg_core->host.hch[pipe->pipe_index].trans_count = 0; in drv_pipe_xfer() 242 p_usbotg_instance->p_otg_core->host.hch[pipe->pipe_index].state = HCH_IDLE; in drv_pipe_xfer() 325 usbh_hc_open(&p_usbotg_instance->p_otg_core->host, in drv_open_pipe() 333 if (p_usbotg_instance->p_otg_core->host.hch[pipe->pipe_index].dir) in drv_open_pipe() 335 p_usbotg_instance->p_otg_core->host.hch[pipe->pipe_index].toggle_in = 0; in drv_open_pipe() 339 p_usbotg_instance->p_otg_core->host.hch[pipe->pipe_index].toggle_out = 0; in drv_open_pipe() 346 usb_hch_halt((&p_usbotg_instance->p_otg_core->host)->usb_reg, pipe->pipe_index); in drv_close_pipe() 401 uhcd->parent.user_data = &(p_otg_core->host); in at32_usbh_register() [all …]
|
| /bsp/mini2440/drivers/ |
| A D | s3cmci.c | 34 host->io_cfg.clock = realClk; in s3c_mmc_set_clk() 254 mmcsd_req_complete(host); in mmc_request() 300 host = mmcsd_alloc_host(); in s3c_sdio_init() 301 if (!host) in s3c_sdio_init() 306 host->ops = &ops; in s3c_sdio_init() 307 host->freq_min = 300000; in s3c_sdio_init() 308 host->freq_max = 50000000; in s3c_sdio_init() 312 host->max_dma_segs = 10; in s3c_sdio_init() 313 host->max_blk_size = 512; in s3c_sdio_init() 317 mmcsd_change(host); in s3c_sdio_init() [all …]
|
| /bsp/phytium/libraries/drivers/ |
| A D | drv_sdif.c | 457 mmcsd_req_complete(host); in sdif_send_request() 579 host = mmcsd_alloc_host(); in sdif_host_init() 580 if (!host) in sdif_host_init() 626 host->ops = &ops; in sdif_host_init() 644 host->name[0] = 's'; in sdif_host_init() 645 host->name[1] = 'd'; in sdif_host_init() 646 host->name[2] = '0' + id; in sdif_host_init() 647 host->name[3] = '\0'; in sdif_host_init() 649 mmc_host[id] = host; in sdif_host_init() 694 if (host) in sdif_host_init() [all …]
|
| /bsp/stm32/stm32h743-atk-apollo/board/ports/ |
| A D | drv_sdio.c | 25 static struct rt_mmcsd_host *host; variable 37 struct rt_mmcsd_host *host; member 381 host = mmcsd_alloc_host(); in sdio_host_create() 382 if (host == RT_NULL) in sdio_host_create() 395 host->ops = &ops; in sdio_host_create() 406 host->max_dma_segs = 1; in sdio_host_create() 407 host->max_blk_size = 512; in sdio_host_create() 411 sdio->host = host; in sdio_host_create() 415 mmcsd_change(host); in sdio_host_create() 417 return host; in sdio_host_create() [all …]
|
| /bsp/stm32/stm32h743-openmv-h7plus/board/ports/ |
| A D | drv_sdio.c | 26 static struct rt_mmcsd_host *host; variable 38 struct rt_mmcsd_host *host; member 382 host = mmcsd_alloc_host(); in sdio_host_create() 383 if (host == RT_NULL) in sdio_host_create() 396 host->ops = &ops; in sdio_host_create() 407 host->max_dma_segs = 1; in sdio_host_create() 408 host->max_blk_size = 512; in sdio_host_create() 412 sdio->host = host; in sdio_host_create() 416 mmcsd_change(host); in sdio_host_create() 418 return host; in sdio_host_create() [all …]
|
| /bsp/nuvoton/libraries/m2354/rtt_port/ |
| A D | drv_sdio.c | 48 struct rt_mmcsd_host *host; member 429 RT_ASSERT(host); in nu_sdh_request() 449 (host->card) && (host->card->card_type == CARD_TYPE_MMC) ? "MMC" : "", in nu_sdh_request() 450 (host->card) && (host->card->card_type == CARD_TYPE_SD) ? "SD" : "", in nu_sdh_request() 451 (host->card) && (host->card->card_type == CARD_TYPE_SDIO) ? "SDIO" : "", in nu_sdh_request() 543 RT_ASSERT(host); in nu_sdh_iocfg() 625 RT_ASSERT(host); in nu_sdh_card_detect() 728 RT_ASSERT(host); in nu_sdh_host_init() 731 host->ops = &ops; in nu_sdh_host_init() 739 host->max_dma_segs = 1; in nu_sdh_host_init() [all …]
|
| /bsp/nuvoton/libraries/m460/rtt_port/ |
| A D | drv_sdio.c | 48 struct rt_mmcsd_host *host; member 429 RT_ASSERT(host); in nu_sdh_request() 449 (host->card) && (host->card->card_type == CARD_TYPE_MMC) ? "MMC" : "", in nu_sdh_request() 450 (host->card) && (host->card->card_type == CARD_TYPE_SD) ? "SD" : "", in nu_sdh_request() 451 (host->card) && (host->card->card_type == CARD_TYPE_SDIO) ? "SDIO" : "", in nu_sdh_request() 543 RT_ASSERT(host); in nu_sdh_iocfg() 625 RT_ASSERT(host); in nu_sdh_card_detect() 728 RT_ASSERT(host); in nu_sdh_host_init() 731 host->ops = &ops; in nu_sdh_host_init() 739 host->max_dma_segs = 1; in nu_sdh_host_init() [all …]
|
| /bsp/nuvoton/libraries/m480/rtt_port/ |
| A D | drv_sdio.c | 48 struct rt_mmcsd_host *host; member 429 RT_ASSERT(host); in nu_sdh_request() 449 (host->card) && (host->card->card_type == CARD_TYPE_MMC) ? "MMC" : "", in nu_sdh_request() 450 (host->card) && (host->card->card_type == CARD_TYPE_SD) ? "SD" : "", in nu_sdh_request() 451 (host->card) && (host->card->card_type == CARD_TYPE_SDIO) ? "SDIO" : "", in nu_sdh_request() 543 RT_ASSERT(host); in nu_sdh_iocfg() 625 RT_ASSERT(host); in nu_sdh_card_detect() 728 RT_ASSERT(host); in nu_sdh_host_init() 731 host->ops = &ops; in nu_sdh_host_init() 739 host->max_dma_segs = 1; in nu_sdh_host_init() [all …]
|
| /bsp/nxp/lpc/lpc55sxx/Libraries/drivers/ |
| A D | drv_sdif.c | 32 struct rt_mmcsd_host *host; member 208 mmcsd_req_complete(host); in lpc_sdmmc_request() 268 host = mmcsd_alloc_host(); in rt_hw_sdio_init() 269 if (!host) in rt_hw_sdio_init() 285 host->freq_min = 375000; in rt_hw_sdio_init() 286 host->freq_max = 50000000; in rt_hw_sdio_init() 291 host->max_dma_segs = 2; in rt_hw_sdio_init() 292 host->max_blk_size = 512; in rt_hw_sdio_init() 295 mmcsd->host = host; in rt_hw_sdio_init() 315 mmcsd_change(host); in rt_hw_sdio_init() [all …]
|
| /bsp/nxp/mcx/mcxn/Libraries/drivers/ |
| A D | drv_sdio.c | 35 struct rt_mmcsd_host *host; member 90 RT_ASSERT(host != RT_NULL); in mcx_sdmmc_request() 240 mmcsd_req_complete(host); in mcx_sdmmc_request() 297 host = mmcsd_alloc_host(); in rt_hw_sdio_init() 298 if (!host) in rt_hw_sdio_init() 316 host->freq_min = 375000; in rt_hw_sdio_init() 317 host->freq_max = 50000000; in rt_hw_sdio_init() 322 host->max_dma_segs = 2; in rt_hw_sdio_init() 326 mmcsd->host = host; in rt_hw_sdio_init() 346 mmcsd_change(host); in rt_hw_sdio_init() [all …]
|