/Linux-v4.19/drivers/usb/dwc3/ |
D | core.c | 47 static int dwc3_get_dr_mode(struct dwc3 *dwc) in dwc3_get_dr_mode() argument 50 struct device *dev = dwc->dev; in dwc3_get_dr_mode() 53 if (dwc->dr_mode == USB_DR_MODE_UNKNOWN) in dwc3_get_dr_mode() 54 dwc->dr_mode = USB_DR_MODE_OTG; in dwc3_get_dr_mode() 56 mode = dwc->dr_mode; in dwc3_get_dr_mode() 57 hw_mode = DWC3_GHWPARAMS0_MODE(dwc->hwparams.hwparams0); in dwc3_get_dr_mode() 87 if (mode == USB_DR_MODE_OTG && dwc3_is_usb31(dwc)) in dwc3_get_dr_mode() 91 if (mode != dwc->dr_mode) { in dwc3_get_dr_mode() 96 dwc->dr_mode = mode; in dwc3_get_dr_mode() 102 void dwc3_set_prtcap(struct dwc3 *dwc, u32 mode) in dwc3_set_prtcap() argument [all …]
|
D | drd.c | 18 static void dwc3_otg_disable_events(struct dwc3 *dwc, u32 disable_mask) in dwc3_otg_disable_events() argument 20 u32 reg = dwc3_readl(dwc->regs, DWC3_OEVTEN); in dwc3_otg_disable_events() 23 dwc3_writel(dwc->regs, DWC3_OEVTEN, reg); in dwc3_otg_disable_events() 26 static void dwc3_otg_enable_events(struct dwc3 *dwc, u32 enable_mask) in dwc3_otg_enable_events() argument 28 u32 reg = dwc3_readl(dwc->regs, DWC3_OEVTEN); in dwc3_otg_enable_events() 31 dwc3_writel(dwc->regs, DWC3_OEVTEN, reg); in dwc3_otg_enable_events() 34 static void dwc3_otg_clear_events(struct dwc3 *dwc) in dwc3_otg_clear_events() argument 36 u32 reg = dwc3_readl(dwc->regs, DWC3_OEVT); in dwc3_otg_clear_events() 38 dwc3_writel(dwc->regs, DWC3_OEVTEN, reg); in dwc3_otg_clear_events() 53 struct dwc3 *dwc = _dwc; in dwc3_otg_thread_irq() local [all …]
|
D | ep0.c | 30 static void __dwc3_ep0_do_control_status(struct dwc3 *dwc, struct dwc3_ep *dep); 31 static void __dwc3_ep0_do_control_data(struct dwc3 *dwc, 38 struct dwc3 *dwc; in dwc3_ep0_prepare_one_trb() local 40 dwc = dep->dwc; in dwc3_ep0_prepare_one_trb() 41 trb = &dwc->ep0_trb[dep->trb_enqueue]; in dwc3_ep0_prepare_one_trb() 66 struct dwc3 *dwc; in dwc3_ep0_start_trans() local 72 dwc = dep->dwc; in dwc3_ep0_start_trans() 75 params.param0 = upper_32_bits(dwc->ep0_trb_addr); in dwc3_ep0_start_trans() 76 params.param1 = lower_32_bits(dwc->ep0_trb_addr); in dwc3_ep0_start_trans() 82 dwc->ep0_next_event = DWC3_EP0_COMPLETE; in dwc3_ep0_start_trans() [all …]
|
D | gadget.c | 41 int dwc3_gadget_set_test_mode(struct dwc3 *dwc, int mode) in dwc3_gadget_set_test_mode() argument 45 reg = dwc3_readl(dwc->regs, DWC3_DCTL); in dwc3_gadget_set_test_mode() 60 dwc3_writel(dwc->regs, DWC3_DCTL, reg); in dwc3_gadget_set_test_mode() 72 int dwc3_gadget_get_link_state(struct dwc3 *dwc) in dwc3_gadget_get_link_state() argument 76 reg = dwc3_readl(dwc->regs, DWC3_DSTS); in dwc3_gadget_get_link_state() 89 int dwc3_gadget_set_link_state(struct dwc3 *dwc, enum dwc3_link_state state) in dwc3_gadget_set_link_state() argument 98 if (dwc->revision >= DWC3_REVISION_194A) { in dwc3_gadget_set_link_state() 100 reg = dwc3_readl(dwc->regs, DWC3_DSTS); in dwc3_gadget_set_link_state() 111 reg = dwc3_readl(dwc->regs, DWC3_DCTL); in dwc3_gadget_set_link_state() 116 dwc3_writel(dwc->regs, DWC3_DCTL, reg); in dwc3_gadget_set_link_state() [all …]
|
D | host.c | 14 static int dwc3_host_get_irq(struct dwc3 *dwc) in dwc3_host_get_irq() argument 16 struct platform_device *dwc3_pdev = to_platform_device(dwc->dev); in dwc3_host_get_irq() 38 dev_err(dwc->dev, "missing host IRQ\n"); in dwc3_host_get_irq() 47 int dwc3_host_init(struct dwc3 *dwc) in dwc3_host_init() argument 53 struct platform_device *dwc3_pdev = to_platform_device(dwc->dev); in dwc3_host_init() 56 irq = dwc3_host_get_irq(dwc); in dwc3_host_init() 69 dwc->xhci_resources[1].start = irq; in dwc3_host_init() 70 dwc->xhci_resources[1].end = irq; in dwc3_host_init() 71 dwc->xhci_resources[1].flags = res->flags; in dwc3_host_init() 72 dwc->xhci_resources[1].name = res->name; in dwc3_host_init() [all …]
|
D | ulpi.c | 20 static int dwc3_ulpi_busyloop(struct dwc3 *dwc) in dwc3_ulpi_busyloop() argument 26 reg = dwc3_readl(dwc->regs, DWC3_GUSB2PHYACC(0)); in dwc3_ulpi_busyloop() 37 struct dwc3 *dwc = dev_get_drvdata(dev); in dwc3_ulpi_read() local 41 reg = dwc3_readl(dwc->regs, DWC3_GUSB2PHYCFG(0)); in dwc3_ulpi_read() 44 dwc3_writel(dwc->regs, DWC3_GUSB2PHYCFG(0), reg); in dwc3_ulpi_read() 48 dwc3_writel(dwc->regs, DWC3_GUSB2PHYACC(0), reg); in dwc3_ulpi_read() 50 ret = dwc3_ulpi_busyloop(dwc); in dwc3_ulpi_read() 54 reg = dwc3_readl(dwc->regs, DWC3_GUSB2PHYACC(0)); in dwc3_ulpi_read() 61 struct dwc3 *dwc = dev_get_drvdata(dev); in dwc3_ulpi_write() local 64 reg = dwc3_readl(dwc->regs, DWC3_GUSB2PHYCFG(0)); in dwc3_ulpi_write() [all …]
|
D | debugfs.c | 284 struct dwc3 *dwc = s->private; in dwc3_mode_show() local 288 spin_lock_irqsave(&dwc->lock, flags); in dwc3_mode_show() 289 reg = dwc3_readl(dwc->regs, DWC3_GCTL); in dwc3_mode_show() 290 spin_unlock_irqrestore(&dwc->lock, flags); in dwc3_mode_show() 318 struct dwc3 *dwc = s->private; in dwc3_mode_write() local 334 dwc3_set_mode(dwc, mode); in dwc3_mode_write() 349 struct dwc3 *dwc = s->private; in dwc3_testmode_show() local 353 spin_lock_irqsave(&dwc->lock, flags); in dwc3_testmode_show() 354 reg = dwc3_readl(dwc->regs, DWC3_DCTL); in dwc3_testmode_show() 357 spin_unlock_irqrestore(&dwc->lock, flags); in dwc3_testmode_show() [all …]
|
D | dwc3-pci.c | 136 static int dwc3_pci_quirks(struct dwc3_pci *dwc) in dwc3_pci_quirks() argument 138 struct pci_dev *pdev = dwc->pci; in dwc3_pci_quirks() 143 guid_parse(PCI_INTEL_BXT_DSM_GUID, &dwc->guid); in dwc3_pci_quirks() 144 dwc->has_dsm_for_pm = true; in dwc3_pci_quirks() 198 struct dwc3_pci *dwc = container_of(work, struct dwc3_pci, wakeup_work); in dwc3_pci_resume_work() local 199 struct platform_device *dwc3 = dwc->dwc3; in dwc3_pci_resume_work() 214 struct dwc3_pci *dwc; in dwc3_pci_probe() local 227 dwc = devm_kzalloc(dev, sizeof(*dwc), GFP_KERNEL); in dwc3_pci_probe() 228 if (!dwc) in dwc3_pci_probe() 231 dwc->dwc3 = platform_device_alloc("dwc3", PLATFORM_DEVID_AUTO); in dwc3_pci_probe() [all …]
|
D | dwc3-haps.c | 43 struct dwc3_haps *dwc; in dwc3_haps_probe() local 56 dwc = devm_kzalloc(dev, sizeof(*dwc), GFP_KERNEL); in dwc3_haps_probe() 57 if (!dwc) in dwc3_haps_probe() 60 dwc->dwc3 = platform_device_alloc("dwc3", PLATFORM_DEVID_AUTO); in dwc3_haps_probe() 61 if (!dwc->dwc3) in dwc3_haps_probe() 75 ret = platform_device_add_resources(dwc->dwc3, res, ARRAY_SIZE(res)); in dwc3_haps_probe() 81 dwc->pci = pci; in dwc3_haps_probe() 82 dwc->dwc3->dev.parent = dev; in dwc3_haps_probe() 84 ret = platform_device_add_properties(dwc->dwc3, initial_properties); in dwc3_haps_probe() 88 ret = platform_device_add(dwc->dwc3); in dwc3_haps_probe() [all …]
|
D | core.h | 625 struct dwc3 *dwc; member 672 struct dwc3 *dwc; member 1332 void dwc3_set_prtcap(struct dwc3 *dwc, u32 mode); 1333 void dwc3_set_mode(struct dwc3 *dwc, u32 mode); 1337 static inline bool dwc3_is_usb3(struct dwc3 *dwc) in dwc3_is_usb3() argument 1339 return !(dwc->revision & DWC3_REVISION_IS_DWC31); in dwc3_is_usb3() 1343 static inline bool dwc3_is_usb31(struct dwc3 *dwc) in dwc3_is_usb31() argument 1345 return !!(dwc->revision & DWC3_REVISION_IS_DWC31); in dwc3_is_usb31() 1348 bool dwc3_has_imod(struct dwc3 *dwc); 1350 int dwc3_event_buffers_setup(struct dwc3 *dwc); [all …]
|
D | gadget.h | 85 void dwc3_ep0_interrupt(struct dwc3 *dwc, 87 void dwc3_ep0_out_start(struct dwc3 *dwc);
|
D | trace.h | 50 TP_PROTO(u32 event, struct dwc3 *dwc), 51 TP_ARGS(event, dwc), 59 __entry->ep0state = dwc->ep0state; 67 TP_PROTO(u32 event, struct dwc3 *dwc), 68 TP_ARGS(event, dwc)
|
D | dwc3-qcom.c | 274 struct dwc3 *dwc = platform_get_drvdata(qcom->dwc3); in qcom_dwc3_resume_irq() local 280 if (dwc->xhci) in qcom_dwc3_resume_irq() 281 pm_runtime_resume(&dwc->xhci->dev); in qcom_dwc3_resume_irq()
|
/Linux-v4.19/drivers/dma/dw/ |
D | core.c | 75 static struct dw_desc *dwc_first_active(struct dw_dma_chan *dwc) in dwc_first_active() argument 77 return to_dw_desc(dwc->active_list.next); in dwc_first_active() 83 struct dw_dma_chan *dwc = to_dw_dma_chan(tx->chan); in dwc_tx_submit() local 87 spin_lock_irqsave(&dwc->lock, flags); in dwc_tx_submit() 96 list_add_tail(&desc->desc_node, &dwc->queue); in dwc_tx_submit() 97 spin_unlock_irqrestore(&dwc->lock, flags); in dwc_tx_submit() 104 static struct dw_desc *dwc_desc_get(struct dw_dma_chan *dwc) in dwc_desc_get() argument 106 struct dw_dma *dw = to_dw_dma(dwc->chan.device); in dwc_desc_get() 114 dwc->descs_allocated++; in dwc_desc_get() 116 dma_async_tx_descriptor_init(&desc->txd, &dwc->chan); in dwc_desc_get() [all …]
|
D | regs.h | 284 __dwc_regs(struct dw_dma_chan *dwc) in __dwc_regs() argument 286 return dwc->ch_regs; in __dwc_regs() 289 #define channel_readl(dwc, name) \ argument 290 readl(&(__dwc_regs(dwc)->name)) 291 #define channel_writel(dwc, name, val) \ argument 292 writel((val), &(__dwc_regs(dwc)->name))
|
/Linux-v4.19/drivers/net/ethernet/synopsys/ |
D | Makefile | 6 obj-$(CONFIG_DWC_XLGMAC) += dwc-xlgmac.o 7 dwc-xlgmac-objs := dwc-xlgmac-net.o dwc-xlgmac-desc.o \ 8 dwc-xlgmac-hw.o dwc-xlgmac-common.o \ 9 dwc-xlgmac-ethtool.o 11 dwc-xlgmac-$(CONFIG_DWC_XLGMAC_PCI) += dwc-xlgmac-pci.o
|
D | Kconfig | 25 Ethernet (dwc-xlgmac). 33 This selects the pci bus support for the dwc-xlgmac driver.
|
/Linux-v4.19/drivers/scsi/ufs/ |
D | Makefile | 3 obj-$(CONFIG_SCSI_UFS_DWC_TC_PCI) += tc-dwc-g210-pci.o ufshcd-dwc.o tc-dwc-g210.o 4 obj-$(CONFIG_SCSI_UFS_DWC_TC_PLATFORM) += tc-dwc-g210-pltfrm.o ufshcd-dwc.o tc-dwc-g210.o
|
/Linux-v4.19/Documentation/devicetree/bindings/ufs/ |
D | tc-dwc-g210-pltfrm.txt | 11 "snps,dwc-ufshcd-1.40a" 20 dwc-ufs@d0000000 { 22 "snps,dwc-ufshcd-1.40a",
|
/Linux-v4.19/Documentation/devicetree/bindings/net/ |
D | snps,dwc-qos-ethernet.txt | 14 - "axis,artpec6-eqos", "snps,dwc-qos-ethernet-4.10" 16 - "nvidia,tegra186-eqos", "snps,dwc-qos-ethernet-4.10" 18 - "snps,dwc-qos-ethernet-4.10" 20 "axis,artpec6-eqos", "snps,dwc-qos-ethernet-4.10". It is supported to be 72 - "nvidia,tegra186-eqos", "snps,dwc-qos-ethernet-4.10": 78 - "axis,artpec6-eqos", "snps,dwc-qos-ethernet-4.10": 83 - "snps,dwc-qos-ethernet-4.10" (deprecated): 97 - "nvidia,tegra186-eqos", "snps,dwc-qos-ethernet-4.10": 99 - "axis,artpec6-eqos", "snps,dwc-qos-ethernet-4.10": 101 - "snps,dwc-qos-ethernet-4.10" (deprecated): [all …]
|
/Linux-v4.19/sound/soc/dwc/ |
D | Makefile | 4 designware_i2s-y := dwc-i2s.o 5 designware_i2s-$(CONFIG_SND_DESIGNWARE_PCM) += dwc-pcm.o
|
/Linux-v4.19/fs/ocfs2/ |
D | aops.c | 2108 struct ocfs2_dio_write_ctxt *dwc = NULL; in ocfs2_dio_alloc_write_ctx() local 2113 dwc = kmalloc(sizeof(struct ocfs2_dio_write_ctxt), GFP_NOFS); in ocfs2_dio_alloc_write_ctx() 2114 if (dwc == NULL) in ocfs2_dio_alloc_write_ctx() 2116 INIT_LIST_HEAD(&dwc->dw_zero_list); in ocfs2_dio_alloc_write_ctx() 2117 dwc->dw_zero_count = 0; in ocfs2_dio_alloc_write_ctx() 2118 dwc->dw_orphaned = 0; in ocfs2_dio_alloc_write_ctx() 2119 dwc->dw_writer_pid = task_pid_nr(current); in ocfs2_dio_alloc_write_ctx() 2120 bh->b_private = dwc; in ocfs2_dio_alloc_write_ctx() 2123 return dwc; in ocfs2_dio_alloc_write_ctx() 2127 struct ocfs2_dio_write_ctxt *dwc) in ocfs2_dio_free_write_ctx() argument [all …]
|
/Linux-v4.19/Documentation/devicetree/bindings/ata/ |
D | exynos-sata.txt | 22 compatible = "snps,dwc-ahci";
|
/Linux-v4.19/drivers/net/ethernet/stmicro/stmmac/ |
D | Makefile | 24 obj-$(CONFIG_DWMAC_DWC_QOS_ETH) += dwmac-dwc-qos-eth.o
|
/Linux-v4.19/arch/arm64/boot/dts/amd/ |
D | amd-seattle-soc.dtsi | 69 compatible = "snps,dwc-ahci"; 79 compatible = "snps,dwc-ahci";
|