Lines Matching refs:ag6xx
35 struct ag6xx_data *ag6xx; in ag6xx_open() local
39 ag6xx = kzalloc(sizeof(*ag6xx), GFP_KERNEL); in ag6xx_open()
40 if (!ag6xx) in ag6xx_open()
43 skb_queue_head_init(&ag6xx->txq); in ag6xx_open()
45 hu->priv = ag6xx; in ag6xx_open()
51 struct ag6xx_data *ag6xx = hu->priv; in ag6xx_close() local
55 skb_queue_purge(&ag6xx->txq); in ag6xx_close()
56 kfree_skb(ag6xx->rx_skb); in ag6xx_close()
57 kfree(ag6xx); in ag6xx_close()
65 struct ag6xx_data *ag6xx = hu->priv; in ag6xx_flush() local
69 skb_queue_purge(&ag6xx->txq); in ag6xx_flush()
75 struct ag6xx_data *ag6xx = hu->priv; in ag6xx_dequeue() local
78 skb = skb_dequeue(&ag6xx->txq); in ag6xx_dequeue()
89 struct ag6xx_data *ag6xx = hu->priv; in ag6xx_enqueue() local
91 skb_queue_tail(&ag6xx->txq, skb); in ag6xx_enqueue()
103 struct ag6xx_data *ag6xx = hu->priv; in ag6xx_recv() local
108 ag6xx->rx_skb = h4_recv_buf(hu->hdev, ag6xx->rx_skb, data, count, in ag6xx_recv()
111 if (IS_ERR(ag6xx->rx_skb)) { in ag6xx_recv()
112 int err = PTR_ERR(ag6xx->rx_skb); in ag6xx_recv()
114 ag6xx->rx_skb = NULL; in ag6xx_recv()