Lines Matching refs:dir_in

62 						u32 ep_index, u32 dir_in)
64 if (dir_in)
194 * @dir_in: True if direction is in.
201 unsigned int ep, unsigned int dir_in,
208 if (!dir_in)
678 if (hs_ep->dir_in)
731 int dir_in = hs_ep->dir_in;
734 maxsize = (hs_ep->dir_in ? DEV_DMA_ISOC_TX_NBYTES_LIMIT :
742 if (usb_endpoint_xfer_int(ep_desc) && !dir_in && (mps % 4))
769 int dir_in = hs_ep->dir_in;
772 if (!hs_ep->index && !dir_in) {
776 if (dir_in) {
793 if (usb_endpoint_xfer_int(ep_desc) && !dir_in && (mps % 4)) {
807 int dir_in = hs_ep->dir_in;
827 if (!hs_ep->index && !dir_in)
840 if (dir_in)
935 __func__, hs_ep->index, hs_ep->dir_in ? "in" : "out", index);
944 if (hs_ep->dir_in) {
962 if (hs_ep->dir_in)
1021 depctl = hs_ep->dir_in ? DIEPCTL(index) : DOEPCTL(index);
1022 dma_reg = hs_ep->dir_in ? DIEPDMA(index) : DOEPDMA(index);
1055 int dir_in = hs_ep->dir_in;
1078 dma_reg = dir_in ? DIEPDMA(index) : DOEPDMA(index);
1079 epctrl_reg = dir_in ? DIEPCTL(index) : DOEPCTL(index);
1080 epsize_reg = dir_in ? DIEPTSIZ(index) : DOEPTSIZ(index);
1084 hs_ep->dir_in ? "in" : "out");
1121 if (dir_in && index != 0)
1133 if (dir_in && ureq->zero && !continuing) {
1154 if (!dir_in) {
1226 if (dir_in && !using_dma(hsotg)) {
1248 dwc2_hsotg_ctrl_epint(hsotg, hs_ep->index, hs_ep->dir_in, 1);
1269 hs_ep->map_dir = hs_ep->dir_in;
1270 ret = usb_gadget_map_request(&hsotg->gadget, req, hs_ep->dir_in);
1310 if (hs_ep->dir_in)
1328 if (!hs_ep->dir_in && !hs_req->req.status)
1442 if (hs_ep->dir_in && req->length > maxsize) {
1448 if (!hs_ep->dir_in && req->length > hs_ep->ep.maxpacket) {
1496 if (!hs_ep->index && !req->length && !hs_ep->dir_in &&
1498 hs_ep->dir_in = 1;
1677 if (!ep0->dir_in) {
1745 int dir_in = hs_ep->dir_in;
1756 if (dir_in) {
1895 dev_dbg(hsotg->dev, "ep0 stall (dir=%d)\n", ep0->dir_in);
1896 reg = (ep0->dir_in) ? DIEPCTL0 : DOEPCTL0;
1941 ep0->dir_in = 1;
1944 ep0->dir_in = 1;
1947 ep0->dir_in = 0;
2052 hsotg->eps_out[0]->dir_in = 0;
2071 u32 epctl_reg = hs_ep->dir_in ? DIEPCTL(index) : DOEPCTL(index);
2072 u32 epsiz_reg = hs_ep->dir_in ? DIEPTSIZ(index) : DOEPTSIZ(index);
2074 if (hs_ep->dir_in)
2201 mask = hs_ep->dir_in ? DEV_DMA_ISOC_TX_NBYTES_MASK :
2209 if (!hs_ep->dir_in && ureq->length & 0x3)
2240 if (!hs_ep->dir_in)
2314 * @dir_in: If IN zlp
2323 static void dwc2_hsotg_ep0_zlp(struct dwc2_hsotg *hsotg, bool dir_in)
2326 hsotg->eps_out[0]->dir_in = dir_in;
2327 hsotg->ep0_state = dir_in ? DWC2_EP0_STATUS_IN : DWC2_EP0_STATUS_OUT;
2349 int dir_in = hs_ep->dir_in;
2356 if (usb_endpoint_xfer_int(ep_desc) && !dir_in && (mps % 4))
2572 * @dir_in: True if direction is in.
2579 unsigned int mc, unsigned int dir_in)
2584 hs_ep = index_to_ep(hsotg, ep, dir_in);
2606 if (dir_in) {
2653 if (!hs_ep->dir_in || !hs_req) {
2660 hs_ep->dir_in, 0);
2701 hs_ep->dir_in = 0;
2783 * @dir_in: Endpoint direction 1-in 0-out.
2789 unsigned int idx, int dir_in)
2791 u32 epmsk_reg = dir_in ? DIEPMSK : DOEPMSK;
2792 u32 epint_reg = dir_in ? DIEPINT(idx) : DOEPINT(idx);
2825 int dir_in = hs_ep->dir_in;
2826 u32 epctl_reg = dir_in ? DIEPCTL(idx) : DOEPCTL(idx);
2831 if (dir_in) {
2888 int dir_in = ep->dir_in;
2890 if (dir_in || !ep->isochronous)
2956 int dir_in = hs_ep->dir_in;
2959 if (!dir_in || !hs_ep->isochronous)
3031 * @dir_in: Set if this is an IN endpoint
3036 int dir_in)
3038 struct dwc2_hsotg_ep *hs_ep = index_to_ep(hsotg, idx, dir_in);
3039 u32 epint_reg = dir_in ? DIEPINT(idx) : DOEPINT(idx);
3040 u32 epctl_reg = dir_in ? DIEPCTL(idx) : DOEPCTL(idx);
3041 u32 epsiz_reg = dir_in ? DIEPTSIZ(idx) : DOEPTSIZ(idx);
3044 ints = dwc2_gadget_read_ep_interrupts(hsotg, idx, dir_in);
3051 __func__, idx, dir_in ? "in" : "out");
3056 __func__, idx, dir_in ? "in" : "out", ints);
3068 if (using_desc_dma(hsotg) && idx == 0 && !hs_ep->dir_in &&
3081 } else if (dir_in) {
3125 if (dir_in)
3165 if (dir_in && !hs_ep->isochronous) {
3354 if (!ep->dir_in)
3910 epctrl_reg = hs_ep->dir_in ? DIEPCTL(hs_ep->index) :
3912 epint_reg = hs_ep->dir_in ? DIEPINT(hs_ep->index) :
3918 if (hs_ep->dir_in) {
3976 if (hs_ep->dir_in) {
4016 unsigned int dir_in;
4033 dir_in = (desc->bEndpointAddress & USB_ENDPOINT_DIR_MASK) ? 1 : 0;
4034 if (dir_in != hs_ep->dir_in) {
4045 dir_in && desc->bInterval > 10) {
4053 !dir_in && mc > 1) {
4061 epctrl_reg = dir_in ? DIEPCTL(index) : DOEPCTL(index);
4095 dwc2_hsotg_set_ep_maxpacket(hsotg, hs_ep->index, mps, mc, dir_in);
4113 if (dir_in) {
4131 if (dir_in)
4149 if (dir_in && hsotg->dedicated_fifos) {
4192 hs_ep->isochronous && dir_in) {
4214 dwc2_hsotg_ctrl_epint(hsotg, index, dir_in, 1);
4238 int dir_in = hs_ep->dir_in;
4255 epctrl_reg = dir_in ? DIEPCTL(index) : DOEPCTL(index);
4270 dwc2_hsotg_ctrl_epint(hsotg, hs_ep->index, hs_ep->dir_in, 0);
4405 if (hs_ep->dir_in) {
4781 * @dir_in: True if direction is in.
4790 bool dir_in)
4796 else if (dir_in)
4801 hs_ep->dir_in = dir_in;
4833 if (dir_in)
4834 hs_ep->ep.caps.dir_in = true;
4846 if (dir_in)