• Home
  • Raw
  • Download

Lines Matching refs:e

12 				 struct mt7601u_dma_buf_rx *e, gfp_t gfp);
134 mt7601u_rx_process_entry(struct mt7601u_dev *dev, struct mt7601u_dma_buf_rx *e) in mt7601u_rx_process_entry() argument
136 u32 seg_len, data_len = e->urb->actual_length; in mt7601u_rx_process_entry()
137 u8 *data = page_address(e->p); in mt7601u_rx_process_entry()
151 new_p ? e->p : NULL, &list); in mt7601u_rx_process_entry()
165 put_page(e->p); in mt7601u_rx_process_entry()
166 e->p = new_p; in mt7601u_rx_process_entry()
182 buf = &q->e[q->start]; in mt7601u_rx_get_pending_entry()
215 if (WARN_ONCE(q->e[q->end].urb != urb, "RX urb mismatch")) in mt7601u_complete_rx()
228 struct mt7601u_dma_buf_rx *e; in mt7601u_rx_tasklet() local
230 while ((e = mt7601u_rx_get_pending_entry(dev))) { in mt7601u_rx_tasklet()
231 if (e->urb->status) in mt7601u_rx_tasklet()
234 mt7601u_rx_process_entry(dev, e); in mt7601u_rx_tasklet()
235 mt7601u_submit_rx_buf(dev, e, GFP_ATOMIC); in mt7601u_rx_tasklet()
261 if (WARN_ONCE(q->e[q->start].urb != urb, "TX urb mismatch")) in mt7601u_complete_tx()
264 skb = q->e[q->start].skb; in mt7601u_complete_tx()
265 q->e[q->start].skb = NULL; in mt7601u_complete_tx()
311 struct mt7601u_dma_buf_tx *e; in mt7601u_dma_submit_tx() local
323 e = &q->e[q->end]; in mt7601u_dma_submit_tx()
324 usb_fill_bulk_urb(e->urb, usb_dev, snd_pipe, skb->data, skb->len, in mt7601u_dma_submit_tx()
326 ret = usb_submit_urb(e->urb, GFP_ATOMIC); in mt7601u_dma_submit_tx()
341 e->skb = skb; in mt7601u_dma_submit_tx()
395 usb_poison_urb(dev->rx_q.e[i].urb); in mt7601u_kill_rx()
399 struct mt7601u_dma_buf_rx *e, gfp_t gfp) in mt7601u_submit_rx_buf() argument
402 u8 *buf = page_address(e->p); in mt7601u_submit_rx_buf()
408 usb_fill_bulk_urb(e->urb, usb_dev, pipe, buf, MT_RX_URB_SIZE, in mt7601u_submit_rx_buf()
411 trace_mt_submit_urb(dev, e->urb); in mt7601u_submit_rx_buf()
412 ret = usb_submit_urb(e->urb, gfp); in mt7601u_submit_rx_buf()
424 ret = mt7601u_submit_rx_buf(dev, &dev->rx_q.e[i], GFP_KERNEL); in mt7601u_submit_rx()
437 __free_pages(dev->rx_q.e[i].p, MT_RX_ORDER); in mt7601u_free_rx()
438 usb_free_urb(dev->rx_q.e[i].urb); in mt7601u_free_rx()
451 dev->rx_q.e[i].urb = usb_alloc_urb(0, GFP_KERNEL); in mt7601u_alloc_rx()
452 dev->rx_q.e[i].p = dev_alloc_pages(MT_RX_ORDER); in mt7601u_alloc_rx()
454 if (!dev->rx_q.e[i].urb || !dev->rx_q.e[i].p) in mt7601u_alloc_rx()
466 usb_poison_urb(q->e[i].urb); in mt7601u_free_tx_queue()
467 if (q->e[i].skb) in mt7601u_free_tx_queue()
468 mt7601u_tx_status(q->dev, q->e[i].skb); in mt7601u_free_tx_queue()
469 usb_free_urb(q->e[i].urb); in mt7601u_free_tx_queue()
493 q->e[i].urb = usb_alloc_urb(0, GFP_KERNEL); in mt7601u_alloc_tx_queue()
494 if (!q->e[i].urb) in mt7601u_alloc_tx_queue()