Lines Matching refs:ag6xx
50 struct ag6xx_data *ag6xx; in ag6xx_open() local
54 ag6xx = kzalloc(sizeof(*ag6xx), GFP_KERNEL); in ag6xx_open()
55 if (!ag6xx) in ag6xx_open()
58 skb_queue_head_init(&ag6xx->txq); in ag6xx_open()
60 hu->priv = ag6xx; in ag6xx_open()
66 struct ag6xx_data *ag6xx = hu->priv; in ag6xx_close() local
70 skb_queue_purge(&ag6xx->txq); in ag6xx_close()
71 kfree_skb(ag6xx->rx_skb); in ag6xx_close()
72 kfree(ag6xx); in ag6xx_close()
80 struct ag6xx_data *ag6xx = hu->priv; in ag6xx_flush() local
84 skb_queue_purge(&ag6xx->txq); in ag6xx_flush()
90 struct ag6xx_data *ag6xx = hu->priv; in ag6xx_dequeue() local
93 skb = skb_dequeue(&ag6xx->txq); in ag6xx_dequeue()
104 struct ag6xx_data *ag6xx = hu->priv; in ag6xx_enqueue() local
106 skb_queue_tail(&ag6xx->txq, skb); in ag6xx_enqueue()
118 struct ag6xx_data *ag6xx = hu->priv; in ag6xx_recv() local
123 ag6xx->rx_skb = h4_recv_buf(hu->hdev, ag6xx->rx_skb, data, count, in ag6xx_recv()
126 if (IS_ERR(ag6xx->rx_skb)) { in ag6xx_recv()
127 int err = PTR_ERR(ag6xx->rx_skb); in ag6xx_recv()
129 ag6xx->rx_skb = NULL; in ag6xx_recv()