Lines Matching refs:hdev
53 struct hci_dev *hdev; member
62 struct hci_dev *hdev = hst->hdev; in ti_st_tx_complete() local
67 hdev->stat.cmd_tx++; in ti_st_tx_complete()
71 hdev->stat.acl_tx++; in ti_st_tx_complete()
75 hdev->stat.sco_tx++; in ti_st_tx_complete()
112 err = hci_recv_frame(lhst->hdev, skb); in st_receive()
118 lhst->hdev->stat.byte_rx += skb->len; in st_receive()
150 static int ti_st_open(struct hci_dev *hdev) in ti_st_open() argument
156 BT_DBG("%s %p", hdev->name, hdev); in ti_st_open()
159 hst = hci_get_drvdata(hdev); in ti_st_open()
227 static int ti_st_close(struct hci_dev *hdev) in ti_st_close() argument
230 struct ti_st *hst = hci_get_drvdata(hdev); in ti_st_close()
244 static int ti_st_send_frame(struct hci_dev *hdev, struct sk_buff *skb) in ti_st_send_frame() argument
249 hst = hci_get_drvdata(hdev); in ti_st_send_frame()
254 BT_DBG("%s: type %d len %d", hdev->name, bt_cb(skb)->pkt_type, in ti_st_send_frame()
270 hdev->stat.byte_tx += len; in ti_st_send_frame()
279 struct hci_dev *hdev; in bt_ti_probe() local
287 hdev = hci_alloc_dev(); in bt_ti_probe()
288 if (!hdev) in bt_ti_probe()
291 BT_DBG("hdev %p", hdev); in bt_ti_probe()
293 hst->hdev = hdev; in bt_ti_probe()
294 hdev->bus = HCI_UART; in bt_ti_probe()
295 hci_set_drvdata(hdev, hst); in bt_ti_probe()
296 hdev->open = ti_st_open; in bt_ti_probe()
297 hdev->close = ti_st_close; in bt_ti_probe()
298 hdev->flush = NULL; in bt_ti_probe()
299 hdev->send = ti_st_send_frame; in bt_ti_probe()
301 err = hci_register_dev(hdev); in bt_ti_probe()
304 hci_free_dev(hdev); in bt_ti_probe()
308 BT_DBG("HCI device registered (hdev %p)", hdev); in bt_ti_probe()
316 struct hci_dev *hdev; in bt_ti_remove() local
322 BT_DBG("%s", hst->hdev->name); in bt_ti_remove()
324 hdev = hst->hdev; in bt_ti_remove()
325 ti_st_close(hdev); in bt_ti_remove()
326 hci_unregister_dev(hdev); in bt_ti_remove()
328 hci_free_dev(hdev); in bt_ti_remove()