static int etrax_usb_submit_urb(struct urb *urb, int mem_flags) 
static int etrax_usb_submit_urb(struct urb *urb, unsigned mem_flags) 
static int etrax_usb_submit_urb(struct urb *urb, int mem_flags){	etrax_hc_t *hc;	int ret = -EINVAL;	DBFENTER;	if (!urb->dev || !urb->dev->bus) {		return -ENODEV;	}	if (usb_maxpacket(urb->dev, urb->pipe, usb_pipeout(urb->pipe)) <= 0) {		info("Submit urb to pipe with maxpacketlen 0, pipe 0x%X\n", urb->pipe);		return -EMSGSIZE;	}	if (urb->timeout) {		/* FIXME. */		warn("urb->timeout specified, ignoring.");	}	hc = (etrax_hc_t*)urb->dev->bus->hcpriv;	if (usb_pipedevice(urb->pipe) == hc->rh.devnum) {		/* This request is for the Virtual Root Hub. */		ret = etrax_rh_submit_urb(urb);	} else if (usb_pipetype(urb->pipe) == PIPE_BULK) {		ret = etrax_usb_submit_bulk_urb(urb);	} else if (usb_pipetype(urb->pipe) == PIPE_CONTROL) {		ret = etrax_usb_submit_ctrl_urb(urb);	} else if (usb_pipetype(urb->pipe) == PIPE_INTERRUPT) {		int bustime;		if (urb->bandwidth == 0) {			bustime = usb_check_bandwidth(urb->dev, urb);			if (bustime < 0) {				ret = bustime;			} else {				ret = etrax_usb_submit_intr_urb(urb);				if (ret == 0)					usb_claim_bandwidth(urb->dev, urb, bustime, 0);			}		} else {			/* Bandwidth already set. */			ret = etrax_usb_submit_intr_urb(urb);		}	} else if (usb_pipetype(urb->pipe) == PIPE_ISOCHRONOUS) {		int bustime;		if (urb->bandwidth == 0) {			bustime = usb_check_bandwidth(urb->dev, urb);			if (bustime < 0) {				ret = bustime;			} else {				ret = etrax_usb_submit_isoc_urb(urb);				if (ret == 0)					usb_claim_bandwidth(urb->dev, urb, bustime, 0);			}		} else {			/* Bandwidth already set. */			ret = etrax_usb_submit_isoc_urb(urb);		}	}	DBFEXIT;        if (ret != 0)          printk("Submit URB error %d\n", ret);	return ret;}
10457	/local/tlutelli/issta_data/temp/c/2005_temp/2005/10457/5db539e49fc7471e23bf3c94ca304f008cb7b7f3/hc_crisv10.c/clean/drivers/usb/host/hc_crisv10.c