Lines Matching refs:index
1319 * HCDs. Find the index for an endpoint given its descriptor. Use the return
1324 * For control endpoints, the IN index is used (OUT index is unused), so
1325 * index = (epnum * 2) + direction - 1 = (epnum * 2) + 1 - 1 = (epnum * 2)
1329 unsigned int index;
1331 index = (unsigned int) (usb_endpoint_num(desc)*2);
1333 index = (unsigned int) (usb_endpoint_num(desc)*2) +
1335 return index;
1340 * address from the XHCI endpoint index.
1350 * endpoint index to create a bitmask. The slot context is bit 0, endpoint 0 is
1358 /* Compute the last valid endpoint context index. Basically, this is the
1359 * endpoint index plus one. For slot contexts with more than valid endpoint,
1362 * fls(0b1000) = 4, but the endpoint context index is 3, so subtract one.
4209 * Transfer the port index into real index in the HW port status
4212 * to get the real index. The raw port number bases 1.