Lines Matching refs:ath
88 struct ath_struct *ath; in ath_hci_uart_work() local
92 ath = container_of(work, struct ath_struct, ctxtsw); in ath_hci_uart_work()
94 hu = ath->hu; in ath_hci_uart_work()
98 if (ath->cur_sleep) { in ath_hci_uart_work()
111 struct ath_struct *ath; in ath_open() local
115 ath = kzalloc(sizeof(*ath), GFP_KERNEL); in ath_open()
116 if (!ath) in ath_open()
119 skb_queue_head_init(&ath->txq); in ath_open()
121 hu->priv = ath; in ath_open()
122 ath->hu = hu; in ath_open()
124 INIT_WORK(&ath->ctxtsw, ath_hci_uart_work); in ath_open()
131 struct ath_struct *ath = hu->priv; in ath_close() local
135 skb_queue_purge(&ath->txq); in ath_close()
137 kfree_skb(ath->rx_skb); in ath_close()
139 cancel_work_sync(&ath->ctxtsw); in ath_close()
142 kfree(ath); in ath_close()
149 struct ath_struct *ath = hu->priv; in ath_flush() local
153 skb_queue_purge(&ath->txq); in ath_flush()
203 struct ath_struct *ath = hu->priv; in ath_recv() local
205 ath->rx_skb = h4_recv_buf(hu->hdev, ath->rx_skb, data, count, in ath_recv()
207 if (IS_ERR(ath->rx_skb)) { in ath_recv()
208 int err = PTR_ERR(ath->rx_skb); in ath_recv()
210 ath->rx_skb = NULL; in ath_recv()
221 struct ath_struct *ath = hu->priv; in ath_enqueue() local
235 ath->cur_sleep = skb->data[HCI_COMMAND_HDR_SIZE]; in ath_enqueue()
243 skb_queue_tail(&ath->txq, skb); in ath_enqueue()
246 schedule_work(&ath->ctxtsw); in ath_enqueue()
253 struct ath_struct *ath = hu->priv; in ath_dequeue() local
255 return skb_dequeue(&ath->txq); in ath_dequeue()