#include "mt7601u.h"
#include "dma.h"
#include "usb.h"
#include "trace.h"
static int mt7601u_submit_rx_buf(struct mt7601u_dev *dev,
struct mt7601u_dma_buf_rx *e, gfp_t gfp);
static unsigned int ieee80211_get_hdrlen_from_buf(const u8 *data, unsigned len)
{ … }
static struct sk_buff *
mt7601u_rx_skb_from_seg(struct mt7601u_dev *dev, struct mt7601u_rxwi *rxwi,
void *data, u32 seg_len, u32 truesize, struct page *p)
{ … }
static void mt7601u_rx_process_seg(struct mt7601u_dev *dev, u8 *data,
u32 seg_len, struct page *p,
struct list_head *list)
{ … }
static u16 mt7601u_rx_next_seg_len(u8 *data, u32 data_len)
{ … }
static void
mt7601u_rx_process_entry(struct mt7601u_dev *dev, struct mt7601u_dma_buf_rx *e)
{ … }
static struct mt7601u_dma_buf_rx *
mt7601u_rx_get_pending_entry(struct mt7601u_dev *dev)
{ … }
static void mt7601u_complete_rx(struct urb *urb)
{ … }
static void mt7601u_rx_tasklet(struct tasklet_struct *t)
{ … }
static void mt7601u_complete_tx(struct urb *urb)
{ … }
static void mt7601u_tx_tasklet(struct tasklet_struct *t)
{ … }
static int mt7601u_dma_submit_tx(struct mt7601u_dev *dev,
struct sk_buff *skb, u8 ep)
{ … }
static u8 q2ep(u8 qid)
{ … }
static enum mt76_qsel ep2dmaq(u8 ep)
{ … }
int mt7601u_dma_enqueue_tx(struct mt7601u_dev *dev, struct sk_buff *skb,
struct mt76_wcid *wcid, int hw_q)
{ … }
static void mt7601u_kill_rx(struct mt7601u_dev *dev)
{ … }
static int mt7601u_submit_rx_buf(struct mt7601u_dev *dev,
struct mt7601u_dma_buf_rx *e, gfp_t gfp)
{ … }
static int mt7601u_submit_rx(struct mt7601u_dev *dev)
{ … }
static void mt7601u_free_rx(struct mt7601u_dev *dev)
{ … }
static int mt7601u_alloc_rx(struct mt7601u_dev *dev)
{ … }
static void mt7601u_free_tx_queue(struct mt7601u_tx_queue *q)
{ … }
static void mt7601u_free_tx(struct mt7601u_dev *dev)
{ … }
static int mt7601u_alloc_tx_queue(struct mt7601u_dev *dev,
struct mt7601u_tx_queue *q)
{ … }
static int mt7601u_alloc_tx(struct mt7601u_dev *dev)
{ … }
int mt7601u_dma_init(struct mt7601u_dev *dev)
{ … }
void mt7601u_dma_cleanup(struct mt7601u_dev *dev)
{ … }