Lines Matching defs:epnum
240 int epnum;
244 for (epnum = 0; epnum < hsudc->pd->epnum; epnum++) {
245 hsep = &hsudc->ep[epnum];
543 u8 epnum;
555 epnum = le16_to_cpu(ctrl->wIndex) & USB_ENDPOINT_NUMBER_MASK;
556 hsep = &hsudc->ep[epnum];
920 * @epnum - Address to be assigned to the endpoint.
925 struct s3c_hsudc_ep *hsep, int epnum)
929 if ((epnum % 2) == 0) {
936 hsep->bEndpointAddress |= epnum;
937 if (epnum)
938 snprintf(hsep->name, sizeof(hsep->name), "ep%d%s", epnum, dir);
944 if (epnum)
949 usb_ep_set_maxpacket_limit(&hsep->ep, epnum ? 512 : 64);
951 hsep->fifo = hsudc->regs + S3C_BR(epnum);
956 if (epnum == 0) {
966 if (epnum & 1)
971 set_index(hsudc, epnum);
983 int epnum;
987 for (epnum = 0; epnum < hsudc->pd->epnum; epnum++)
988 s3c_hsudc_initep(hsudc, &hsudc->ep[epnum], epnum);
1064 for (ep_idx = 0; ep_idx < hsudc->pd->epnum; ep_idx++) {
1224 sizeof(struct s3c_hsudc_ep) * pd->epnum,