Symbol: hid_device
usr.sbin/bluetooth/bthidcontrol/hid.c
52
struct hid_device *hd = NULL;
usr.sbin/bluetooth/bthidcontrol/hid.c
70
struct hid_device *hd = NULL;
usr.sbin/bluetooth/bthidcontrol/hid.c
91
struct hid_device *hd = NULL;
usr.sbin/bluetooth/bthidcontrol/sdp.c
116
hid_sdp_query(bdaddr_t const *local, struct hid_device *hd, int32_t *error)
usr.sbin/bluetooth/bthidcontrol/sdp.c
476
struct hid_device hd;
usr.sbin/bluetooth/bthidcontrol/sdp.c
48
static int32_t hid_sdp_query (bdaddr_t const *local, struct hid_device *hd, int32_t *error);
usr.sbin/bluetooth/bthidd/bthid_config.h
61
LIST_ENTRY(hid_device) next; /* link to the next */
usr.sbin/bluetooth/bthidd/bthid_config.h
63
typedef struct hid_device hid_device_t;
usr.sbin/bluetooth/bthidd/bthid_config.h
64
typedef struct hid_device * hid_device_p;
usr.sbin/bluetooth/bthidd/bthid_config.h
73
void print_hid_device (hid_device_p hid_device, FILE *f);
usr.sbin/bluetooth/bthidd/hid.c
170
hid_device_p hid_device;
usr.sbin/bluetooth/bthidd/hid.c
198
hid_device = get_hid_device(&s->bdaddr);
usr.sbin/bluetooth/bthidd/hid.c
199
assert(hid_device != NULL);
usr.sbin/bluetooth/bthidd/hid.c
204
for (d = hid_start_parse(hid_device->desc, 1 << hid_input, -1);
usr.sbin/bluetooth/bthidd/hid.c
283
if (hid_device->keyboard && s->srv->uinput) {
usr.sbin/bluetooth/bthidd/hid.c
386
if (hid_device->keyboard) {
usr.sbin/bluetooth/bthidd/hid.c
403
if (!hid_device->battery_power)
usr.sbin/bluetooth/bthidd/hid.c
435
if (MAGIC_MOUSE(hid_device) && s->ctx) {
usr.sbin/bluetooth/bthidd/hid.c
524
if (hid_device->keyboard) {
usr.sbin/bluetooth/bthidd/hid.c
568
if (hid_device->mouse && s->srv->uinput &&
usr.sbin/bluetooth/bthidd/hid.c
87
hid_device_p hid_device = get_hid_device(&s->bdaddr);
usr.sbin/bluetooth/bthidd/hid.c
89
if (hid_device && MAGIC_MOUSE(hid_device)) {
usr.sbin/bluetooth/bthidd/kbd.c
543
hid_device_p hid_device;
usr.sbin/bluetooth/bthidd/kbd.c
555
hid_device = get_hid_device(&s->bdaddr);
usr.sbin/bluetooth/bthidd/kbd.c
556
assert(hid_device != NULL);
usr.sbin/bluetooth/bthidd/kbd.c
562
for (d = hid_start_parse(hid_device->desc, 1 << hid_output, -1);
usr.sbin/bluetooth/bthidd/kbd.c
609
if (found && s->srv->uinput && hid_device->keyboard)
usr.sbin/bluetooth/bthidd/parser.y
110
hid_device = (hid_device_t *) calloc(1, sizeof(*hid_device));
usr.sbin/bluetooth/bthidd/parser.y
111
if (hid_device == NULL) {
usr.sbin/bluetooth/bthidd/parser.y
117
hid_device->new_device = 1;
usr.sbin/bluetooth/bthidd/parser.y
121
if (check_hid_device(hid_device))
usr.sbin/bluetooth/bthidd/parser.y
122
LIST_INSERT_HEAD(&hid_devices,hid_device,next);
usr.sbin/bluetooth/bthidd/parser.y
124
free_hid_device(hid_device);
usr.sbin/bluetooth/bthidd/parser.y
126
hid_device = NULL;
usr.sbin/bluetooth/bthidd/parser.y
150
memcpy(&hid_device->bdaddr, &$2, sizeof(hid_device->bdaddr));
usr.sbin/bluetooth/bthidd/parser.y
156
if (hid_device->name != NULL) {
usr.sbin/bluetooth/bthidd/parser.y
157
free(hid_device->name);
usr.sbin/bluetooth/bthidd/parser.y
158
hid_device->name = NULL;
usr.sbin/bluetooth/bthidd/parser.y
162
hid_device->name = strdup($2);
usr.sbin/bluetooth/bthidd/parser.y
163
if (hid_device->name == NULL) {
usr.sbin/bluetooth/bthidd/parser.y
174
hid_device->vendor_id = $2;
usr.sbin/bluetooth/bthidd/parser.y
180
hid_device->product_id = $2;
usr.sbin/bluetooth/bthidd/parser.y
186
hid_device->version = $2;
usr.sbin/bluetooth/bthidd/parser.y
192
hid_device->control_psm = $2;
usr.sbin/bluetooth/bthidd/parser.y
198
hid_device->interrupt_psm = $2;
usr.sbin/bluetooth/bthidd/parser.y
204
hid_device->reconnect_initiate = 1;
usr.sbin/bluetooth/bthidd/parser.y
208
hid_device->reconnect_initiate = 0;
usr.sbin/bluetooth/bthidd/parser.y
214
hid_device->battery_power = 1;
usr.sbin/bluetooth/bthidd/parser.y
218
hid_device->battery_power = 0;
usr.sbin/bluetooth/bthidd/parser.y
224
hid_device->normally_connectable = 1;
usr.sbin/bluetooth/bthidd/parser.y
228
hid_device->normally_connectable = 0;
usr.sbin/bluetooth/bthidd/parser.y
238
if (hid_device->desc != NULL)
usr.sbin/bluetooth/bthidd/parser.y
239
hid_dispose_report_desc(hid_device->desc);
usr.sbin/bluetooth/bthidd/parser.y
241
hid_device->desc = hid_use_report_desc((unsigned char *) buffer, hid_descriptor_size);
usr.sbin/bluetooth/bthidd/parser.y
242
if (hid_device->desc == NULL) {
usr.sbin/bluetooth/bthidd/parser.y
71
static int32_t check_hid_device(hid_device_p hid_device);
usr.sbin/bluetooth/bthidd/parser.y
72
static void free_hid_device (hid_device_p hid_device);
usr.sbin/bluetooth/bthidd/parser.y
81
static hid_device_t *hid_device = NULL;
usr.sbin/bluetooth/bthidd/parser.y
82
static LIST_HEAD(, hid_device) hid_devices;