Home
last modified time | relevance | path

Searched refs:ctrl (Results 1 – 16 of 16) sorted by relevance

/components/drivers/dma/
A Ddma.c27 if (!ctrl || !ctrl->dev || !ctrl->ops) in rt_dma_controller_register()
54 rt_dm_dev_bind_fwdata(ctrl->dev, RT_NULL, ctrl); in rt_dma_controller_register()
62 if (!ctrl) in rt_dma_controller_unregister()
107 ctrl = chan->ctrl; in rt_dma_chan_start()
135 ctrl = chan->ctrl; in rt_dma_chan_stop()
174 ctrl = chan->ctrl; in rt_dma_chan_config()
250 ctrl = chan->ctrl; in rt_dma_prep_memcpy()
314 ctrl = chan->ctrl; in rt_dma_prep_cyclic()
389 ctrl = chan->ctrl; in rt_dma_prep_single()
522 return ctrl ? ctrl : rt_err_ptr(-RT_ENOSYS); in rt_dma_chan_request()
[all …]
/components/drivers/mailbox/
A Dmailbox.c34 if (!ctrl || !ctrl->dev || !ctrl->ops || !ctrl->num_chans) in rt_mbox_controller_register()
39 ctrl->chans = rt_calloc(ctrl->num_chans, sizeof(struct rt_mbox_chan)); in rt_mbox_controller_register()
41 if (!ctrl->chans) in rt_mbox_controller_register()
51 chan = &ctrl->chans[0]; in rt_mbox_controller_register()
55 chan->ctrl = ctrl; in rt_mbox_controller_register()
64 rt_dm_dev_bind_fwdata(ctrl->dev, RT_NULL, ctrl); in rt_mbox_controller_register()
79 if (!ctrl) in rt_mbox_controller_unregister()
98 rt_free(ctrl->chans); in rt_mbox_controller_unregister()
117 ctrl = chan->ctrl; in rt_mbox_send()
266 if (ctrl) in rt_mbox_request_by_index()
[all …]
A Dmailbox-pic.c65 int index = chan - chan->ctrl->chans; in pic_mbox_request()
66 struct pic_mbox *pic_mbox = raw_to_pic_mbox(chan->ctrl); in pic_mbox_request()
76 int index = chan - chan->ctrl->chans; in pic_mbox_release()
77 struct pic_mbox *pic_mbox = raw_to_pic_mbox(chan->ctrl); in pic_mbox_release()
85 int index = chan - chan->ctrl->chans; in pic_mbox_send()
86 struct pic_mbox *pic_mbox = raw_to_pic_mbox(chan->ctrl); in pic_mbox_send()
/components/drivers/pci/msi/
A Ddevice.c17 rt_uint16_t ctrl; in rt_pci_msi_init() local
19 rt_pci_read_config_u16(pdev, pdev->msi_cap + PCIR_MSI_CTRL, &ctrl); in rt_pci_msi_init()
21 if (ctrl & PCIM_MSICTRL_MSI_ENABLE) in rt_pci_msi_init()
23 … rt_pci_write_config_u16(pdev, pdev->msi_cap + PCIR_MSI_CTRL, ctrl & ~PCIM_MSICTRL_MSI_ENABLE); in rt_pci_msi_init()
26 if (!(ctrl & PCIM_MSICTRL_64BIT)) in rt_pci_msi_init()
37 rt_uint16_t ctrl; in rt_pci_msix_init() local
39 rt_pci_read_config_u16(pdev, pdev->msix_cap + PCIR_MSIX_CTRL, &ctrl); in rt_pci_msix_init()
41 if (ctrl & PCIM_MSIXCTRL_MSIX_ENABLE) in rt_pci_msix_init()
43 … rt_pci_write_config_u16(pdev, pdev->msix_cap + PCIR_MSIX_CTRL, ctrl & ~PCIM_MSIXCTRL_MSIX_ENABLE); in rt_pci_msix_init()
A Dmsi.c42 rt_uint32_t ctrl) in msix_write_vector_ctrl() argument
46 HWREG32(vc_addr) = ctrl; in msix_write_vector_ctrl()
/components/drivers/pci/host/dw/
A Dpcie-dw_host.c20 rt_uint32_t res, bit, ctrl; in dw_pcie_irq_ack() local
24 ctrl = hwirq / MAX_MSI_IRQS_PER_CTRL; in dw_pcie_irq_ack()
25 res = ctrl * MSI_REG_CTRL_BLOCK_SIZE; in dw_pcie_irq_ack()
35 rt_uint32_t res, bit, ctrl; in dw_pcie_irq_mask() local
43 ctrl = hwirq / MAX_MSI_IRQS_PER_CTRL; in dw_pcie_irq_mask()
44 res = ctrl * MSI_REG_CTRL_BLOCK_SIZE; in dw_pcie_irq_mask()
47 port->irq_mask[ctrl] |= RT_BIT(bit); in dw_pcie_irq_mask()
57 rt_uint32_t res, bit, ctrl; in dw_pcie_irq_unmask() local
65 ctrl = hwirq / MAX_MSI_IRQS_PER_CTRL; in dw_pcie_irq_unmask()
551 for (int ctrl = 0; ctrl < num_ctrls; ++ctrl) in dw_pcie_setup_rc() local
[all …]
/components/drivers/include/drivers/
A Ddma.h93 struct rt_dma_chan *(*request_chan)(struct rt_dma_controller *ctrl,
117 struct rt_dma_controller *ctrl; member
158 rt_inline void rt_dma_controller_add_direction(struct rt_dma_controller *ctrl, in rt_dma_controller_add_direction() argument
161 RT_ASSERT(ctrl != RT_NULL); in rt_dma_controller_add_direction()
164 rt_bitmap_set_bit(ctrl->dir_cap, dir); in rt_dma_controller_add_direction()
167 rt_err_t rt_dma_controller_register(struct rt_dma_controller *ctrl);
168 rt_err_t rt_dma_controller_unregister(struct rt_dma_controller *ctrl);
A Dmailbox.h44 struct rt_mbox_controller *ctrl; member
64 rt_err_t rt_mbox_controller_register(struct rt_mbox_controller *ctrl);
65 rt_err_t rt_mbox_controller_unregister(struct rt_mbox_controller *ctrl);
A Dnvme.h872 struct rt_nvme_controller *ctrl; member
/components/drivers/nvme/
A Dnvme.c281 struct rt_nvme_controller *nvme = ndev->ctrl; in nvme_blk_rw()
1086 ndev->ctrl = nvme; in nvme_scan_device()
1134 struct rt_nvme_id_ctrl *ctrl = RT_NULL; in rt_nvme_controller_register() local
1172 if (!(ctrl = rt_malloc_align(sizeof(*ctrl), nvme->page_size))) in rt_nvme_controller_register()
1183 if (ctrl->mdts) in rt_nvme_controller_register()
1192 nvme->volatile_write_cache = ctrl->vwc; in rt_nvme_controller_register()
1204 strip_len(ctrl->mn, sizeof(ctrl->mn)), ctrl->mn, in rt_nvme_controller_register()
1205 strip_len(ctrl->fr, sizeof(ctrl->fr)), ctrl->fr); in rt_nvme_controller_register()
1213 rt_free_align(ctrl); in rt_nvme_controller_register()
1222 if (ctrl) in rt_nvme_controller_register()
[all …]
/components/drivers/sdio/sdhci/
A Dsdhci.c128 rt_uint8_t ctrl; in rt_sdhci_set_bus_width() local
133 ctrl &= ~RT_SDHCI_CTRL_4BITBUS; in rt_sdhci_set_bus_width()
134 ctrl |= RT_SDHCI_CTRL_8BITBUS; in rt_sdhci_set_bus_width()
437 rt_uint8_t ctrl; in sdhci_config_dma() local
445 ctrl &= ~RT_SDHCI_CTRL_DMA_MASK; in sdhci_config_dma()
828 rt_uint16_t ctrl; in rt_sdhci_start_signal_voltage_switch() local
872 ctrl |= RT_SDHCI_CTRL_VDD_180; in rt_sdhci_start_signal_voltage_switch()
2138 rt_uint16_t ctrl; in __sdhci_execute_tuning() local
2168 rt_uint16_t ctrl; in rt_sdhci_start_tuning() local
2236 rt_uint16_t ctrl; in rt_sdhci_reset_tuning() local
[all …]
/components/drivers/virtio/
A Dvirtio_console.c46 struct virtio_console_control *ctrl) in virtio_console_send_ctrl() argument
60 rt_memcpy(&virtio_console_dev->info[id].tx_ctrl, ctrl, sizeof(struct virtio_console_control)); in virtio_console_send_ctrl()
534 struct virtio_console_control *ctrl, set_ctrl; in virtio_console_isr() local
560 ctrl = &virtio_console_dev->info[id].rx_ctrl; in virtio_console_isr()
562 switch (ctrl->event) in virtio_console_isr()
566 set_ctrl.id = ctrl->id; in virtio_console_isr()
587 set_ctrl.id = ctrl->id; in virtio_console_isr()
606 dev_name, ctrl->id, ctrl->event, ctrl->value); in virtio_console_isr()
/components/drivers/usb/cherryusb/port/ohci/
A Dusb_ohci_reg.h411 volatile uint32_t ctrl; /* ED status/control bits */ member
421 volatile uint32_t ctrl; /* TD status/control bits */ member
431 volatile uint32_t ctrl; /* TD status/control bits */ member
/components/dfs/dfs_v1/filesystems/elmfat/
A Ddfs_elm.c934 DRESULT disk_ioctl(BYTE drv, BYTE ctrl, void *buff) in disk_ioctl() argument
941 if (ctrl == GET_SECTOR_COUNT) in disk_ioctl()
952 else if (ctrl == GET_SECTOR_SIZE) in disk_ioctl()
961 else if (ctrl == GET_BLOCK_SIZE) /* Get erase block size in unit of sectors (DWORD) */ in disk_ioctl()
970 else if (ctrl == CTRL_SYNC) in disk_ioctl()
974 else if (ctrl == CTRL_TRIM) in disk_ioctl()
/components/dfs/dfs_v2/filesystems/elmfat/
A Ddfs_elm.c1160 DRESULT disk_ioctl(BYTE drv, BYTE ctrl, void *buff) in disk_ioctl() argument
1167 if (ctrl == GET_SECTOR_COUNT) in disk_ioctl()
1178 else if (ctrl == GET_SECTOR_SIZE) in disk_ioctl()
1187 else if (ctrl == GET_BLOCK_SIZE) /* Get erase block size in unit of sectors (DWORD) */ in disk_ioctl()
1196 else if (ctrl == CTRL_SYNC) in disk_ioctl()
1200 else if (ctrl == CTRL_TRIM) in disk_ioctl()
/components/drivers/usb/cherryusb/port/rp2040/
A Dusb_hc_rp2040.c316 …g_rp2040_hcd[bus->hcd.hcd_id].pipe_pool[i].endpoint_control = &usbh_dpram->int_ep_ctrl[i - 1].ctrl; in usb_hc_init()
317 …040_hcd[bus->hcd.hcd_id].pipe_pool[i].buffer_control = &usbh_dpram->int_ep_buffer_ctrl[i - 1].ctrl; in usb_hc_init()

Completed in 81 milliseconds