hwep 340 drivers/usb/chipidea/udc.c static int add_td_to_list(struct ci_hw_ep *hwep, struct ci_hw_req *hwreq, hwep 351 drivers/usb/chipidea/udc.c node->ptr = dma_pool_zalloc(hwep->td_pool, GFP_ATOMIC, &node->dma); hwep 360 drivers/usb/chipidea/udc.c if (hwep->type == USB_ENDPOINT_XFER_ISOC && hwep->dir == TX) { hwep 361 drivers/usb/chipidea/udc.c u32 mul = hwreq->req.length / hwep->ep.maxpacket; hwep 364 drivers/usb/chipidea/udc.c || hwreq->req.length % hwep->ep.maxpacket) hwep 410 drivers/usb/chipidea/udc.c static int _hardware_enqueue(struct ci_hw_ep *hwep, struct ci_hw_req *hwreq) hwep 412 drivers/usb/chipidea/udc.c struct ci_hdrc *ci = hwep->ci; hwep 425 drivers/usb/chipidea/udc.c &hwreq->req, hwep->dir); hwep 437 drivers/usb/chipidea/udc.c ret = add_td_to_list(hwep, hwreq, 0); hwep 445 drivers/usb/chipidea/udc.c ret = add_td_to_list(hwep, hwreq, count); hwep 452 drivers/usb/chipidea/udc.c if (hwreq->req.zero && hwreq->req.length && hwep->dir == TX hwep 453 drivers/usb/chipidea/udc.c && (hwreq->req.length % hwep->ep.maxpacket == 0)) { hwep 454 drivers/usb/chipidea/udc.c ret = add_td_to_list(hwep, hwreq, 0); hwep 470 drivers/usb/chipidea/udc.c if (!list_empty(&hwep->qh.queue)) { hwep 472 drivers/usb/chipidea/udc.c int n = hw_ep_bit(hwep->num, hwep->dir); hwep 477 drivers/usb/chipidea/udc.c hwreqprev = list_entry(hwep->qh.queue.prev, hwep 496 drivers/usb/chipidea/udc.c hwep->qh.ptr->td.next = cpu_to_le32(firstnode->dma); hwep 497 drivers/usb/chipidea/udc.c hwep->qh.ptr->td.token &= hwep 500 drivers/usb/chipidea/udc.c if (hwep->type == USB_ENDPOINT_XFER_ISOC && hwep->dir == RX) { hwep 501 drivers/usb/chipidea/udc.c u32 mul = hwreq->req.length / hwep->ep.maxpacket; hwep 504 drivers/usb/chipidea/udc.c || hwreq->req.length % hwep->ep.maxpacket) hwep 506 drivers/usb/chipidea/udc.c hwep->qh.ptr->cap |= cpu_to_le32(mul << __ffs(QH_MULT)); hwep 509 drivers/usb/chipidea/udc.c ret = hw_ep_prime(ci, hwep->num, hwep->dir, hwep 510 drivers/usb/chipidea/udc.c hwep->type == USB_ENDPOINT_XFER_CONTROL); hwep 519 drivers/usb/chipidea/udc.c static void free_pending_td(struct ci_hw_ep *hwep) hwep 521 drivers/usb/chipidea/udc.c struct td_node *pending = hwep->pending_td; hwep 523 drivers/usb/chipidea/udc.c dma_pool_free(hwep->td_pool, pending->ptr, pending->dma); hwep 524 drivers/usb/chipidea/udc.c hwep->pending_td = NULL; hwep 528 drivers/usb/chipidea/udc.c static int reprime_dtd(struct ci_hdrc *ci, struct ci_hw_ep *hwep, hwep 531 drivers/usb/chipidea/udc.c hwep->qh.ptr->td.next = cpu_to_le32(node->dma); hwep 532 drivers/usb/chipidea/udc.c hwep->qh.ptr->td.token &= hwep 535 drivers/usb/chipidea/udc.c return hw_ep_prime(ci, hwep->num, hwep->dir, hwep 536 drivers/usb/chipidea/udc.c hwep->type == USB_ENDPOINT_XFER_CONTROL); hwep 546 drivers/usb/chipidea/udc.c static int _hardware_dequeue(struct ci_hw_ep *hwep, struct ci_hw_req *hwreq) hwep 552 drivers/usb/chipidea/udc.c struct ci_hdrc *ci = hwep->ci; hwep 562 drivers/usb/chipidea/udc.c int n = hw_ep_bit(hwep->num, hwep->dir); hwep 566 drivers/usb/chipidea/udc.c reprime_dtd(ci, hwep, node); hwep 588 drivers/usb/chipidea/udc.c if (hwep->dir == TX) { hwep 598 drivers/usb/chipidea/udc.c if (hwep->pending_td) hwep 599 drivers/usb/chipidea/udc.c free_pending_td(hwep); hwep 601 drivers/usb/chipidea/udc.c hwep->pending_td = node; hwep 605 drivers/usb/chipidea/udc.c usb_gadget_unmap_request_by_dev(hwep->ci->dev->parent, hwep 606 drivers/usb/chipidea/udc.c &hwreq->req, hwep->dir); hwep 623 drivers/usb/chipidea/udc.c static int _ep_nuke(struct ci_hw_ep *hwep) hwep 624 drivers/usb/chipidea/udc.c __releases(hwep->lock) hwep 625 drivers/usb/chipidea/udc.c __acquires(hwep->lock) hwep 628 drivers/usb/chipidea/udc.c if (hwep == NULL) hwep 631 drivers/usb/chipidea/udc.c hw_ep_flush(hwep->ci, hwep->num, hwep->dir); hwep 633 drivers/usb/chipidea/udc.c while (!list_empty(&hwep->qh.queue)) { hwep 636 drivers/usb/chipidea/udc.c struct ci_hw_req *hwreq = list_entry(hwep->qh.queue.next, hwep 640 drivers/usb/chipidea/udc.c dma_pool_free(hwep->td_pool, node->ptr, node->dma); hwep 650 drivers/usb/chipidea/udc.c spin_unlock(hwep->lock); hwep 651 drivers/usb/chipidea/udc.c usb_gadget_giveback_request(&hwep->ep, &hwreq->req); hwep 652 drivers/usb/chipidea/udc.c spin_lock(hwep->lock); hwep 656 drivers/usb/chipidea/udc.c if (hwep->pending_td) hwep 657 drivers/usb/chipidea/udc.c free_pending_td(hwep); hwep 664 drivers/usb/chipidea/udc.c struct ci_hw_ep *hwep = container_of(ep, struct ci_hw_ep, ep); hwep 668 drivers/usb/chipidea/udc.c if (ep == NULL || hwep->ep.desc == NULL) hwep 671 drivers/usb/chipidea/udc.c if (usb_endpoint_xfer_isoc(hwep->ep.desc)) hwep 674 drivers/usb/chipidea/udc.c spin_lock_irqsave(hwep->lock, flags); hwep 676 drivers/usb/chipidea/udc.c if (value && hwep->dir == TX && check_transfer && hwep 677 drivers/usb/chipidea/udc.c !list_empty(&hwep->qh.queue) && hwep 678 drivers/usb/chipidea/udc.c !usb_endpoint_xfer_control(hwep->ep.desc)) { hwep 679 drivers/usb/chipidea/udc.c spin_unlock_irqrestore(hwep->lock, flags); hwep 683 drivers/usb/chipidea/udc.c direction = hwep->dir; hwep 685 drivers/usb/chipidea/udc.c retval |= hw_ep_set_halt(hwep->ci, hwep->num, hwep->dir, value); hwep 688 drivers/usb/chipidea/udc.c hwep->wedge = 0; hwep 690 drivers/usb/chipidea/udc.c if (hwep->type == USB_ENDPOINT_XFER_CONTROL) hwep 691 drivers/usb/chipidea/udc.c hwep->dir = (hwep->dir == TX) ? RX : TX; hwep 693 drivers/usb/chipidea/udc.c } while (hwep->dir != direction); hwep 695 drivers/usb/chipidea/udc.c spin_unlock_irqrestore(hwep->lock, flags); hwep 804 drivers/usb/chipidea/udc.c struct ci_hw_ep *hwep = container_of(ep, struct ci_hw_ep, ep); hwep 806 drivers/usb/chipidea/udc.c struct ci_hdrc *ci = hwep->ci; hwep 809 drivers/usb/chipidea/udc.c if (ep == NULL || req == NULL || hwep->ep.desc == NULL) hwep 812 drivers/usb/chipidea/udc.c if (hwep->type == USB_ENDPOINT_XFER_CONTROL) { hwep 814 drivers/usb/chipidea/udc.c hwep = (ci->ep0_dir == RX) ? hwep 816 drivers/usb/chipidea/udc.c if (!list_empty(&hwep->qh.queue)) { hwep 817 drivers/usb/chipidea/udc.c _ep_nuke(hwep); hwep 818 drivers/usb/chipidea/udc.c dev_warn(hwep->ci->dev, "endpoint ctrl %X nuked\n", hwep 819 drivers/usb/chipidea/udc.c _usb_addr(hwep)); hwep 823 drivers/usb/chipidea/udc.c if (usb_endpoint_xfer_isoc(hwep->ep.desc) && hwep 824 drivers/usb/chipidea/udc.c hwreq->req.length > hwep->ep.mult * hwep->ep.maxpacket) { hwep 825 drivers/usb/chipidea/udc.c dev_err(hwep->ci->dev, "request length too big for isochronous\n"); hwep 831 drivers/usb/chipidea/udc.c dev_err(hwep->ci->dev, "request already in queue\n"); hwep 839 drivers/usb/chipidea/udc.c retval = _hardware_enqueue(hwep, hwreq); hwep 844 drivers/usb/chipidea/udc.c list_add_tail(&hwreq->queue, &hwep->qh.queue); hwep 858 drivers/usb/chipidea/udc.c __releases(hwep->lock) hwep 859 drivers/usb/chipidea/udc.c __acquires(hwep->lock) hwep 861 drivers/usb/chipidea/udc.c struct ci_hw_ep *hwep = ci->ep0in; hwep 866 drivers/usb/chipidea/udc.c if (hwep == NULL || setup == NULL) hwep 869 drivers/usb/chipidea/udc.c spin_unlock(hwep->lock); hwep 870 drivers/usb/chipidea/udc.c req = usb_ep_alloc_request(&hwep->ep, gfp_flags); hwep 871 drivers/usb/chipidea/udc.c spin_lock(hwep->lock); hwep 895 drivers/usb/chipidea/udc.c retval = _ep_queue(&hwep->ep, req, gfp_flags); hwep 904 drivers/usb/chipidea/udc.c spin_unlock(hwep->lock); hwep 905 drivers/usb/chipidea/udc.c usb_ep_free_request(&hwep->ep, req); hwep 906 drivers/usb/chipidea/udc.c spin_lock(hwep->lock); hwep 945 drivers/usb/chipidea/udc.c struct ci_hw_ep *hwep; hwep 956 drivers/usb/chipidea/udc.c hwep = (ci->ep0_dir == TX) ? ci->ep0out : ci->ep0in; hwep 960 drivers/usb/chipidea/udc.c return _ep_queue(&hwep->ep, ci->status, GFP_ATOMIC); hwep 970 drivers/usb/chipidea/udc.c static int isr_tr_complete_low(struct ci_hw_ep *hwep) hwep 971 drivers/usb/chipidea/udc.c __releases(hwep->lock) hwep 972 drivers/usb/chipidea/udc.c __acquires(hwep->lock) hwep 975 drivers/usb/chipidea/udc.c struct ci_hw_ep *hweptemp = hwep; hwep 978 drivers/usb/chipidea/udc.c list_for_each_entry_safe(hwreq, hwreqtemp, &hwep->qh.queue, hwep 980 drivers/usb/chipidea/udc.c retval = _hardware_dequeue(hwep, hwreq); hwep 985 drivers/usb/chipidea/udc.c spin_unlock(hwep->lock); hwep 986 drivers/usb/chipidea/udc.c if ((hwep->type == USB_ENDPOINT_XFER_CONTROL) && hwep 988 drivers/usb/chipidea/udc.c hweptemp = hwep->ci->ep0in; hwep 990 drivers/usb/chipidea/udc.c spin_lock(hwep->lock); hwep 1017 drivers/usb/chipidea/udc.c struct ci_hw_ep *hwep = &ci->ci_hw_ep[0]; hwep 1032 drivers/usb/chipidea/udc.c memcpy(&req, &hwep->qh.ptr->setup, sizeof(req)); hwep 1171 drivers/usb/chipidea/udc.c if (_ep_set_halt(&hwep->ep, 1, false)) hwep 1191 drivers/usb/chipidea/udc.c struct ci_hw_ep *hwep = &ci->ci_hw_ep[i]; hwep 1193 drivers/usb/chipidea/udc.c if (hwep->ep.desc == NULL) hwep 1197 drivers/usb/chipidea/udc.c err = isr_tr_complete_low(hwep); hwep 1198 drivers/usb/chipidea/udc.c if (hwep->type == USB_ENDPOINT_XFER_CONTROL) { hwep 1203 drivers/usb/chipidea/udc.c if (_ep_set_halt(&hwep->ep, 1, false)) hwep 1229 drivers/usb/chipidea/udc.c struct ci_hw_ep *hwep = container_of(ep, struct ci_hw_ep, ep); hwep 1237 drivers/usb/chipidea/udc.c spin_lock_irqsave(hwep->lock, flags); hwep 1241 drivers/usb/chipidea/udc.c if (!list_empty(&hwep->qh.queue)) { hwep 1242 drivers/usb/chipidea/udc.c dev_warn(hwep->ci->dev, "enabling a non-empty endpoint!\n"); hwep 1243 drivers/usb/chipidea/udc.c spin_unlock_irqrestore(hwep->lock, flags); hwep 1247 drivers/usb/chipidea/udc.c hwep->ep.desc = desc; hwep 1249 drivers/usb/chipidea/udc.c hwep->dir = usb_endpoint_dir_in(desc) ? TX : RX; hwep 1250 drivers/usb/chipidea/udc.c hwep->num = usb_endpoint_num(desc); hwep 1251 drivers/usb/chipidea/udc.c hwep->type = usb_endpoint_type(desc); hwep 1253 drivers/usb/chipidea/udc.c hwep->ep.maxpacket = usb_endpoint_maxp(desc); hwep 1254 drivers/usb/chipidea/udc.c hwep->ep.mult = usb_endpoint_maxp_mult(desc); hwep 1256 drivers/usb/chipidea/udc.c if (hwep->type == USB_ENDPOINT_XFER_CONTROL) hwep 1260 drivers/usb/chipidea/udc.c cap |= (hwep->ep.maxpacket << __ffs(QH_MAX_PKT)) & QH_MAX_PKT; hwep 1265 drivers/usb/chipidea/udc.c if (hwep->type == USB_ENDPOINT_XFER_ISOC && hwep->dir == TX) hwep 1268 drivers/usb/chipidea/udc.c hwep->qh.ptr->cap = cpu_to_le32(cap); hwep 1270 drivers/usb/chipidea/udc.c hwep->qh.ptr->td.next |= cpu_to_le32(TD_TERMINATE); /* needed? */ hwep 1272 drivers/usb/chipidea/udc.c if (hwep->num != 0 && hwep->type == USB_ENDPOINT_XFER_CONTROL) { hwep 1273 drivers/usb/chipidea/udc.c dev_err(hwep->ci->dev, "Set control xfer at non-ep0\n"); hwep 1281 drivers/usb/chipidea/udc.c if (hwep->num) hwep 1282 drivers/usb/chipidea/udc.c retval |= hw_ep_enable(hwep->ci, hwep->num, hwep->dir, hwep 1283 drivers/usb/chipidea/udc.c hwep->type); hwep 1285 drivers/usb/chipidea/udc.c spin_unlock_irqrestore(hwep->lock, flags); hwep 1296 drivers/usb/chipidea/udc.c struct ci_hw_ep *hwep = container_of(ep, struct ci_hw_ep, ep); hwep 1302 drivers/usb/chipidea/udc.c else if (hwep->ep.desc == NULL) hwep 1305 drivers/usb/chipidea/udc.c spin_lock_irqsave(hwep->lock, flags); hwep 1306 drivers/usb/chipidea/udc.c if (hwep->ci->gadget.speed == USB_SPEED_UNKNOWN) { hwep 1307 drivers/usb/chipidea/udc.c spin_unlock_irqrestore(hwep->lock, flags); hwep 1313 drivers/usb/chipidea/udc.c direction = hwep->dir; hwep 1315 drivers/usb/chipidea/udc.c retval |= _ep_nuke(hwep); hwep 1316 drivers/usb/chipidea/udc.c retval |= hw_ep_disable(hwep->ci, hwep->num, hwep->dir); hwep 1318 drivers/usb/chipidea/udc.c if (hwep->type == USB_ENDPOINT_XFER_CONTROL) hwep 1319 drivers/usb/chipidea/udc.c hwep->dir = (hwep->dir == TX) ? RX : TX; hwep 1321 drivers/usb/chipidea/udc.c } while (hwep->dir != direction); hwep 1323 drivers/usb/chipidea/udc.c hwep->ep.desc = NULL; hwep 1325 drivers/usb/chipidea/udc.c spin_unlock_irqrestore(hwep->lock, flags); hwep 1357 drivers/usb/chipidea/udc.c struct ci_hw_ep *hwep = container_of(ep, struct ci_hw_ep, ep); hwep 1365 drivers/usb/chipidea/udc.c dev_err(hwep->ci->dev, "freeing queued request\n"); hwep 1369 drivers/usb/chipidea/udc.c spin_lock_irqsave(hwep->lock, flags); hwep 1372 drivers/usb/chipidea/udc.c dma_pool_free(hwep->td_pool, node->ptr, node->dma); hwep 1380 drivers/usb/chipidea/udc.c spin_unlock_irqrestore(hwep->lock, flags); hwep 1391 drivers/usb/chipidea/udc.c struct ci_hw_ep *hwep = container_of(ep, struct ci_hw_ep, ep); hwep 1395 drivers/usb/chipidea/udc.c if (ep == NULL || req == NULL || hwep->ep.desc == NULL) hwep 1398 drivers/usb/chipidea/udc.c spin_lock_irqsave(hwep->lock, flags); hwep 1399 drivers/usb/chipidea/udc.c if (hwep->ci->gadget.speed == USB_SPEED_UNKNOWN) { hwep 1400 drivers/usb/chipidea/udc.c spin_unlock_irqrestore(hwep->lock, flags); hwep 1404 drivers/usb/chipidea/udc.c spin_unlock_irqrestore(hwep->lock, flags); hwep 1415 drivers/usb/chipidea/udc.c struct ci_hw_ep *hwep = container_of(ep, struct ci_hw_ep, ep); hwep 1421 drivers/usb/chipidea/udc.c hwep->ep.desc == NULL || list_empty(&hwreq->queue) || hwep 1422 drivers/usb/chipidea/udc.c list_empty(&hwep->qh.queue)) hwep 1425 drivers/usb/chipidea/udc.c spin_lock_irqsave(hwep->lock, flags); hwep 1426 drivers/usb/chipidea/udc.c if (hwep->ci->gadget.speed != USB_SPEED_UNKNOWN) hwep 1427 drivers/usb/chipidea/udc.c hw_ep_flush(hwep->ci, hwep->num, hwep->dir); hwep 1430 drivers/usb/chipidea/udc.c dma_pool_free(hwep->td_pool, node->ptr, node->dma); hwep 1438 drivers/usb/chipidea/udc.c usb_gadget_unmap_request(&hwep->ci->gadget, req, hwep->dir); hwep 1443 drivers/usb/chipidea/udc.c spin_unlock(hwep->lock); hwep 1444 drivers/usb/chipidea/udc.c usb_gadget_giveback_request(&hwep->ep, &hwreq->req); hwep 1445 drivers/usb/chipidea/udc.c spin_lock(hwep->lock); hwep 1448 drivers/usb/chipidea/udc.c spin_unlock_irqrestore(hwep->lock, flags); hwep 1469 drivers/usb/chipidea/udc.c struct ci_hw_ep *hwep = container_of(ep, struct ci_hw_ep, ep); hwep 1472 drivers/usb/chipidea/udc.c if (ep == NULL || hwep->ep.desc == NULL) hwep 1475 drivers/usb/chipidea/udc.c spin_lock_irqsave(hwep->lock, flags); hwep 1476 drivers/usb/chipidea/udc.c hwep->wedge = 1; hwep 1477 drivers/usb/chipidea/udc.c spin_unlock_irqrestore(hwep->lock, flags); hwep 1489 drivers/usb/chipidea/udc.c struct ci_hw_ep *hwep = container_of(ep, struct ci_hw_ep, ep); hwep 1493 drivers/usb/chipidea/udc.c dev_err(hwep->ci->dev, "%02X: -EINVAL\n", _usb_addr(hwep)); hwep 1497 drivers/usb/chipidea/udc.c spin_lock_irqsave(hwep->lock, flags); hwep 1498 drivers/usb/chipidea/udc.c if (hwep->ci->gadget.speed == USB_SPEED_UNKNOWN) { hwep 1499 drivers/usb/chipidea/udc.c spin_unlock_irqrestore(hwep->lock, flags); hwep 1503 drivers/usb/chipidea/udc.c hw_ep_flush(hwep->ci, hwep->num, hwep->dir); hwep 1505 drivers/usb/chipidea/udc.c spin_unlock_irqrestore(hwep->lock, flags); hwep 1604 drivers/usb/chipidea/udc.c struct ci_hw_ep *hwep = ci->ep0in; hwep 1607 drivers/usb/chipidea/udc.c spin_lock_irqsave(hwep->lock, flags); hwep 1609 drivers/usb/chipidea/udc.c spin_unlock_irqrestore(hwep->lock, flags); hwep 1683 drivers/usb/chipidea/udc.c struct ci_hw_ep *hwep = &ci->ci_hw_ep[k]; hwep 1685 drivers/usb/chipidea/udc.c scnprintf(hwep->name, sizeof(hwep->name), "ep%i%s", i, hwep 1688 drivers/usb/chipidea/udc.c hwep->ci = ci; hwep 1689 drivers/usb/chipidea/udc.c hwep->lock = &ci->lock; hwep 1690 drivers/usb/chipidea/udc.c hwep->td_pool = ci->td_pool; hwep 1692 drivers/usb/chipidea/udc.c hwep->ep.name = hwep->name; hwep 1693 drivers/usb/chipidea/udc.c hwep->ep.ops = &usb_ep_ops; hwep 1696 drivers/usb/chipidea/udc.c hwep->ep.caps.type_control = true; hwep 1698 drivers/usb/chipidea/udc.c hwep->ep.caps.type_iso = true; hwep 1699 drivers/usb/chipidea/udc.c hwep->ep.caps.type_bulk = true; hwep 1700 drivers/usb/chipidea/udc.c hwep->ep.caps.type_int = true; hwep 1704 drivers/usb/chipidea/udc.c hwep->ep.caps.dir_in = true; hwep 1706 drivers/usb/chipidea/udc.c hwep->ep.caps.dir_out = true; hwep 1713 drivers/usb/chipidea/udc.c usb_ep_set_maxpacket_limit(&hwep->ep, (unsigned short)~0); hwep 1715 drivers/usb/chipidea/udc.c INIT_LIST_HEAD(&hwep->qh.queue); hwep 1716 drivers/usb/chipidea/udc.c hwep->qh.ptr = dma_pool_zalloc(ci->qh_pool, GFP_KERNEL, hwep 1717 drivers/usb/chipidea/udc.c &hwep->qh.dma); hwep 1718 drivers/usb/chipidea/udc.c if (hwep->qh.ptr == NULL) hwep 1727 drivers/usb/chipidea/udc.c ci->ep0out = hwep; hwep 1729 drivers/usb/chipidea/udc.c ci->ep0in = hwep; hwep 1731 drivers/usb/chipidea/udc.c usb_ep_set_maxpacket_limit(&hwep->ep, CTRL_PAYLOAD_MAX); hwep 1735 drivers/usb/chipidea/udc.c list_add_tail(&hwep->ep.ep_list, &ci->gadget.ep_list); hwep 1746 drivers/usb/chipidea/udc.c struct ci_hw_ep *hwep = &ci->ci_hw_ep[i]; hwep 1748 drivers/usb/chipidea/udc.c if (hwep->pending_td) hwep 1749 drivers/usb/chipidea/udc.c free_pending_td(hwep); hwep 1750 drivers/usb/chipidea/udc.c dma_pool_free(ci->qh_pool, hwep->qh.ptr, hwep->qh.dma); hwep 794 drivers/usb/gadget/udc/lpc32xx_udc.c static void uda_enable_hwepint(struct lpc32xx_udc *udc, u32 hwep) hwep 796 drivers/usb/gadget/udc/lpc32xx_udc.c udc->enabled_hwepints |= (1 << hwep); hwep 801 drivers/usb/gadget/udc/lpc32xx_udc.c static void uda_disable_hwepint(struct lpc32xx_udc *udc, u32 hwep) hwep 803 drivers/usb/gadget/udc/lpc32xx_udc.c udc->enabled_hwepints &= ~(1 << hwep); hwep 808 drivers/usb/gadget/udc/lpc32xx_udc.c static inline void uda_clear_hwepint(struct lpc32xx_udc *udc, u32 hwep) hwep 810 drivers/usb/gadget/udc/lpc32xx_udc.c writel((1 << hwep), USBD_EPINTCLR(udc->udp_baseaddr)); hwep 814 drivers/usb/gadget/udc/lpc32xx_udc.c static inline void udc_ep_dma_enable(struct lpc32xx_udc *udc, u32 hwep) hwep 816 drivers/usb/gadget/udc/lpc32xx_udc.c writel((1 << hwep), USBD_EPDMAEN(udc->udp_baseaddr)); hwep 820 drivers/usb/gadget/udc/lpc32xx_udc.c static inline void udc_ep_dma_disable(struct lpc32xx_udc *udc, u32 hwep) hwep 822 drivers/usb/gadget/udc/lpc32xx_udc.c writel((1 << hwep), USBD_EPDMADIS(udc->udp_baseaddr)); hwep 833 drivers/usb/gadget/udc/lpc32xx_udc.c static void udc_realize_hwep(struct lpc32xx_udc *udc, u32 hwep, hwep 839 drivers/usb/gadget/udc/lpc32xx_udc.c writel(hwep, USBD_EPIND(udc->udp_baseaddr)); hwep 840 drivers/usb/gadget/udc/lpc32xx_udc.c udc->realized_eps |= (1 << hwep); hwep 855 drivers/usb/gadget/udc/lpc32xx_udc.c static void udc_unrealize_hwep(struct lpc32xx_udc *udc, u32 hwep) hwep 857 drivers/usb/gadget/udc/lpc32xx_udc.c udc->realized_eps &= ~(1 << hwep); hwep 867 drivers/usb/gadget/udc/lpc32xx_udc.c static u32 udc_selep_clrint(struct lpc32xx_udc *udc, u32 hwep) hwep 869 drivers/usb/gadget/udc/lpc32xx_udc.c udc_protocol_cmd_w(udc, CMD_SEL_EP_CLRI(hwep)); hwep 870 drivers/usb/gadget/udc/lpc32xx_udc.c return udc_protocol_cmd_r(udc, DAT_SEL_EP_CLRI(hwep)); hwep 874 drivers/usb/gadget/udc/lpc32xx_udc.c static void udc_disable_hwep(struct lpc32xx_udc *udc, u32 hwep) hwep 876 drivers/usb/gadget/udc/lpc32xx_udc.c udc_protocol_cmd_data_w(udc, CMD_SET_EP_STAT(hwep), hwep 881 drivers/usb/gadget/udc/lpc32xx_udc.c static void udc_stall_hwep(struct lpc32xx_udc *udc, u32 hwep) hwep 883 drivers/usb/gadget/udc/lpc32xx_udc.c udc_protocol_cmd_data_w(udc, CMD_SET_EP_STAT(hwep), hwep 888 drivers/usb/gadget/udc/lpc32xx_udc.c static void udc_clrstall_hwep(struct lpc32xx_udc *udc, u32 hwep) hwep 890 drivers/usb/gadget/udc/lpc32xx_udc.c udc_protocol_cmd_data_w(udc, CMD_SET_EP_STAT(hwep), hwep 895 drivers/usb/gadget/udc/lpc32xx_udc.c static void udc_select_hwep(struct lpc32xx_udc *udc, u32 hwep) hwep 897 drivers/usb/gadget/udc/lpc32xx_udc.c udc_protocol_cmd_w(udc, CMD_SEL_EP(hwep)); hwep 906 drivers/usb/gadget/udc/lpc32xx_udc.c static void udc_clr_buffer_hwep(struct lpc32xx_udc *udc, u32 hwep) hwep 908 drivers/usb/gadget/udc/lpc32xx_udc.c udc_select_hwep(udc, hwep); hwep 913 drivers/usb/gadget/udc/lpc32xx_udc.c static void udc_val_buffer_hwep(struct lpc32xx_udc *udc, u32 hwep) hwep 915 drivers/usb/gadget/udc/lpc32xx_udc.c udc_select_hwep(udc, hwep); hwep 919 drivers/usb/gadget/udc/lpc32xx_udc.c static inline u32 udc_clearep_getsts(struct lpc32xx_udc *udc, u32 hwep) hwep 922 drivers/usb/gadget/udc/lpc32xx_udc.c uda_clear_hwepint(udc, hwep); hwep 923 drivers/usb/gadget/udc/lpc32xx_udc.c return udc_selep_clrint(udc, hwep); hwep 990 drivers/usb/gadget/udc/lpc32xx_udc.c u32 hwep = ep->hwep_num; hwep 998 drivers/usb/gadget/udc/lpc32xx_udc.c udc->udca_v_base[hwep] = req->dd_desc_ptr->this_dma; hwep 1001 drivers/usb/gadget/udc/lpc32xx_udc.c udc_ep_dma_enable(udc, hwep); hwep 1016 drivers/usb/gadget/udc/lpc32xx_udc.c u32 hwep = ep->hwep_num; hwep 1024 drivers/usb/gadget/udc/lpc32xx_udc.c udc->udca_v_base[hwep] = req->dd_desc_ptr->this_dma; hwep 1027 drivers/usb/gadget/udc/lpc32xx_udc.c udc_ep_dma_enable(udc, hwep); hwep 1214 drivers/usb/gadget/udc/lpc32xx_udc.c static u32 udc_read_hwep(struct lpc32xx_udc *udc, u32 hwep, u32 *data, hwep 1219 drivers/usb/gadget/udc/lpc32xx_udc.c u32 tmp, hwrep = ((hwep & 0x1E) << 1) | CTRL_RD_EN; hwep 1239 drivers/usb/gadget/udc/lpc32xx_udc.c writel(((hwep & 0x1E) << 1), USBD_CTRL(udc->udp_baseaddr)); hwep 1242 drivers/usb/gadget/udc/lpc32xx_udc.c udc_clr_buffer_hwep(udc, hwep); hwep 1318 drivers/usb/gadget/udc/lpc32xx_udc.c static void udc_write_hwep(struct lpc32xx_udc *udc, u32 hwep, u32 *data, hwep 1321 drivers/usb/gadget/udc/lpc32xx_udc.c u32 hwwep = ((hwep & 0x1E) << 1) | CTRL_WR_EN; hwep 1337 drivers/usb/gadget/udc/lpc32xx_udc.c writel(((hwep & 0x1E) << 1), USBD_CTRL(udc->udp_baseaddr)); hwep 1339 drivers/usb/gadget/udc/lpc32xx_udc.c udc_val_buffer_hwep(udc, hwep); hwep 293 drivers/usb/musb/musb_trace.h __field(u8, hwep) hwep 303 drivers/usb/musb/musb_trace.h __entry->hwep = ch->hw_ep->epnum; hwep 311 drivers/usb/musb/musb_trace.h __get_str(name), __entry->ch, __entry->hwep,