示例#1
0
int rt2x00usb_initialize(struct rt2x00_dev *rt2x00dev)
{
	struct data_queue *queue;
	int status;

	
	status = rt2x00usb_find_endpoints(rt2x00dev);
	if (status)
		goto exit;

	
	queue_for_each(rt2x00dev, queue) {
		status = rt2x00usb_alloc_urb(rt2x00dev, queue);
		if (status)
			goto exit;
	}
示例#2
0
int rt2x00usb_initialize(struct rt2x00_dev *rt2x00dev)
{
    struct data_queue *queue;
    int status;

    /*
     * Find endpoints for each queue
     */
    status = rt2x00usb_find_endpoints(rt2x00dev);
    if (status)
        goto exit;

    /*
     * Allocate DMA
     */
    queue_for_each(rt2x00dev, queue) {
        status = rt2x00usb_alloc_entries(queue);
        if (status)
            goto exit;
    }