Lines Matching refs:usb_device
677 DWC3_regwrite(dwc3_handle->usb_device, DWC3_DEPCMDPAR0(phy_epnum), params->param0); in dwc3_execute_dep_cmd()
678 DWC3_regwrite(dwc3_handle->usb_device, DWC3_DEPCMDPAR1(phy_epnum), params->param1); in dwc3_execute_dep_cmd()
679 DWC3_regwrite(dwc3_handle->usb_device, DWC3_DEPCMDPAR2(phy_epnum), params->param2); in dwc3_execute_dep_cmd()
681 DWC3_regwrite(dwc3_handle->usb_device, DWC3_DEPCMD(phy_epnum), cmd | USB3_DEPCMD_CMDACT); in dwc3_execute_dep_cmd()
685 reg = DWC3_regread(dwc3_handle->usb_device, DWC3_DEPCMD(phy_epnum)); in dwc3_execute_dep_cmd()
710 if ((DWC3_regread(dwc3_handle->usb_device, in dwc3_is_ep_enabled()
796 (uint8_t)DWC3_DEPCMD_GET_RSC_IDX(DWC3_regread(dwc3_handle->usb_device, in dwc3_ep_start_xfer()
891 DWC3_regupdateset(dwc3_handle->usb_device, DWC3_DCTL, USB3_DCTL_RUN_STOP); in usb_dwc3_start_device()
1006 DWC3_regupdateclr(dwc3_handle->usb_device, DWC3_DCTL, USB3_DCTL_RUN_STOP); in usb_dwc3_stop_device()
1010 while ((DWC3_regread(dwc3_handle->usb_device, DWC3_DSTS) & in usb_dwc3_stop_device()
1031 DWC3_regupdateclr(dwc3_handle->usb_device, DWC3_DCFG, USB3_DCFG_DEVADDR_MSK); in usb_dwc3_set_address()
1032 DWC3_regupdateset(dwc3_handle->usb_device, DWC3_DCFG, DWC3_DCFG_DEVADDR((uint32_t)address)); in usb_dwc3_set_address()
1543 reg = DWC3_regread(dwc3_handle->usb_device, DWC3_DSTS) & USB3_DSTS_CONNECTSPD; in dwc3_get_dev_speed()
1992 DWC3_regwrite(dwc3_handle->usb_device, DWC3_DCTL, USB3_DCTL_CSFTRST); in dwc3_soft_reset()
1996 while (DWC3_regread(dwc3_handle->usb_device, DWC3_DCTL) & USB3_DCTL_CSFTRST) { in dwc3_soft_reset()
2137 reg = DWC3_regread(dwc3_handle->usb_device, DWC3_DCFG) & ~USB3_DCFG_DEVSPD_MSK; in dwc3_set_dev_speed()
2141 DWC3_regwrite(dwc3_handle->usb_device, DWC3_DCFG, reg | DWC3_DSTS_SUPERSPEED); in dwc3_set_dev_speed()
2145 DWC3_regwrite(dwc3_handle->usb_device, DWC3_DCFG, reg | DWC3_DSTS_HIGHSPEED); in dwc3_set_dev_speed()
2149 DWC3_regwrite(dwc3_handle->usb_device, DWC3_DCFG, reg | DWC3_DSTS_FULLSPEED1); in dwc3_set_dev_speed()
2153 DWC3_regwrite(dwc3_handle->usb_device, DWC3_DCFG, reg | DWC3_DSTS_FULLSPEED2); in dwc3_set_dev_speed()
2157 DWC3_regwrite(dwc3_handle->usb_device, DWC3_DCFG, reg | DWC3_DSTS_LOWSPEED); in dwc3_set_dev_speed()
2272 DWC3_regupdateset(dwc3_handle->usb_device, DWC3_DALEPENA, DWC3_DALEPENA_EP(0) | in dwc3_dev_init()
2279 reg = DWC3_regread(dwc3_handle->usb_device, DWC3_DCFG) & ~USB3_DCFG_INTRNUM_MSK; in dwc3_dev_init()
2280 DWC3_regwrite(dwc3_handle->usb_device, DWC3_DCFG, reg | in dwc3_dev_init()
2284 DWC3_regupdateset(dwc3_handle->usb_device, DWC3_DEVTEN, USB3_DEVTEN_VENDEVTSTRCVDEN | in dwc3_dev_init()
2311 dwc3_handle->usb_device = (usb_dwc3_device_t *) in usb_dwc3_init_driver()