Lines Matching refs:usb3_ep
353 struct renesas_usb3_ep *usb3_ep; member
386 #define usb3_get_ep(usb3, n) ((usb3)->usb3_ep + (n))
387 #define usb3_for_each_ep(usb3_ep, usb3, i) \ argument
388 for ((i) = 0, usb3_ep = usb3_get_ep(usb3, (i)); \
390 (i)++, usb3_ep = usb3_get_ep(usb3, (i)))
944 *usb3_ep) in __usb3_get_request()
946 return list_first_entry_or_null(&usb3_ep->queue, in __usb3_get_request()
951 *usb3_ep) in usb3_get_request()
953 struct renesas_usb3 *usb3 = usb3_ep_to_usb3(usb3_ep); in usb3_get_request()
958 usb3_req = __usb3_get_request(usb3_ep); in usb3_get_request()
964 static void __usb3_request_done(struct renesas_usb3_ep *usb3_ep, in __usb3_request_done() argument
968 struct renesas_usb3 *usb3 = usb3_ep_to_usb3(usb3_ep); in __usb3_request_done()
971 usb3_ep->num, usb3_req->req.length, usb3_req->req.actual, in __usb3_request_done()
974 usb3_ep->started = false; in __usb3_request_done()
977 usb_gadget_giveback_request(&usb3_ep->ep, &usb3_req->req); in __usb3_request_done()
981 static void usb3_request_done(struct renesas_usb3_ep *usb3_ep, in usb3_request_done() argument
984 struct renesas_usb3 *usb3 = usb3_ep_to_usb3(usb3_ep); in usb3_request_done()
988 __usb3_request_done(usb3_ep, usb3_req, status); in usb3_request_done()
994 struct renesas_usb3_ep *usb3_ep = usb3_get_ep(usb3, 0); in usb3_irq_epc_pipe0_status_end() local
995 struct renesas_usb3_request *usb3_req = usb3_get_request(usb3_ep); in usb3_irq_epc_pipe0_status_end()
998 usb3_request_done(usb3_ep, usb3_req, 0); in usb3_irq_epc_pipe0_status_end()
1006 struct renesas_usb3_ep *usb3_ep = usb3_get_ep(usb3, 0); in usb3_get_setup_data() local
1013 usb3_ep->dir_in = !!(ctrl->bRequestType & USB_DIR_IN); in usb3_get_setup_data()
1116 static bool usb3_is_transfer_complete(struct renesas_usb3_ep *usb3_ep, in usb3_is_transfer_complete() argument
1122 (req->actual % usb3_ep->ep.maxpacket) || (req->length == 0)) in usb3_is_transfer_complete()
1128 static int usb3_wait_pipe_status(struct renesas_usb3_ep *usb3_ep, u32 mask) in usb3_wait_pipe_status() argument
1130 struct renesas_usb3 *usb3 = usb3_ep_to_usb3(usb3_ep); in usb3_wait_pipe_status()
1131 u32 sta_reg = usb3_ep->num ? USB3_PN_STA : USB3_P0_STA; in usb3_wait_pipe_status()
1136 static void usb3_set_px_con_send(struct renesas_usb3_ep *usb3_ep, int bytes, in usb3_set_px_con_send() argument
1139 struct renesas_usb3 *usb3 = usb3_ep_to_usb3(usb3_ep); in usb3_set_px_con_send()
1140 u32 con_reg = usb3_ep->num ? USB3_PN_CON : USB3_P0_CON; in usb3_set_px_con_send()
1144 val |= (usb3_ep->num && last) ? PN_CON_LAST : 0; in usb3_set_px_con_send()
1148 static int usb3_write_pipe(struct renesas_usb3_ep *usb3_ep, in usb3_write_pipe() argument
1152 struct renesas_usb3 *usb3 = usb3_ep_to_usb3(usb3_ep); in usb3_write_pipe()
1155 usb3_ep->ep.maxpacket); in usb3_write_pipe()
1160 if (usb3_wait_pipe_status(usb3_ep, PX_STA_BUFSTS) < 0) in usb3_write_pipe()
1180 is_last = usb3_is_transfer_complete(usb3_ep, usb3_req); in usb3_write_pipe()
1182 usb3_set_px_con_send(usb3_ep, len, is_last); in usb3_write_pipe()
1187 static u32 usb3_get_received_length(struct renesas_usb3_ep *usb3_ep) in usb3_get_received_length() argument
1189 struct renesas_usb3 *usb3 = usb3_ep_to_usb3(usb3_ep); in usb3_get_received_length()
1190 u32 lng_reg = usb3_ep->num ? USB3_PN_LNG : USB3_P0_LNG; in usb3_get_received_length()
1195 static int usb3_read_pipe(struct renesas_usb3_ep *usb3_ep, in usb3_read_pipe() argument
1198 struct renesas_usb3 *usb3 = usb3_ep_to_usb3(usb3_ep); in usb3_read_pipe()
1201 usb3_get_received_length(usb3_ep)); in usb3_read_pipe()
1224 return usb3_is_transfer_complete(usb3_ep, usb3_req) ? 0 : -EAGAIN; in usb3_read_pipe()
1227 static void usb3_set_status_stage(struct renesas_usb3_ep *usb3_ep, in usb3_set_status_stage() argument
1230 struct renesas_usb3 *usb3 = usb3_ep_to_usb3(usb3_ep); in usb3_set_status_stage()
1232 if (usb3_ep->dir_in) { in usb3_set_status_stage()
1242 static void usb3_p0_xfer(struct renesas_usb3_ep *usb3_ep, in usb3_p0_xfer() argument
1247 if (usb3_ep->dir_in) in usb3_p0_xfer()
1248 ret = usb3_write_pipe(usb3_ep, usb3_req, USB3_P0_WRITE); in usb3_p0_xfer()
1250 ret = usb3_read_pipe(usb3_ep, usb3_req, USB3_P0_READ); in usb3_p0_xfer()
1253 usb3_set_status_stage(usb3_ep, usb3_req); in usb3_p0_xfer()
1256 static void usb3_start_pipe0(struct renesas_usb3_ep *usb3_ep, in usb3_start_pipe0() argument
1259 struct renesas_usb3 *usb3 = usb3_ep_to_usb3(usb3_ep); in usb3_start_pipe0()
1261 if (usb3_ep->started) in usb3_start_pipe0()
1264 usb3_ep->started = true; in usb3_start_pipe0()
1266 if (usb3_ep->dir_in) { in usb3_start_pipe0()
1275 usb3_p0_xfer(usb3_ep, usb3_req); in usb3_start_pipe0()
1298 static u32 usb3_dma_mps_to_prd_word1(struct renesas_usb3_ep *usb3_ep) in usb3_dma_mps_to_prd_word1() argument
1300 switch (usb3_ep->ep.maxpacket) { in usb3_dma_mps_to_prd_word1()
1318 static bool usb3_dma_get_setting_area(struct renesas_usb3_ep *usb3_ep, in usb3_dma_get_setting_area() argument
1321 struct renesas_usb3 *usb3 = usb3_ep_to_usb3(usb3_ep); in usb3_dma_get_setting_area()
1336 if (usb3_dma_mps_to_prd_word1(usb3_ep) == USB3_PRD1_MPS_RESERVED) in usb3_dma_get_setting_area()
1344 usb3_ep->dir_in) < 0) in usb3_dma_get_setting_area()
1348 usb3_ep->dma = dma; in usb3_dma_get_setting_area()
1356 static void usb3_dma_put_setting_area(struct renesas_usb3_ep *usb3_ep, in usb3_dma_put_setting_area() argument
1359 struct renesas_usb3 *usb3 = usb3_ep_to_usb3(usb3_ep); in usb3_dma_put_setting_area()
1364 if (usb3_ep->dma == dma) { in usb3_dma_put_setting_area()
1366 usb3_ep->dir_in); in usb3_dma_put_setting_area()
1368 usb3_ep->dma = NULL; in usb3_dma_put_setting_area()
1374 static void usb3_dma_fill_prd(struct renesas_usb3_ep *usb3_ep, in usb3_dma_fill_prd() argument
1377 struct renesas_usb3_prd *cur_prd = usb3_ep->dma->prd; in usb3_dma_fill_prd()
1386 cur_prd->word1 = usb3_dma_mps_to_prd_word1(usb3_ep) | in usb3_dma_fill_prd()
1399 if (usb3_ep->dir_in) in usb3_dma_fill_prd()
1403 static void usb3_dma_kick_prd(struct renesas_usb3_ep *usb3_ep) in usb3_dma_kick_prd() argument
1405 struct renesas_usb3_dma *dma = usb3_ep->dma; in usb3_dma_kick_prd()
1406 struct renesas_usb3 *usb3 = usb3_ep_to_usb3(usb3_ep); in usb3_dma_kick_prd()
1407 u32 dma_con = DMA_COM_PIPE_NO(usb3_ep->num) | DMA_CON_PRD_EN; in usb3_dma_kick_prd()
1409 if (usb3_ep->dir_in) in usb3_dma_kick_prd()
1414 usb3_write(usb3, 1 << usb3_ep->num, USB3_DMA_INT_STA); in usb3_dma_kick_prd()
1420 usb3_enable_dma_irq(usb3, usb3_ep->num); in usb3_dma_kick_prd()
1423 static void usb3_dma_stop_prd(struct renesas_usb3_ep *usb3_ep) in usb3_dma_stop_prd() argument
1425 struct renesas_usb3 *usb3 = usb3_ep_to_usb3(usb3_ep); in usb3_dma_stop_prd()
1426 struct renesas_usb3_dma *dma = usb3_ep->dma; in usb3_dma_stop_prd()
1428 usb3_disable_dma_irq(usb3, usb3_ep->num); in usb3_dma_stop_prd()
1432 static int usb3_dma_update_status(struct renesas_usb3_ep *usb3_ep, in usb3_dma_update_status() argument
1435 struct renesas_usb3_prd *cur_prd = usb3_ep->dma->prd; in usb3_dma_update_status()
1464 static bool usb3_dma_try_start(struct renesas_usb3_ep *usb3_ep, in usb3_dma_try_start() argument
1467 struct renesas_usb3 *usb3 = usb3_ep_to_usb3(usb3_ep); in usb3_dma_try_start()
1472 if (usb3_dma_get_setting_area(usb3_ep, usb3_req)) { in usb3_dma_try_start()
1475 usb3_dma_fill_prd(usb3_ep, usb3_req); in usb3_dma_try_start()
1476 usb3_dma_kick_prd(usb3_ep); in usb3_dma_try_start()
1484 static int usb3_dma_try_stop(struct renesas_usb3_ep *usb3_ep, in usb3_dma_try_stop() argument
1487 struct renesas_usb3 *usb3 = usb3_ep_to_usb3(usb3_ep); in usb3_dma_try_stop()
1492 if (!usb3_ep->dma) in usb3_dma_try_stop()
1495 if (!usb3_pn_change(usb3, usb3_ep->num)) in usb3_dma_try_stop()
1497 usb3_dma_stop_prd(usb3_ep); in usb3_dma_try_stop()
1498 status = usb3_dma_update_status(usb3_ep, usb3_req); in usb3_dma_try_stop()
1499 usb3_dma_put_setting_area(usb3_ep, usb3_req); in usb3_dma_try_stop()
1545 static void usb3_start_pipen(struct renesas_usb3_ep *usb3_ep, in usb3_start_pipen() argument
1548 struct renesas_usb3 *usb3 = usb3_ep_to_usb3(usb3_ep); in usb3_start_pipen()
1555 if (usb3_ep->halt || usb3_ep->started) in usb3_start_pipen()
1557 usb3_req_first = __usb3_get_request(usb3_ep); in usb3_start_pipen()
1561 if (usb3_pn_change(usb3, usb3_ep->num) < 0) in usb3_start_pipen()
1564 usb3_ep->started = true; in usb3_start_pipen()
1566 if (usb3_dma_try_start(usb3_ep, usb3_req)) in usb3_start_pipen()
1571 if (usb3_ep->dir_in) { in usb3_start_pipen()
1572 ret = usb3_write_pipe(usb3_ep, usb3_req, USB3_PN_WRITE); in usb3_start_pipen()
1581 usb3_enable_pipe_irq(usb3, usb3_ep->num); in usb3_start_pipen()
1590 struct renesas_usb3_ep *usb3_ep = usb_ep_to_usb3_ep(_ep); in renesas_usb3_ep_queue() local
1592 struct renesas_usb3 *usb3 = usb3_ep_to_usb3(usb3_ep); in renesas_usb3_ep_queue()
1595 dev_dbg(usb3_to_dev(usb3), "ep_queue: ep%2d, %u\n", usb3_ep->num, in renesas_usb3_ep_queue()
1601 list_add_tail(&usb3_req->queue, &usb3_ep->queue); in renesas_usb3_ep_queue()
1604 if (!usb3_ep->num) in renesas_usb3_ep_queue()
1605 usb3_start_pipe0(usb3_ep, usb3_req); in renesas_usb3_ep_queue()
1607 usb3_start_pipen(usb3_ep, usb3_req); in renesas_usb3_ep_queue()
1635 struct renesas_usb3_ep *usb3_ep = usb3_get_ep(usb3, 0); in usb3_pipe0_internal_xfer() local
1644 renesas_usb3_ep_queue(&usb3_ep->ep, usb3->ep0_req, GFP_ATOMIC); in usb3_pipe0_internal_xfer()
1656 struct renesas_usb3_ep *usb3_ep; in usb3_std_req_get_status() local
1672 usb3_ep = usb3_get_ep(usb3, num); in usb3_std_req_get_status()
1673 if (usb3_ep->halt) in usb3_std_req_get_status()
1722 static int usb3_set_halt_p0(struct renesas_usb3_ep *usb3_ep, bool halt) in usb3_set_halt_p0() argument
1724 struct renesas_usb3 *usb3 = usb3_ep_to_usb3(usb3_ep); in usb3_set_halt_p0()
1726 if (unlikely(usb3_ep->num)) in usb3_set_halt_p0()
1729 usb3_ep->halt = halt; in usb3_set_halt_p0()
1738 static int usb3_set_halt_pn(struct renesas_usb3_ep *usb3_ep, bool halt, in usb3_set_halt_pn() argument
1741 struct renesas_usb3 *usb3 = usb3_ep_to_usb3(usb3_ep); in usb3_set_halt_pn()
1745 if (!usb3_pn_change(usb3, usb3_ep->num)) { in usb3_set_halt_pn()
1746 usb3_ep->halt = halt; in usb3_set_halt_pn()
1749 } else if (!is_clear_feature || !usb3_ep->wedge) { in usb3_set_halt_pn()
1760 static int usb3_set_halt(struct renesas_usb3_ep *usb3_ep, bool halt, in usb3_set_halt() argument
1765 if (halt && usb3_ep->started) in usb3_set_halt()
1768 if (usb3_ep->num) in usb3_set_halt()
1769 ret = usb3_set_halt_pn(usb3_ep, halt, is_clear_feature); in usb3_set_halt()
1771 ret = usb3_set_halt_p0(usb3_ep, halt); in usb3_set_halt()
1781 struct renesas_usb3_ep *usb3_ep; in usb3_std_req_feature_endpoint() local
1787 usb3_ep = usb3_get_ep(usb3, num); in usb3_std_req_feature_endpoint()
1788 usb3_set_halt(usb3_ep, set, true); in usb3_std_req_feature_endpoint()
1792 usb3_ep->started = false; in usb3_std_req_feature_endpoint()
1793 usb3_req = usb3_get_request(usb3_ep); in usb3_std_req_feature_endpoint()
1795 usb3_start_pipen(usb3_ep, usb3_req); in usb3_std_req_feature_endpoint()
1922 struct renesas_usb3_ep *usb3_ep = usb3_get_ep(usb3, 0); in usb3_irq_epc_pipe0_setup() local
1925 if (usb3_ep->started) in usb3_irq_epc_pipe0_setup()
1926 usb3_request_done(usb3_ep, usb3_get_request(usb3_ep), in usb3_irq_epc_pipe0_setup()
1938 struct renesas_usb3_ep *usb3_ep = usb3_get_ep(usb3, 0); in usb3_irq_epc_pipe0_bfrdy() local
1939 struct renesas_usb3_request *usb3_req = usb3_get_request(usb3_ep); in usb3_irq_epc_pipe0_bfrdy()
1944 usb3_p0_xfer(usb3_ep, usb3_req); in usb3_irq_epc_pipe0_bfrdy()
1962 struct renesas_usb3_ep *usb3_ep, in usb3_request_done_pipen() argument
1969 if (usb3_pn_change(usb3, usb3_ep->num)) in usb3_request_done_pipen()
1973 usb3_disable_pipe_irq(usb3, usb3_ep->num); in usb3_request_done_pipen()
1974 usb3_request_done(usb3_ep, usb3_req, status); in usb3_request_done_pipen()
1977 usb3_req = usb3_get_request(usb3_ep); in usb3_request_done_pipen()
1979 usb3_start_pipen(usb3_ep, usb3_req); in usb3_request_done_pipen()
1984 struct renesas_usb3_ep *usb3_ep = usb3_get_ep(usb3, num); in usb3_irq_epc_pipen_lsttr() local
1985 struct renesas_usb3_request *usb3_req = usb3_get_request(usb3_ep); in usb3_irq_epc_pipen_lsttr()
1990 if (usb3_ep->dir_in) { in usb3_irq_epc_pipen_lsttr()
1993 usb3_request_done_pipen(usb3, usb3_ep, usb3_req, 0); in usb3_irq_epc_pipen_lsttr()
1999 struct renesas_usb3_ep *usb3_ep = usb3_get_ep(usb3, num); in usb3_irq_epc_pipen_bfrdy() local
2000 struct renesas_usb3_request *usb3_req = usb3_get_request(usb3_ep); in usb3_irq_epc_pipen_bfrdy()
2010 if (usb3_ep->dir_in) { in usb3_irq_epc_pipen_bfrdy()
2012 if (!usb3_write_pipe(usb3_ep, usb3_req, USB3_PN_WRITE)) in usb3_irq_epc_pipen_bfrdy()
2015 if (!usb3_read_pipe(usb3_ep, usb3_req, USB3_PN_READ)) in usb3_irq_epc_pipen_bfrdy()
2024 usb3_request_done_pipen(usb3, usb3_ep, usb3_req, 0); in usb3_irq_epc_pipen_bfrdy()
2099 struct renesas_usb3_ep *usb3_ep; in usb3_irq_dma_int() local
2107 usb3_ep = usb3_get_ep(usb3, i); in usb3_irq_dma_int()
2109 AXI_INT_PRDEN_CLR_STA(usb3_ep->dma->num))) in usb3_irq_dma_int()
2112 usb3_req = usb3_get_request(usb3_ep); in usb3_irq_dma_int()
2113 status = usb3_dma_try_stop(usb3_ep, usb3_req); in usb3_irq_dma_int()
2114 usb3_request_done_pipen(usb3, usb3_ep, usb3_req, status); in usb3_irq_dma_int()
2157 static void usb3_write_pn_mod(struct renesas_usb3_ep *usb3_ep, in usb3_write_pn_mod() argument
2160 struct renesas_usb3 *usb3 = usb3_ep_to_usb3(usb3_ep); in usb3_write_pn_mod()
2163 val |= usb3_ep->dir_in ? PN_MOD_DIR : 0; in usb3_write_pn_mod()
2185 static u32 usb3_calc_rammap_val(struct renesas_usb3_ep *usb3_ep, in usb3_calc_rammap_val() argument
2197 return usb3_ep->rammap_val | mpkt; in usb3_calc_rammap_val()
2200 static int usb3_enable_pipe_n(struct renesas_usb3_ep *usb3_ep, in usb3_enable_pipe_n() argument
2203 struct renesas_usb3 *usb3 = usb3_ep_to_usb3(usb3_ep); in usb3_enable_pipe_n()
2206 usb3_ep->dir_in = usb_endpoint_dir_in(desc); in usb3_enable_pipe_n()
2209 if (!usb3_pn_change(usb3, usb3_ep->num)) { in usb3_enable_pipe_n()
2210 usb3_write_pn_mod(usb3_ep, desc); in usb3_enable_pipe_n()
2211 usb3_write(usb3, usb3_calc_rammap_val(usb3_ep, desc), in usb3_enable_pipe_n()
2221 static int usb3_disable_pipe_n(struct renesas_usb3_ep *usb3_ep) in usb3_disable_pipe_n() argument
2223 struct renesas_usb3 *usb3 = usb3_ep_to_usb3(usb3_ep); in usb3_disable_pipe_n()
2226 usb3_ep->halt = false; in usb3_disable_pipe_n()
2229 if (!usb3_pn_change(usb3, usb3_ep->num)) { in usb3_disable_pipe_n()
2243 struct renesas_usb3_ep *usb3_ep = usb_ep_to_usb3_ep(_ep); in renesas_usb3_ep_enable() local
2245 return usb3_enable_pipe_n(usb3_ep, desc); in renesas_usb3_ep_enable()
2250 struct renesas_usb3_ep *usb3_ep = usb_ep_to_usb3_ep(_ep); in renesas_usb3_ep_disable() local
2254 usb3_req = usb3_get_request(usb3_ep); in renesas_usb3_ep_disable()
2257 usb3_dma_try_stop(usb3_ep, usb3_req); in renesas_usb3_ep_disable()
2258 usb3_request_done(usb3_ep, usb3_req, -ESHUTDOWN); in renesas_usb3_ep_disable()
2261 return usb3_disable_pipe_n(usb3_ep); in renesas_usb3_ep_disable()
2298 struct renesas_usb3_ep *usb3_ep = usb_ep_to_usb3_ep(_ep); in renesas_usb3_ep_dequeue() local
2300 struct renesas_usb3 *usb3 = usb3_ep_to_usb3(usb3_ep); in renesas_usb3_ep_dequeue()
2302 dev_dbg(usb3_to_dev(usb3), "ep_dequeue: ep%2d, %u\n", usb3_ep->num, in renesas_usb3_ep_dequeue()
2305 usb3_dma_try_stop(usb3_ep, usb3_req); in renesas_usb3_ep_dequeue()
2306 usb3_request_done_pipen(usb3, usb3_ep, usb3_req, -ECONNRESET); in renesas_usb3_ep_dequeue()
2318 struct renesas_usb3_ep *usb3_ep = usb_ep_to_usb3_ep(_ep); in renesas_usb3_ep_set_wedge() local
2320 usb3_ep->wedge = true; in renesas_usb3_ep_set_wedge()
2321 return usb3_set_halt(usb3_ep, true, false); in renesas_usb3_ep_set_wedge()
2326 struct renesas_usb3_ep *usb3_ep = usb_ep_to_usb3_ep(_ep); in renesas_usb3_ep_fifo_flush() local
2327 struct renesas_usb3 *usb3 = usb3_ep_to_usb3(usb3_ep); in renesas_usb3_ep_fifo_flush()
2330 if (usb3_ep->num) { in renesas_usb3_ep_fifo_flush()
2332 if (!usb3_pn_change(usb3, usb3_ep->num)) { in renesas_usb3_ep_fifo_flush()
2677 struct renesas_usb3_ep *usb3_ep; in renesas_usb3_init_ep() local
2687 usb3->usb3_ep = devm_kcalloc(dev, in renesas_usb3_init_ep()
2688 usb3->num_usb3_eps, sizeof(*usb3_ep), in renesas_usb3_init_ep()
2690 if (!usb3->usb3_ep) in renesas_usb3_init_ep()
2699 usb3_for_each_ep(usb3_ep, usb3, i) { in renesas_usb3_init_ep()
2700 snprintf(usb3_ep->ep_name, sizeof(usb3_ep->ep_name), "ep%d", i); in renesas_usb3_init_ep()
2701 usb3_ep->usb3 = usb3; in renesas_usb3_init_ep()
2702 usb3_ep->num = i; in renesas_usb3_init_ep()
2703 usb3_ep->ep.name = usb3_ep->ep_name; in renesas_usb3_init_ep()
2704 usb3_ep->ep.ops = &renesas_usb3_ep_ops; in renesas_usb3_init_ep()
2705 INIT_LIST_HEAD(&usb3_ep->queue); in renesas_usb3_init_ep()
2706 INIT_LIST_HEAD(&usb3_ep->ep.ep_list); in renesas_usb3_init_ep()
2709 usb3->gadget.ep0 = &usb3_ep->ep; in renesas_usb3_init_ep()
2710 usb_ep_set_maxpacket_limit(&usb3_ep->ep, in renesas_usb3_init_ep()
2712 usb3_ep->ep.caps.type_control = true; in renesas_usb3_init_ep()
2713 usb3_ep->ep.caps.dir_in = true; in renesas_usb3_init_ep()
2714 usb3_ep->ep.caps.dir_out = true; in renesas_usb3_init_ep()
2719 usb_ep_set_maxpacket_limit(&usb3_ep->ep, ~0); in renesas_usb3_init_ep()
2720 list_add_tail(&usb3_ep->ep.ep_list, &usb3->gadget.ep_list); in renesas_usb3_init_ep()
2721 usb3_ep->ep.caps.type_bulk = true; in renesas_usb3_init_ep()
2722 usb3_ep->ep.caps.type_int = true; in renesas_usb3_init_ep()
2724 usb3_ep->ep.caps.dir_in = true; in renesas_usb3_init_ep()
2726 usb3_ep->ep.caps.dir_out = true; in renesas_usb3_init_ep()
2735 struct renesas_usb3_ep *usb3_ep; in renesas_usb3_init_ram() local
2749 usb3_for_each_ep(usb3_ep, usb3, i) { in renesas_usb3_init_ram()
2752 if (usb3_ep->ep.caps.dir_in) { in renesas_usb3_init_ram()
2767 usb3_ep->rammap_val = val; in renesas_usb3_init_ram()