Lines Matching refs:direction
317 * Index = (epnum * 2) + direction - 1,
318 * where direction = 0 for OUT, 1 for IN.
320 * index = (epnum * 2) + direction - 1 = (epnum * 2) + 1 - 1 = (epnum * 2)
358 preq->direction = pep->direction;
362 ret = usb_gadget_map_request_by_dev(pdev->dev, request, pep->direction);
391 pep->direction);
1222 preq->direction);
1577 if (!pep->direction) {
1613 bool direction = !(i & 1); /* Start from OUT endpoint. */
1616 if (!CDNSP_IF_EP_EXIST(pdev, epnum, direction))
1622 pep->direction = direction; /* 0 for OUT, 1 for IN. */
1647 epnum, (pep->direction) ? "in" : "out");
1649 pep->idx = (epnum * 2 + (direction ? 1 : 0)) - 1;
1661 pep->endpoint.caps.dir_in = direction;
1662 pep->endpoint.caps.dir_out = !direction;