Lines Matching refs:index

398 	unsigned int index;
794 dev_info(xudc->dev, "phy index could not be found for shared USB PHY");
814 dev_dbg(xudc->dev, "%s(): current phy index is %d\n", __func__,
898 unsigned int index;
900 index = trb - ep->transfer_ring;
902 if (WARN_ON(index >= XUDC_TRANSFER_RING_SIZE))
905 return (ep->transfer_ring_phys + index * sizeof(*trb));
912 unsigned int index;
914 index = (addr - ep->transfer_ring_phys) / sizeof(*trb);
916 if (WARN_ON(index >= XUDC_TRANSFER_RING_SIZE))
919 trb = &ep->transfer_ring[index];
1036 req, ep->index, status);
1217 val = DB_TARGET(ep->index);
1449 ep_pause(xudc, ep->index);
1450 ep_wait_for_inactive(xudc, ep->index);
1488 ep_reload(xudc, ep->index);
1507 ep_unpause(xudc, ep->index);
1557 if (!!(xudc_readl(xudc, EP_HALT) & BIT(ep->index)) == halt) {
1558 dev_dbg(xudc->dev, "EP %u already %s\n", ep->index,
1564 ep_halt(xudc, ep->index);
1568 ep_reload(xudc, ep->index);
1576 ep_reload(xudc, ep->index);
1577 ep_unpause(xudc, ep->index);
1578 ep_unhalt(xudc, ep->index);
1714 ep->index);
1720 ep_reload(xudc, ep->index);
1733 ep_unpause(xudc, ep->index);
1734 ep_unhalt(xudc, ep->index);
1735 if (xudc_readl(xudc, EP_STOPPED) & BIT(ep->index))
1736 xudc_writel(xudc, BIT(ep->index), EP_STOPPED);
1754 dev_info(xudc->dev, "ep %u disabled\n", ep->index);
1855 ep_reload(xudc, ep->index);
1856 ep_unpause(xudc, ep->index);
1857 ep_unhalt(xudc, ep->index);
1868 dev_info(xudc->dev, "EP %u (type: %s, dir: %s) enabled\n", ep->index,
2267 u32 index = le16_to_cpu(ctrl->wIndex);
2322 xudc->test_mode_pattern = index >> 8;
2338 if (index & USB_INTRF_FUNC_SUSPEND_RW)
2353 ep = (index & USB_ENDPOINT_NUMBER_MASK) * 2 +
2354 ((index & USB_DIR_IN) ? 1 : 0);
2358 (index != 0)))
2376 u32 val, ep, index = le16_to_cpu(ctrl->wIndex);
2413 ep = (index & USB_ENDPOINT_NUMBER_MASK) * 2 +
2414 ((index & USB_DIR_IN) ? 1 : 0);
3151 static int tegra_xudc_alloc_ep(struct tegra_xudc *xudc, unsigned int index)
3153 struct tegra_xudc_ep *ep = &xudc->ep[index];
3156 ep->index = index;
3157 ep->context = &xudc->ep_context[index];
3164 if (index == 1)
3173 if (index) {
3174 snprintf(ep->name, sizeof(ep->name), "ep%u%s", index / 2,
3175 (index % 2 == 0) ? "out" : "in");
3182 if (index & 1)
3200 static void tegra_xudc_free_ep(struct tegra_xudc *xudc, unsigned int index)
3202 struct tegra_xudc_ep *ep = &xudc->ep[index];
3208 if (index == 1)