Home
last modified time | relevance | path

Searched refs:host (Results 1 – 25 of 70) sorted by relevance

123

/components/drivers/sdio/sdhci/
A Dsdhci.c68 return host->cmd || host->data_cmd; in sdhci_has_requests()
319 host->ops->reset(host, mask); in sdhci_do_reset()
359 host->ops->enable_dma(host); in sdhci_reset_for_all()
1123 host->ops->set_timeout(host, cmd); in sdhci_set_timeout()
1163 if (host->cmd && host->cmd->mrq == mrq) in __sdhci_finish_mrq()
1212 host->ops->card_event(host); in sdhci_card_event()
1857 if (host->cmd || host->data_cmd) in rt_sdhci_start_request_done()
1866 host->ops->set_clock(host, host->clock); in rt_sdhci_start_request_done()
2042 if (host->data || host->data_cmd || (host->cmd && sdhci_data_line_cmd(host->cmd))) in sdhci_timeout_data_timer()
2648 host->max_clk = host->ops->get_max_clock(host); in rt_sdhci_setup_host()
[all …]
A Dsdhci-platform.c51 struct rt_sdhci_host *host; in rt_sdhci_pltfm_init() local
68 if (!host) in rt_sdhci_pltfm_init()
72 host->irq = irq; in rt_sdhci_pltfm_init()
73 host->ioaddr = ioaddr; in rt_sdhci_pltfm_init()
77 host->ops = pdata->ops; in rt_sdhci_pltfm_init()
86 pdev->priv = host; in rt_sdhci_pltfm_init()
88 return host; in rt_sdhci_pltfm_init()
95 struct rt_sdhci_host *host; in rt_sdhci_pltfm_init_and_add_host() local
99 if (!host) in rt_sdhci_pltfm_init_and_add_host()
104 ret = rt_sdhci_init_host(host); in rt_sdhci_pltfm_init_and_add_host()
[all …]
A Dfit-mmc.c84 rt_sem_release(&host->sem_ack); in rt_plat_request()
143 mmcsd_req_complete(&host->rthost); in rt_mmc_request_done()
181 rt_free(host); in rt_mmc_remove_host()
221 struct rt_device *dev = host->parent; in rt_mmc_of_parse()
236 host->caps |= MMC_CAP_8_BIT_DATA; in rt_mmc_of_parse()
239 host->caps |= MMC_CAP_4_BIT_DATA; in rt_mmc_of_parse()
267 host->caps2 |= MMC_CAP2_NO_SDIO; in rt_mmc_of_parse()
272 host->caps2 |= MMC_CAP2_NO_SD; in rt_mmc_of_parse()
277 host->caps |= MMC_CAP_3_3V_DDR; in rt_mmc_of_parse()
282 host->caps |= MMC_CAP_1_8V_DDR; in rt_mmc_of_parse()
[all …]
/components/drivers/sdio/
A Ddev_mmcsd_core.c79 host->ops->request(host, req); in mmcsd_send_request()
187 if (!host->card) in mmcsd_get_cid()
398 host->ops->set_iocfg(host, io_cfg); in mmcsd_set_iocfg()
577 host->io_cfg.clock = host->freq_min; in mmcsd_power_up()
641 mmcsd_send_if_cond(host, host->valid_ocr); in mmcsd_detect()
704 strncpy(host->name, "sd", sizeof(host->name) - 1); in mmcsd_host_init()
719 if (!host) in mmcsd_alloc_host()
728 return host; in mmcsd_alloc_host()
735 rt_free(host); in mmcsd_free_host()
740 struct rt_mmcsd_host *host = card->host; in mmcsd_excute_tuning() local
[all …]
A Ddev_sd.c155 struct rt_mmcsd_host *host = card->host; in mmcsd_switch() local
652 return host->ops->switch_uhs_voltage(host); in sd_switch_uhs_voltage()
665 mmcsd_go_idle(host); in mmcsd_sd_init_card()
715 card->host = host; in mmcsd_sd_init_card()
802 host->card = card; in mmcsd_sd_init_card()
825 mmcsd_go_idle(host); in init_sd()
850 mmcsd_host_unlock(host); in init_sd()
855 mmcsd_host_lock(host); in init_sd()
860 mmcsd_host_lock(host); in init_sd()
862 rt_free(host->card); in init_sd()
[all …]
A Ddev_mmc.c196 host = card->host; in mmc_parse_ext_csd()
254 struct rt_mmcsd_host *host = card->host; in mmc_switch() local
341 struct rt_mmcsd_host *host = card->host; in mmc_select_bus_width() local
510 struct rt_mmcsd_host *host = card->host; in mmc_switch_to_hs400() local
570 struct rt_mmcsd_host *host = card->host; in mmc_select_hs400() local
622 mmcsd_go_idle(host); in mmcsd_mmc_init_card()
653 card->host = host; in mmcsd_mmc_init_card()
724 host->card = card; in mmcsd_mmc_init_card()
778 mmcsd_host_lock(host); in init_mmc()
785 rt_free(host->card); in init_mmc()
[all …]
A Ddev_sdio.c842 err = mmcsd_spi_use_crc(host, host->spi_use_crc); in sdio_init_card()
860 card->host = host; in sdio_init_card()
904 mmcsd_set_clock(host, card->host->freq_max > 50000000 ? 50000000 : card->host->freq_max); in sdio_init_card()
933 if (host->card) in sdio_init_card()
946 if (host->card && host->card->sdio_function[0]) in sdio_init_card()
953 if (host->card) in sdio_init_card()
1052 host->ops->enable_sdio_irq(host, 1); in sdio_irq_thread()
1060 struct rt_mmcsd_host *host = card->host; in sdio_irq_thread_create() local
1082 struct rt_mmcsd_host *host = card->host; in sdio_irq_thread_delete() local
1090 host->ops->enable_sdio_irq(host, 0); in sdio_irq_thread_delete()
[all …]
A Ddev_block.c120 err = mmcsd_send_cmd(card->host, &cmd, 0); in mmcsd_num_wr_blocks()
157 mmcsd_send_request(card->host, &req); in mmcsd_num_wr_blocks()
174 struct rt_mmcsd_host *host = card->host; in rt_mmcsd_req_blk() local
177 mmcsd_host_lock(host); in rt_mmcsd_req_blk()
236 mmcsd_send_request(host, &req); in rt_mmcsd_req_blk()
238 mmcsd_host_unlock(host); in rt_mmcsd_req_blk()
261 mmcsd_host_lock(card->host); in mmcsd_set_blksize()
266 mmcsd_host_unlock(card->host); in mmcsd_set_blksize()
356 struct rt_mmcsd_host *host = card->host; in rt_mmcsd_blk_probe() local
375 host->max_dma_segs * host->max_seg_size, in rt_mmcsd_blk_probe()
[all …]
/components/drivers/sdio/sdhci/include/
A Dsdhci_host.h97 int (*get_ro)(struct rt_mmc_host *host);
98 int (*get_cd)(struct rt_mmc_host *host);
102 int (*card_busy)(struct rt_mmc_host *host);
257 return (void *)host->private; in mmc_priv()
261 #define mmc_host_is_spi(host) ((host)->caps & MMC_CAP_SPI) argument
275 return host->sdio_irqs > 0; in sdio_irq_claimed()
301 if (host->can_retune) in mmc_retune_needed()
302 host->need_retune = 1; in mmc_retune_needed()
307 return host->can_retune == 1; in mmc_can_retune()
312 return host->doing_retune == 1; in mmc_doing_retune()
[all …]
A Dsdhci.h576 writel(val, host->ioaddr + reg); in rt_sdhci_writel()
581 writew(val, host->ioaddr + reg); in rt_sdhci_writew()
586 writeb(val, host->ioaddr + reg); in rt_sdhci_writeb()
591 return readl(host->ioaddr + reg); in rt_sdhci_readl()
596 return readw(host->ioaddr + reg); in rt_sdhci_readw()
601 return readb(host->ioaddr + reg); in rt_sdhci_readb()
611 int (*set_dma_mask)(struct rt_sdhci_host *host);
612 int (*enable_dma)(struct rt_sdhci_host *host);
624 void (*hw_reset)(struct rt_sdhci_host *host);
625 void (*card_event)(struct rt_sdhci_host *host);
[all …]
A Dsdhci-platform.h51 extern unsigned int rt_sdhci_pltfm_clk_get_max_clock(struct rt_sdhci_host *host);
53 static inline void *sdhci_pltfm_priv(struct rt_sdhci_pltfm_host *host) in sdhci_pltfm_priv() argument
55 return host->private; in sdhci_pltfm_priv()
/components/drivers/ata/
A Dahci.c529 host->ops->port_isr(host, port, isr); in ahci_isr()
548 if (!host || !host->parent.dev || !host->ops) in rt_ahci_host_register()
553 host->max_blocks = host->max_blocks ? : 0x80; in rt_ahci_host_register()
587 host->cap = HWREG32(host->regs + RT_AHCI_HBA_CAP); in rt_ahci_host_register()
589 HWREG32(host->regs + RT_AHCI_HBA_CAP) = host->cap; in rt_ahci_host_register()
590 host->cap = HWREG32(host->regs + RT_AHCI_HBA_CAP); in rt_ahci_host_register()
594 if (host->ops->host_init && (err = host->ops->host_init(host))) in rt_ahci_host_register()
635 if (host->ops->port_init && (err = host->ops->port_init(host, port))) in rt_ahci_host_register()
783 if (host->ops->port_dma_init && (err = host->ops->port_dma_init(host, port))) in rt_ahci_host_register()
849 rt_pic_detach_irq(host->irq, host); in rt_ahci_host_register()
[all …]
A Dahci-pci.c34 static rt_err_t pci_ahci_init(struct rt_ahci_host *host) in pci_ahci_init() argument
38 pdev = rt_container_of(host->parent.dev, struct rt_pci_device, parent); in pci_ahci_init()
53 static rt_err_t pci_ahci_intel_init(struct rt_ahci_host *host) in pci_ahci_intel_init() argument
58 pdev = rt_container_of(host->parent.dev, struct rt_pci_device, parent); in pci_ahci_intel_init()
/components/drivers/include/drivers/
A Ddev_mmcsd_core.h225 void mmcsd_host_lock(struct rt_mmcsd_host *host);
226 void mmcsd_host_unlock(struct rt_mmcsd_host *host);
227 void mmcsd_req_complete(struct rt_mmcsd_host *host);
230 rt_int32_t mmcsd_go_idle(struct rt_mmcsd_host *host);
236 rt_int32_t mmcsd_deselect_cards(struct rt_mmcsd_card *host);
239 void mmcsd_set_clock(struct rt_mmcsd_host *host, rt_uint32_t clk);
240 void mmcsd_set_bus_mode(struct rt_mmcsd_host *host, rt_uint32_t mode);
242 void mmcsd_set_timing(struct rt_mmcsd_host *host, rt_uint32_t timing);
245 void mmcsd_change(struct rt_mmcsd_host *host);
247 void mmcsd_host_init(struct rt_mmcsd_host *host);
[all …]
A Dmmcsd_host.h86 void (*request)(struct rt_mmcsd_host *host, struct rt_mmcsd_req *req);
87 void (*set_iocfg)(struct rt_mmcsd_host *host, struct rt_mmcsd_io_cfg *io_cfg);
88 rt_int32_t (*get_card_status)(struct rt_mmcsd_host *host);
89 void (*enable_sdio_irq)(struct rt_mmcsd_host *host, rt_int32_t en);
90 rt_int32_t (*execute_tuning)(struct rt_mmcsd_host *host, rt_int32_t opcode);
91 rt_int32_t (*switch_uhs_voltage)(struct rt_mmcsd_host *host);
126 #define controller_is_spi(host) (host->flags & MMCSD_HOST_IS_SPI) argument
137 #define controller_is_removable(host) (!(host->flags & MMCSD_SUP_NONREMOVABLE)) argument
A Ddev_sd.h33 rt_err_t mmcsd_send_if_cond(struct rt_mmcsd_host *host, rt_uint32_t ocr);
34 rt_err_t mmcsd_send_app_op_cond(struct rt_mmcsd_host *host, rt_uint32_t ocr, rt_uint32_t *rocr);
36 rt_err_t mmcsd_get_card_addr(struct rt_mmcsd_host *host, rt_uint32_t *rca);
39 rt_int32_t init_sd(struct rt_mmcsd_host *host, rt_uint32_t ocr);
A Dahci.h387 rt_err_t (*host_init)(struct rt_ahci_host *host);
388 rt_err_t (*port_init)(struct rt_ahci_host *host, struct rt_ahci_port *port);
389 rt_err_t (*port_link_up)(struct rt_ahci_host *host, struct rt_ahci_port *port);
390 rt_err_t (*port_dma_init)(struct rt_ahci_host *host, struct rt_ahci_port *port);
391 rt_err_t (*port_isr)(struct rt_ahci_host *host, struct rt_ahci_port *port, rt_uint32_t isr);
394 rt_err_t rt_ahci_host_register(struct rt_ahci_host *host);
395 rt_err_t rt_ahci_host_unregister(struct rt_ahci_host *host);
A Ddev_sdio.h154 rt_int32_t sdio_io_send_op_cond(struct rt_mmcsd_host *host,
211 rt_int32_t init_sdio(struct rt_mmcsd_host *host, rt_uint32_t ocr);
215 void sdio_irq_wakeup(struct rt_mmcsd_host *host);
/components/drivers/usb/cherryusb/platform/
A DREADME.md8 - Fatfs support with usb host msc.
13 lwip support with usb host net class(cdc_ecm/cdc_ncm/cdc_rndis/asix/rtl8152/bl616_wifi).
18 - DFS support with usb host msc.
19 - lwip support with usb host net class(cdc_ecm/cdc_ncm/cdc_rndis/asix/rtl8152/bl616_wifi).
21 - device char support with host cdc_acm/ftdi/ch34x/cp210x/pl2303
27 - char device support with usb host cdc acm.
29 - fs support with usb host msc.
30 - net support with usb host net class(cdc_rndis).
34 - filx support with usb host msc.
39 - disk support with usb host msc
[all …]
/components/drivers/usb/cherryusb/port/dwc2/
A DREADME.md3 Please note that host must support dma mode.
9 **有且仅有 PB14/PB15 引脚支持 host 模式, 部分 F7/H7 可能 PA11/PA12 也支持**。
21 **有且仅有 AT32F405xx PB14/PB15引脚支持 host 模式**。
/components/drivers/pci/host/
A DKconfig2 bool "Common PCI host controller"
7 bool "Generic PCI host controller"
A DSConscript12 src += ['pci-host-common.c']
15 src += ['pci-host-generic.c']
/components/drivers/usb/cherryusb/platform/rtthread/
A Dusb_msh.c44 MSH_CMD_EXPORT(usbh_init, init usb host);
45 MSH_CMD_EXPORT(usbh_deinit, deinit usb host);
/components/drivers/usb/cherryusb/
A Didf_component.yml2 description: CherryUSB is a tiny and portable USB Stack (device & host) for embedded system with US…
6 - usb-host
/components/net/lwip/lwip-2.1.2/src/apps/http/
A Daltcp_proxyconnect.c99 #define PROXY_CONNECT_FORMAT(host, port) PROXY_CONNECT, host, port, ALTCP_PROXYCONNECT_CLIENT_AGENT argument
103 altcp_proxyconnect_format_request(char *buffer, size_t bufsize, const char *host, int port) in altcp_proxyconnect_format_request() argument
105 return snprintf(buffer, bufsize, PROXY_CONNECT_FORMAT(host, port)); in altcp_proxyconnect_format_request()
114 char *buffer, *host; in altcp_proxyconnect_send_request() local
141 host = ipaddr_ntoa(&state->outer_addr); in altcp_proxyconnect_send_request()
142 len2 = altcp_proxyconnect_format_request(buffer, alloc_len, host, state->outer_port); in altcp_proxyconnect_send_request()

Completed in 46 milliseconds

123