struct urbp *alloc_urbp(void);
void free_urbp_and_urb(struct urbp *urb_p);
-struct vep *find_endpoint(struct vudc *udc, u8 address);
+struct vep *vudc_find_endpoint(struct vudc *udc, u8 address);
struct vudc_device *alloc_vudc_device(int devid);
void put_vudc_device(struct vudc_device *udc_dev);
}
}
-struct vep *find_endpoint(struct vudc *udc, u8 address)
+struct vep *vudc_find_endpoint(struct vudc *udc, u8 address)
{
int i;
address |= USB_DIR_IN;
spin_lock_irq(&udc->lock);
- urb_p->ep = find_endpoint(udc, address);
+ urb_p->ep = vudc_find_endpoint(udc, address);
if (!urb_p->ep) {
/* we don't know the type, there may be isoc data! */
dev_err(&udc->pdev->dev, "request to nonexistent endpoint");
}
} else if (setup->bRequestType == EP_REQUEST) {
/* endpoint halt */
- ep2 = find_endpoint(udc, w_index);
+ ep2 = vudc_find_endpoint(udc, w_index);
if (!ep2 || ep2->ep.name == udc->ep[0].ep.name) {
ret_val = -EOPNOTSUPP;
break;
}
} else if (setup->bRequestType == EP_REQUEST) {
/* endpoint halt */
- ep2 = find_endpoint(udc, w_index);
+ ep2 = vudc_find_endpoint(udc, w_index);
if (!ep2) {
ret_val = -EOPNOTSUPP;
break;
buf = (char *)urb->transfer_buffer;
if (urb->transfer_buffer_length > 0) {
if (setup->bRequestType == EP_INREQUEST) {
- ep2 = find_endpoint(udc, w_index);
+ ep2 = vudc_find_endpoint(udc, w_index);
if (!ep2) {
ret_val = -EOPNOTSUPP;
break;