Lines Matching refs:hs
1412 struct dwc2_hsotg *hs = hs_ep->parent; in dwc2_hsotg_ep_queue() local
1419 dev_dbg(hs->dev, "%s: req %p: %d@%p, noi=%d, zero=%d, snok=%d\n", in dwc2_hsotg_ep_queue()
1424 if (hs->lx_state != DWC2_L0) { in dwc2_hsotg_ep_queue()
1425 dev_dbg(hs->dev, "%s: submit request only in active state\n", in dwc2_hsotg_ep_queue()
1438 dev_err(hs->dev, "req length > maxpacket*mc\n"); in dwc2_hsotg_ep_queue()
1445 if (using_desc_dma(hs) && hs_ep->isochronous) { in dwc2_hsotg_ep_queue()
1448 dev_err(hs->dev, "wrong length %d (maxsize=%d)\n", in dwc2_hsotg_ep_queue()
1454 dev_err(hs->dev, "ISOC OUT: wrong length %d (mps=%d)\n", in dwc2_hsotg_ep_queue()
1460 ret = dwc2_hsotg_handle_unaligned_buf_start(hs, hs_ep, hs_req); in dwc2_hsotg_ep_queue()
1465 if (using_dma(hs)) { in dwc2_hsotg_ep_queue()
1466 ret = dwc2_hsotg_map_dma(hs, hs_ep, req); in dwc2_hsotg_ep_queue()
1471 if (using_desc_dma(hs) && !hs_ep->index) { in dwc2_hsotg_ep_queue()
1472 ret = dwc2_gadget_set_ep0_desc_chain(hs, hs_ep); in dwc2_hsotg_ep_queue()
1486 if (using_desc_dma(hs) && hs_ep->isochronous) { in dwc2_hsotg_ep_queue()
1502 hs->ep0_state == DWC2_EP0_DATA_OUT) in dwc2_hsotg_ep_queue()
1507 dwc2_hsotg_start_req(hs, hs_ep, hs_req, false); in dwc2_hsotg_ep_queue()
1512 hs->frame_number = dwc2_hsotg_read_frameno(hs); in dwc2_hsotg_ep_queue()
1518 hs->frame_number = dwc2_hsotg_read_frameno(hs); in dwc2_hsotg_ep_queue()
1522 dwc2_hsotg_start_req(hs, hs_ep, hs_req, false); in dwc2_hsotg_ep_queue()
1524 !(dwc2_readl(hs, GHWCFG2) & GHWCFG2_MULTI_PROC_INT)) { in dwc2_hsotg_ep_queue()
1526 hs->frame_number = dwc2_hsotg_read_frameno(hs); in dwc2_hsotg_ep_queue()
1532 hs->frame_number = dwc2_hsotg_read_frameno(hs); in dwc2_hsotg_ep_queue()
1545 struct dwc2_hsotg *hs = hs_ep->parent; in dwc2_hsotg_ep_queue_lock() local
1549 spin_lock_irqsave(&hs->lock, flags); in dwc2_hsotg_ep_queue_lock()
1551 spin_unlock_irqrestore(&hs->lock, flags); in dwc2_hsotg_ep_queue_lock()
4355 struct dwc2_hsotg *hs = hs_ep->parent; in dwc2_hsotg_ep_dequeue() local
4358 dev_dbg(hs->dev, "ep_dequeue(%p,%p)\n", ep, req); in dwc2_hsotg_ep_dequeue()
4360 spin_lock_irqsave(&hs->lock, flags); in dwc2_hsotg_ep_dequeue()
4363 spin_unlock_irqrestore(&hs->lock, flags); in dwc2_hsotg_ep_dequeue()
4369 dwc2_hsotg_ep_stop_xfr(hs, hs_ep); in dwc2_hsotg_ep_dequeue()
4371 dwc2_hsotg_complete_request(hs, hs_ep, hs_req, -ECONNRESET); in dwc2_hsotg_ep_dequeue()
4372 spin_unlock_irqrestore(&hs->lock, flags); in dwc2_hsotg_ep_dequeue()
4390 struct dwc2_hsotg *hs = hs_ep->parent; in dwc2_hsotg_ep_sethalt() local
4396 dev_info(hs->dev, "%s(ep %p %s, %d)\n", __func__, ep, ep->name, value); in dwc2_hsotg_ep_sethalt()
4400 dwc2_hsotg_stall_ep0(hs); in dwc2_hsotg_ep_sethalt()
4402 dev_warn(hs->dev, in dwc2_hsotg_ep_sethalt()
4408 dev_err(hs->dev, "%s is Isochronous Endpoint\n", ep->name); in dwc2_hsotg_ep_sethalt()
4413 dev_dbg(hs->dev, "%s request is pending, cannot halt\n", in dwc2_hsotg_ep_sethalt()
4420 epctl = dwc2_readl(hs, epreg); in dwc2_hsotg_ep_sethalt()
4433 dwc2_writel(hs, epctl, epreg); in dwc2_hsotg_ep_sethalt()
4436 epctl = dwc2_readl(hs, epreg); in dwc2_hsotg_ep_sethalt()
4440 dwc2_hsotg_en_gsint(hs, GINTSTS_GOUTNAKEFF); in dwc2_hsotg_ep_sethalt()
4442 if (!(dwc2_readl(hs, GINTSTS) & GINTSTS_GOUTNAKEFF)) in dwc2_hsotg_ep_sethalt()
4443 dwc2_set_bit(hs, DCTL, DCTL_SGOUTNAK); in dwc2_hsotg_ep_sethalt()
4451 dwc2_writel(hs, epctl, epreg); in dwc2_hsotg_ep_sethalt()
4467 struct dwc2_hsotg *hs = hs_ep->parent; in dwc2_hsotg_ep_sethalt_lock() local
4471 spin_lock_irqsave(&hs->lock, flags); in dwc2_hsotg_ep_sethalt_lock()
4473 spin_unlock_irqrestore(&hs->lock, flags); in dwc2_hsotg_ep_sethalt_lock()