• Home
  • Raw
  • Download

Lines Matching refs:hu

78 	int			(*rx_func) (struct hci_uart *hu, u8 c);
101 static void h5_link_control(struct hci_uart *hu, const void *data, size_t len) in h5_link_control() argument
103 struct h5 *h5 = hu->priv; in h5_link_control()
131 struct hci_uart *hu = (struct hci_uart *) arg; in h5_timed_event() local
132 struct h5 *h5 = hu->priv; in h5_timed_event()
136 BT_DBG("%s", hu->hdev->name); in h5_timed_event()
139 h5_link_control(hu, sync_req, sizeof(sync_req)); in h5_timed_event()
143 h5_link_control(hu, conf_req, sizeof(conf_req)); in h5_timed_event()
156 BT_DBG("hu %p retransmitting %u pkts", hu, h5->unack.qlen); in h5_timed_event()
168 hci_uart_tx_wakeup(hu); in h5_timed_event()
171 static int h5_open(struct hci_uart *hu) in h5_open() argument
176 BT_DBG("hu %p", hu); in h5_open()
182 hu->priv = h5; in h5_open()
192 h5->timer.data = (unsigned long) hu; in h5_open()
196 set_bit(HCI_UART_INIT_PENDING, &hu->hdev_flags); in h5_open()
199 h5_link_control(hu, sync, sizeof(sync)); in h5_open()
205 static int h5_close(struct hci_uart *hu) in h5_close() argument
207 struct h5 *h5 = hu->priv; in h5_close()
262 static void h5_handle_internal_rx(struct hci_uart *hu) in h5_handle_internal_rx() argument
264 struct h5 *h5 = hu->priv; in h5_handle_internal_rx()
275 BT_DBG("%s", hu->hdev->name); in h5_handle_internal_rx()
286 h5_link_control(hu, sync_rsp, 2); in h5_handle_internal_rx()
289 h5_link_control(hu, conf_req, 3); in h5_handle_internal_rx()
291 h5_link_control(hu, conf_rsp, 2); in h5_handle_internal_rx()
292 h5_link_control(hu, conf_req, 3); in h5_handle_internal_rx()
298 hci_uart_init_ready(hu); in h5_handle_internal_rx()
309 h5_link_control(hu, woken_req, 2); in h5_handle_internal_rx()
316 hci_uart_tx_wakeup(hu); in h5_handle_internal_rx()
319 static void h5_complete_rx_pkt(struct hci_uart *hu) in h5_complete_rx_pkt() argument
321 struct h5 *h5 = hu->priv; in h5_complete_rx_pkt()
327 hci_uart_tx_wakeup(hu); in h5_complete_rx_pkt()
343 hci_recv_frame(hu->hdev, h5->rx_skb); in h5_complete_rx_pkt()
349 h5_handle_internal_rx(hu); in h5_complete_rx_pkt()
356 static int h5_rx_crc(struct hci_uart *hu, unsigned char c) in h5_rx_crc() argument
358 h5_complete_rx_pkt(hu); in h5_rx_crc()
363 static int h5_rx_payload(struct hci_uart *hu, unsigned char c) in h5_rx_payload() argument
365 struct h5 *h5 = hu->priv; in h5_rx_payload()
372 h5_complete_rx_pkt(hu); in h5_rx_payload()
378 static int h5_rx_3wire_hdr(struct hci_uart *hu, unsigned char c) in h5_rx_3wire_hdr() argument
380 struct h5 *h5 = hu->priv; in h5_rx_3wire_hdr()
384 hu->hdev->name, H5_HDR_SEQ(hdr), H5_HDR_ACK(hdr), in h5_rx_3wire_hdr()
414 static int h5_rx_pkt_start(struct hci_uart *hu, unsigned char c) in h5_rx_pkt_start() argument
416 struct h5 *h5 = hu->priv; in h5_rx_pkt_start()
431 h5->rx_skb->dev = (void *) hu->hdev; in h5_rx_pkt_start()
436 static int h5_rx_delimiter(struct hci_uart *hu, unsigned char c) in h5_rx_delimiter() argument
438 struct h5 *h5 = hu->priv; in h5_rx_delimiter()
489 static int h5_recv(struct hci_uart *hu, void *data, int count) in h5_recv() argument
491 struct h5 *h5 = hu->priv; in h5_recv()
494 BT_DBG("%s pending %zu count %d", hu->hdev->name, h5->rx_pending, in h5_recv()
513 processed = h5->rx_func(hu, *ptr); in h5_recv()
524 static int h5_enqueue(struct hci_uart *hu, struct sk_buff *skb) in h5_enqueue() argument
526 struct h5 *h5 = hu->priv; in h5_enqueue()
597 static struct sk_buff *h5_prepare_pkt(struct hci_uart *hu, u8 pkt_type, in h5_prepare_pkt() argument
600 struct h5 *h5 = hu->priv; in h5_prepare_pkt()
639 hu->hdev->name, H5_HDR_SEQ(hdr), H5_HDR_ACK(hdr), in h5_prepare_pkt()
654 static struct sk_buff *h5_dequeue(struct hci_uart *hu) in h5_dequeue() argument
656 struct h5 *h5 = hu->priv; in h5_dequeue()
670 return h5_prepare_pkt(hu, HCI_3WIRE_LINK_PKT, wakeup_req, 2); in h5_dequeue()
675 nskb = h5_prepare_pkt(hu, bt_cb(skb)->pkt_type, in h5_dequeue()
693 nskb = h5_prepare_pkt(hu, bt_cb(skb)->pkt_type, in h5_dequeue()
710 return h5_prepare_pkt(hu, HCI_3WIRE_ACK_PKT, NULL, 0); in h5_dequeue()
715 static int h5_flush(struct hci_uart *hu) in h5_flush() argument
717 BT_DBG("hu %p", hu); in h5_flush()