Lines Matching +full:in +full:- +full:masks
1 // SPDX-License-Identifier: GPL-2.0+
46 u32 otgsc; /* On-The-Go Status and Control */
83 u32 otgsc; /* On-The-Go Status and Control */
93 /* non-EHCI USB system interface registers (Big Endian) */
115 /* Frame Index Register Bit Masks */
117 /* USB CMD Register Bit Masks */
139 /* bit 9-8 are async schedule park mode count */
146 /* bit 23-16 are interrupt threshold control */
157 /* USB STS Register Bit Masks */
172 /* USB INTR Register Bit Masks */
183 /* Device Address bit masks */
187 /* endpoint list address bit masks */
190 /* PORTSCX Register Bit Masks */
213 /* bit 11-10 are line status */
220 /* bit 15-14 are port indicator control */
227 /* bit 19-16 are port test control */
236 /* bit 27-26 are port speed */
248 /* bit 31-30 are port transceiver select */
254 /* otgsc Register Bit Masks */
281 /* USB MODE Register Bit Masks */
294 /* Endpoint Setup Status bit masks */
298 /* ENDPOINTCTRLx Register Bit Masks */
312 /* bit 19-18 and 3-2 are endpoint type */
320 /* SNOOPn Register Bit Masks */
344 /* pri_ctrl Register Bit Masks */
348 /* si_ctrl Register Bit Masks */
355 /* control Register Bit Masks */
367 u32 max_pkt_length; /* Mult(31-30) , Zlt(29) , Max Pkt len
369 u32 curr_dtd_ptr; /* Current dTD Pointer(31-5) */
370 u32 next_dtd_ptr; /* Next dTD Pointer(31-5), T(0) */
371 u32 size_ioc_int_sts; /* Total bytes (30-16), IOC (15),
372 MultO(11-10), STS (7-0) */
373 u32 buff_ptr0; /* Buffer pointer Page 0 (31-12) */
374 u32 buff_ptr1; /* Buffer pointer Page 1 (31-12) */
375 u32 buff_ptr2; /* Buffer pointer Page 2 (31-12) */
376 u32 buff_ptr3; /* Buffer pointer Page 3 (31-12) */
377 u32 buff_ptr4; /* Buffer pointer Page 4 (31-12) */
383 /* Endpoint Queue Head Bit Masks */
402 u32 next_td_ptr; /* Next TD pointer(31-5), T(0) set
404 u32 size_ioc_sts; /* Total bytes (30-16), IOC (15),
405 MultO(11-10), STS (7-0) */
414 /* virtual address of next td specified in next_td_ptr */
418 /* Endpoint Transfer Descriptor bit Masks */
439 /*-------------------------------------------------------------------------*/
447 a request->queue into a udc_ep->queue 'd tail */
491 struct ep_queue_head *ep_qh; /* Endpoints Queue-Head */
509 /*-------------------------------------------------------------------------*/
518 #define USB_SEND 1 /* IN EP */
523 #define ep_index(EP) ((EP)->ep.desc->bEndpointAddress&0xF)
524 #define ep_maxpacket(EP) ((EP)->ep.maxpacket)
525 #define ep_is_in(EP) ( (ep_index(EP) == 0) ? (EP->udc->ep0_dir == \
526 USB_DIR_IN) : ((EP)->ep.desc->bEndpointAddress \
528 #define get_ep_by_pipe(udc, pipe) ((pipe == 1)? &udc->eps[0]: \
529 &udc->eps[pipe])
538 return ep->qh; in get_qh_by_ep()
540 return &ep->udc->ep_qh[(ep->udc->ep0_dir == in get_qh_by_ep()