Lines Matching refs:dir

248 	usb_gadget_unmap_request_by_dev(pdev->dev, request, pep->dir);  in cdns2_gadget_giveback()
399 num_trbs = pep->dir ? num_trbs * pep->interval : 1; in cdns2_count_trbs()
400 } else if (pep->dir) { in cdns2_count_trbs()
523 num_tds = pep->dir ? pep->interval : 1; in cdns2_ep_tx_isoc()
564 if (enqd_len + trb_buff_len >= full_len || !pep->dir) in cdns2_ep_tx_isoc()
641 if (pep->dir && sg_iter == trbs_per_td - 1) { in cdns2_ep_tx_bulk()
667 if (sg_iter == (trbs_per_td - (pep->dir ? 2 : 1))) in cdns2_ep_tx_bulk()
721 if (!pep->dir) { in cdns2_prepare_first_isoc_transfer()
1008 if (pep->dir && pep->type == USB_ENDPOINT_XFER_ISOC) in cdns2_transfer_completed()
1091 cs = pep->dir ? readb(&pdev->epx_regs->ep[pep->num - 1].txcs) : in cdns2_handle_epx_interrupt()
1131 if (!pep->dir) in cdns2_handle_epx_interrupt()
1356 if (pep->dir) in cdns2_eps_onchip_buffer_init()
1368 if (pep->dir) { in cdns2_eps_onchip_buffer_init()
1416 u8 dir = 0; in cdns2_ep_config() local
1434 if (pep->dir) { in cdns2_ep_config()
1455 if (pep->dir) { in cdns2_ep_config()
1456 dir = FIFOCTRL_IO_TX; in cdns2_ep_config()
1464 writeb(pep->num | dir | FIFOCTRL_FIFOAUTO, in cdns2_ep_config()
1466 writeb(pep->num | dir, &pdev->epx_regs->endprst); in cdns2_ep_config()
1467 writeb(pep->num | ENDPRST_FIFORST | ENDPRST_TOGRST | dir, in cdns2_ep_config()
1477 cdns2_select_ep(pdev, pep->num | pep->dir); in cdns2_ep_config()
1575 if (pep->type == USB_ENDPOINT_XFER_ISOC && !pep->dir) in cdns2_gadget_ep_enable()
1680 ret = usb_gadget_map_request_by_dev(pdev->dev, request, pep->dir); in cdns2_ep_enqueue()
1827 int dir = 0; in cdns2_halt_endpoint() local
1832 if (pep->dir) { in cdns2_halt_endpoint()
1833 dir = ENDPRST_IO_TX; in cdns2_halt_endpoint()
1856 writeb(dir | pep->num, &pdev->epx_regs->endprst); in cdns2_halt_endpoint()
1857 writeb(dir | ENDPRST_TOGRST | pep->num, in cdns2_halt_endpoint()
1875 writeb(dir | pep->num, &pdev->epx_regs->endprst); in cdns2_halt_endpoint()
1876 writeb(dir | ENDPRST_FIFORST | pep->num, in cdns2_halt_endpoint()
2140 bEndpointAddress = pep->num | pep->dir; in cdns2_gadget_udc_stop()
2196 pep->dir = direction ? USB_DIR_IN : USB_DIR_OUT; in cdns2_init_eps()