Lines Matching refs:rx_q
164 struct mt7601u_rx_queue *q = &dev->rx_q; in mt7601u_rx_get_pending_entry()
185 struct mt7601u_rx_queue *q = &dev->rx_q; in mt7601u_complete_rx()
383 for (i = 0; i < dev->rx_q.entries; i++) in mt7601u_kill_rx()
384 usb_poison_urb(dev->rx_q.e[i].urb); in mt7601u_kill_rx()
412 for (i = 0; i < dev->rx_q.entries; i++) { in mt7601u_submit_rx()
413 ret = mt7601u_submit_rx_buf(dev, &dev->rx_q.e[i], GFP_KERNEL); in mt7601u_submit_rx()
425 for (i = 0; i < dev->rx_q.entries; i++) { in mt7601u_free_rx()
426 __free_pages(dev->rx_q.e[i].p, MT_RX_ORDER); in mt7601u_free_rx()
427 usb_free_urb(dev->rx_q.e[i].urb); in mt7601u_free_rx()
435 memset(&dev->rx_q, 0, sizeof(dev->rx_q)); in mt7601u_alloc_rx()
436 dev->rx_q.dev = dev; in mt7601u_alloc_rx()
437 dev->rx_q.entries = N_RX_ENTRIES; in mt7601u_alloc_rx()
440 dev->rx_q.e[i].urb = usb_alloc_urb(0, GFP_KERNEL); in mt7601u_alloc_rx()
441 dev->rx_q.e[i].p = dev_alloc_pages(MT_RX_ORDER); in mt7601u_alloc_rx()
443 if (!dev->rx_q.e[i].urb || !dev->rx_q.e[i].p) in mt7601u_alloc_rx()