Lines Matching refs:index

399 	unsigned int index;
791 dev_info(xudc->dev, "phy index could not be found for shared USB PHY");
816 dev_dbg(xudc->dev, "%s(): current phy index is %d\n", __func__,
888 unsigned int index;
890 index = trb - ep->transfer_ring;
892 if (WARN_ON(index >= XUDC_TRANSFER_RING_SIZE))
895 return (ep->transfer_ring_phys + index * sizeof(*trb));
902 unsigned int index;
904 index = (addr - ep->transfer_ring_phys) / sizeof(*trb);
906 if (WARN_ON(index >= XUDC_TRANSFER_RING_SIZE))
909 trb = &ep->transfer_ring[index];
1026 req, ep->index, status);
1207 val = DB_TARGET(ep->index);
1437 ep_pause(xudc, ep->index);
1438 ep_wait_for_inactive(xudc, ep->index);
1476 ep_reload(xudc, ep->index);
1495 ep_unpause(xudc, ep->index);
1545 if (!!(xudc_readl(xudc, EP_HALT) & BIT(ep->index)) == halt) {
1546 dev_dbg(xudc->dev, "EP %u already %s\n", ep->index,
1552 ep_halt(xudc, ep->index);
1556 ep_reload(xudc, ep->index);
1564 ep_reload(xudc, ep->index);
1565 ep_unpause(xudc, ep->index);
1566 ep_unhalt(xudc, ep->index);
1702 ep->index);
1708 ep_reload(xudc, ep->index);
1721 ep_unpause(xudc, ep->index);
1722 ep_unhalt(xudc, ep->index);
1723 if (xudc_readl(xudc, EP_STOPPED) & BIT(ep->index))
1724 xudc_writel(xudc, BIT(ep->index), EP_STOPPED);
1742 dev_info(xudc->dev, "ep %u disabled\n", ep->index);
1843 ep_reload(xudc, ep->index);
1844 ep_unpause(xudc, ep->index);
1845 ep_unhalt(xudc, ep->index);
1856 dev_info(xudc->dev, "EP %u (type: %s, dir: %s) enabled\n", ep->index,
2256 u32 index = le16_to_cpu(ctrl->wIndex);
2311 xudc->test_mode_pattern = index >> 8;
2327 if (index & USB_INTRF_FUNC_SUSPEND_RW)
2342 ep = (index & USB_ENDPOINT_NUMBER_MASK) * 2 +
2343 ((index & USB_DIR_IN) ? 1 : 0);
2347 (index != 0)))
2365 u32 val, ep, index = le16_to_cpu(ctrl->wIndex);
2402 ep = (index & USB_ENDPOINT_NUMBER_MASK) * 2 +
2403 ((index & USB_DIR_IN) ? 1 : 0);
3140 static int tegra_xudc_alloc_ep(struct tegra_xudc *xudc, unsigned int index)
3142 struct tegra_xudc_ep *ep = &xudc->ep[index];
3145 ep->index = index;
3146 ep->context = &xudc->ep_context[index];
3153 if (index == 1)
3162 if (index) {
3163 snprintf(ep->name, sizeof(ep->name), "ep%u%s", index / 2,
3164 (index % 2 == 0) ? "out" : "in");
3171 if (index & 1)
3189 static void tegra_xudc_free_ep(struct tegra_xudc *xudc, unsigned int index)
3191 struct tegra_xudc_ep *ep = &xudc->ep[index];
3197 if (index == 1)