Lines Matching +full:de +full:- +full:asserts
1 /* SPDX-License-Identifier: GPL-2.0 */
3 * core.h - DesignWare USB3 DRD Core Header
5 * Copyright (C) 2010-2011 Texas Instruments Incorporated - https://www.ti.com
8 * Sebastian Andrzej Siewior <bigeasy@linutronix.de>
20 #include <linux/dma-mapping.h>
37 * DWC3 Multiport controllers support up to 15 High-Speed PHYs
197 /* Global SoC Bus Configuration Register: AHB-prot/AXI-cache/OCP-ReqInfo */
683 * struct dwc3_event_buffer - Software event buffer representation
717 * struct dwc3_ep - device side endpoint representation
730 * @number: endpoint number (1 - 15)
735 * @name: a human readable name e.g. ep1out-bulk
779 * anything larger than 256 - I can't see why people would want to do
780 * this though - then this type needs to be changed.
876 * struct dwc3_trb - transfer request block (hw format)
877 * @bpl: DW0-3
878 * @bph: DW4-7
879 * @size: DW8-B
880 * @ctrl: DWC-F
890 * struct dwc3_hwparams - copy of HWPARAMS registers
925 #define DWC3_NUM_EPS(p) (((p)->hwparams3 & \
927 #define DWC3_NUM_IN_EPS(p) (((p)->hwparams3 & \
937 #define DWC3_MST_CAPABLE(p) (!!((p)->hwparams9 & \
941 * struct dwc3_request - representation of a transfer request
954 * @mapped: true when request has been dma-mapped
973 #define DWC3_REQUEST_STATUS_UNKNOWN -1
986 * struct dwc3_scratchpad_array - hibernation scratchpad array
994 * struct dwc3 - representation of our controller
1006 * @sysdev: pointer to the DMA-capable device
1038 * @current_dr_role: current role of operation when in dual-role mode
1039 * @desired_dr_role: desired role of operation when in dual-role mode
1043 * - USBPHY_INTERFACE_MODE_UTMI
1044 * - USBPHY_INTERFACE_MODE_UTMIW
1093 * @is_utmi_l1_suspend: the core asserts output signal
1094 * 0 - utmi_sleep_n
1095 * 1 - utmi_l1_suspend_n
1103 * not needed for DWC_usb31 version 1.70a-ea06 and below
1126 * provide a free-running PHY clock.
1141 * @tx_de_emphasis_quirk: set if we enable Tx de-emphasis quirk
1142 * @tx_de_emphasis: Tx de-emphasis value
1143 * 0 - -6dB de-emphasis
1144 * 1 - -3.5dB de-emphasis
1145 * 2 - No de-emphasis
1146 * 3 - Reserved
1402 /* -------------------------------------------------------------------------- */
1418 * struct dwc3_event_depevt - Device Endpoint Events
1422 * 0x00 - Reserved
1423 * 0x01 - XferComplete
1424 * 0x02 - XferInProgress
1425 * 0x03 - XferNotReady
1426 * 0x04 - RxTxFifoEvt (IN->Underrun, OUT->Overrun)
1427 * 0x05 - Reserved
1428 * 0x06 - StreamEvt
1429 * 0x07 - EPCmdCmplt
1461 /* Control-only Status */
1477 * struct dwc3_event_devt - Device Events
1478 * @one_bit: indicates this is a non-endpoint event (not used)
1481 * 0 - DisconnEvt
1482 * 1 - USBRst
1483 * 2 - ConnectDone
1484 * 3 - ULStChng
1485 * 4 - WkUpEvt
1486 * 5 - Reserved
1487 * 6 - Suspend (EOPF on revisions 2.10a and prior)
1488 * 7 - SOF
1489 * 8 - Reserved
1490 * 9 - ErrticErr
1491 * 10 - CmdCmplt
1492 * 11 - EvntOverflow
1493 * 12 - VndrDevTstRcved
1508 * struct dwc3_event_gevt - Other Core Events
1509 * @one_bit: indicates this is a non-endpoint event (not used)
1511 * @phy_port_number: self-explanatory
1522 * union dwc3_event - representation of Event Buffer contents
1523 * @raw: raw 32-bit event
1538 * struct dwc3_gadget_ep_cmd_params - representation of endpoint command
1564 (dwc->ip == _ip##_IP)
1567 (DWC3_IP_IS(_ip) && dwc->revision == _ip##_REVISION_##_ver)
1570 (DWC3_IP_IS(_ip) && dwc->revision < _ip##_REVISION_##_ver)
1574 dwc->revision >= _ip##_REVISION_##_from && \
1576 dwc->revision <= _ip##_REVISION_##_to))
1580 dwc->version_type >= _ip##_VERSIONTYPE_##_from && \
1582 dwc->version_type <= _ip##_VERSIONTYPE_##_to))
1585 * dwc3_mdwidth - get MDWIDTH value in bits
1594 mdwidth = DWC3_GHWPARAMS0_MDWIDTH(dwc->hwparams.hwparams0); in dwc3_mdwidth()
1596 mdwidth += DWC3_GHWPARAMS6_MDWIDTH(dwc->hwparams.hwparams6); in dwc3_mdwidth()