Lines Matching refs:ath
74 struct ath_struct *ath; in ath_hci_uart_work() local
78 ath = container_of(work, struct ath_struct, ctxtsw); in ath_hci_uart_work()
80 hu = ath->hu; in ath_hci_uart_work()
84 if (ath->cur_sleep) { in ath_hci_uart_work()
97 struct ath_struct *ath; in ath_open() local
104 ath = kzalloc(sizeof(*ath), GFP_KERNEL); in ath_open()
105 if (!ath) in ath_open()
108 skb_queue_head_init(&ath->txq); in ath_open()
110 hu->priv = ath; in ath_open()
111 ath->hu = hu; in ath_open()
113 INIT_WORK(&ath->ctxtsw, ath_hci_uart_work); in ath_open()
120 struct ath_struct *ath = hu->priv; in ath_close() local
124 skb_queue_purge(&ath->txq); in ath_close()
126 kfree_skb(ath->rx_skb); in ath_close()
128 cancel_work_sync(&ath->ctxtsw); in ath_close()
131 kfree(ath); in ath_close()
138 struct ath_struct *ath = hu->priv; in ath_flush() local
142 skb_queue_purge(&ath->txq); in ath_flush()
192 struct ath_struct *ath = hu->priv; in ath_recv() local
194 ath->rx_skb = h4_recv_buf(hu->hdev, ath->rx_skb, data, count, in ath_recv()
196 if (IS_ERR(ath->rx_skb)) { in ath_recv()
197 int err = PTR_ERR(ath->rx_skb); in ath_recv()
199 ath->rx_skb = NULL; in ath_recv()
210 struct ath_struct *ath = hu->priv; in ath_enqueue() local
224 ath->cur_sleep = skb->data[HCI_COMMAND_HDR_SIZE]; in ath_enqueue()
232 skb_queue_tail(&ath->txq, skb); in ath_enqueue()
235 schedule_work(&ath->ctxtsw); in ath_enqueue()
242 struct ath_struct *ath = hu->priv; in ath_dequeue() local
244 return skb_dequeue(&ath->txq); in ath_dequeue()