| /drivers/usb/dwc3/ |
| A D | core.c | 303 struct dwc3 *dwc = dep->dwc; in dwc3_core_fifo_space() local 497 evt->dwc = dwc; in dwc3_alloc_one_event_buffer() 1073 if (dwc->disable_scramble_quirk && dwc->is_fpga) in dwc3_core_setup_global_control() 1736 dwc->sysdev = dwc->dev->parent; in dwc3_get_properties() 1738 dwc->sysdev = dwc->dev; in dwc3_get_properties() 2137 dwc->num_usb2_ports, dwc->num_usb3_ports); in dwc3_get_num_ports() 2167 struct dwc3 *dwc = data->dwc; in dwc3_core_probe() local 2210 dwc->usb_psy = dwc3_get_usb_power_supply(dwc); in dwc3_core_probe() 2282 dwc->edev = dwc3_get_extcon(dwc); in dwc3_core_probe() 2355 probe_data.dwc = dwc; in dwc3_probe() [all …]
|
| A D | drd.c | 56 spin_lock(&dwc->lock); in dwc3_otg_thread_irq() 351 if (dwc->desired_otg_role == dwc->current_otg_role) in dwc3_otg_update() 374 dwc->current_otg_role = dwc->desired_otg_role; in dwc3_otg_update() 405 if (dwc->usb2_phy) in dwc3_otg_update() 422 if (dwc->edev) { in dwc3_drd_update() 517 dwc->role_sw = usb_role_switch_register(dwc->dev, &dwc3_role_switch); in dwc3_setup_role_switch() 548 if (dwc->edev) { in dwc3_drd_init() 594 if (dwc->role_sw) in dwc3_drd_exit() 597 if (dwc->edev) in dwc3_drd_exit() 623 if (dwc->otg_irq) in dwc3_drd_exit() [all …]
|
| A D | ep0.c | 42 dwc = dep->dwc; in dwc3_ep0_prepare_one_trb() 74 dwc = dep->dwc; in dwc3_ep0_start_trans() 92 struct dwc3 *dwc = dep->dwc; in __dwc3_gadget_ep0_queue() local 195 struct dwc3 *dwc = dep->dwc; in dwc3_gadget_ep0_queue() local 258 struct dwc3 *dwc = dep->dwc; in __dwc3_gadget_ep0_set_halt() local 268 struct dwc3 *dwc = dep->dwc; in dwc3_gadget_ep0_set_halt() local 398 dwc->ep0_usb_req.request.buf = dwc->setup_buf; in dwc3_ep0_handle_status() 696 struct dwc3 *dwc = dep->dwc; in dwc3_ep0_set_sel_cmpl() local 830 if (!dwc->gadget_driver || !dwc->softconnect || !dwc->connected) in dwc3_ep0_inspect_setup() 1069 struct dwc3 *dwc = dep->dwc; in dwc3_ep0_start_control_status() local [all …]
|
| A D | gadget.c | 196 struct dwc3 *dwc = dep->dwc; in dwc3_gadget_del_and_unmap_request() local 229 struct dwc3 *dwc = dep->dwc; in dwc3_gadget_giveback() local 309 struct dwc3 *dwc = dep->dwc; in dwc3_send_gadget_ep_cmd() local 453 struct dwc3 *dwc = dep->dwc; in dwc3_send_clear_stall_ep_cmd() local 485 struct dwc3 *dwc = dep->dwc; in dwc3_alloc_trb_pool() local 504 struct dwc3 *dwc = dep->dwc; in dwc3_free_trb_pool() local 581 struct dwc3 *dwc = dep->dwc; in dwc3_gadget_set_ep_config() local 797 struct dwc3 *dwc = dep->dwc; in dwc3_gadget_resize_tx_fifos() local 1136 dwc = dep->dwc; in dwc3_gadget_ep_enable() 1163 dwc = dep->dwc; in dwc3_gadget_ep_disable() [all …]
|
| A D | debugfs.c | 689 struct dwc3 *dwc = dep->dwc; in dwc3_tx_fifo_size_show() local 718 struct dwc3 *dwc = dep->dwc; in dwc3_rx_fifo_size_show() local 747 struct dwc3 *dwc = dep->dwc; in dwc3_tx_request_queue_show() local 769 struct dwc3 *dwc = dep->dwc; in dwc3_rx_request_queue_show() local 791 struct dwc3 *dwc = dep->dwc; in dwc3_rx_info_queue_show() local 813 struct dwc3 *dwc = dep->dwc; in dwc3_descriptor_fetch_queue_show() local 835 struct dwc3 *dwc = dep->dwc; in dwc3_event_queue_show() local 857 struct dwc3 *dwc = dep->dwc; in dwc3_transfer_type_show() local 892 struct dwc3 *dwc = dep->dwc; in dwc3_trb_ring_show() local 937 struct dwc3 *dwc = dep->dwc; in dwc3_ep_info_register_show() local [all …]
|
| A D | host.c | 39 if (dwc->xhci_resources[0].start) { in dwc3_power_off_all_roothub_ports() 66 struct dwc3 *dwc; in dwc3_xhci_plat_start() local 74 dwc3_enable_susphy(dwc, true); in dwc3_xhci_plat_start() 140 irq = dwc3_host_get_irq(dwc); in dwc3_host_init() 150 xhci->dev.parent = dwc->dev; in dwc3_host_init() 152 dwc->xhci = xhci; in dwc3_host_init() 167 if (dwc->usb3_lpm_capable) in dwc3_host_init() 170 if (dwc->usb2_lpm_disable) in dwc3_host_init() 207 if (dwc->sys_wakeup) { in dwc3_host_init() 223 if (dwc->sys_wakeup) in dwc3_host_exit() [all …]
|
| A D | ulpi.c | 53 struct dwc3 *dwc = dev_get_drvdata(dev); in dwc3_ulpi_read() local 60 ret = dwc3_ulpi_busyloop(dwc, addr, true); in dwc3_ulpi_read() 71 struct dwc3 *dwc = dev_get_drvdata(dev); in dwc3_ulpi_write() local 86 int dwc3_ulpi_init(struct dwc3 *dwc) in dwc3_ulpi_init() argument 89 dwc->ulpi = ulpi_register_interface(dwc->dev, &dwc3_ulpi_ops); in dwc3_ulpi_init() 90 if (IS_ERR(dwc->ulpi)) { in dwc3_ulpi_init() 92 return PTR_ERR(dwc->ulpi); in dwc3_ulpi_init() 98 void dwc3_ulpi_exit(struct dwc3 *dwc) in dwc3_ulpi_exit() argument 100 if (dwc->ulpi) { in dwc3_ulpi_exit() 101 ulpi_unregister_interface(dwc->ulpi); in dwc3_ulpi_exit() [all …]
|
| A D | dwc3-pci.c | 233 dwc->has_dsm_for_pm = true; in dwc3_pci_quirks() 331 struct dwc3_pci *dwc; in dwc3_pci_probe() local 344 dwc = devm_kzalloc(dev, sizeof(*dwc), GFP_KERNEL); in dwc3_pci_probe() 345 if (!dwc) in dwc3_pci_probe() 349 if (!dwc->dwc3) in dwc3_pci_probe() 369 dwc->pci = pci; in dwc3_pci_probe() 370 dwc->dwc3->dev.parent = dev; in dwc3_pci_probe() 384 pci_set_drvdata(pci, dwc); in dwc3_pci_probe() 393 platform_device_put(dwc->dwc3); in dwc3_pci_probe() 466 if (!dwc->has_dsm_for_pm) in dwc3_pci_dsm() [all …]
|
| A 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() 61 if (!dwc->dwc3) in dwc3_haps_probe() 81 dwc->pci = pci; in dwc3_haps_probe() 82 dwc->dwc3->dev.parent = dev; in dwc3_haps_probe() 88 ret = platform_device_add(dwc->dwc3); in dwc3_haps_probe() 94 pci_set_drvdata(pci, dwc); in dwc3_haps_probe() 98 device_remove_software_node(&dwc->dwc3->dev); in dwc3_haps_probe() 99 platform_device_put(dwc->dwc3); in dwc3_haps_probe() [all …]
|
| A D | core.h | 706 struct dwc3 *dwc; member 756 struct dwc3 *dwc; member 1572 (dwc->ip == _ip##_IP) 1609 bool dwc3_has_imod(struct dwc3 *dwc); 1618 int dwc3_host_init(struct dwc3 *dwc); 1619 void dwc3_host_exit(struct dwc3 *dwc); 1663 int dwc3_drd_init(struct dwc3 *dwc); 1664 void dwc3_drd_exit(struct dwc3 *dwc); 1665 void dwc3_otg_init(struct dwc3 *dwc); 1666 void dwc3_otg_exit(struct dwc3 *dwc); [all …]
|
| A D | glue.h | 20 struct dwc3 *dwc; member 26 void dwc3_core_remove(struct dwc3 *dwc); 28 int dwc3_runtime_suspend(struct dwc3 *dwc); 29 int dwc3_runtime_resume(struct dwc3 *dwc); 30 int dwc3_runtime_idle(struct dwc3 *dwc); 31 int dwc3_pm_suspend(struct dwc3 *dwc); 32 int dwc3_pm_resume(struct dwc3 *dwc); 33 void dwc3_pm_complete(struct dwc3 *dwc); 34 int dwc3_pm_prepare(struct dwc3 *dwc);
|
| A D | dwc3-qcom.c | 75 struct dwc3 dwc; member 312 return qcom->dwc.xhci; in dwc3_qcom_is_host() 319 struct dwc3 *dwc = &qcom->dwc; in dwc3_qcom_read_usb2_speed() local 489 struct dwc3 *dwc = &qcom->dwc; in qcom_dwc3_resume_irq() local 720 qcom->dwc.dev = dev; in dwc3_qcom_probe() 721 probe_data.dwc = &qcom->dwc; in dwc3_qcom_probe() 755 dwc3_core_remove(&qcom->dwc); in dwc3_qcom_probe() 767 dwc3_core_remove(&qcom->dwc); in dwc3_qcom_remove() 807 ret = dwc3_pm_resume(&qcom->dwc); in dwc3_qcom_pm_resume() 818 dwc3_pm_complete(dwc); in dwc3_qcom_complete() [all …]
|
| A D | gadget.h | 110 void dwc3_ep0_interrupt(struct dwc3 *dwc, 112 void dwc3_ep0_out_start(struct dwc3 *dwc); 113 void dwc3_ep0_end_control_data(struct dwc3 *dwc, struct dwc3_ep *dep); 114 void dwc3_ep0_stall_and_restart(struct dwc3 *dwc); 120 void dwc3_ep0_send_delayed_status(struct dwc3 *dwc); 122 int dwc3_gadget_start_config(struct dwc3 *dwc, unsigned int resource_index); 147 static inline void dwc3_gadget_dctl_write_safe(struct dwc3 *dwc, u32 value) in dwc3_gadget_dctl_write_safe() argument 150 dwc3_writel(dwc->regs, DWC3_DCTL, value); in dwc3_gadget_dctl_write_safe()
|
| A D | dwc3-rtk.c | 59 struct dwc3 *dwc; member 88 if (!rtk->dwc->role_sw) in switch_dwc3_role() 91 usb_role_switch_set_role(rtk->dwc->role_sw, role); in switch_dwc3_role() 100 if (rtk->dwc && rtk->dwc->role_sw) in dwc3_rtk_get_role() 101 role = usb_role_switch_get_role(rtk->dwc->role_sw); in dwc3_rtk_get_role() 306 rtk->dwc = platform_get_drvdata(dwc3_pdev); in dwc3_rtk_probe_dwc3_core() 307 if (!rtk->dwc) { in dwc3_rtk_probe_dwc3_core() 314 if (dr_mode != rtk->dwc->dr_mode) { in dwc3_rtk_probe_dwc3_core() 316 dr_mode, rtk->dwc->dr_mode); in dwc3_rtk_probe_dwc3_core() 317 dr_mode = rtk->dwc->dr_mode; in dwc3_rtk_probe_dwc3_core() [all …]
|
| A D | dwc3-imx8mp.c | 145 struct dwc3 *dwc = platform_get_drvdata(dwc3_imx->dwc3); in dwc3_imx8mp_interrupt() local 153 if ((dwc->current_dr_role == DWC3_GCTL_PRTCAP_HOST) && dwc->xhci) in dwc3_imx8mp_interrupt() 154 pm_runtime_resume(&dwc->xhci->dev); in dwc3_imx8mp_interrupt() 155 else if (dwc->current_dr_role == DWC3_GCTL_PRTCAP_DEVICE) in dwc3_imx8mp_interrupt() 156 pm_runtime_get(dwc->dev); in dwc3_imx8mp_interrupt() 299 struct dwc3 *dwc = platform_get_drvdata(dwc3_imx->dwc3); in dwc3_imx8mp_resume() local 314 if (dwc->current_dr_role == DWC3_GCTL_PRTCAP_DEVICE) { in dwc3_imx8mp_resume() 315 pm_runtime_mark_last_busy(dwc->dev); in dwc3_imx8mp_resume() 316 pm_runtime_put_autosuspend(dwc->dev); in dwc3_imx8mp_resume()
|
| A D | dwc3-qcom-legacy.c | 306 struct dwc3 *dwc; in dwc3_qcom_is_host() local 311 dwc = platform_get_drvdata(qcom->dwc3); in dwc3_qcom_is_host() 314 if (!dwc) in dwc3_qcom_is_host() 317 return dwc->xhci; in dwc3_qcom_is_host() 322 struct dwc3 *dwc = platform_get_drvdata(qcom->dwc3); in dwc3_qcom_read_usb2_speed() local 329 hcd = platform_get_drvdata(dwc->xhci); in dwc3_qcom_read_usb2_speed() 501 struct dwc3 *dwc = platform_get_drvdata(qcom->dwc3); in qcom_dwc3_resume_irq() local 512 pm_runtime_resume(&dwc->xhci->dev); in qcom_dwc3_resume_irq()
|
| /drivers/dma/dw/ |
| A D | core.c | 168 dwc->tx_node_active = dwc->tx_node_active->next; in dwc_do_single_block() 189 if (dwc->nollp) { in dwc_dostart() 191 &dwc->flags); in dwc_dostart() 209 dwc_initialize(dwc); in dwc_dostart() 224 list_move(dwc->queue.next, &dwc->active_list); in dwc_dostart_first_queued() 438 list_move(dwc->queue.next, dwc->active_list.prev); in dwc_handle_error() 443 dwc_dostart(dwc, dwc_first_active(dwc)); in dwc_handle_error() 787 clamp(dwc->dma_sconfig.src_maxburst, 1U, dwc->max_burst); in dwc_verify_maxburst() 789 clamp(dwc->dma_sconfig.dst_maxburst, 1U, dwc->max_burst); in dwc_verify_maxburst() 1145 if (dwc->nollp) in dwc_caps() [all …]
|
| A D | idma32.c | 58 value |= dwc->chan.chan_id; in idma32_initialize_chan_xbar() 69 switch (dwc->direction) { in idma32_initialize_chan_xbar() 97 switch (dwc->direction) { in idma32_initialize_chan_xbar() 112 switch (dwc->direction) { in idma32_initialize_chan_xbar() 114 dst_id = dwc->chan.chan_id; in idma32_initialize_chan_xbar() 115 src_id = dwc->dws.src_id; in idma32_initialize_chan_xbar() 118 dst_id = dwc->dws.dst_id; in idma32_initialize_chan_xbar() 119 src_id = dwc->chan.chan_id; in idma32_initialize_chan_xbar() 186 if (bytes > dwc->block_size) { in idma32_bytes2block() 187 block = dwc->block_size; in idma32_bytes2block() [all …]
|
| A D | dw.c | 19 bool hs_polarity = dwc->dws.hs_polarity; in dw_dma_initialize_chan() 28 channel_writel(dwc, CFG_LO, cfglo); in dw_dma_initialize_chan() 29 channel_writel(dwc, CFG_HI, cfghi); in dw_dma_initialize_chan() 52 block = dwc->block_size; in dw_dma_bytes2block() 53 *len = dwc->block_size << width; in dw_dma_bytes2block() 83 sms = dwc->dws.m_master; in dw_dma_prepare_ctllo() 84 dms = dwc->dws.p_master; in dw_dma_prepare_ctllo() 87 sms = dwc->dws.p_master; in dw_dma_prepare_ctllo() 88 dms = dwc->dws.m_master; in dw_dma_prepare_ctllo() 91 sms = dwc->dws.m_master; in dw_dma_prepare_ctllo() [all …]
|
| A D | regs.h | 298 __dwc_regs(struct dw_dma_chan *dwc) in __dwc_regs() argument 300 return dwc->ch_regs; in __dwc_regs() 303 #define channel_readl(dwc, name) \ argument 304 readl(&(__dwc_regs(dwc)->name)) 305 #define channel_writel(dwc, name, val) \ argument 306 writel((val), &(__dwc_regs(dwc)->name)) 326 void (*initialize_chan)(struct dw_dma_chan *dwc); 327 void (*suspend_chan)(struct dw_dma_chan *dwc, bool drain); 328 void (*resume_chan)(struct dw_dma_chan *dwc, bool drain); 329 u32 (*prepare_ctllo)(struct dw_dma_chan *dwc); [all …]
|
| /drivers/pwm/ |
| A D | pwm-dwc-core.c | 28 reg = dwc_pwm_readl(dwc, DWC_TIM_CTRL(pwm)); in __dwc_pwm_set_enable() 35 dwc_pwm_writel(dwc, reg, DWC_TIM_CTRL(pwm)); in __dwc_pwm_set_enable() 58 dwc->clk_ns); in __dwc_pwm_configure_timer() 101 struct dwc_pwm *dwc = to_dwc_pwm(chip); in dwc_pwm_apply() local 123 struct dwc_pwm *dwc = to_dwc_pwm(chip); in dwc_pwm_get_state() local 140 duty = (ld + 1) * dwc->clk_ns; in dwc_pwm_get_state() 141 period = (ld2 + 1) * dwc->clk_ns; in dwc_pwm_get_state() 144 duty = (ld + 1) * dwc->clk_ns; in dwc_pwm_get_state() 165 struct dwc_pwm *dwc; in dwc_pwm_alloc() local 170 dwc = to_dwc_pwm(chip); in dwc_pwm_alloc() [all …]
|
| A D | pwm-dwc.c | 37 struct dwc_pwm *dwc; in dwc_pwm_init_one() local 44 dwc = to_dwc_pwm(chip); in dwc_pwm_init_one() 45 dwc->base = ddata->io_base + (ddata->info->size * idx); in dwc_pwm_init_one() 108 struct dwc_pwm *dwc = to_dwc_pwm(chip); in dwc_pwm_suspend() local 117 dwc->ctx[i].cnt = dwc_pwm_readl(dwc, DWC_TIM_LD_CNT(i)); in dwc_pwm_suspend() 118 dwc->ctx[i].cnt2 = dwc_pwm_readl(dwc, DWC_TIM_LD_CNT2(i)); in dwc_pwm_suspend() 119 dwc->ctx[i].ctrl = dwc_pwm_readl(dwc, DWC_TIM_CTRL(i)); in dwc_pwm_suspend() 133 struct dwc_pwm *dwc = to_dwc_pwm(chip); in dwc_pwm_resume() local 137 dwc_pwm_writel(dwc, dwc->ctx[i].cnt, DWC_TIM_LD_CNT(i)); in dwc_pwm_resume() 138 dwc_pwm_writel(dwc, dwc->ctx[i].cnt2, DWC_TIM_LD_CNT2(i)); in dwc_pwm_resume() [all …]
|
| A D | pwm-dwc.h | 64 static inline u32 dwc_pwm_readl(struct dwc_pwm *dwc, u32 offset) in dwc_pwm_readl() argument 66 return readl(dwc->base + offset); in dwc_pwm_readl() 69 static inline void dwc_pwm_writel(struct dwc_pwm *dwc, u32 value, u32 offset) in dwc_pwm_writel() argument 71 writel(value, dwc->base + offset); in dwc_pwm_writel()
|
| /drivers/net/ethernet/synopsys/ |
| A 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
|
| /drivers/ufs/host/ |
| A 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
|