Lines Matching refs:dir_in
70 u32 ep_index, u32 dir_in) in index_to_ep() argument
72 if (dir_in) in index_to_ep()
150 unsigned int ep, unsigned int dir_in, in s3c_hsotg_ctrl_epint() argument
157 if (!dir_in) in s3c_hsotg_ctrl_epint()
298 usb_gadget_unmap_request(&hsotg->gadget, req, hs_ep->dir_in); in s3c_hsotg_unmap_dma()
491 if (hs_ep->dir_in) in get_ep_limit()
529 int dir_in = hs_ep->dir_in; in s3c_hsotg_start_req() local
551 epctrl_reg = dir_in ? DIEPCTL(index) : DOEPCTL(index); in s3c_hsotg_start_req()
552 epsize_reg = dir_in ? DIEPTSIZ(index) : DOEPTSIZ(index); in s3c_hsotg_start_req()
556 hs_ep->dir_in ? "in" : "out"); in s3c_hsotg_start_req()
594 if (dir_in && index != 0) in s3c_hsotg_start_req()
606 if (dir_in && ureq->zero && !continuing) { in s3c_hsotg_start_req()
633 dma_reg = dir_in ? DIEPDMA(index) : DOEPDMA(index); in s3c_hsotg_start_req()
660 if (dir_in && !using_dma(hsotg)) { in s3c_hsotg_start_req()
671 if (dir_in) in s3c_hsotg_start_req()
690 s3c_hsotg_ctrl_epint(hsotg, hs_ep->index, hs_ep->dir_in, 1); in s3c_hsotg_start_req()
716 ret = usb_gadget_map_request(&hsotg->gadget, req, hs_ep->dir_in); in s3c_hsotg_map_dma()
755 if (hs_ep->dir_in) in s3c_hsotg_handle_unaligned_buf_start()
771 if (!hs_ep->dir_in && !hs_req->req.status) in s3c_hsotg_handle_unaligned_buf_complete()
885 if (idx && ep->dir_in != dir) in ep_from_windex()
980 if (!ep0->dir_in) { in s3c_hsotg_process_req_status()
1164 dev_dbg(hsotg->dev, "ep0 stall (dir=%d)\n", ep0->dir_in); in s3c_hsotg_stall_ep0()
1165 reg = (ep0->dir_in) ? DIEPCTL0 : DOEPCTL0; in s3c_hsotg_stall_ep0()
1209 ep0->dir_in = 1; in s3c_hsotg_process_control()
1212 ep0->dir_in = 1; in s3c_hsotg_process_control()
1215 ep0->dir_in = 0; in s3c_hsotg_process_control()
1316 hsotg->eps_out[0]->dir_in = 0; in s3c_hsotg_enqueue_setup()
1335 u32 epctl_reg = hs_ep->dir_in ? DIEPCTL(index) : DOEPCTL(index); in s3c_hsotg_program_zlp()
1336 u32 epsiz_reg = hs_ep->dir_in ? DIEPTSIZ(index) : DOEPTSIZ(index); in s3c_hsotg_program_zlp()
1338 if (hs_ep->dir_in) in s3c_hsotg_program_zlp()
1501 static void s3c_hsotg_ep0_zlp(struct dwc2_hsotg *hsotg, bool dir_in) in s3c_hsotg_ep0_zlp() argument
1504 hsotg->eps_out[0]->dir_in = dir_in; in s3c_hsotg_ep0_zlp()
1505 hsotg->ep0_state = dir_in ? DWC2_EP0_STATUS_IN : DWC2_EP0_STATUS_OUT; in s3c_hsotg_ep0_zlp()
1715 unsigned int ep, unsigned int mps, unsigned int dir_in) in s3c_hsotg_set_ep_maxpacket() argument
1723 hs_ep = index_to_ep(hsotg, ep, dir_in); in s3c_hsotg_set_ep_maxpacket()
1745 if (dir_in) { in s3c_hsotg_set_ep_maxpacket()
1809 if (!hs_ep->dir_in || !hs_req) { in s3c_hsotg_trytx()
1816 hs_ep->dir_in, 0); in s3c_hsotg_trytx()
1923 int dir_in) in s3c_hsotg_epint() argument
1925 struct s3c_hsotg_ep *hs_ep = index_to_ep(hsotg, idx, dir_in); in s3c_hsotg_epint()
1926 u32 epint_reg = dir_in ? DIEPINT(idx) : DOEPINT(idx); in s3c_hsotg_epint()
1927 u32 epctl_reg = dir_in ? DIEPCTL(idx) : DOEPCTL(idx); in s3c_hsotg_epint()
1928 u32 epsiz_reg = dir_in ? DIEPTSIZ(idx) : DOEPTSIZ(idx); in s3c_hsotg_epint()
1940 __func__, idx, dir_in ? "in" : "out"); in s3c_hsotg_epint()
1945 __func__, idx, dir_in ? "in" : "out", ints); in s3c_hsotg_epint()
1969 if (dir_in) { in s3c_hsotg_epint()
1987 if (dir_in) { in s3c_hsotg_epint()
2016 if (dir_in) in s3c_hsotg_epint()
2026 if (dir_in && !hs_ep->isochronous) { in s3c_hsotg_epint()
2207 if (!ep->dir_in) in s3c_hsotg_irq_fifoempty()
2596 unsigned int dir_in; in s3c_hsotg_ep_enable() local
2608 dir_in = (desc->bEndpointAddress & USB_ENDPOINT_DIR_MASK) ? 1 : 0; in s3c_hsotg_ep_enable()
2609 if (dir_in != hs_ep->dir_in) { in s3c_hsotg_ep_enable()
2618 epctrl_reg = dir_in ? DIEPCTL(index) : DOEPCTL(index); in s3c_hsotg_ep_enable()
2645 s3c_hsotg_set_ep_maxpacket(hsotg, hs_ep->index, mps, dir_in); in s3c_hsotg_ep_enable()
2661 if (dir_in) in s3c_hsotg_ep_enable()
2670 if (dir_in) in s3c_hsotg_ep_enable()
2696 if (dir_in && hsotg->dedicated_fifos && !hs_ep->fifo_index) { in s3c_hsotg_ep_enable()
2737 s3c_hsotg_ctrl_epint(hsotg, index, dir_in, 1); in s3c_hsotg_ep_enable()
2752 int dir_in = hs_ep->dir_in; in s3c_hsotg_ep_disable_force() local
2765 epctrl_reg = dir_in ? DIEPCTL(index) : DOEPCTL(index); in s3c_hsotg_ep_disable_force()
2782 s3c_hsotg_ctrl_epint(hsotg, hs_ep->index, hs_ep->dir_in, 0); in s3c_hsotg_ep_disable_force()
2864 if (hs_ep->dir_in) { in s3c_hsotg_ep_sethalt()
3242 bool dir_in) in s3c_hsotg_initep() argument
3248 else if (dir_in) in s3c_hsotg_initep()
3253 hs_ep->dir_in = dir_in; in s3c_hsotg_initep()
3277 if (dir_in) in s3c_hsotg_initep()
3636 ep->index, ep->ep.name, decode_direction(ep->dir_in)); in ep_show()