Lines Matching refs:hdev
58 struct hci_dev *hdev; member
82 BT_DBG("%s", data->hdev->name); in btsdio_tx_packet()
98 data->hdev->stat.byte_tx += skb->len; in btsdio_tx_packet()
111 BT_DBG("%s", data->hdev->name); in btsdio_work()
118 data->hdev->stat.err_tx++; in btsdio_work()
133 BT_DBG("%s", data->hdev->name); in btsdio_rx_packet()
159 data->hdev->stat.byte_rx += len; in btsdio_rx_packet()
163 err = hci_recv_frame(data->hdev, skb); in btsdio_rx_packet()
177 BT_DBG("%s", data->hdev->name); in btsdio_interrupt()
184 data->hdev->stat.err_rx++; in btsdio_interrupt()
190 static int btsdio_open(struct hci_dev *hdev) in btsdio_open() argument
192 struct btsdio_data *data = hci_get_drvdata(hdev); in btsdio_open()
195 BT_DBG("%s", hdev->name); in btsdio_open()
220 static int btsdio_close(struct hci_dev *hdev) in btsdio_close() argument
222 struct btsdio_data *data = hci_get_drvdata(hdev); in btsdio_close()
224 BT_DBG("%s", hdev->name); in btsdio_close()
238 static int btsdio_flush(struct hci_dev *hdev) in btsdio_flush() argument
240 struct btsdio_data *data = hci_get_drvdata(hdev); in btsdio_flush()
242 BT_DBG("%s", hdev->name); in btsdio_flush()
249 static int btsdio_send_frame(struct hci_dev *hdev, struct sk_buff *skb) in btsdio_send_frame() argument
251 struct btsdio_data *data = hci_get_drvdata(hdev); in btsdio_send_frame()
253 BT_DBG("%s", hdev->name); in btsdio_send_frame()
257 hdev->stat.cmd_tx++; in btsdio_send_frame()
261 hdev->stat.acl_tx++; in btsdio_send_frame()
265 hdev->stat.sco_tx++; in btsdio_send_frame()
283 struct hci_dev *hdev; in btsdio_probe() local
304 hdev = hci_alloc_dev(); in btsdio_probe()
305 if (!hdev) in btsdio_probe()
308 hdev->bus = HCI_SDIO; in btsdio_probe()
309 hci_set_drvdata(hdev, data); in btsdio_probe()
312 hdev->dev_type = HCI_AMP; in btsdio_probe()
314 hdev->dev_type = HCI_BREDR; in btsdio_probe()
316 data->hdev = hdev; in btsdio_probe()
318 SET_HCIDEV_DEV(hdev, &func->dev); in btsdio_probe()
320 hdev->open = btsdio_open; in btsdio_probe()
321 hdev->close = btsdio_close; in btsdio_probe()
322 hdev->flush = btsdio_flush; in btsdio_probe()
323 hdev->send = btsdio_send_frame; in btsdio_probe()
326 set_bit(HCI_QUIRK_RESET_ON_CLOSE, &hdev->quirks); in btsdio_probe()
328 err = hci_register_dev(hdev); in btsdio_probe()
330 hci_free_dev(hdev); in btsdio_probe()
342 struct hci_dev *hdev; in btsdio_remove() local
349 hdev = data->hdev; in btsdio_remove()
353 hci_unregister_dev(hdev); in btsdio_remove()
355 hci_free_dev(hdev); in btsdio_remove()