Lines Matching refs:btdev
86 struct bt_l2cap_device_s btdev; member
108 struct bt_scatternet_s *net = s->btdev.device.net; in bt_hid_reset()
111 bt_l2cap_device_done(&s->btdev); in bt_hid_reset()
112 bt_l2cap_device_init(&s->btdev, net); in bt_hid_reset()
449 hid->btdev.device.page_scan = !hid->connected; in bt_hid_connected_update()
450 hid->btdev.device.inquiry_scan = !hid->connected; in bt_hid_connected_update()
519 bt_l2cap_device_done(&hid->btdev); in bt_hid_destroy()
547 bt_l2cap_device_init(&s->btdev, net); in bt_hid_init()
548 bt_l2cap_sdp_init(&s->btdev); in bt_hid_init()
549 bt_l2cap_psm_register(&s->btdev, BT_PSM_HID_CTRL, in bt_hid_init()
551 bt_l2cap_psm_register(&s->btdev, BT_PSM_HID_INTR, in bt_hid_init()
555 s->btdev.device.lmp_name = s->usbdev->devname; in bt_hid_init()
558 s->btdev.device.handle_destroy = bt_hid_destroy; in bt_hid_init()
560 s->btdev.device.class[0] = (class >> 0) & 0xff; in bt_hid_init()
561 s->btdev.device.class[1] = (class >> 8) & 0xff; in bt_hid_init()
562 s->btdev.device.class[2] = (class >> 16) & 0xff; in bt_hid_init()
564 return &s->btdev.device; in bt_hid_init()